Action Cable & WebSocket Patterns
Pass
Audited by Gen Agent Trust Hub on Feb 16, 2026
Risk Level: LOWSAFE
Full Analysis
- [GENERAL_SECURITY] (LOW): Documentation in
references/deployment.mdrecommendsconfig.action_cable.disable_request_forgery_protection = true. This is a best practice violation that disables protection against Cross-Site WebSocket Hijacking (CSWSH), relying solely on origin checks which can be misconfigured. - [DATA_EXPOSURE] (LOW): The authentication patterns in
SKILL.mdandreferences/javascript-consumers.mddemonstrate passing sensitive JWTs in URL query strings (?token=...). This is a security anti-pattern as tokens in URLs are frequently exposed via browser history, server logs, and HTTP Referer headers. - [SAFE] (INFO): The core instructions in
SKILL.mddemonstrate a strong security-first mindset, specifically the 'Authorization First' principle and the use ofas_json(only: [...])to ensure only intended data fields are broadcast to clients.
Audit Metadata