yaklang avatar

Lattice Crypto Attacks

This is a comprehensive playbook for lattice-based cryptanalysis, covering everything from LLL and BKZ reduction basics to practical attacks on RSA (Coppersmith small roots, Boneh-Durfee), DSA/ECDSA nonce recovery via the Hidden Number Problem, and knapsack cryptosystems. The real value is in the attack construction details: proper lattice dimensions, scaling factors, and those subtle beta parameters in Coppersmith methods that base models consistently get wrong. If you're doing CTF crypto challenges or need to attack biased nonces, weak RSA keys, or subset sum problems, this gives you working SageMath and fpylll code with the correct bounds. The routing table at the top is smart too, since these techniques often overlap with other RSA attacks.

skills.sh installs
3.7K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill lattice-crypto-attacks --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Lattice-Based Cryptanalysis — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert lattice techniques for CTF and cryptanalysis. Covers LLL/BKZ reduction, Coppersmith's method (univariate and multivariate), Hidden Number Problem for DSA/ECDSA nonce recovery, knapsack attacks, and NTRU analysis. Base models often fail to construct the correct attack lattice (wrong dimensions, missing scaling factors) or misapply Coppersmith bounds.

0. RELATED ROUTING

Quick application guide

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102
1affaan-m avatarllm-trading-agent-securityaffaan-m/everything-claude-codellm trading agent security3.6Kskills.sh installs
2affaan-m avatardefi-amm-securityaffaan-m/everything-claude-codedefi amm security3.5Kskills.sh installs
3longbridge avatarlongbridge-intellongbridge/skillsMarket intelligence: strategy screener, popularity rankings, top movers with news correlation, quote anomalies, index/ETF constituent stocks, morning briefings,3.3Kskills.sh installs
4deanpeters avatarfinance-metrics-quickrefdeanpeters/product-manager-skillsLook up SaaS finance metrics, formulas, and benchmarks fast. Use when you need a quick metric definition, formula, or benchmark during analysis.2.7Kskills.sh installs
5okx avatarokx-agent-identityokx/onchainos-skillsERC-8004 on-chain Agent identity on XLayer: register / create / update / activate / deactivate / search agents; view ratings; list agent services; set avatar. R2.3Kskills.sh installs
6okx avatarokx-agent-taskokx/onchainos-skillsMUST ACTIVATE on inbound envelopes: (1) {agentId, message:{source:"system", event, jobId, ...}} — system event; (2) {msgType:"a2a-agent-chat", jobId, sender:{ro2.3Kskills.sh installs