Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
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
2026-06-10 06:53:01 +00:00

2.0 KiB

API Reference: WebSocket Vulnerability Assessment Agent

Dependencies

Library Version Purpose
websockets >=11.0 Async WebSocket client for connection and message testing
requests >=2.28 HTTP-level WebSocket handshake inspection

CLI Usage

python scripts/agent.py \
  --url wss://target.example.com/ws \
  --cookie "session=abc123" \
  --output ws_report.json

Functions

discover_ws_endpoints(base_url) -> list

Probes 9 common WebSocket paths with upgrade headers to find endpoints.

Sends WebSocket upgrade requests with evil Origin headers. Acceptance indicates CSWSH risk.

test_no_auth_connect(ws_url) -> dict (async)

Attempts WebSocket connection without any authentication tokens.

Sends 6 injection payloads (SQLi, XSS, SSTI, path traversal, command injection) and checks responses.

Subscribes to channels 1-5 to test for IDOR in channel access.

Sends 100 rapid messages and checks if the connection is throttled or closed.

Orchestrates all tests and compiles findings.

websockets Library Usage

Method Purpose
websockets.connect(url, extra_headers) Async context manager for WS connection
ws.send(data) Send a text frame
ws.recv() Receive next frame
asyncio.wait_for(ws.recv(), timeout) Receive with timeout

Output Schema

{
  "target": "wss://target.example.com/ws",
  "origin_validation": {"cswsh_vulnerable": true},
  "unauthenticated_access": {"connected": false},
  "injection_tests": [{"payload": {"query": "' OR 1=1--"}, "suspicious": true}],
  "rate_limiting": {"rate_limited": false},
  "findings": ["HIGH: Cross-Site WebSocket Hijacking possible"]
}