Skip to content

meltedinhex/analyst-ai-pack / skills/extracting-config-from-a-running-sample

extracting-config-from-a-running-sample

Verified

Extracts an embedded malware configuration (C2 hosts, ports, campaign IDs, keys) from a process memory dump by locating decrypted config structures and decoding common obfuscation layers. Activates for requests to extract malware config from a memory dump, recover C2 settings from a running sample, or decode an in-memory configuration block.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.8 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript2.5 KB

references/api-reference.md

View on GitHub
# API Reference: Extracting Config From a Running Sample

## Overview

`scripts/analyst.py` scans a process memory dump for config indicators (URLs, IPv4:port pairs,
mutex tokens) and attempts base64 and single-byte XOR decoding of candidate blobs to surface
hidden endpoints. It reads bytes statically, defangs hosts, and executes nothing.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | base64, regex, JSON, file IO |

## Core functions

### `hunt(path)`
Returns defanged URLs, IP:port pairs, mutex tokens, and base64-decoded endpoints.

### `_xor_scan(blob)`
Brute-forces single-byte XOR keys and returns decoded URL/IP:port hits with the key used.

## Commands

- `hunt <dump>` — broad indicator sweep + base64 decode.
- `xor <dump>` — single-byte XOR brute force across the whole dump (noisier; corroborate hits).

## Usage

```bash
python scripts/analyst.py hunt process.dmp
```

## Sources

- MITRE ATT&CK T1140 Deobfuscate/Decode Information — https://attack.mitre.org/techniques/T1140/
- MITRE ATT&CK T1027 Obfuscated Files or Information — https://attack.mitre.org/techniques/T1027/
- Common malware config patterns (Global\\ mutexes, XOR/base64 blobs) from public family teardowns
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall