AnonymousSpottedToad/securityPatternsRecovery / ground_truth /python /authentication_pwd__Aquiles-ai_Aquiles-RAG.json
| { | |
| "role_mappings": [ | |
| { | |
| "patternRole": "Subject", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Implicit; submits login form (username+password) via POST /token, or accesses protected UI routes with JWT cookie", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Enforcer", | |
| "entity": "login_for_access_token", | |
| "file": "aquiles/main.py", | |
| "lines": "309", | |
| "notes": "POST /token accepts OAuth2PasswordRequestForm, delegates to authenticate_user(), issues JWT cookie; get_current_user() guards UI/docs routes by extracting and decoding JWT from cookie", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Verification manager", | |
| "entity": "authenticate_user", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "lines": "27", | |
| "notes": "Loads users dict from config, looks up password by username, returns bool(pwd and pwd == password) -- plaintext comparison, no hash verification", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Comparator", | |
| "entity": "", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "lines": "31", | |
| "notes": "Plaintext equality check; no constant-time comparison, no hash comparison, vulnerable to timing attacks", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Hasher", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; passwords are never hashed -- stored and compared as plaintext", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Password store", | |
| "entity": "users_db", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "lines": "29", | |
| "notes": "Passwords stored as plaintext strings in a JSON config file on disk; default credential is root:root", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Pepper store", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Encrypter", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found for password handling; jwt.encode() signs tokens but is not used for password encryption", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Hash manager", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no hashing orchestration exists since passwords are plaintext", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "SRNG", | |
| "entity": "", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "lines": "13", | |
| "notes": "Generates JWT signing secret at startup; not used for password salt/pepper generation", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Password policy", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no length, complexity, dictionary, or breach checks on passwords", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "System", | |
| "entity": "", | |
| "file": "aquiles/main.py", | |
| "lines": "313–319", | |
| "notes": "Routes guarded by Depends(get_current_user); RAG API routes separately protected by API key middleware (verify_api_key), not password auth", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Registrar", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; users are statically defined in config JSON, no self-registration endpoint", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "patternRole": "Resetter", | |
| "entity": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no password reset flow or endpoint", | |
| "status": "missing", | |
| "nodeId": null | |
| } | |
| ], | |
| "interaction_order": { | |
| "available": true, | |
| "language": "python", | |
| "repo": "Aquiles-ai_Aquiles-RAG", | |
| "reason": "", | |
| "entryRole": "Enforcer", | |
| "entryRule": "behaviour", | |
| "interactions": [ | |
| { | |
| "rank": 1, | |
| "interaction": "Enforcer → Verification manager", | |
| "from": "Enforcer", | |
| "to": "Verification manager", | |
| "file": "aquiles/main.py", | |
| "line": 310, | |
| "via": [], | |
| "mechanism": "call", | |
| "path": [ | |
| { | |
| "caller": "aquiles/main.py:<module>.login_for_access_token", | |
| "file": "aquiles/main.py", | |
| "line": 310, | |
| "code": "authenticate_user(form_data.username, form_data.password)", | |
| "callee": "aquiles/auth/jwt_aq.py:<module>.authenticate_user", | |
| "mechanism": "call" | |
| } | |
| ], | |
| "parent": "" | |
| }, | |
| { | |
| "rank": 2, | |
| "interaction": "Verification manager → Password store", | |
| "from": "Verification manager", | |
| "to": "Password store", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "line": 29, | |
| "via": [], | |
| "mechanism": "data", | |
| "path": [ | |
| { | |
| "caller": "aquiles/auth/jwt_aq.py:<module>.authenticate_user", | |
| "file": "aquiles/auth/jwt_aq.py", | |
| "line": 29, | |
| "code": "", | |
| "callee": "users_db", | |
| "mechanism": "data" | |
| } | |
| ], | |
| "parent": "Enforcer → Verification manager" | |
| } | |
| ], | |
| "anchoredRoles": [ | |
| { | |
| "role": "Comparator", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "kind": "METHOD" | |
| }, | |
| { | |
| "role": "Hash manager", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Hasher", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Password policy", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Password store", | |
| "kind": "LOCAL" | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Registrar", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Resetter", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "SRNG", | |
| "kind": "external" | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "kind": "METHOD" | |
| } | |
| ], | |
| "skippedRoles": [ | |
| "Subject", | |
| "System" | |
| ] | |
| } | |
| } |
Xet Storage Details
- Size:
- 6.43 kB
- Xet hash:
- 1f34bdfbfb7080814204b2ea13167f741a1ec20cd9bc6a76248a48b62df421e3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.