Suspicious Zip A Folder With PowerShell For Staging In Temp - PowerShell Module (via ps_module)
This rule detects PowerShell scripts that make use of the "Compress-Archive" Cmdlet to compress folders and files where the output is stored in a potentially anomalous location that is used frequently by malware for exfiltration. An adversary might compress data (e.g., sensitive documents) that is collected prior to exfiltration to make it portable and minimize the amount of data sent over the network.
SigmamediumWindowsv1
sigma
suspicious-zip-a-folder-with-powershell-for-staging-in-temp-powershell-module-via-ps-module
title: Suspicious Zip A Folder With PowerShell For Staging In Temp - PowerShell Module (via ps_module)
id: f537d2a4-d5d0-5c7c-bf45-e56fe0128bee
status: stable
description: This rule detects PowerShell scripts that make use of the "Compress-Archive" Cmdlet to compress folders and files where the output is stored in a potentially anomalous location that is used frequently by malware for exfiltration. An adversary might compress data (e.g., sensitive documents) that is collected prior to exfiltration to make it portable and minimize the amount of data sent over the network.
references:
- https://attack.mitre.org/techniques/T1074/001/
- 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
author: Huntrule Team
date: 2026-07-09
tags:
- attack.collection
- attack.t1074.001
logsource:
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: selection
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.