pentest-secrets-exposure

pentest-secrets-exposure is a skill for Claude Code, Codex from jd-opensource/JoySafeter. It costs 32 tokens per session (679 once invoked), scanned B, original, Apache-2.0.

A search for exposed secrets and sensitive information in source code, Git history, configuration files, software artifacts, and error messages. Secrets include API keys, passwords, signing keys, and database credentials.

In plain words
What is it for?
Use it to scan repositories and commit history, probe authorized websites for exposed configuration files, detect secrets in artifacts, and test error handling for information leaks.
Why use it?
It helps find credentials that were accidentally committed, left in public files, included in backups, or revealed through overly detailed errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scan repositories and commit history, probe authorized websites for exposed configuration files, detect secrets in artifacts, and test error handling for information leaks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jd-opensource/joysafeter/pentest-secrets-exposure
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jd-opensource/JoySafeter --skill pentest-secrets-exposure
Clone the repo
git clone --depth 1 https://github.com/jd-opensource/JoySafeter

Made for: Claude Code, Codex.

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 pentest-secrets-exposure

README.md
[![agentmods](https://agentmods.dev/badge/skills/jd-opensource/joysafeter/pentest-secrets-exposure/github.svg)](https://agentmods.dev/skills/jd-opensource/joysafeter/pentest-secrets-exposure)
Your own site
<a href="https://agentmods.dev/skills/jd-opensource/joysafeter/pentest-secrets-exposure"><img src="https://agentmods.dev/badge/skills/jd-opensource/joysafeter/pentest-secrets-exposure/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 pentest-secrets-exposure

Your own site · 80×15
<a href="https://agentmods.dev/skills/jd-opensource/joysafeter/pentest-secrets-exposure"><img src="https://agentmods.dev/badge/skills/jd-opensource/joysafeter/pentest-secrets-exposure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 30
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00032 $0.00679
Opus 5.5 $0.00013 $0.00272
Sonnet 5.5 $0.00006 $0.00136
Haiku 4.5 $0.00003 $0.00068

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

Security

Grade B, and why

pentest-secrets-exposure scanned grade B with 2 findings 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 2mo 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 variablesmediumData exfiltration

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

6. **Client-Side Bundle Analysis**: Extract API keys from JS bundles, source maps exposing server code, hardcoded tokens in mobile packages.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Validation | curl, custom scripts | Credential active-access testing |
skills/pentest-secrets-exposure/SKILL.md · 56 lines

How it starts

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

Pentest Secrets Exposure

Purpose

Spans multiple unchecked WSTG categories — CONF-03/04 (sensitive files, backups), INFO-05 (info leakage), ERRH-01/02 (error handling, stack traces). Shannon's pre-recon focuses on architecture, not systematic secrets discovery.

Prerequisites

Authorization Requirements

  • Written authorization with source code access scope (if white-box)
  • Git repository access for history mining (if applicable)
  • Target URL list for exposed file probing

Environment Setup

  • TruffleHog for git history secret scanning
  • GitLeaks for pattern-based secret detection
  • Semgrep with secrets ruleset
  • nuclei with exposure templates

Core Workflow

  1. Source Code Secrets: Scan for hardcoded API keys, DB credentials, JWT signing keys, encryption keys using pattern + entropy detection.
  2. Git History Mining: Search all commits for secrets added then removed. Check force-pushed branches. Analyze .gitignore for sensitive patterns.
  3. Exposed Config Files: Probe for .env, .git/config, .DS_Store, wp-config.php, application.yml, docker-compose.yml with credentials (WSTG-CONF-03/04).
  4. Error Handling Disclosure: Trigger stack traces, debug pages, verbose errors revealing internal paths, DB schemas, framework versions (WSTG-ERRH-01/02).
  5. Backup & Unreferenced Files: .bak, .old, .swp, ~files, editor temp files, DB dumps, log files with sensitive data.
  6. Client-Side Bundle Analysis: Extract API keys from JS bundles, source maps exposing server code, hardcoded tokens in mobile packages.
  7. Secret Validation: Test each discovered credential for active access, document scope, assess blast radius.

WSTG Coverage

WSTG ID Test Name Status
WSTG-CONF-03 Test File Extensions Handling for Sensitive Info ✅
WSTG-CONF-04 Review Old Backup and Unreferenced Files ✅
WSTG-INFO-05 Review Webpage Content for Information Leakage ✅
WSTG-ERRH-01 Test Improper Error Handling ✅
WSTG-ERRH-02 Test Stack Traces ✅

Read the full file on GitHub · 56 lines

Files

What ships with it

2 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. 2mo ago First seen · 56 lines · 32 tokens per session scan B 16f1f00c00b3

Subscribe to this mod's changes

pentest-secrets-exposure is a skill published in the GitHub repository jd-opensource/JoySafeter (315 stars, last pushed 12d ago), licensed Apache-2.0. It adds 32 tokens to every session and 679 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (harvests environment variables, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-authoring

Author SKILL.md skills: frontmatter, validator limits, structure.

mateaix/mateclaw · 18 tokens

swarmclaw

AI agent runtime and multi-agent orchestration platform. Teaches agents how to use SwarmClaw's 6 primitive tools, persistent memory, dreaming, delegation, connectors, credentials, and the skill system. Use when an agent is running on SwarmClaw and needs to understand the platform's capabilities.

swarmclawai/swarmclaw · 67 tokens

Email Marketing Command Center

Complete email marketing system — strategy, sequences, segmentation, automation, deliverability, and analytics. Build campaigns that convert.

LeoYeAI/openclaw-master-skills · 29 tokens

Freelance Empire

Complete freelance business operating system — from first client to six-figure solo business. Covers positioning, pricing, proposals, client management, finances, scaling, and the transition from side-hustle to full-time. Use when starting freelancing, raising rates, managing clients, building recurring revenue, or…

LeoYeAI/openclaw-master-skills · 71 tokens

ai-drama-prompt-factory

A prompt-planning workflow that turns a novel or story idea into structured prompts for characters, locations, props, storyboard images, video, and audio. It produces prompt data for other AI generation tools rather than creating the media itself.

LeoYeAI/openclaw-master-skills · 165 tokens

aclawdemy

The academic research platform for AI agents. Submit papers, review research, build consensus, and push toward AGI — together.

LeoYeAI/openclaw-master-skills · 30 tokens