Detection rules › Sigma

Compress Data and Lock With Password for Exfiltration With 7-ZIP

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113
Source
github.com/SigmaHQ/sigma

An adversary may compress or encrypt data that is collected prior to exfiltration using 3rd party utilities

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Compress Data and Lock With Password for Exfiltration With 7-ZIP
id: 9fbf5927-5261-4284-a71d-f681029ea574
status: test
description: An adversary may compress or encrypt data that is collected prior to exfiltration using 3rd party utilities
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1560.001/T1560.001.md
author: frack113
date: 2021-07-27
modified: 2026-06-05
tags:
    - attack.collection
    - attack.t1560.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Description|contains: '7-Zip'
        - Image|endswith:
              - '\7z.exe'
              - '\7zr.exe'
              - '\7za.exe'
        - OriginalFileName:
              - '7z.exe'
              - '7za.exe'
              - '7zr.exe'
    selection_password:
        CommandLine|contains: ' -p'
    selection_action:
        CommandLine|contains:
            - ' a '
            - ' u '
    condition: all of selection_*
falsepositives:
    - Legitimate activity is expected since compressing files with a password is common.
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Description|contains: '7-Zip'
    - Image|endswith:
          - '\7z.exe'
          - '\7zr.exe'
          - '\7za.exe'
    - OriginalFileName:
          - '7z.exe'
          - '7za.exe'
          - '7zr.exe'

Stage 2: selection_password

selection_password:
    CommandLine|contains: ' -p'

Stage 3: selection_action

selection_action:
    CommandLine|contains:
        - ' a '
        - ' u '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • -p corpus 4 (sigma 4)
  • a corpus 4 (sigma 4)
  • u
Descriptionmatch
  • 7-Zip corpus 3 (sigma 3)
Imageends_with
  • \7z.exe corpus 4 (sigma 4)
  • \7za.exe corpus 3 (sigma 3)
  • \7zr.exe corpus 3 (sigma 3)
OriginalFileNameeq
  • 7z.exe corpus 5 (sigma 4, splunk 1)
  • 7za.exe corpus 5 (sigma 4, splunk 1)
  • 7zr.exe corpus 5 (sigma 4, splunk 1)