
Hunting for Data Staging
FreeDetect pre-exfiltration data staging activities effectively.
Free · Opens the source repo
What Hunting for Data Staging does
The Hunting for Data Staging skill is designed to assist security analysts in identifying pre-exfiltration activities that involve staging collected data. Adversaries often create archives using tools like 7-Zip, RAR, or tar to consolidate sensitive files into a single location before exfiltration. This skill leverages telemetry data from Endpoint Detection and Response (EDR) systems or Sysmon to analyze process creation logs and file system events, specifically targeting the creation of archives and unusual access patterns to temporary or hidden directories.
By monitoring for specific executable processes associated with archiving tools, the skill can flag suspicious activity in common staging directories such as the Recycle Bin, %TEMP%, and other hidden folders. It also identifies patterns of file consolidation, where multiple files are read from various locations and written to a single directory, which is a common tactic used by attackers. The skill provides a structured approach to threat hunting, enabling SOC analysts to validate their detection rules and monitoring coverage for MITRE ATT&CK technique T1074.
The output includes a detailed JSON report that outlines detected staging events, risk scores based on various heuristics, and a timeline of archive creation with source file analysis. Additionally, it maps findings to the relevant MITRE ATT&CK techniques, enhancing the analyst's ability to understand and respond to potential threats effectively. This skill is particularly useful in environments where data security is critical, and proactive measures are needed to prevent data breaches.
When to use it
Use this skill when investigating potential data exfiltration incidents or when building detection rules for archiving abuse.
When not to use it
This skill may not be suitable for environments without EDR or Sysmon telemetry, as it relies on specific log data for analysis.
What you can build with it
Incident Investigation
Use this skill during investigations of potential data breaches to identify pre-exfiltration staging activities.
Building Detection Rules
Leverage the skill to create detection queries focused on archiving tools and suspicious file access patterns.
Validating Security Coverage
Employ this skill to assess and validate your organization's monitoring capabilities for T1074-related threats.
How to install Hunting for Data Staging
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/hunting-for-data-staging-before-exfiltration --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Hunting 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
Frequently asked questions about Hunting for Data Staging
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
