meltedinhex/analyst-ai-pack / skills/extracting-and-classifying-strings
extracting-and-classifying-strings
VerifiedExtracts ASCII and Unicode strings from a binary and classifies them into investigative categories: URLs, IPs, file paths, registry keys, mutexes, commands, and API names, prioritizing the analyst's attention. Activates for requests to extract strings, classify strings output, or pull human-readable artifacts from a sample.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.9 KB |
| references/api-reference.md | markdown | 1.1 KB |
| scripts/analyst.py | script | 2.6 KB |
references/api-reference.md
View on GitHub# API Reference: Extracting and Classifying Strings
## Overview
`scripts/analyst.py` extracts ASCII and UTF-16LE strings at a minimum length and classifies them
into investigative categories (urls, ips, paths, registry, commands, apis), flagging a sparse
dump as a possible obfuscation signal. It reads bytes only and never executes the sample.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, JSON, file IO |
## Core functions
### `ascii_strings(data, min_len)` / `unicode_strings(data, min_len)`
Extract printable ASCII and UTF-16LE runs respectively.
### `classify(strings)`
Buckets strings into categories via per-category regexes.
### `run(path, min_len)`
Returns counts, categorized strings, and an obfuscation hint.
## Usage
```bash
python scripts/analyst.py strings sample.bin --min-len 5
```
## Sources
- GNU binutils `strings` — https://www.gnu.org/software/binutils/
- FLOSS (FLARE Obfuscated String Solver) for stacked/encoded strings —
https://github.com/mandiant/flare-floss
- UTF-16LE wide-string extraction (printable byte + 0x00), standard Windows-analysis practice
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |