secret-extraction

secret-extraction is a skill for Claude Code from ogrodev/fsociety. It costs 548 tokens per session (3,177 once invoked), scanned C, original, MIT.

A security-analysis guide for extracting secrets such as passwords, API keys, certificates, and encryption keys from compiled programs. It covers identifying a binary, hashing it, extracting strings, and matching suspicious patterns.

In plain words
What is it for?
Use it to analyze binaries for hardcoded credentials, cryptographic material, certificates, configuration secrets, and other sensitive data.
Why use it?
Compilation does not reliably hide credentials embedded in a program. Finding them can reveal access to cloud services, databases, or encrypted communications.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the romero plugin — 5 skills, 10 commands, 1 agent shipped together

Good fit Use it to analyze binaries for hardcoded credentials, cryptographic material, certificates, configuration secrets, and other sensitive data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ogrodev/fsociety
Claude Code
/plugin install romero

Made for: Claude Code.

Or install romero, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secret-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/ogrodev/fsociety/secret-extraction/github.svg)](https://agentmods.dev/skills/ogrodev/fsociety/secret-extraction)
Your own site
<a href="https://agentmods.dev/skills/ogrodev/fsociety/secret-extraction"><img src="https://agentmods.dev/badge/skills/ogrodev/fsociety/secret-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secret-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/ogrodev/fsociety/secret-extraction"><img src="https://agentmods.dev/badge/skills/ogrodev/fsociety/secret-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 548 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00548 $0.03177
Opus 5.5 $0.00219 $0.01271
Sonnet 5.5 $0.00110 $0.00635
Haiku 4.5 $0.00055 $0.00318

Measured 3mo ago against content hash 959605970cbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

secret-extraction scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

This skill activates when the user mentions "extract secrets", "find credentials",
romero/skills/secret-extraction/SKILL.md · 303 lines

How it starts

The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secret & Credential Extraction

Extract hardcoded credentials, API keys, cryptographic material, certificates, configuration secrets, and sensitive data from compiled binaries. This skill covers the full pipeline: string extraction, pattern matching, entropy analysis, crypto identification, format-specific extraction, and anti-analysis bypass.

Why This Matters

Hardcoded secrets in binaries are among the highest-impact findings in both penetration testing and malware analysis. A single embedded AWS key grants cloud access. A hardcoded database password opens the entire backend. An extracted C2 encryption key lets you decrypt all traffic. Developers embed secrets assuming compilation hides them -- it does not.

Methodology Overview

Execute these phases in order. Each phase feeds the next.

Phase 1 — Triage and Hash

Before touching strings, identify what you have. File type determines extraction strategy.

file <binary>
sha256sum <binary>
node ${CLAUDE_PLUGIN_ROOT}/scripts/binary-hasher.js hash <binary>

Record the hash. Check if this binary was already analyzed:

node ${CLAUDE_PLUGIN_ROOT}/scripts/analysis-tracker.js check <sha256> string-extraction

Phase 2 — Static String Extraction

Extract all readable strings. Start broad, then filter.

# ASCII strings, 6+ chars (reduces noise vs default 4)
strings -a -n 6 <binary> > strings_ascii.txt

# UTF-16 LE (Windows wchar_t, most common for Windows binaries)
strings -a -n 6 -el <binary> > strings_utf16.txt

# Combine and deduplicate
cat strings_ascii.txt strings_utf16.txt | sort -u > strings_all.txt

Count and triage:

wc -l strings_all.txt
# < 500 lines: review manually
# 500-5000: filter with patterns below
# > 5000: use targeted extraction only

Phase 3 — Obfuscated String Recovery

FLOSS recovers strings that strings cannot see: stack-built strings, tight loops, and runtime-decoded strings. This is where the real secrets hide.

# Full analysis (slow but thorough)
floss <binary>

# Stack strings only (fast, catches char-by-char construction)
floss --only stack <binary>

# Decoded strings (emulation-based, slowest, highest value)
floss --only decoded <binary>

# JSON output for automated processing
floss -j <binary> > floss_output.json

Read the full file on GitHub · 303 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 303 lines · 548 tokens per session scan C 959605970cbc

Subscribe to this mod's changes

secret-extraction is a skill published in the GitHub repository ogrodev/fsociety (22 stars, last pushed 8mo ago), licensed MIT. It adds 548 tokens to every session and 3,177 once invoked, about $0.0022 per session on Opus 5.5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

secret-extraction compared with skills from other repositories

secret-extraction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
secret-extractionogrodev/fsocietySkill228mo agoMITC548Claude Code
Active Directory Attacksallsmog/blackbox-claude-pluginSkill63d agoMITA64Claude Code
cacti-exploitationallsmog/blackbox-claude-pluginSkill63d agoMITA53Claude Code
Common Exploitsallsmog/blackbox-claude-pluginSkill63d agoMITA53Claude Code
Linux Privilege Escalationallsmog/blackbox-claude-pluginSkill63d agoMITA61Claude Code
Erlang/OTP Exploitationallsmog/blackbox-claude-pluginSkill63d agoMITA86Claude Code
Web Application Enumerationallsmog/blackbox-claude-pluginSkill63d agoMITA58Claude Code