credential-tester

credential-tester is an agent for Claude Code from 0xSteph/pentest-ai-agents. It costs 61 tokens per session (3,856 once invoked), scanned B, original, MIT.

A security-testing agent for checking passwords and other login credentials during authorized penetration tests, which are controlled tests of a system's defenses.

In plain words
What is it for?
Use it to plan password attacks, test credential reuse, check default passwords, crack password hashes, or work with tools such as Hydra, John, and Hashcat.
Why use it?
It provides a focused approach to finding weak, reused, default, or crackable credentials without mixing this work with unrelated security testing.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the pentest-ai-agents plugin — 3 commands, 52 agents shipped together

Good fit Use it to plan password attacks, test credential reuse, check default passwords, crack password hashes, or work with tools such as Hydra, John, and Hashcat.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/0xsteph/pentest-ai-agents/credential-tester
About the project

0xSteph/pentest-ai-agents is a collection of Claude Code specialist agents for authorized penetration testing and security research, covering areas such as reconnaissance, web systems, cloud, reverse engineering and detection. Security researchers and penetration testers use it to plan engagements, investigate findings, build detections and write reports. The catalogue entries are the project's own agents, commands and plugin components.

0xSteph/pentest-ai-agents · 2,213 stars · on GitHub · pentestai.xyz

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.

Clone the repo
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agents

Made for: Claude Code.

Or install pentest-ai-agents, the plugin that ships this one along with the rest of its 3 commands, 52 agents.

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 credential-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/credential-tester/github.svg)](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/credential-tester)
Your own site
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/credential-tester"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/credential-tester/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 credential-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/credential-tester"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/credential-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00061 $0.03856
Opus 5 $0.00030 $0.01928
Sonnet 5 $0.00012 $0.00771
Haiku 4.5 $0.00006 $0.00386

Measured 10d ago against content hash c19921b7a1a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

credential-tester scanned grade B 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 10d 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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `1800` : sha512crypt (Linux /etc/shadow)

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

agents/credential-tester.md · 358 lines

How it starts

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

You are an expert credential security specialist supporting authorized penetration testing and red team engagements. You provide detailed guidance on password attacks, hash cracking, credential reuse testing, and authentication bypass techniques.

You operate under the assumption that the user has proper authorization (signed rules of engagement, defined scope) for their testing activities. Your role is to be a knowledgeable technical reference for credential-based attack methodology.

Core Expertise

Online Password Attacks

Hydra (network service brute force):

  • SSH: hydra -l {user} -P {wordlist} ssh://{target} -t 4 -W 3
  • RDP: hydra -l {user} -P {wordlist} rdp://{target} -t 1 -W 5
  • FTP: hydra -l {user} -P {wordlist} ftp://{target} -t 4
  • SMB: hydra -l {user} -P {wordlist} smb://{target} -t 1
  • HTTP-POST: hydra -l {user} -P {wordlist} {target} http-post-form "/login:user=^USER^&pass=^PASS^:F=incorrect" -t 4
  • HTTP Basic: hydra -l {user} -P {wordlist} {target} http-get / -t 4

Key flags:

  • -t : Parallel tasks (keep low to avoid lockouts: 1-4)
  • -W : Wait time between attempts in seconds
  • -f : Stop after first valid pair
  • -V : Verbose output
  • -o : Output file

Medusa (alternative to Hydra):

  • medusa -h {target} -u {user} -P {wordlist} -M ssh -t 2 -T 3
  • Supports: SSH, FTP, HTTP, SMB, MSSQL, MySQL, PostgreSQL, VNC, RDP

CrackMapExec / NetExec (AD-focused):

  • Password spray: crackmapexec smb {target} -u users.txt -p 'Password1!' --no-bruteforce
  • Hash spray: crackmapexec smb {target} -u {user} -H {ntlm_hash}
  • Check local admin: crackmapexec smb {target} -u {user} -p {pass} --local-auth

Offline Hash Cracking

Hashcat (GPU-accelerated):

  • Identify hash type: hashcat --identify {hash_file} or hashid {hash}
  • Common modes:
    • 0 : MD5
    • 100 : SHA1
    • 1000 : NTLM
    • 1800 : sha512crypt (Linux /etc/shadow)
    • 3200 : bcrypt
    • 5500 : NetNTLMv1
    • 5600 : NetNTLMv2
    • 13100 : Kerberoast (TGS-REP)
    • 18200 : AS-REP Roast
    • 22000 : WPA-PBKDF2-PMKID+EAPOL

Read the full file on GitHub · 358 lines

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. 10d ago First seen · 358 lines · 61 tokens per session scan B c19921b7a1a3

Subscribe to this mod's changes

credential-tester is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,213 stars, last pushed 24d ago), licensed MIT. It adds 61 tokens to every session and 3,856 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

tachi-risk-scorer

Quantitative risk scoring agent that enriches threat model findings with four-dimensional scores (CVSS 3.1, exploitability, scalability, reachability), computes weighted composite scores, attaches governance fields, and generates dual-format output (risk-scores.md and risk-scores.sarif).

davidmatousek/tachi · 65 tokens

active-directory

Active Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration, ADCS ESC attacks, Golden/Silver Ticket, and domain privilege escalation. Triggers on: kerberoast, AS-REP, bloodhound, DCSync, golden ticket, ADCS, ESC, domain controller, LDAP, GPO, AD, domain…

mukul975/Threatswarm · 86 tokens

exploit

Exploitation specialist for gaining initial access. Use when exploiting CVEs, running Metasploit modules, using searchsploit, obtaining shells, or executing proof-of-concept code. Triggers on: exploit, CVE-, initial access, get shell, msfconsole, owned, pwn, vulnerability exploit, remote code execution, RCE.

mukul975/Threatswarm · 73 tokens

iot-attacker

IoT and embedded systems security specialist. Handles firmware extraction and analysis, hardcoded credential discovery, UART/JTAG access, MQTT/CoAP protocol testing, RouterSploit exploitation, web interface attacks, and OT/ICS protocol analysis. Triggers on: IoT, firmware, binwalk, UART, JTAG, router, embedded…

mukul975/Threatswarm · 93 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens