PJL / PostScript → printer root → quiet network foothold
PRET-style payloads against TCP/9100 give RCE on the printer's controller. The printer is a stable, EDR-free Linux box trusted by the rest of the network — perfect long-term implant.
§ Context
Assumed environment: a Windows-style enterprise network with HP / Lexmark / Xerox MFPs. Printers reachable on 9100/tcp from the internal foothold. No printer-specific monitoring.
§ Steps
- 01Drop into printer controller shellExecutionT1059— Command and Scripting Interpreter
- 02Enumerate printers on port 9100DiscoveryN-NMAP-INTERNAL— Internal Nmap Sweep
- 03Run PRET — PJL FSDOWNLOAD / FSUPLOADExecutionPRT-PJL-PS-RCE— PJL / PostScript Code Execution
- 04Use printer as pivot to coerce internal hostsCredential AccessPRT-SMB-REL-CRED— MFP Scan-to-SMB Coerce
- 05Intercept print jobs (scan-to-pdf, copies)CollectionPRT-PRINT-JOB-INTERCEPT— Print Job Interception
- 06Plant implant in firmware / on flashExecutionPRT-WEB-PANEL-RCE— Printer Web Panel RCE
§ References
§ Frequently asked
- What is the "PJL / PostScript → printer root → quiet network foothold" attack path?
- PRET-style payloads against TCP/9100 give RCE on the printer's controller. The printer is a stable, EDR-free Linux box trusted by the rest of the network — perfect long-term implant. It chains 6 steps drawn from real-world offensive-security techniques.
- What starting position does this attack require?
- The first step is Drop into printer controller shell (T1059) — a execution primitive. Assumed environment: a Windows-style enterprise network with HP / Lexmark / Xerox MFPs.
- What is the final impact of this kill-chain?
- The final step lands on Plant implant in firmware / on flash (PRT-WEB-PANEL-RCE), which falls under Execution. From here, an operator typically pivots into post-exploitation or maintains persistence.
- How can defenders detect or prevent this attack?
- Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.
§ Related dossiers
- Shared techniques2
EternalBlue (MS17-010) → SMBv1 wormable spread
Unpatched Windows 7 / Server 2008 with SMBv1 enabled — pre-auth kernel RCE. Used by WannaCry / NotPetya in 2017, still found on enclave / industrial networks.
- Shared techniques2
Jenkins /script Groovy console → RCE → AD
Jenkins script console exposed unauth on the corporate intranet — Groovy 'execute()' = RCE as the Jenkins service account, often a domain user with broad agent access.
- Shared techniques2
PMKID attack → offline crack with no client interaction
WPA2 PMKID can be extracted from a single association attempt with the AP — no client needed. hcxdumptool + hashcat -m 22000 yields the PSK if it's weak.