Linux Auditd: Command Execution of zip, gzip -k, or tar -c for Data Compression
Alerts on Linux execve events launching zip, gzip (-k), or tar create commands often used to compress data.
- Product
- linux
- Service
- auditd
- Author
- Timur Zinniatullin, oscd.community (SigmaHQ), DRL 1.1
- Published
- 2019-10-21
- Updated
- 2026-07-31
ATT&CK techniques
CollectionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies executions of common compression tools on Linux: zip, gzip with the -k option, or tar with the -c option. Adversaries may compress collected documents to reduce size and improve portability ahead of exfiltration. The detection relies on auditd telemetry capturing execve events and the exact command-line arguments for these utilities.
Reporting behind it
Changelog
v3- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Linux Auditd: Command Execution of zip, gzip -k, or tar -c for Data Compression"
id: dd11b2d0-7976-43d9-9126-3c78158712e2
status: test
description: "This rule identifies executions of common compression tools on Linux: zip, gzip with the -k option, or tar with the -c option. Adversaries may compress collected documents to reduce size and improve portability ahead of exfiltration. The detection relies on auditd telemetry capturing execve events and the exact command-line arguments for these utilities."
references:
- https://github.com/redcanaryco/atomic-red-team/blob/a78b9ed805ab9ea2e422e1aa7741e9407d82d7b1/atomics/T1560.001/T1560.001.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/auditd/execve/lnx_auditd_data_compressed.yml
author: Timur Zinniatullin, oscd.community, Huntrule Team
date: 2019-10-21
modified: 2023-07-28
tags:
- attack.exfiltration
- attack.collection
- attack.t1560.001
logsource:
product: linux
service: auditd
detection:
selection1:
type: execve
a0: zip
selection2:
type: execve
a0: gzip
a1: -k
selection3:
type: execve
a0: tar
a1|contains: -c
condition: 1 of selection*
falsepositives:
- Legitimate use of archiving tools by legitimate user.
level: low
license: DRL-1.1
related:
- id: a3b5e3e9-1b49-4119-8b8e-0344a01f21ee
type: derived