Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EXFILTRATION

Archiving

This note documents detection patterns related to Suspicious Archiving within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects archive utilities and command-line compression activity.
Sysmon1Process creationCriticalBest execution source for archiving commands and parent lineage.
Sysmon11File createCriticalArchive output creation (.zip, .7z, .rar, .cab).
Sysmon15File stream createHighAlternate data streams may appear during staged archive operations.
Sysmon3Network connectionHighUseful if archive creation followed by outbound transfer.
PowerShell4104Script block loggingCriticalCaptures Compress-Archive and custom compression scripts.
Security4663Object accessHighSensitive file reads preceding archive creation if auditing enabled.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Archive in Temp/AppData.zip, .7z, .rar in user-writable pathCriticalCommon staging location.
Sensitive folders compressedDocuments, Desktop, DB exports, logsCriticalPossible exfil preparation.
Large archive before outbound trafficFile then network beaconCriticalStrong exfil chain.
Rare archive utility7z.exe / rar.exe on endpoint without baselineHighSuspicious tooling.
Password-protected archive-p argumentCriticalVery strong exfil indicator.
Split archiveMulti-part filesHighOften used to bypass controls.
Compression from service contextSYSTEM creates archiveCriticalVery suspicious.

Common Tools

ToolUsage
7z.exeCompress files, encrypt archives
rar.exeArchive creation
tar.exeNative compression
makecab.exeCAB archive creation
powershell.exeCompress-Archive
WinRARGUI or CLI archiving
custom scriptsBulk file collection

Relevant Artifacts

  • Sysmon Event IDs 1, 11, 15
  • Security Event ID 4688
  • PowerShell 4104
  • Security 4663
  • Prefetch: 7Z.EXE, RAR.EXE, POWERSHELL.EXE, TAR.EXE
  • Amcache for archive tool execution
  • ShimCache historical traces
  • MFT / USN Journal for archive timeline
  • File metadata for archive contents
  • EDR process tree before transfer

MITRE ATT&CK References

  • T1560 Archive Collected Data
  • T1560.001 Archive via Utility
  • T1020 Automated Exfiltration

Decision Tree

  1. Which process created archive?

    • Parent process
    • User context
  2. What files were collected?

    • Sensitive paths
    • Targeted extensions
  3. Archive protected?

    • Password argument
    • Split volumes
  4. Was archive transferred?

    • Network connection
    • Cloud upload
    • External media
  5. Expand:

    • Adjacent credential access
    • Discovery before collection
    • Cleanup after exfil
  6. Scope:

    • Single archive
    • Repeated staging
    • Enterprise-wide pattern

Example Detection Templates

KQL

Sysmon
| where EventID == 1
| where CommandLine has_any ("7z","rar","Compress-Archive","tar ","makecab")
| project TimeGenerated, Computer, User, CommandLine
Sysmon
| where EventID == 11
| where TargetFilename endswith ".zip" or TargetFilename endswith ".7z" or TargetFilename endswith ".rar"
| project TimeGenerated, Computer, TargetFilename

EQL

process where process.command_line like "*7z*" or process.command_line like "*Compress-Archive*"
sequence by host.name with maxspan=10m
  [ process where process.name in ("7z.exe","rar.exe","powershell.exe") ]
  [ file where file.extension in ("zip","7z","rar") ]

Sigma

title: Suspicious Archive Creation
id: 6c2e91af-archive-detection
status: experimental
description: Detects archive creation commonly linked to staging or exfiltration
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    CommandLine|contains:
      - '7z'
      - 'rar'
      - 'Compress-Archive'
      - 'makecab'
  condition: selection
fields:
  - CommandLine
  - ParentImage
falsepositives:
  - Legitimate backup activity
level: high
tags:
  - attack.collection
  - attack.t1560

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Archive utility monitoringAlert on CLI compressionCriticalCore staging visibility
Sensitive folder auditingTrack bulk readsHighDetect collection before archive
Outbound correlationTie archive to transferCriticalConfirm exfil path
PowerShell loggingEnable 4104HighDetect scripted compression
Restrict archive toolsWDAC / AppLockerHighLimit attacker tooling