Abuse of PrintBrm.exe for File Operations
PrintBrm.exe is a Living-off-the-Land Binary (LOLBIN) that can be abused by threat actors to perform unauthorized ZIP file creation or extraction on Windows systems.
PrintBrm.exe (PrintBrm.exe) is a legitimate Windows utility intended for printer migration and backup tasks. It has been identified as a Living-off-the-Land Binary (LOLBIN) that can be leveraged by attackers to manipulate archives. By utilizing specific command-line arguments, an adversary can use the binary to create or extract ZIP files, effectively masking malicious file staging or data exfiltration under the guise of a system process. Because this binary is rarely required on standard workstations, its execution is often indicative of post-exploitation activity, such as preparing data for exfiltration or unpacking secondary payloads. Defenders should treat the invocation of PrintBrm.exe with command-line flags involving file archives as suspicious.
Attack Chain
- Attacker gains initial access to a compromised Windows host.
- Attacker identifies the target data to be exfiltrated.
- Attacker discovers PrintBrm.exe on the target system.
- Attacker executes PrintBrm.exe with the -f argument to target a specific file path.
- Attacker provides a .zip extension to the file path to trigger archive creation.
- PrintBrm.exe processes the files, creating an archive containing sensitive data.
- Attacker uses a separate C2 channel to exfiltrate the generated archive.
Impact
The abuse of PrintBrm.exe enables stealthy data staging and manipulation. If successful, an attacker can bypass standard security controls that monitor for common compression utilities (like 7zip or WinRAR) by leveraging a signed system binary to perform the same objective, leading to unauthorized data access and potential exfiltration.
Recommendation
- Deploy the provided Sigma rule to detect suspicious PrintBrm.exe usage.
- Baseline the use of PrintBrm.exe across the environment; disable or restrict execution of this binary on endpoints where printer migration is not a required administrative task.
- Monitor for unexpected process-creation events involving PrintBrm.exe with command-line arguments containing file paths and ZIP extensions.
Rules
- title: "Detect Suspicious PrintBrm.exe Usage" description: "Detects the execution of the LOLBIN PrintBrm.exe with arguments indicating the creation or extraction of ZIP files." logsource: category: "process_creation" product: "windows" detection: selection: Image|endswith: "\PrintBrm.exe" CommandLine|contains|all:
- "-f"
- ".zip" condition: "selection" level: "high" tags:
- "attack.command_and_control"
- "attack.stealth"
- "attack.t1105"
- "attack.t1564.004" tests: positive:
- name: "PrintBrm used to create a ZIP file" data:
- Image: "C:\Windows\System32\PrintBrm.exe" CommandLine: "PrintBrm.exe -f C:\Temp\data.zip" negative:
- name: "Legitimate printer migration command" data:
- Image: "C:\Windows\System32\PrintBrm.exe" CommandLine: "PrintBrm.exe -b -f C:\PrinterBackup" falsepositives:
- "Legitimate administrative printer migration scripts that interact with ZIP-formatted archives." handoff: detection_confidence: "high" required_telemetry:
- log_source: "Sysmon process_creation" event_or_channel: "Event ID 1" required_fields:
- "Image"
- "CommandLine" availability: "available" validation: status: "test_defined" steps:
- "Run 'PrintBrm.exe -f C:\test.zip' in a controlled lab environment." expected_telemetry: "Process creation event for PrintBrm.exe with the specified CLI." pass_criteria: "Detection rule triggers on the command line arguments." suggested_owner: "Detection Engineering"
Immediate actions
Deploy Sigma detection rule for PrintBrm.exe activity.
Threat Hunt
Search for historical process creation events involving PrintBrm.exe.
Data: Process creation logs
Mitigations
Restrict PrintBrm.exe execution to authorized administrative accounts only.
LOLBIN abuse