Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for T1027.015.

Upgrade to Pro
T1027.015 IBM QRadar · QRadar

Detect Compression in IBM QRadar

This detection identifies adversary use of file compression utilities (ZIP, gzip, 7z, RAR, tar) to obfuscate payloads, stage data for exfiltration, or deliver malicious archives. Key signals include compression tools spawned by unusual parent processes, self-extracting archive execution, concatenated ZIP files used to evade scanners, and shellcode compressed into registry keys. The detection focuses on behavioral anomalies such as compression utilities invoked from scripting engines, email clients, or Office applications, as well as archives extracted directly into temporary or startup directories.

MITRE ATT&CK

Tactic
Defense Evasion
Technique
T1027 Obfuscated Files or Information
Sub-technique
T1027.015 Compression
Canonical reference
https://attack.mitre.org/techniques/T1027/015/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time,
  sourceip,
  username,
  "ProcessName",
  "ParentProcessName",
  "CommandLine",
  CATEGORYNAME(category) AS category_name,
  LOGSOURCETYPEID,
  logsourceid
FROM events
WHERE
  LOGSOURCETYPEID IN (12, 352)
  AND "EventID" = '4688'
  AND (
    LOWER("ProcessName") LIKE '%7z.exe'
    OR LOWER("ProcessName") LIKE '%7za.exe'
    OR LOWER("ProcessName") LIKE '%winrar.exe'
    OR LOWER("ProcessName") LIKE '%rar.exe'
    OR LOWER("ProcessName") LIKE '%winzip32.exe'
    OR LOWER("ProcessName") LIKE '%pkzip.exe'
  )
  AND (
    LOWER("ParentProcessName") LIKE '%winword.exe'
    OR LOWER("ParentProcessName") LIKE '%excel.exe'
    OR LOWER("ParentProcessName") LIKE '%powerpnt.exe'
    OR LOWER("ParentProcessName") LIKE '%outlook.exe'
    OR LOWER("ParentProcessName") LIKE '%mshta.exe'
    OR LOWER("ParentProcessName") LIKE '%wscript.exe'
    OR LOWER("CommandLine") LIKE '%-sfx%'
    OR LOWER("CommandLine") LIKE '%-mhe%'
  )
LAST 24 HOURS
ORDER BY starttime DESC
medium severity medium confidence

Queries Windows Security Event 4688 (process creation) for known compression utilities spawned by Office applications, scripting hosts, or with self-extracting/encryption command-line flags, indicating potential payload delivery or staging.

Data Sources

Windows Security Events

Required Tables

events

False Positives & Tuning

  • Legitimate macro-enabled Office workflows that compress report files
  • MSP tools or RMM agents that invoke compression via scripting hosts
  • Developer workstations where IDEs or build tools spawn compression utilities

Other platforms for T1027.015


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 17zip Self-Extracting Archive Creation from PowerShell

    Expected signal: Sysmon Event ID 1: PowerShell spawning 7z.exe with -sfx, -p, -mhe flags. Sysmon Event ID 11: payload.exe created in C:\Users\Public\. DeviceProcessEvents in MDE.

  2. Test 2Concatenated ZIP Payload Creation

    Expected signal: Sysmon Event ID 1: cmd.exe spawning 7z.exe twice. Sysmon Event ID 11: concatenated.zip created in C:\Temp\. Security Event 4688 if process auditing enabled.

  3. Test 3Linux gzip Compression of Shellcode Blob

    Expected signal: Auditd syscall logs showing dd, gzip, and base64 invocations. Syslog entries for process execution. File creation event for /tmp/.hidden_payload.b64.

Unlock playbooks & atomic tests with Pro

Get the full detection package for T1027.015 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections