Sigma rule: Compress-Archive Cmdlet Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8f39f07b75ed, updated 2023-12-15T00:00:00.000Z.

Rule

Title
Compress-Archive Cmdlet Execution
Status
test
Level
low
Author
Timur Zinniatullin, oscd.community
Date
2019-10-21
Modified
2023-12-15
File
rules-threat-hunting/windows/powershell/powershell_script/posh_ps_compress_archive_usage.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell scripts that make use of the "Compress-Archive" cmdlet in order to compress folders and files.
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_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains: 'Compress-Archive'
condition: selection

False positives (as the rule lists them)

  • Likely

Tags

  • attack.exfiltration
  • attack.collection
  • attack.t1560
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/powershell/powershell_script/posh_ps_compress_archive_usage.yml

Sources and licences

  • SigmaHQ

    "Compress-Archive Cmdlet Execution" by Timur Zinniatullin, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/powershell/powershell_script/posh_ps_compress_archive_usage.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Compress-Archive Cmdlet Execution",
entity page, dataset version ref-8f39f07b75ed, updated 2023-12-15T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/6dc5d284-69ea-42cf-9311-fb1c3932a69a (accessed 2026-11-03).
Underlying source: SigmaHQ rule 6dc5d284-69ea-42cf-9311-fb1c3932a69a, 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.