mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-13 22:54:53 +03:00
3.5 KiB
3.5 KiB
Cobalt Strike Beacon Analysis Workflows
Workflow 1: PE File Configuration Extraction
[Suspicious PE] --> [Unpack if packed] --> [Locate .data section] --> [XOR Decrypt]
|
v
[Parse TLV Config]
|
v
[Extract C2 Indicators]
Steps:
- Triage: Identify file as potential Cobalt Strike beacon via YARA or AV detection
- Unpacking: If packed, unpack using appropriate tool (UPX, custom unpacker)
- Section Analysis: Locate .data section containing XOR'd beacon code
- XOR Key Discovery: Try known keys (0x2e, 0x69) or brute-force 4-byte key
- Config Parsing: Parse decrypted TLV entries for C2 and operational settings
- IOC Extraction: Extract domains, IPs, URIs, user agents, watermarks
Workflow 2: Memory Dump Beacon Extraction
[Memory Dump] --> [Volatility3 malfind] --> [Dump Injected Regions] --> [Parse Config]
|
v
[C2 Infrastructure Map]
Steps:
- Acquisition: Capture memory dump from compromised system
- Process Scan: Use Volatility3 to identify suspicious processes
- Injection Detection: Use malfind to find RWX memory regions
- Region Extraction: Dump injected memory regions to files
- Config Search: Scan dumps for beacon configuration signatures
- Infrastructure Mapping: Correlate extracted C2 with network logs
Workflow 3: Watermark Attribution
[Multiple Beacons] --> [Extract Watermarks] --> [Cluster by Watermark] --> [Attribution]
|
v
[Campaign Correlation]
Steps:
- Collection: Gather beacon samples from incident or threat intel feeds
- Watermark Extraction: Extract watermark value from each sample
- Database Lookup: Check watermark against known databases
- Clustering: Group beacons sharing the same watermark
- Infrastructure Overlap: Correlate C2 infrastructure across cluster
- Attribution Assessment: Link to known threat actor or cracked license
Workflow 4: C2 Traffic Detection
[Beacon Config] --> [Extract C2 Profile] --> [Generate Signatures] --> [Deploy to NIDS]
|
v
[Monitor Network Traffic]
Steps:
- Profile Extraction: Parse malleable C2 profile from beacon config
- Pattern Identification: Identify unique HTTP headers, URIs, and encoding
- Signature Creation: Write Suricata/Snort rules matching C2 patterns
- Deployment: Deploy signatures to network detection infrastructure
- Validation: Test signatures against captured beacon traffic
- Monitoring: Alert on matching network flows for active beacons