crypto-decode
하는 일
이 안내서는 인코딩된 값이나 비밀번호 해시 같은 알 수 없는 텍스트를 식별하고 해독하도록 돕습니다. 보아도 되는 데이터를 살펴보는 보안 학습자, 퍼즐 해결자, 분석가를 위한 가이드입니다.
사용하는 경우
- ✓인코딩된 문자열이 있고, 어떤 인코딩을 쓰는지 알고 싶을 때.
- ✓비밀번호 해시를 찾았고, 그 유형을 식별해야 할 때.
- ✓CTF 도전 과제에서 알 수 없는 암호문을 풀어야 하는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/crypto/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“파일 안에 인코딩된 것처럼 보이는 긴 문자열이 있습니다. 무엇인지 알아내서 해독해 주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 문자열의 문자 패턴으로 인코딩을 추측하고, 맞는 해독기를 시도하며, 결과가 정상 텍스트처럼 읽히면 멈춥니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Crypto / Decode Playbook
When you have unknown ciphertext (CTF flag, leaked DB field, captured token, encoded payload), the right tool depends on the cipher class.
1. Identify FIRST
Unknown text → automated cracker
# Ciphey — original (Python, slowed maintenance)
ciphey -t "$CIPHERTEXT"
# Ares — Rust rewrite (faster, current)
ares -t "$CIPHERTEXT"
A*-search across 16+ decoders (base64, base85, hex, Caesar, ROT-N, Atbash, Vigenere, XOR-known-plaintext, URL encoding, binary, morse, brainfuck, esolang, leetspeak, etc.) + BERT plaintext detector to know when to stop.
Hash → identify type
hashid -m '$2a$12$....' # bcrypt 12 rounds
hashid -m '5f4dcc3b5aa765d61d8327deb882cf99' # MD5
hash-identifier
Specific format checks
# JWT
echo $TOKEN | cut -d. -f1-2 | tr '_-' '/+' | base64 -d 2>/dev/null
# Hex → bytes
echo "$HEX" | xxd -r -p
# Base64 → bytes (handle URL-safe)
echo "$B64" | tr '_-' '/+' | base64 -d 2>/dev/null
# Multi-encoded (unwind layers)
echo "$BLOB" | base64 -d | base64 -d | xxd -r -p
2. Classical cipher quick-checks
| Cipher | Signature |
|---|---|
| Base64 | [A-Za-z0-9+/=]+, len multiple of 4 |
| Base32 | [A-Z2-7=]+ |
| Hex | [0-9a-fA-F]+, even length |
| Caesar/ROT | only A-Z + spaces, freq-attack ready |
| Vigenere | A-Z, multiple-of-key-length repeating bigrams |
| Substitution | A-Z, IC ≈ 0.066 (English) |
| Vernam/OTP | random-looking bytes, no statistical signal |
| XOR fixed-key | bytes w/ printable XOR'd against pattern (file headers leak) |
| Hill | small block size, matrix-based |
3. CyberChef recipe library
CyberChef (gchq.github.io/CyberChef) is the GUI workhorse but recipes can be exported as JSON and chained programmatically:
# Common chains
"From Base64 / Magic / To Hex"
"From Hex / XOR (Brute) / Magic"
"AES Decrypt(KEY) / From Hex / Strings"
CLI version: cyberchef-cli (community port).
4. Hash cracking quick-ref
| Mode | Hash type |
|---|---|
| 0 | MD5 |
| 100 | SHA-1 |
| 1400 | SHA-256 |
| 1700 | SHA-512 |
| 1000 | NTLM |
| 13100 | Kerberos TGS-REP (etype 23) |
| 19700 | Kerberos TGS-REP (etype 18) |
| 18200 | Kerberos AS-REP |
| 16500 | JWT (HS256) |
| 3200 | bcrypt |
| 7400 | sha256crypt $5$ |
| 1800 | sha512crypt $6$ |
| 22000 | WPA-EAPOL+PMKID |
| 7100 | macOS v10.8+ (PBKDF2-SHA512) |
| 8200 | 1Password Cloud Keychain |
hashcat -m <mode> hashes.txt rockyou.txt -r best64.rule
john --format=<format> hashes.txt --wordlist=rockyou.txt
5. Token / blob unfolding workflow
For a mystery token captured in HTTP traffic:
1. ciphey/ares → reveal base layer
2. If structured (JSON / proto3 / msgpack) → parse
3. If still encoded → repeat step 1
4. Look for HMAC / signature suffix → identify symmetric key candidates
5. If symmetric encryption suspected → try AES-CBC/GCM w/ common keys
(app-name, "secret", env vars exposed elsewhere)
6. Decepticon integration
Wrap as MCP tool:
# decepticon/tools/crypto/decode.py — skeleton
def crypto_decode(ciphertext: str, hint: str = None, timeout: int = 30) -> dict:
"""Try ares first (fast), fallback to ciphey, return best decode."""
import subprocess
cmd = ["ares", "-t", ciphertext]
if hint:
cmd += ["--language", hint]
r = subprocess.run(cmd, timeout=timeout, capture_output=True, text=True)
return {
"tool": "ares",
"output": r.stdout,
"confidence": _parse_ares_confidence(r.stdout),
}
Promote to KG when classification succeeds:
kg_add_node(kind="artifact", label=f"decoded:{hash}",
props={"plaintext": result, "encoding_chain": chain})
7. Severity (depends on what was decoded)
| Decoded content | Severity |
|---|---|
| Plaintext password | Critical (depends on user role) |
| API key / private key | Critical |
| Internal hostname / IP | Medium |
| Session token | High-Critical |
| Encryption key | Critical |
Cross-references
- Upstream: https://github.com/bee-san/Ciphey, https://github.com/bee-san/Ares
- JWT-specific (different layer):
skills/exploit/web/jwt/SKILL.md - AD hashes:
skills/ad/dcsync/SKILL.md
Known exemplars
- CTF flag formats (90% are base64, hex, or rot-N layers)
- Mobile reverse engineering: API keys often base64-XORed in strings
- IoT firmware: AES-CBC w/ hardcoded keys recoverable via Ciphey + ghidra
- Phishing email obfuscation: nested encoding chains common
자주 묻는 질문
어떤 종류의 인코딩을 탐지하나요?
base64, base32, hex, 단순 치환 암호 같은 흔한 형식을 다룹니다.
해시는 어떻게 식별하나요?
해시 형식을 가능성 있는 해시 유형과 맞춰 보는 해시 식별 도구를 사용합니다.
퍼즐에만 쓰는 스킬인가요?
아닙니다. 토큰이나 검사가 허용된 인코딩 필드처럼 알 수 없는 텍스트 전반에 유용합니다.
상세 정보
작성자의 원본 설명
Cipher detection + automated decryption via Ciphey, Cyberchef recipes, hashcat hash-ID, format conversion, common encoding chains.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14032
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.