Skip to content

meltedinhex/analyst-ai-pack / skills/decrypting-embedded-configuration

decrypting-embedded-configuration

Verified

Decrypts statically embedded malware configuration blobs by trying common schemes (single-byte and multi-byte XOR, RC4, base64 layers) and scoring decoded output for config-like content. Activates for requests to decrypt an embedded config, recover hardcoded settings from a blob, or brute-force a configuration encryption scheme.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript3.4 KB

references/api-reference.md

View on GitHub
# API Reference: Decrypting Embedded Configuration

## Overview

`scripts/analyst.py` brute-forces single-byte XOR, applies repeating-key XOR or RC4 with a supplied
key, and scores each candidate plaintext by printable ratio and config tokens, defanging recovered
endpoints. It reads the ciphertext blob statically and executes nothing.

## Dependencies

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

## Core functions

### `xor_brute(data)`
Tries all 256 single-byte keys; returns the top-scoring candidates with endpoints and a preview.

### `rc4(data, key)`
Standard RC4 keystream decryption.

### `xor_key(data, key)`
Repeating multi-byte XOR with a supplied key list.

## Scoring

Printable ratio (0–100) + 10 per config token + 5 per IP match. Higher = more config-like.

## Usage

```bash
python scripts/analyst.py xor blob.bin
python scripts/analyst.py rc4 blob.bin --key mysecret
python scripts/analyst.py xorkey blob.bin --key 0x11,0x22,0x33
```

## Sources

- MITRE ATT&CK T1140 Deobfuscate/Decode Information — https://attack.mitre.org/techniques/T1140/
- RC4 keystream algorithm (public description) — https://en.wikipedia.org/wiki/RC4
- XOR/base64/RC4 config patterns from public malware config-extractor write-ups
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: 197kUpdated 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