meltedinhex/analyst-ai-pack / skills/extracting-cobalt-strike-beacon-config
extracting-cobalt-strike-beacon-config
VerifiedExtracts and interprets a Cobalt Strike Beacon configuration: decoding the encoded config block, recovering C2 servers, malleable profile fields, sleep/jitter, watermark, and pipe names to build IOCs and attribution leads. Activates for requests to analyze a Cobalt Strike beacon, extract beacon config, or interpret malleable C2 settings.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 3.6 KB |
| references/api-reference.md | markdown | 1.5 KB |
| scripts/analyst.py | script | 3.2 KB |
references/api-reference.md
View on GitHub# API Reference: Analyzing Cobalt Strike Beacon Config
## Overview
`scripts/analyst.py` brute-forces the single-byte XOR key protecting a Beacon configuration
block, locates the TLV settings table, and parses a well-known subset of settings (C2 server,
URIs, sleep/jitter, watermark, pipe name). It reads bytes only.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | struct, JSON |
## External tools
| Tool | Purpose |
|------|---------|
| CobaltStrikeParser (community) | Reference config parsing across versions |
| 1768.py (Didier Stevens) | Alternative beacon config extractor |
## Core functions
### `extract_config(data)`
Tries XOR keys 1–255, finds the decoded settings table (anchored on the BeaconType entry),
and returns the parsed config plus the recovered key.
### `_parse_table(buf)`
Walks TLV entries (index, type, length, value), mapping known indices to names. Returns
`None` on malformed data so the brute-force can reject wrong keys.
## Usage
```bash
python scripts/analyst.py parse beacon.bin
```
## Notes
The setting index catalog and XOR-encoded table layout are publicly documented. This parser
intentionally decodes a limited subset for triage; use a full community parser for complete,
version-specific extraction.
## Sources
- Cobalt Strike malleable C2 documentation — https://www.cobaltstrike.com/
- CobaltStrikeParser (community reference for config layout) —
https://github.com/Sentinel-One/CobaltStrikeParser
- Publicly documented Beacon config TLV structure
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |