cryptography
Skill555 starsChanged 8 months agoMITView on GitHub
Cryptanalysis techniques — lattice attacks, padding oracles, weak-RNG exploitation, signature forgery, secret-sharing recovery.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- Sorcha-Platform/Sorchatheir own version, first seen Jan 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Sorcha-Platform/Sorcha★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-threat-testingSkill
- api-securitySkill
- attack-path-stitcherSkill
- authenticated-session-acquisitionSkill
- authenticationSkill
- blockchain-securitySkill
- client-sideSkill
- cloud-containersSkill
- cloud-defenseSkill
- coordinationSkill
- cve-poc-generatorSkill
- cve-risk-scoreSkill
- dfirSkill
- essential-toolsSkill
- firewall-reviewSkill
- github-workflowSkill
- hackeroneSkill
- hacktheboxSkill
- infrastructureSkill
- injectionSkill
- mobile-securitySkill
- network-appliance-offensiveSkill
- osintSkill
- patt-fetcherSkill
- pci-secure-softwareSkill
- pentest-engagementSkill
- protect-with-passwordSkill
- reconnaissanceSkill
- regression-sweepSkill
- reverse-engineeringSkill
- risk-prioritiserSkill
- script-generatorSkill
- server-sideSkill
- skill-pruneSkill
- skill-updateSkill
- social-engineeringSkill
- source-code-scanningSkill
- systemSkill
- techstack-backendSkill
- techstack-correlationSkill
- techstack-frontendSkill
- techstack-infraSkill
- techstack-osintSkill
- techstack-securitySkill
- techstack-identificationSkill
- ti-ingestSkill
- transilience-report-styleSkill
- web-app-logicSkill
The file
Files
Cryptography
Scope
Practical cryptanalysis for CTF and pentest engagements: identifying when a cryptographic primitive's structure (custom hash, partial leaks, related primes, bad RNG, weak modes) admits a faster-than-brute-force solver, then implementing that solver in pure Python where possible. Covers RSA-style algebraic factoring, lattice/AGCD recovery, GF(2) linear collapse of "complicated-looking" custom ciphers, smooth-order DLP, differential fault attacks, and Shamir-style secret-sharing recovery over non-prime moduli. Always read source first to detect linearity/algebraic structure before reaching for SageMath or symbolic solvers.
When to use
- A challenge or target ships custom crypto (custom hash, custom block cipher, hand-rolled key derivation) and you need to look for affine / GF(2)-linear collapse.
- RSA-style primitives with structured primes (
p = a·r + b,phi(n)perfect square, multi-prime hint files, common factors). - A service exposes a chosen-ciphertext / chosen-input oracle and you suspect padding-oracle, smooth-order DLP, or Bleichenbacher-style recovery.
- AES with fault injection (correct + faulty ciphertext for the same key — Piret-Quisquater DFA).
- Shamir secret sharing or threshold schemes with non-prime moduli (2-adic recovery via Lagrange interpolation with valuation tracking).
References
- reference/lattice-attacks.md — AGCD lattice, discriminant-square factoring, smooth-order DLP, Piret-Quisquater DFA.
- reference/linear-secret-recovery.md — GF(2) affine collapse of custom hashes/ciphers via column-by-column linear recovery.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

