AI assistant / app that uses an LLM: classes L–XL checklist
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
This page continues AI assistant / app that uses an LLM. Read the main page first. This part holds the audit checklist items for classes L–XL.
Audit checklist
+ If it has an admin panel, file uploads, many users or a store app (L)
- Exact versions, 7-day rule, pinned images and actions
- What: Dependencies use exact versions (no
^or~); newly published versions wait at least 7 days before install (critical security fixes excepted, with a written reason and end date); Docker images are pinned by digest and CI actions by full commit ID; major upgrades are done one by one. - How to check: Read dependency files, Dockerfile and CI files; check the release dates of recent upgrades.
- Evidence: Dependency file lines; upgrade notes with release dates.
- What: Dependencies use exact versions (no
- Access to other users’ records is tested on every endpoint
- What: For each endpoint a test changes the identifier in the request and confirms the user cannot reach someone else’s data (IDOR/BOLA).
- How to check: List endpoints that take an ID; find the matching negative test for each.
- Evidence: Test names per endpoint.
- Rate limits are per account and tolerate shared IPs
- What: Limits are per account; unauthenticated endpoints also have IP limits, tuned for mobile carriers that put thousands of users behind one IP (CGNAT).
- How to check: Read the limiter configuration and thresholds; test many users from one IP.
- Evidence: Limit table; test results.
- Every external call has a time limit
- What: Database queries, storage, e-mail, notifications, AI calls and external processes all have an upper time limit.
- How to check: Search for HTTP client and process calls without a timeout setting.
- Evidence: Configuration or code lines with timeouts.
- Admins cannot read private user content
- What: Staff and moderators have no way to read users’ private content (messages, notes, spending); what they can see is limited and every view is logged; passwords are never visible.
- How to check: Read the admin routes and queries; search for tables with private content in admin code.
- Evidence: List of admin-visible fields; audit log of views.
- The deletion and backup promise to users is true
- What: The privacy text and screens state correct deletion and backup periods (for example “gone from systems within 7 days, from backups within 37 days”) including third-party providers.
- How to check: Compare the privacy text with the real jobs and backup retention.
- Evidence: Privacy text lines next to the job and retention settings.
- Unknown or missing settings stop the process
- What: The process refuses to start with an unrecognized environment value or a missing required setting; there is no silent fallback; checks ask “is this development or test?” rather than “is this not production?”; endpoint groups can be locked by a single feature-lock file.
- How to check: Start the app with a missing required variable and a wrong environment name; read the lock file.
- Evidence: Startup failure message; lock file.
- End-to-end tests, short CI run, guards, screenshot checks
- What: End-to-end tests exist; a short run happens in CI; guards (tests that enforce rules) protect important rules; screen checks cover both themes and all languages; new end-to-end tests pass three runs in a row before merging; a red test is fixed in code, never silenced.
- How to check: Read the CI file and test folders; look for skipped tests and quarantined guards.
- Evidence: CI run, guard inventory, three-run log.
- Limits and capacities are listed in one place
- What: Every rate limit and capacity is in one list: value, window, capacity reasoning, what an attacker could do, side effects.
- How to check: Find the inventory document and compare it with limiter code.
- Evidence: Inventory document.
- Encrypted backups sit with another provider, and code is copied
- What: Backups are encrypted and kept in a different provider or account so a compromised main account cannot delete them; object storage has versioning or backup; backups run as a separate service with failure alarms; a full copy of the code (all branches, history) is delivered to the owner regularly.
- How to check: Read backup configuration, destination account and alarms; find the last code copy.
- Evidence: Backup destination; alarm rule; date of last code copy.
+ If it targets millions of users (XL)
- Load tests with a coverage map and an attack drill
- What: Load tests use real request patterns (burst, long run, writes, a huge account, a database restart, media upload, attack drill); every endpoint and scheduled job is in a coverage map; a new endpoint without a map entry fails a guard; with hit-rate “busy” responses at target steps counted as findings.
- How to check: Read the load test folder and the map; check the guard.
- Evidence: Latest run report; coverage map.
- Leak detection and key rotation
- What: Decoy keys raise an alarm when used; cloud audit alerts exist for new service accounts and permission changes; unusual usage alarms exist; there is a key rotation plan that does not end sessions; an error tool strips personal data and samples.
- How to check: Read the monitoring and alert configuration; find the rotation plan.
- Evidence: Alert rules; rotation document.
- Disaster recovery plan with RPO and RTO
- What: A written plan states acceptable data loss (RPO), recovery time (RTO) and step-by-step recovery.
- How to check: Find the plan; check that a drill was run.
- Evidence: Plan and drill record.
Sources
- OWASP Gen AI Security Project: LLM risks — OWASP Gen AI Security Project
- LLM Prompt Injection Prevention Cheat Sheet — OWASP Cheat Sheet Series
- AI Risk Management Framework — NIST
- Model Context Protocol: Security Best Practices — Model Context Protocol
- Secrets Management Cheat Sheet — OWASP Cheat Sheet Series
- Logging Cheat Sheet — OWASP Cheat Sheet Series
- Pro Build Guide v1.2: compiled team practices — Pro Build Guide