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.
npx skills add 26zl/cybersec-toolkit --skill ctf-cryptogit clone --depth 1 https://github.com/26zl/cybersec-toolkitWrote 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.
[](https://agentmods.dev/skills/26zl/cybersec-toolkit/ctf-crypto)<a href="https://agentmods.dev/skills/26zl/cybersec-toolkit/ctf-crypto"><img src="https://agentmods.dev/badge/skills/26zl/cybersec-toolkit/ctf-crypto/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.
<a href="https://agentmods.dev/skills/26zl/cybersec-toolkit/ctf-crypto"><img src="https://agentmods.dev/badge/skills/26zl/cybersec-toolkit/ctf-crypto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01598 |
| Opus 5 | $0.00039 | $0.00799 |
| Sonnet 5 | $0.00016 | $0.00320 |
| Haiku 4.5 | $0.00008 | $0.00160 |
Grade A, and why
ctf-crypto scanned grade A 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Default first move: throw `n` at FactorDB (`run_tool("curl", "http://factordb.com/api?query=<n>")`) and at `RsaCtfTool` with all attacks enabled. How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CTF crypto methodology
Tool-first: use suggest_for_ctf("crypto") first, then this checklist for depth.
0. Where the libraries live
Crypto work runs out of tools and into arithmetic fast. The installer puts the Python side in a venv the server can hand to scripts:
run_script(code, venv="crypto") # ~/.ctf-venvs/crypto
Contents: pycryptodome (from Crypto...), sympy, gmpy2, numpy, z3,
fpylll (+cysignals), cypari2. Install with
./install.sh --module crypto; check with check_installed("ctf-crypto-venv").
run_script is gated behind CYBERSEC_MCP_ALLOW_SCRIPTS=1 and is off by
default. If a challenge needs solver code, say so and let the user enable it and
restart the server — do not route around the gate with a shell.
SageMath is not installed by default — it is packaged on Debian and Arch but
not in current Ubuntu, Fedora or openSUSE, and the image is 1.4 GB.
--enable-docker pulls sagemath/sagemath:latest. Reach for it only for what the venv cannot do:
Coppersmith with small_roots, Groebner bases, generic curve arithmetic.
1. Identify what you have
file <input>
xxd <input> | head -50
strings <input> | head -50
.pem,.pub→ public key crypto (RSA/ECC)BEGIN CERTIFICATE→ x509 — extract pubkey withopenssl x509 -in cert -pubkey -noout- High entropy ~7.99 bits/byte → encrypted/compressed
- Repeating block patterns → ECB
- Base64/hex prefix → decode first
2. RSA — the decision tree
Extract n, e, c:
openssl rsa -in pubkey.pem -pubin -text -noout
Then route by what n and e look like:
| Symptom | Attack | Tool |
|---|---|---|
Small e (3, 5), small message |
Cube root attack | RsaCtfTool, python3 -c "from gmpy2 import iroot..." |
n factorable on FactorDB |
Factor + decrypt | RsaCtfTool --uncipher c -n n -e e |
Two ciphertexts, same n, coprime e |
Common modulus | RsaCtfTool --attack commonmodulus |
Multiple users, small e=k, k pubkeys |
Håstad broadcast | RsaCtfTool --attack hastads |
Close p and q |
Fermat factorization | RsaCtfTool --attack fermat |
Wiener-applicable (d small) |
Wiener's | RsaCtfTool --attack wiener |
Partial p known |
Coppersmith | sage / RsaCtfTool --attack boneh_durfee |
Same m, two keys |
Common plaintext | manual gcd |
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.
- 2d ago Changed · +45 lines 0ea064f3abac
- 6d ago First seen · 93 lines · 78 tokens per session scan A ddc74700b13a
ctf-crypto is a skill published in the GitHub repository 26zl/cybersec-toolkit (52 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,598 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
security-awareness
../../../governance/security-awareness/SKILL.md.
mobile-pentest
Mobile app pentest for bug bounty (Android APK + iOS IPA) — runtime-first workflow: install app, proxy through Burp/mitmproxy, drive the UI, capture packets, then test the API exactly like a web target; escalate to decompile (apktool/jadx) and Frida/objection only when traffic is SSL-pinned, encrypted, or absent.…
exploiting-excessive-data-exposure-in-api
Tests APIs for excessive data exposure where endpoints return more data than the client application needs, relying on the frontend to filter sensitive fields. The tester intercepts API responses and analyzes them for leaked PII, internal identifiers, debug information, or sensitive business data that the UI does not…
exploiting-jwt-algorithm-confusion-attack
Exploits JWT algorithm confusion vulnerabilities where the server's token verification library accepts the algorithm specified in the JWT header rather than enforcing a fixed algorithm. The tester manipulates the alg header to switch from RS256 to HS256 (using the RSA public key as the HMAC secret), sets alg to none…
performing-api-inventory-and-discovery
Performs API inventory and discovery to identify all API endpoints in an organization's environment including documented, undocumented, shadow, zombie, and deprecated APIs. The tester uses passive traffic analysis, active scanning, DNS enumeration, JavaScript analysis, and cloud resource inventory to build a…
performing-soap-web-service-security-testing
Perform security testing of SOAP web services by analyzing WSDL definitions and testing for XML injection, XXE, WS-Security bypass, and SOAPAction spoofing.