Sigma rule: Zip A Folder With PowerShell For Staging In Temp - PowerShell Module
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-53113a26481b, updated 2023-12-18T00:00:00.000Z.
Rule
- Title
- Zip A Folder With PowerShell For Staging In Temp - PowerShell Module
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems), frack113
- Date
- 2021-07-20
- Modified
- 2023-12-18
- File
- rules/windows/powershell/powershell_module/posh_pm_susp_zip_compress.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects PowerShell scripts that make use of the "Compress-Archive" Cmdlet in order to compress folders and files where the output is stored in a potentially suspicious location that is used often by malware for exfiltration.
An adversary might compress data (e.g., sensitive documents) that is collected prior to exfiltration in order to make it portable and minimize the amount of data sent over the network.
Log source
- product
- windows
- category
- ps_module
- definition
- 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
Detection
selection:
ContextInfo|contains|all:
- 'Compress-Archive -Path*-DestinationPath $env:TEMP'
- 'Compress-Archive -Path*-DestinationPath*\AppData\Local\Temp\'
- 'Compress-Archive -Path*-DestinationPath*:\Windows\Temp\'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.collection
- attack.t1074.001
MITRE ATT&CK ids this rule names
Related rules
- 71ff406e-b633-4989-96ec-bc49d825a412 (similar)
- b7a3c9a3-09ea-4934-8864-6a32cacd98d9 (similar)
- 85a8e5ba-bd03-4bfb-bbfa-a4409a8f8b98 (similar)
References
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1074.001/T1074.001.md
- https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-347a
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_module/posh_pm_susp_zip_compress.yml
Sources and licences
SigmaHQ
"Zip A Folder With PowerShell For Staging In Temp - PowerShell Module" by Nasreddine Bencherchali (Nextron Systems), frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_module/posh_pm_susp_zip_compress.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Zip A Folder With PowerShell For Staging In Temp - PowerShell Module",
entity page, dataset version ref-53113a26481b, updated 2023-12-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/daf7eb81-35fd-410d-9d7a-657837e602bb (accessed 2026-11-03).
Underlying source: SigmaHQ rule daf7eb81-35fd-410d-9d7a-657837e602bb, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.