mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
1.7 KiB
1.7 KiB
API Reference — Performing JWT None Algorithm Attack
Libraries Used
- base64: Base64url encoding/decoding for JWT components
- hmac / hashlib: HMAC-SHA256 signing for algorithm confusion attacks
- json: JWT header/payload serialization
- requests (optional): Test forged tokens against live endpoints
CLI Interface
python agent.py decode --token <jwt_string>
python agent.py forge --token <jwt_string> [--claims '{"role":"admin"}']
python agent.py confuse --token <jwt_string> [--pubkey public.pem]
python agent.py test --url <api_endpoint> --token <original_jwt>
Core Functions
decode_jwt(token) — Decode JWT without verification
Returns header, payload, and vulnerability checks: alg=none, no expiry, expired, no issuer.
forge_none_token(token, modify_claims) — Create alg=none variants
Generates 6 variants: none, None, NONE, nOnE, empty signature, no trailing dot.
test_alg_confusion(token, public_key_file) — Algorithm confusion attack
Tests RS256-to-HS256 downgrade using RSA public key as HMAC secret.
test_jwt_endpoint(url, original_token, forged_tokens) — Validate against API
Sends forged tokens to target endpoint. Reports CRITICAL if any variant accepted.
JWT None Variants Tested
| Variant | Algorithm Header |
|---|---|
| alg_none | "alg": "none" |
| alg_None | "alg": "None" |
| alg_NONE | "alg": "NONE" |
| alg_nOnE | "alg": "nOnE" |
| empty_sig | No signature segment |
Severity Classification
- CRITICAL: Any none-algorithm token accepted by server
- INFO: All forged tokens rejected
Dependencies
pip install requests # optional, for endpoint testing