Expand description
Auth & permission-gate detector (Risk Matrix category D).
Strategy: keyword-weighted scan over added and removed lines. A line
matching a strong auth keyword (authorize, authenticate, jwt,
permission, role, bearer, session) in a Rust-y context
(identifier, string literal, attribute, or function name) is flagged
as a Critical finding. A line matching a weak keyword (token,
admin, login, logout) is flagged as High.
Comments and CSS-like contexts are skipped. Non-Rust files still match — LLMs are just as dangerous editing middleware in TOML configs.
Structs§
- Auth
Detector - Keyword-weighted auth-gate detector.