Printer and print-service attacks — PRET over PJL/PostScript (9100) for filesystem/NVRAM/job access, IPP/CUPS (631) enumeration, stored scan-to-folder SMB/LDAP credential theft, and the CUPS cups-browsed CVE-2024-47176 RCE chain. Tier 1. Use when 9100/631/515 or SNMP-managed printers are present.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Printer Attacks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-printer-attacks)
---
name: printer-attacks
description: Printer and print-service attacks — PRET over PJL/PostScript (9100) for filesystem/NVRAM/job access, IPP/CUPS (631) enumeration, stored scan-to-folder SMB/LDAP credential theft, and the CUPS cups-browsed CVE-2024-47176 RCE chain. Tier 1. Use when 9100/631/515 or SNMP-managed printers are present.
---
# Printer Attacks
Printers are overlooked foothold and credential sources: PRET gives filesystem/job access over PJL, printers store SMB/LDAP creds for scan-to-folder, and the 2024 CUPS chain gives unauth RCE.
## Trigger phrases
`printer, pret, pjl, postscript, 9100, ipp, cups, 631, cve-2024-47176, scan to folder, address book creds`
## Method
1. **Find printers:** `nmap -p9100,515,631,161 <range>`; SNMP (snmp-enumeration-exploitation) often reveals model/config and stored creds.
2. **[PRET]** `pret <IP> pjl` (or `ps`) → interactive: `ls`/`get` the printer filesystem, `nvram dump`, capture/replay print jobs, read stored jobs, `info config`. PostScript mode can reach the device filesystem on many models. `nmap --script pjl-ready-message -p9100 <IP>` as a quick check.
3. **Stored-credential theft:** printers hold SMB/LDAP/SMTP creds for scan-to-folder/email — dump from config/NVRAM (via PRET or the web UI, often default admin creds). Also the "pass-back" attack: point LDAP/SMB server setting at your listener → the printer authenticates to you with the stored credential (capture with responder/a rogue LDAP).
4. **IPP/CUPS (631):** `ipptool -tv ipp://<IP>/ipp/print get-printer-attributes.test`; enumerate CUPS (`http://<IP>:631/`), check for exposed admin.
## Modern / rare techniques
- **[NEW] CUPS CVE-2024-47176 chain** — unauth attacker sends a crafted packet to `cups-browsed` on UDP 631, causing it to fetch a malicious IPP printer; combined with CVE-2024-47076/47175/42001 it reaches command execution when a print job runs. Detect exposed `cups-browsed` on UDP 631 and map to the chain (confirm, don't assume patched).
- **Credential pass-back** (above) — frequently the fastest domain-credential capture from a printer.
- **Factory reset / NVRAM via PJL** → DoS or wiping audit config (RoE-gated, avoid on production).
## Escalation / chaining
Stolen scan-to-folder creds → often domain accounts → password-spraying/winrm/lateral-movement; pass-back capture → relay (auth-coercion-relay); CUPS RCE → linux-privesc; printer as a quiet pivot host → pivoting.
## Backend & tooling
Kali/WSL or HexStrike (PRET, ipptool, responder for pass-back). Pass-back/CUPS callbacks need operator reachability, not the agent container.
## Verification (background, before reporting)
Confirm PRET actually accessed the filesystem/NVRAM (show output), not just connected; prove stored creds by capturing the pass-back authentication; validate CUPS exposure by the cups-browsed response and only claim RCE if the gated chain reproduced in-lab.
## Evidence
PRET/ipptool transcript, dumped/captured credentials (redact, handle per RoE), CUPS cups-browsed detection, impact. Remediation: patch CUPS, disable raw 9100/cups-browsed if unused, change printer admin defaults, rotate stored scan-to-folder creds (use least-privilege service accounts), segment printers.