Crypto Attacks 标志

Crypto Attacks

社区
brucesongs
crypto-attacks

Cryptographic Attacks target implementation flaws and algorithm weaknesses in encryption systems, covering OWASP A04: Cryptographic Failures.

Add to TypingMind

概览

发布者brucesongs
代码仓库kali-claw
技能名称crypto-attacks
星标数
70
复刻数
18
附带文件
14
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 14 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 brucesongs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Crypto Attacks AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/brucesongs/kali-claw/tree/main/skills/crypto-attacks
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/crypto-attacks .claude/skills/crypto-attacks
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Crypto Attacks,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Crypto Attacks。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Crypto Attacks 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Skill: Cryptographic Attacks

Supplementary Files:

  • payloads.md — Cryptographic attack payload collection: weak algorithm detection, hash cracking, Padding Oracle, Hash Length Extension, ECB mode, JWT attacks, RSA attacks, SSL/TLS test commands
  • test-cases.md — Structured test cases: complete test checklist covering cryptographic detection, hash cracking, protocol attacks, JWT attacks, and advanced techniques

Summary

Crypto Attacks skill domain covering cryptography operations.

Tools: openssl, sslscan, testssl.sh, hashcat, CyberChef, padbuster, RsaCtfTool

Domain: cryptography

OWASP: A04:2021-Cryptographic Failures

Description

Cryptographic Attacks target implementation flaws and algorithm weaknesses in encryption systems, covering OWASP A04: Cryptographic Failures. Attackers do not break mathematical problems; instead, they exploit engineering implementation errors: weak algorithm remnants (RC4/DES/MD5/SHA1), key management mistakes (hardcoded/reused/non-rotated), encryption mode misuse (ECB/Padding Oracle/IV Reuse), protocol downgrade (SSLv3/TLS 1.0), and missing signature verification (JWT alg:none/Algorithm Confusion).

Core Insight: The mathematical foundations of modern cryptography are robust — attackers almost never "break encryption algorithms" but rather "break how encryption is used." A rule of thumb: if you feel like you are attacking the math, you are probably heading in the wrong direction; instead, look for who wrote the key in the code, which IV is fixed, which service still accepts SSLv3.

Key Attack Surfaces:

  • Weak Algorithms: RC4 (fully broken), DES (56-bit brute forceable), MD5/SHA1 (collision attacks), Blowfish (64-bit block)
  • Key Management Flaws: Hardcoded keys, fixed IVs, key reuse, no key rotation, keys stored in source code/config files
  • Padding Oracle: Server returns different responses for decryption padding errors, allowing attackers to recover plaintext byte by byte without the key
  • Hash Length Extension: Hash functions based on Merkle-Damgard construction (SHA-1/MD5) allow appending data to MAC without knowing the key
  • SSL/TLS Vulnerabilities: POODLE (SSLv3), BEAST (TLS 1.0 CBC), Heartbleed (OpenSSL), certificate verification bypass

Use Cases

  1. Web Application Encryption Audit - Detect HTTPS configuration flaws, cookie encryption weaknesses, missing API signature verification, sensitive data transmitted in plaintext
  2. JWT / Token Security Testing - Algorithm confusion attacks (RS256 -> HS256), alg:none bypass, key brute force, payload tampering
  3. CTF Cryptography Challenges - Quickly identify encryption modes (ECB/CBC/CTR), known plaintext attacks, Padding Oracle, hash extension attacks
  4. Data Breach Assessment - Analyze whether leaked data uses weak encryption, assess cracking feasibility (hash type/salt/iterations)
  5. TLS/SSL Configuration Hardening - Scan server-supported protocol versions, cipher suites, certificate chain validity

Core Tools

ToolPurposeCommand Example
opensslCertificate analysis, protocol testing, encryption/decryption operationsopenssl s_client -connect target:443 -tls1
sslscanQuick TLS configuration scan, detect supported protocols and cipher suitessslscan target.com
testssl.shComprehensive SSL/TLS security audit, 200+ checkstestssl.sh --full target.com
hashcatOffline hash cracking (including JWT key brute force mode 16500)hashcat -m 16500 jwt.txt rockyou.txt
CyberChefEncoding/decoding/encryption/hashing online analysis (identify unknown encodings)Browser tool, drag-and-drop operation
padbusterAutomated Padding Oracle attackspadbuster URL ENC_BLOCK 8

Auxiliary tools: hash-identifier (hash type identification), htlea (Hash Length Extension), RsaCtfTool (RSA attack collection), jwt_tool (full JWT testing workflow).


Methodology

Attack Chain

[1] Crypto ID            [2] Algorithm Analysis    [3] Key/IV Attacks
  - Protocol version       - Weak algorithm detect   - Hardcoded key search
  - Cipher suite enum      - Block size/mode detect  - IV predictability
  - Hash type ID           - Key length assessment   - Key reuse detection
  - Token format parse     - Padding mode analysis   - ECB mode detection
       |                        |                        |
       v                        v                        v
[4] Protocol Downgrade    [5] Data Decryption       [6] Signature Bypass
  - TLS version downgrade   - Padding Oracle          - JWT alg:none
  - Cipher suite downgrade  - Known plaintext attack  - Algorithm Confusion
  - Forward secrecy test    - Bit flipping attack     - Key brute force
  - Cert chain validation   - Hash extension attack   - Replay attacks

Post-Quantum Migration

The post-quantum transition expands the crypto-attacks attack surface on three new axes that any Distinguished-tier engagement must cover: (a) classical-vs-quantum threat model, (b) hybrid construction correctness, and (c) protocol incompatibilities caused by larger PQ key / signature sizes. The attack chain below operationalizes the HNDL ("Harvest Now, Decrypt Later") adversary and the migration audit.

[PQM-1] Asset Inventory       [PQM-2] Algorithm Coverage   [PQM-3] Hybrid Construction
  - Long-lived keys cataloged   - FIPS 203/204/205 support     - X25519 + ML-KEM-768 KEM
  - HNDL exposure profiled      - liboqs / OQS-OpenSSL          - Transcript hash binding
  - PKI chain depth analyzed    - pqm4 (Cortex-M4 targets)      - KDF length-prefixing
       |                              |                                |
       v                              v                                v
[PQM-4] Protocol Compatibility [PQM-5] Downgrade Analysis   [PQM-6] PQC Implementation Audit
  - MTU / fragment / EDNS(0)    - Stripping PQ group             - KyberSlash (barrett div)
  - Middlebox cert handling     - Hybrid fallback policy         - Dilithium verify-before-release
  - X.509 alt-signature path    - Cipher string hardening        - Cross-protocol key reuse

Real research touchpoints: KyberSlash (2021), Injecting Crystals (Manganote et al., 2023), Crystal-Slinger, GROUNDTRUTH (2024), and Shor's algorithm assumptions about ECC/RSA recovery under a cryptographically relevant quantum computer (CRQC). The full attack taxonomy, parameter sizes, and lab procedures live in guides/crypto-attacks-pqc-migration-side-channel.md.

Side-Channel Analysis

Side-channel analysis (SCA) targets physical and microarchitectural leakage of secret-dependent computation -- the single largest source of real-world breaks of mathematically sound algorithms. Padding Oracle, Heartbleed, and Spectre/Meltdown are all side channels; the same methodology scales to power, EM, timing, and fault channels on cryptographic hardware.

[SCA-1] Channel Selection     [SCA-2] Trace Acquisition     [SCA-3] Statistical Attack
  - Timing (dudect)              - ChipWhisperer + STM32F4      - SPA: single-trace op ID
  - Power (SPA / DPA / CPA)      - Riscure Inspector            - DPA: difference-of-means
  - Electromagnetic (EMA)        - Near-field EM probe + scope  - CPA: HW correlation
  - Cache-timing (Spectre)       - Remote latency measurement   - Template: max likelihood
       |                              |                                |
       v                              v                                v
[SCA-4] PQC-Specific Attacks   [SCA-5] Constant-Time Audit   [SCA-6] Fault Injection
  - Kyber compress leak          - dudect / ctgrind / binsec    - Clock / power glitch
  - Dilithium z-step             - HW-accel (AES-NI, ARMv8)     - Verify-before-release bypass
  - SPHINCS+ WOTS+ chain         - Masking (order-1 minimum)    - Fault-tolerant chains

Equipment baseline: ChipWhisperer Husky or Lite + CW308/STM32F4 target for power/EM/glitch; dudect / ctgrind for software constant-time verification; Riscure Inspector for enterprise-grade CPA / template attacks. Deep dive: guides/crypto-attacks-pqc-migration-side-channel.md.

Crypto-Agility Framework

Crypto-agility is the ability to swap cryptographic primitives without code changes or protocol breakage -- the strongest predictor of whether a PQC migration will succeed. The framework below structures the audit; an organization that cannot answer "yes" to every row is non-agile and at risk during any future algorithm transition (PQC today, AES-GCM-SIV tomorrow, whatever comes next).

[CA-1] Algorithm Inventory      [CA-2] Pluggable Primitive API  [CA-3] Negotiation & Telemetry
  - Every long-term key mapped    - Algorithm as config string     - Negotiated group logged
  - Every signature location      - Key store holds 5 KB PQ keys   - Downgrade detected
  - Every TLS / SSH / IPsec       - No hardcoded constants         - Per-peer algorithm tracked
       |                                |                                |
       v                                v                                v
[CA-4] Swap Planning             [CA-5] Test Coverage            [CA-6] Rollback Readiness
  - 12-month / 24-month target    - ACVP / CAVP vectors            - Atomic rollback to classical
  - Hybrid (classical + PQ)       - Cross-stack interop tests       - Re-key without service outage
  - Pure-PQ end state             - Side-channel regression         - Root of trust migration

Acceptance criterion: a single configuration change in crypto_policy.yaml (e.g., kem_group: x25519_mlkem768) propagates to every endpoint, every library, every certificate, with no source modification -- and the change is observable in production telemetry within 24 hours. Anything less is non-agile.

Defense Perspective

Defense MeasureDescriptionAttack Types Countered
AES-256-GCM / ChaCha20-Poly1305Authenticated encryption (AEAD), ensures both confidentiality and integrityECB/CBC mode attacks, Padding Oracle
TLS 1.3 OnlyDisable old protocols, enforce forward secrecy (PFS)POODLE/BEAST/protocol downgrade
Key Management (KMS/HSM)Keys never touch source code, hardware-isolated storageHardcoded keys, key leakage
PBKDF2/bcrypt/argon2idSlow hashing + salt, increases offline cracking costHash cracking, rainbow tables
JWT Security PracticesAlgorithm allowlist + short expiration + strong keys + token blacklistalg:none / Algorithm Confusion
Certificate PinningPin expected certificates/public keys, prevent MITMForged certificates, MITM
Hybrid KEM (X25519 + ML-KEM-768)Bind classical and PQ shares into transcript hash; secure if either primitive holdsHNDL, PQ-stripping downgrade, single-primitive break
Verify-before-release on PQ signaturesCompute signature, verify under public key, retry on mismatchDilithium / FN-DSA fault injection (Injecting Crystals)
First-order masking + NTT shufflingRandom-share secret-dependent lattice operationsKyber / Dilithius SPA / DPA / single-trace EM
Constant-time coding (verified)dudect / ctgrind / binsec CI gates; AES-NI / ARMv8 SHATiming, cache-timing, KyberSlash-class leaks
Crypto-agility policy layerAlgorithms expressed as config (OID / cipher string), not source constantsMigration blockers, future algorithm deprecations
X.509 alt-signature (hybrid)Two signatures (classical + PQ) per certificate with separate OIDsTransitional PKI trust breakage, slow client rollout
Per-protocol KEM key derivationDomain-separated KDF on the shared secretKyber cross-protocol (Bosc et al. 2023)
PQC Migration and Side-Channel Mitigations

Beyond the row-level defenses, four structural mitigations cover the emerging PQ and side-channel surface:

  1. Hybrid-by-default for long-lived data: any TLS / SSH / IPsec endpoint that protects data with a confidentiality lifetime of 10+ years MUST negotiate a hybrid group (e.g., x25519_mlkem768) and MUST reject ClientHello that strips the PQ group. Pure-PQ endpoints are acceptable only after the PQC primitive has accumulated 5+ years of adversarial analysis.
  2. Verify-before-release everywhere: every PQC signature implementation must compute the signature, run a full verification under the public key, and retry on failure. This single step defeats the cheapest single-fault attacks (Injecting Crystals class) and is now mandated by FIPS 204.
  3. Constant-time as a CI gate, not a claim: any "constant-time" assertion must be backed by automated dudect / ctgrind / binsec evidence in CI. Side-channel regression tests on cryptographic primitives must run on every commit, not as a release milestone. Hardware acceleration (AES-NI, ARMv8 SHA, dedicated PQ IP) is preferred over constant-time software where available.
  4. Crypto-agility first: every algorithm must be expressible as a single configuration entry (cipher string, KEM group, signature OID), not a refactoring project. The acceptance test is "swap x25519 to x25519_mlkem768 in one config file; production telemetry reflects the change within 24 hours; no source modification." Organizations that cannot pass this test are non-agile and will not complete the PQC migration before the HNDL window closes.

Practical Steps

1. Crypto Identification Phase

bash
# SSL/TLS protocol scanning
testssl.sh --protocols target.com
sslscan target.com | grep -E "SSLv3|TLS 1.0|TLS 1.1"

# Hash type identification
hash-identifier
# Or: hashcat --identify hash.txt

2. Algorithm Analysis and Key Attacks

bash
# Padding Oracle attack
padbuster http://target/page?data=ENC ENC 8 -encoding 0 -plaintext "admin=true"

# ECB mode detection: Submit repeated plaintext, observe ciphertext block repetition
# IV Reuse: Encrypt same plaintext twice, compare ciphertexts

3. Signature Bypass and Token Attacks

bash
# JWT alg:none bypass
python3 jwt_tool.py <TOKEN> -X a

# JWT Algorithm Confusion (RS256 -> HS256)
python3 jwt_tool.py <TOKEN> -I -at HS256 -pc role -pv admin -k public_key.pem

# JWT key brute force
hashcat -m 16500 jwt_hash.txt /usr/share/wordlists/rockyou.txt

For detailed payloads see payloads.md, and for the complete test checklist see test-cases.md.


Common Pitfalls

  • Assuming encryption means security: Encryption that uses AES-256 but with a hardcoded IV or ECB mode is trivially breakable. Always verify the complete cryptographic configuration — algorithm, mode, key management, IV handling — not just the algorithm name.
  • Neglecting to check for key rotation: Many systems generate a single encryption key at deployment and never rotate it. A key leaked through a single code repository commit compromises all data encrypted with that key since the system was deployed.
  • Overlooking JWT in non-obvious locations: JWTs are used in cookies, Authorization headers, URL parameters, and WebSocket upgrade requests. Testing only one transport mechanism misses attack surface.

Automation and Scripting

Automate TLS configuration scanning by running testssl.sh with the --json output flag and piping results into a comparison script that flags deviations from security baselines. Use hashcat in benchmark mode (hashcat -b) to measure GPU cracking throughput before launching long-running cracking jobs. Script Padding Oracle attacks with padbuster's batch mode and custom Python wrappers that automate the byte-by-byte decryption loop with retry logic for network errors.

Reporting and Documentation

Cryptographic findings should be mapped to OWASP A04:2021 (Cryptographic Failures) and include the specific misconfiguration discovered (e.g., "TLS 1.0 enabled with CBC cipher suite" rather than "weak encryption"). Document the full attack chain from discovery to impact: how the weak configuration was identified, what data could be decrypted or tampered with, and the estimated effort to exploit. Include specific remediation with library-specific configuration examples (e.g., OpenSSL cipher string, node.js TLS options).

Legal and Ethical Considerations

Testing SSL/TLS configurations against production servers is generally permissible but be cautious with aggressive scanning that could trigger DoS conditions. Testing Heartbleed or similar memory-disclosure vulnerabilities on production systems may expose other users' sensitive data — use dedicated test environments when possible. Never store intercepted SSL private keys or decrypted session data beyond what is needed for the engagement report, and always verify that cryptographic testing is included in the scope of authorization.

Integration with Other Tools

Cryptographic attack findings feed directly into several adjacent skills. Weak TLS configurations discovered through testssl.sh inform network-pentest MITM attack planning. JWT vulnerabilities (alg:none, key brute force) connect to web-auth-bypass for authentication exploitation. Hash cracking results from hashcat feed into password-attack workflows for credential stuffing. Use burpsuite to intercept and replay JWT tampering payloads against authenticated API endpoints, combining crypto analysis with web application testing.

Case Studies and Examples

  • JWT algorithm confusion: A web application used RS256 (asymmetric) for JWT signing. An attacker obtained the public key from the /jwks.json endpoint, then forged a token signed with HS256 using the public key as the HMAC secret. The server accepted the forged token because it trusted the key without verifying the algorithm, granting admin access.
  • Padding Oracle in payment gateway: An e-commerce platform's payment callback URL returned different HTTP status codes for valid versus invalid padding. Using padbuster, the attacker decrypted the encrypted order ID parameter, modified the amount to zero, and re-encrypted it — purchasing items for free.
  • Heartbleed memory dump: During a TLS security audit, the Heartbleed vulnerability was confirmed on a legacy load balancer. The memory dump contained database connection strings with plaintext credentials, enabling full database compromise through the cryptographic implementation flaw.

Detection and Evasion

Defenders can detect cryptographic attacks through several indicators: unusual TLS negotiation patterns (downgrade attempts logged by the server), repeated decryption errors in application logs (Padding Oracle attempts), JWT validation failures with algorithm mismatches, and anomalous hash cracking activity (high GPU utilization on compromised machines). Monitor certificate transparency logs for unauthorized certificate issuance. To evade detection during testing: spread JWT brute force attempts across multiple API endpoints, use timing delays in Padding Oracle attacks to avoid triggering rate limits, and test TLS downgrade resistance through a single well-crafted ClientHello rather than a noisy scan. For hash cracking, offload to dedicated GPU rigs outside the target network.

Advanced Techniques

Beyond the core attacks, advanced cryptographic testing includes: RSA key recovery from partial key exposure (known bits of p or q), Bleichenbacher attacks against PKCS#1 v1.5 padding in RSA encryption, BEAST and Lucky13 attacks against TLS CBC cipher suites, hash length extension attacks against SHA-256 and SHA-512 (not just MD5/SHA1), and cryptographic side-channel attacks using timing analysis to extract secrets. For CTF challenges, practice with RsaCtfTool for automated RSA attack selection and CyberChef for rapid encoding/decoding chain prototyping.

Tool Comparison Matrix

ToolBest ForSpeedCoverageSkill Level
testssl.shComprehensive TLS auditingModerateVery broadBeginner
sslscanQuick protocol/cipher checkFastBroadBeginner
hashcatGPU hash/JWT crackingVery fast300+ hash typesIntermediate
padbusterPadding Oracle automationSlow (network-bound)NarrowIntermediate
CyberChefEncoding/decoding analysisN/A (manual)Very broadBeginner
RsaCtfToolRSA attack collectionVariableRSA-specificAdvanced

Detection Methods

TLS / SSL Audit

  • Weak cipher usage: TLS 1.0/1.1; RC4, DES, 3DES ciphers; SHA-1 signatures.
  • Certificate anomalies: Self-signed certs in production; cert chain depth > 5; expired intermediate.
  • Protocol downgrade: TLS_FALLBACK_SCSV abuse; SSLv3 fallback.

Cryptographic Implementation Flaws

  • Padding oracle signatures: Time-differential responses to malformed padding (Vaudenay, POODLE).
  • Bleichenbacher signatures: Varying error messages for RSA PKCS#1 v1.5 decryption failures.
  • Nonce reuse: Same IV/nonce used with same key in stream cipher (CTR/GCM).
  • Weak RNG: Predictable random number generation (signature of weak entropy).

SIEM Detection Rules

  • Splunk SPL: index=tls sourcetype=ssl_handshake | where tls_version IN ("TLSv1", "TLSv1.1")
  • Custom anomaly detection: TLS handshake timing correlation for padding oracle detection.

Defense Evasion Techniques

TLS Fingerprint Mimicry

  • JA3/JA4 hash matching: Use curl-impersonate to match real browser TLS fingerprints.
  • Cipher suite order: Match exact cipher order of legitimate client.
  • TLS extension order: Match ALPN, SNI, supported_versions order.

Side-Channel Attack Stealth

  • Slow & low: Pace oracle queries below threshold (e.g., 5 req/min).
  • Distribute source IPs: Use residential proxies to spread oracle calls.
  • Off-hours timing: Run during low-traffic hours; blends with maintenance.

Padding Oracle Stealth

  • Statistical noise: Mix oracle queries with legitimate traffic.
  • Use real client behavior: Mimic exact request patterns of legitimate user.
  • Connection reuse: Reuse legitimate session cookie to avoid new-connection alerts.

Weak RNG Exploitation

  • Time-delayed exploitation: Compromise RNG once, exploit later (avoids real-time detection).
  • Cross-protocol: Exploit predictable RNG in protocol A to compromise protocol B.

Performance and Remediation

GPU-accelerated cracking with hashcat can achieve billions of MD5 hashes per second on modern hardware, but performance drops dramatically for memory-hard algorithms like bcrypt (thousands per second) and argon2id (hundreds per second). Choose attack modes based on target hash type: dictionary + rules for fast hashes, targeted dictionaries with custom mutations for slow hashes. For TLS scanning, testssl.sh performs 200+ checks but takes 5-10 minutes per host. Prioritize cryptographic remediation by replacing the weakest components first: disable SSLv3 and TLS 1.0/1.1 immediately, migrate from CBC mode to GCM/ChaCha20-Poly1305, enforce TLS 1.3 where possible, and implement proper key management using HSMs or cloud KMS services. For JWT security, enforce algorithm allowlists, use short token lifetimes, and rotate any exposed keys.

Hacker Laws

  1. Obscurity Is Not Security -- Relying on hidden algorithms, custom encryption, or secret IVs to protect data is the biggest trap. Kerckhoffs' principle: security should depend only on the secrecy of the key, not the secrecy of the algorithm. Homemade encryption algorithms are almost certainly weaker than AES.

  2. First Principles -- Understanding the design principles of cryptographic primitives is more important than memorizing attack steps. Padding Oracle works because the server leaks a 1-bit piece of information: "whether the padding is valid." Understanding this, you can find similar information leaks in any implementation.

  3. Defense in Depth -- Single-layer encryption is not enough. TLS protects transmission + AES-256-GCM protects storage + HMAC protects integrity + HSM protects keys. No single point of failure should lead to total collapse.


Learning Resources

Supplementary files for this skill: payloads.md, test-cases.md Related skills: skills/web-auth-bypass/SKILL.md, skills/password-attack/SKILL.md External resources:

  • Workspace internal materials: guides/cryptographic_failures_complete_guide.md -- Complete OWASP A04 guide with weak algorithm attacks, ECB/Padding Oracle/IV Reuse attacks, JWT tampering, and complete offensive and defensive code for key management
  • Workspace internal materials: guides/crypto-attacks-pqc-migration-side-channel.md -- Post-Quantum Cryptography migration (NIST FIPS 203/204/205, ML-KEM, ML-DSA, SLH-DSA, FN-DSA), hybrid TLS 1.3, X.509 cert handling, side-channel methodology (SPA / DPA / CPA / EMA / timing / cache-timing), PQC-specific attacks (KyberSlash, Injecting Crystals, SPHINCS+ WOTS+ faults), and end-to-end ChipWhisperer lab on STM32F4
  • PortSwigger Crypto Lab: https://portswigger.net/web-security/cryptography -- Systematic cryptographic attack labs
  • Cryptopals: https://cryptopals.com/ -- 8 sets of cryptography programming challenges, from basic to advanced
  • testssl.sh GitHub: https://github.com/drwetter/testssl.sh -- TLS/SSL security scanning tool
  • JWT.io: https://jwt.io/ -- Online JWT decoding and analysis
  • HackTricks - Crypto: https://book.hacktricks.xyz/crypto -- Cryptographic attack quick reference

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Crypto Attacks AI 技能有什么作用?

Cryptographic Attacks target implementation flaws and algorithm weaknesses in encryption systems, covering OWASP A04: Cryptographic Failures.

为什么在 TypingMind 中使用 Crypto Attacks?

因为您只需安装一次,就能搭配任何模型使用。Crypto Attacks 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Crypto Attacks?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/brucesongs/kali-claw/tree/main/skills/crypto-attacks。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Crypto Attacks?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Crypto Attacks 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Crypto Attacks 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Crypto Attacks AI 技能免费吗?

是的。brucesongs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇