hunting-for-data-staging-before-exfiltration skill (Anthropic-Cybersecurity-Skills)
- Install
- SKILL.md (verbatim)
- Overview
- When to Use
- Prerequisites
- Steps
- Expected Output
- Other files in this skill
- references/api-reference.md (verbatim)
- MITRE ATT&CK T1074 — Data Staged
- Archive Tool Detection Signatures
- 7-Zip (7z.exe)
- WinRAR (rar.exe)
- PowerShell Compress-Archive
- makecab.exe (LOLBin)
- Sysmon Detection Queries
- Sysmon Event ID 1 — Archive Process Creation
- Sysmon Event ID 11 — File Create in Staging Directory
- Splunk SPL Queries
- Elastic KQL Queries
- Common Staging Directories
- Atomic Red Team Test (T1074.001)
What it does. Detect data-staging activity (MITRE ATT&CK T1074) by analyzing EDR/Sysmon process-creation and file-system telemetry (Event ID 4688, Sysmon 1/11) for 7-Zip/RAR/tar archive creation, unusual temp or hidden folder access, and anomalous consolidation of files from multiple directories. Use when hunting for pre-exfiltration staging behavior, building detection rules for archiver abuse, or validating monitoring coverage for T1074. Part of mukul975/Anthropic-Cybersecurity-Skills (817 security skills) (mukul975/Anthropic-Cybersecurity-Skills).
| Upstream | mukul975/Anthropic-Cybersecurity-Skills |
| Skill file | skills/hunting-for-data-staging-before-exfiltration/SKILL.md |
| License | Apache-2.0 (skill folder LICENSE) |
| Author | mukul975 |
| Fetched | 2026-09-10 |
Install
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill hunting-for-data-staging-before-exfiltration, or copy the skill folder into~/.claude/skills/hunting-for-data-staging-before-exfiltration/.- Raw file:
curl -sL https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/HEAD/skills/hunting-for-data-staging-before-exfiltration/SKILL.md
SKILL.md (verbatim)
name: hunting-for-data-staging-before-exfiltration
description: Detect data-staging activity (MITRE ATT&CK T1074) by analyzing EDR/Sysmon process-creation and file-system telemetry (Event ID 4688, Sysmon 1/11) for 7-Zip/RAR/tar archive creation, unusual temp or hidden folder access, and anomalous consolidation of files from multiple directories. Use when hunting for pre-exfiltration staging behavior, building detection rules for archiver abuse, or validating monitoring coverage for T1074.
domain: cybersecurity
subdomain: threat-hunting
tags:
- data-staging
- exfiltration
- t1074
- archive-detection
- edr
- threat-hunting
- dlp
version: '1.0'
author: mahipal
license: Apache-2.0
d3fend_techniques:
- File Metadata Consistency Validation
- Content Format Conversion
- File Content Analysis
- Platform Hardening
- File Format Verification
nist_csf:
- DE.CM-01
- DE.AE-02
- DE.AE-07
- ID.RA-05
mitre_attack:
- T1046
- T1057
- T1082
- T1083
- T1048
Hunting for Data Staging Before Exfiltration
Overview
Before exfiltrating data, adversaries typically stage collected files in a central location (MITRE ATT&CK T1074). This involves creating archives with tools like 7-Zip, RAR, or tar, consolidating files from multiple directories, and using temporary or hidden staging directories. This skill detects staging behavior by analyzing process creation logs for archiver activity, monitoring file system events in common staging paths, and identifying anomalous file consolidation patterns.
When to Use
- When investigating security incidents that require hunting for data staging before exfiltration
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- EDR or Sysmon telemetry with process creation and file system events
- Windows Event Logs (Event ID 4688) or Sysmon Event ID 1, 11
- Python 3.8+ with standard library
- Access to process creation logs in JSON/CSV format
Steps
- Detect Archive Tool Execution — Monitor for 7z.exe, rar.exe, tar, zip, and WinRAR process creation with compression arguments
- Identify Staging Directories — Flag file writes to common staging locations (Recycle Bin, %TEMP%, ProgramData, hidden directories)
- Detect Large File Consolidation — Identify patterns of multiple file reads followed by writes to a single directory
- Monitor Sensitive Path Access — Track bulk reads from document directories, database paths, and network shares
- Analyze Archive Metadata — Extract and analyze archive file sizes, creation times, and source paths
- Score Staging Risk — Apply heuristic scoring based on archive size, source diversity, staging path suspicion, and timing
- Generate Hunt Report — Produce a structured report with staging event timeline and MITRE ATT&CK mapping
Expected Output
- JSON report of detected staging events with risk scores
- Archive creation timeline with source file analysis
- MITRE ATT&CK mapping (T1074.001, T1074.002, T1560)
- Staging directory heat map showing suspicious write activity
Other files in this skill
references/api-reference.md (verbatim)
Data Staging Detection API Reference
MITRE ATT&CK T1074 — Data Staged
- T1074.001 Local Data Staging — Files consolidated on the local system before exfiltration
- T1074.002 Remote Data Staging — Files staged on a remote system or network share
- T1560.001 Archive via Utility — Data compressed using 7-Zip, RAR, tar, etc.
Archive Tool Detection Signatures
7-Zip (7z.exe)
7z.exe a -pPASSWORD -mhe=on archive.7z C:\Users\target\Documents\*
7z.exe a -v50m split_archive.7z C:\sensitive\data\
WinRAR (rar.exe)
rar.exe a -hp"password" -r archive.rar C:\Users\*\Documents\
winrar.exe a -p"pass" -ep1 exfil.rar @filelist.txt
PowerShell Compress-Archive
Compress-Archive -Path C:\StagingDir\* -DestinationPath C:\Temp\data.zip
makecab.exe (LOLBin)
makecab.exe C:\sensitive\file.docx C:\Temp\file.cab
Sysmon Detection Queries
Sysmon Event ID 1 — Archive Process Creation
EventID=1 AND (Image="*7z.exe" OR Image="*rar.exe" OR Image="*tar*")
AND CommandLine="*-p*"
Sysmon Event ID 11 — File Create in Staging Directory
EventID=11 AND (TargetFilename="*\\Temp\\*.zip" OR TargetFilename="*\\Temp\\*.7z"
OR TargetFilename="*\\ProgramData\\*.rar")
Splunk SPL Queries
index=sysmon EventCode=1
| where match(Image, "(?i)(7z|rar|winrar|tar|zip)\.exe$")
| stats count by User, Image, CommandLine, ParentImage
| where count > 3
index=sysmon EventCode=11
| where match(TargetFilename, "(?i)\\\\(temp|programdata|\\$recycle)\\\\.*\.(zip|7z|rar|tar)")
| stats dc(TargetFilename) as unique_files, sum(FileSize) as total_bytes by User
| where total_bytes > 104857600
Elastic KQL Queries
process.name: ("7z.exe" or "rar.exe" or "winrar.exe")
and process.args: ("-p*" or "-hp*" or "-mhe=on")
file.path: (*\\Temp\\*.zip or *\\Temp\\*.7z or *\\ProgramData\\*.rar)
and event.action: "creation"
Common Staging Directories
| OS | Directories |
|---|---|
| Windows | C:\Windows\Temp, C:\Users\Public, C:\ProgramData, C:\$Recycle.Bin, C:\PerfLogs |
| Linux | /tmp, /var/tmp, /dev/shm |
Atomic Red Team Test (T1074.001)
# Simulate local data staging
mkdir /tmp/staging
cp /home/user/Documents/*.pdf /tmp/staging/
tar -czf /tmp/staging/exfil.tar.gz /tmp/staging/*.pdf
Back to mukul975/Anthropic-Cybersecurity-Skills (817 security skills) or Agent skills.