Analyzing Ransomware Network Indicators
Overview
Before and during ransomware execution, adversaries establish C2 channels, exfiltrate data, and download encryption keys. This skill analyzes Zeek conn.log and NetFlow data to detect beaconing patterns (regular-interval callbacks), connections to known TOR exit nodes, large outbound data transfers, and suspicious DNS activity associated with ransomware families.
When to Use
Trigger phrases:
"analyzing ransomware network indicators"
"Identify ransomware network indicators including C2 beaconing patterns, TOR exit"
When investigating security incidents that require analyzing ransomware network indicators
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
- Zeek conn.log files or NetFlow CSV/JSON exports
- Python 3.8+ with standard library
- TOR exit node list (fetched from Tor Project or threat intel feeds)
- Optional: Known ransomware C2 IOC list
Steps
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Parse Connection Logs — Ingest Zeek conn.log (TSV) or NetFlow records into structured format
- Detect Beaconing Patterns — Calculate connection interval statistics (mean, stddev, coefficient of variation) to identify periodic callbacks
- Check TOR Exit Node Connections — Cross-reference destination IPs against current TOR exit node list
- Identify Data Exfiltration — Flag connections with unusually high outbound byte ratios to external IPs
- Analyze DNS Patterns — Detect DGA-like domain queries and high-entropy subdomains
- Score and Correlate — Apply composite risk scoring across all indicator types
- Generate Report — Produce structured report with timeline and MITRE ATT&CK mapping
Expected Output
- JSON report with beaconing detections and interval statistics
- TOR exit node connection alerts
- Data exfiltration flow analysis
- Composite ransomware risk score with MITRE mapping (T1071, T1573, T1041)
When NOT to Use
- You need to perform the attack, not analyze it (use performing-* skills)
- Task is about detection, not analysis (use detecting-* skills)
- You need to implement controls (use implementing-* skills)
- Task is about threat hunting, not post-incident analysis (use hunting-* skills)
- You don't have access to the artifacts/logs to analyze
- Task requires real-time monitoring (use SOC tools)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Capturing traffic on networks without authorization or privacy considerations
- Leaving packet captures containing sensitive data unencrypted on disk
- Deploying inline blocking rules without testing for false positives first
Process
- Scope — Define research questions, identify data sources, set time boundaries
- Gather — Collect data from primary sources, APIs, and public records
- Synthesize — Analyze findings, identify patterns, produce actionable report
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- Captures verified as complete with no dropped packets
- Detection rules tested against known-benign traffic for false positive rate
- Alert thresholds validated and tuned to reduce noise
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: analyzing-ransomware-network-indicators3description: Use when identify ransomware network indicators including C2 beaconing4 patterns, TOR exit node connections, data exfiltration flows, and encryption key5 exchange via Zeek conn.log and NetFlow analysis. Use when working with analyzing6 ransomware network indicators.7domain: cybersecurity8subdomain: threat-hunting9tags:10- ransomware11- c2-beaconing12- zeek13- netflow14- tor15- exfiltration16- network-forensics17version: '1.0'18author: oyi7719license: Apache-2.020d3fend_techniques:21- File Metadata Consistency Validation22- Certificate Analysis23- Application Protocol Command Analysis24- Content Format Conversion25- File Content Analysis26nist_csf:27- DE.CM-0128- DE.AE-0229- DE.AE-0730- ID.RA-0531category: cybersecurity32metadata:33 source: https://skillmd.com/skills/oyi77/analyzing-ransomware-network-indicators34---353637# Analyzing Ransomware Network Indicators3839## Overview4041Before and during ransomware execution, adversaries establish C2 channels, exfiltrate data, and download encryption keys. This skill analyzes Zeek conn.log and NetFlow data to detect beaconing patterns (regular-interval callbacks), connections to known TOR exit nodes, large outbound data transfers, and suspicious DNS activity associated with ransomware families.424344## When to Use45**Trigger phrases:**46- "analyzing ransomware network indicators"47- "Identify ransomware network indicators including C2 beaconing patterns, TOR exit"484950- When investigating security incidents that require analyzing ransomware network indicators51- When building detection rules or threat hunting queries for this domain52- When SOC analysts need structured procedures for this analysis type53- When validating security monitoring coverage for related attack techniques5455## Prerequisites5657- Zeek conn.log files or NetFlow CSV/JSON exports58- Python 3.8+ with standard library59- TOR exit node list (fetched from Tor Project or threat intel feeds)60- Optional: Known ransomware C2 IOC list6162## Steps6364```python65# Example: IOC detection66import re6768IOC_PATTERNS = {69 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",70 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",71 "hash_md5": r"\b[a-f0-9]{32}\b",72 "hash_sha256": r"\b[a-f0-9]{64}\b",73}7475def extract_iocs(text: str) -> dict:76 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}77```78791. **Parse Connection Logs** — Ingest Zeek conn.log (TSV) or NetFlow records into structured format802. **Detect Beaconing Patterns** — Calculate connection interval statistics (mean, stddev, coefficient of variation) to identify periodic callbacks813. **Check TOR Exit Node Connections** — Cross-reference destination IPs against current TOR exit node list824. **Identify Data Exfiltration** — Flag connections with unusually high outbound byte ratios to external IPs835. **Analyze DNS Patterns** — Detect DGA-like domain queries and high-entropy subdomains846. **Score and Correlate** — Apply composite risk scoring across all indicator types857. **Generate Report** — Produce structured report with timeline and MITRE ATT&CK mapping8687## Expected Output8889- JSON report with beaconing detections and interval statistics90- TOR exit node connection alerts91- Data exfiltration flow analysis92- Composite ransomware risk score with MITRE mapping (T1071, T1573, T1041)93## When NOT to Use9495- You need to perform the attack, not analyze it (use performing-* skills)96- Task is about detection, not analysis (use detecting-* skills)97- You need to implement controls (use implementing-* skills)98- Task is about threat hunting, not post-incident analysis (use hunting-* skills)99- You don't have access to the artifacts/logs to analyze100- Task requires real-time monitoring (use SOC tools)101102103## Red Flags104105- Performing actions without explicit written authorization from the asset owner106- Testing against production systems without a defined scope and rules of engagement107- Capturing traffic on networks without authorization or privacy considerations108- Leaving packet captures containing sensitive data unencrypted on disk109- Deploying inline blocking rules without testing for false positives first110111## Process1121131. **Scope** — Define research questions, identify data sources, set time boundaries1141. **Gather** — Collect data from primary sources, APIs, and public records1151. **Synthesize** — Analyze findings, identify patterns, produce actionable report116117## Verification118119- All steps executed successfully against a test environment before production use120- Output documented with screenshots or logs demonstrating expected behavior121- Captures verified as complete with no dropped packets122- Detection rules tested against known-benign traffic for false positive rate123- Alert thresholds validated and tuned to reduce noise124125## Anti-Rationalization Table126127| Rationalization | Reality |128|---|---|129| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |130| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |131| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |