How it works
Multifunction printers (MFPs) are joined to the directory in a loose sense: they hold an account so they can look up e-mail addresses in LDAP, write scans to a file share over SMB, or send mail through an authenticated SMTP relay. The account name and password are saved in the device's configuration, and the device presents them to whatever server address the configuration names.
A pass-back attack changes that address. The attacker signs in to the device's embedded web server, replaces the LDAP (or SMB, SMTP, FTP) server with the IP address of a host they control, and presses the button that makes the device connect: "Test connection", an address book search, or a scan job. The device contacts the attacker's host and authenticates with the stored account. Many embedded web servers let an administrator change the server address without re-entering the saved password, which is what makes the attack work.
What the attacker receives depends on the protocol and the bind method:
- LDAP simple bind over port 389. The bind request carries the bind DN and the password in clear. A plain TCP listener is enough to read them, even if the listener never answers.
- LDAP with SASL or NTLM. A challenge-response bind does not reveal the password as plaintext. Some device LDAP clients pick whatever mechanism the server advertises, so a rogue server that offers only a plaintext mechanism can still obtain the password from a client that does not insist on a stronger one.
- LDAPS on port 636. A raw listener sees only a TLS handshake. The attack then needs the device to accept the attacker's certificate, or the attacker to switch the device to plain LDAP in the same settings page.
- SMB scan-to-folder. The device authenticates with NTLM, and the attacker captures a NetNTLMv2 challenge response for offline cracking or relay.
- SMTP and FTP. Basic authentication over an unencrypted connection yields the cleartext password, as with a simple bind.
Pass-back differs from authentication coercion of a Windows host. Coercion abuses an RPC interface such as MS-RPRN to make a Windows computer authenticate with its machine account. Pass-back has no RPC interface and no patch at the Windows side: the device is doing what its configuration says, with an application account that an administrator typed in.
Vendors keep publishing advisories for this attack class. Xerox fixed LDAP and SMB/FTP pass-back in VersaLink devices (CVE-2024-12510, CVE-2024-12511), Canon published a pass-back advisory for its imageRUNNER and imageCLASS lines in 2025, and Brother fixed a flaw that disclosed configured external service passwords (CVE-2024-51984).
Prerequisites
- Network access to the device's management interface (HTTP or HTTPS, sometimes SNMP).
- Administrator access to that interface. In practice this is the factory default password, a password derived from the serial number, or no password at all. The attacker needs no domain account.
- A directory, file share or mail account saved on the device.
- A route from the device to the attacker's listener. If the device can only reach the real domain controller and file server, the redirect goes nowhere.
- For a cleartext result: a device that binds with a simple bind over plain LDAP, or that can be switched to it.
The value of the result depends on the account. A bind account needs only read access to a few user attributes, but devices are often configured with a helpdesk account, a shared service account or, in the worst cases, a domain administrator.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Find the devices and their stored accounts
Printers announce themselves over SNMP, mDNS and their web interface, and the LDAP or scan-to-folder page shows the configured server, the account name and a masked password. The account name alone tells the attacker which devices are worth the effort.
2. Start a listener
For a device that performs a simple bind over plain LDAP, a TCP listener on port 389 shows the bind request, including the bind DN and password:
# Plain LDAP only: prints whatever the device sends
sudo nc -k -v -l -p 389
Some devices send a search or expect a valid LDAP response before they bind. A real LDAP server handles that exchange. On Debian or Ubuntu:
sudo apt install slapd ldap-utils
sudo dpkg-reconfigure slapd # use a base DN that matches the device's lookup
# Foreground with debug output, plain LDAP only
slapd -d 2 -h "ldap:///"
Responder runs rogue LDAP and SMB servers at the same time, logs cleartext LDAP binds, and captures NetNTLM responses from SMB connections:
sudo python3 Responder.py -I eth0 -v
Responder prints captured credentials on the console ([LDAP] Simple: <bind DN>:<password>) and writes them to its logs/ directory, for example LDAP-Cleartext-<IP>.txt.
3. Redirect the device
In the device's web interface, open the LDAP settings (or the scan-to-folder destination, or the SMTP server), note the original value, and replace the server address with the listener, for example 192.0.2.50. If the connection is set to LDAPS, change the port to 389 or turn TLS off when the page allows it. Leave the saved user name and password fields untouched.
4. Trigger the connection
Use the page's connection test, run an address book search from the panel, or start a scan to the changed destination. The device connects to the listener and authenticates.
5. Restore the setting and use the account
Put the original server address back so that lookups and scans keep working, then use the captured account: sign in to the domain with the cleartext password, or crack or relay the NetNTLMv2 response from the SMB variant.
Impact
The attacker moves from an unauthenticated position on the network to a valid domain account. Even a low-privileged bind account is enough to enumerate the directory and to start attacks that only need an authenticated user. When the device was given a privileged account, the result is direct access to servers, mailboxes or the domain itself. This is credential theft from a system that most monitoring does not cover.
Devices also store more than one credential. The same interface often exposes the address book, the scan-to-folder account, an SMTP relay account and job logs with user names.
OPSEC and artifacts
- Short redirect window. An operator changes the server, triggers one test and restores the original value within a minute. The device's configuration then looks unchanged, but its audit log, where the model has one, records two configuration changes and a management sign-in. Devices that forward syslog send those entries off the box.
- Using the built-in test. A connection test looks like something an administrator does. It still produces a connection from the device to an address that is neither a domain controller nor a file server, which a firewall on the printer segment sees.
- No Windows event for the capture. The bind goes to the attacker's host, so no domain controller records it. During the redirect the real directory sees nothing from the device, and lookups on the panel fail.
- The device's address is not the attacker's address. When the stolen account is used, event 4624 on the target shows the account signing in from a workstation or address that has never used it before. The account normally appears only from the printers.
- Listener artifacts. Responder keeps captured credentials in its
logs/directory and its database on the operator's host.
Detection
No single Windows event shows a pass-back. Detection combines the device, the network and the account.
- Egress from printers. Alert on a printer that opens LDAP (389, 636), SMB (445), SMTP or FTP to a host outside its allow list. This is the most direct signal and needs only firewall logs for the printer segment.
- Device configuration changes. Where the device supports syslog, forward management sign-ins and settings changes. A change of the LDAP server followed by a change back is the pattern.
- Use of the device account from a new source. The account should sign in only from the devices. Watch events 4624 and 4625 for any other source, and for interactive or remote logon types.
- Cleartext binds in general. Directory Service event 2889 on domain controllers lists clients that bind without signing or with a simple bind over an unencrypted connection. Devices on that list expose their password to anyone who can redirect or observe the connection.
- Relay of the SMB variant. A captured NetNTLMv2 response can be relayed; the NTLM relay detection rules cover that follow-on.
// Sign-ins by the device account from anything that is not a known printer
let printers = dynamic(["192.0.2.60", "192.0.2.61"]);
SecurityEvent
| where EventID in (4624, 4625) and TargetUserName =~ "svc-mfp"
| where IpAddress !in (printers)
| project TimeGenerated, Computer, EventID, LogonType, IpAddress,
WorkstationName, AuthenticationPackageName
| order by TimeGenerated desc
Event 4624 defines logon type 8 (NetworkCleartext) as a network logon where the password reached the authentication package unhashed. A device account that normally shows type 8 from the printers and suddenly shows type 3 or type 10 from a workstation deserves a look.
Mitigation
- Replace factory administrator passwords on every device and restrict the management interface to an administration network. Firmware updates do not change a password that was never changed.
- Restrict what the device can reach. Allow each printer to contact only its real domain controllers, file server, mail relay, DNS and NTP. A redirect to any other address then fails at the firewall.
- Use a dedicated, minimal account per purpose. A lookup account needs read access to a few attributes and nothing else; it should not be able to sign in interactively. See how to secure Active Directory service accounts and avoid the over-permissioned service account.
- Require LDAPS with certificate validation on the device, and enforce LDAP signing and channel binding on domain controllers so that plain simple binds stop working. The LDAP signing and channel binding guide covers the rollout and uses event 2889 to find the clients that would break.
- Require SMB signing on the servers the scan account can reach, which removes the relay path for a captured NetNTLM response. See the SMB signing guide.
- Update firmware for the vendor's pass-back fixes, and disable management protocols that are not used (Telnet, FTP, SNMP v1 and v2c).
- Rotate the account's password when a device is replaced, sold or serviced, and after any suspected redirect. Treat the old password as exposed.
Detection rules for this attack
Log events to collect
FAQ
What is a printer pass-back attack?
It is a way to steal the credentials a printer or multifunction device stores for Active Directory. The attacker changes the address of the LDAP, SMB or SMTP server in the device's settings to a host they control and triggers a connection test or lookup. The device then authenticates to the attacker's host with the account it was given.
Does LDAPS stop a pass-back attack?
Only if the device validates the server certificate and refuses any other server. Many devices let an administrator switch the connection from LDAPS to plain LDAP on port 389 in the same settings page, and then a simple bind sends the password in clear. A certificate check also doesn't help if the device accepts a new host name whose certificate is valid.
What does the attacker get from the SMB variant?
Not a cleartext password. A scan-to-folder connection uses NTLM, so the attacker's listener receives a NetNTLMv2 challenge response for the device's account. That can be cracked offline if the password is weak, or relayed to another server that doesn't require signing.
How do you find devices that are exposed to pass-back?
Inventory every device that holds a directory account, check whether its management interface still accepts the factory administrator password, and turn on LDAP interface diagnostics on domain controllers: event 2889 lists the clients that perform simple binds without TLS, which is exactly the population whose password can be read off the wire.
References
- Forced Authentication, T1187 (MITRE ATT&CK)
- Unsecured Credentials, T1552 (MITRE ATT&CK)
- RFC 4513: LDAP authentication methods and security mechanisms
- Xerox VersaLink C7025 pass-back attack vulnerabilities, CVE-2024-12510 and CVE-2024-12511 (Rapid7)
- CP2025-004: pass-back mitigation for multifunction and laser printers (Canon PSIRT)
- Responder (lgandx)
- 4624(S): An account was successfully logged on (Microsoft Learn)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.