AI assistant / app that uses an LLM
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.
For agents
- An AI assistant sends user text to a model provider and may call tools. Typical class: M; L if published in a store or it holds health or spending data.
- Rule 1: the API key stays on the server; each user has quotas and cost limits.
- Rule 2: user and document text is data, never instructions; tool calls pass permission checks; model output is validated before use.
- Rule 3: minimize and mask what goes to the provider, disclose it, and apply normal retention and deletion to notes and memory.
Which class?
- M: few users, notes or reminders, a server-side LLM key.
- L: published in a store, sensitive data (health, spending), admin panel, payments, many users.
- XL: millions of users.
- Assistants are typically M by example, but the highest matching row wins.
Audit checklist
Every project
- Facts are verified from current official documentation
- What: Commands, libraries, APIs and platform policies in the project come from current official documents, not from memory.
- How to check: Open the dependency list and the platform configuration; for each non-trivial choice find the official page it relies on (link in a comment or a decision note).
- Evidence: Decision note or code comment with the official URL and the date it was checked.
- No secrets in code, chat, commits or logs
- What: Passwords, keys and tokens live in environment variables or a secret manager;
.envis ignored by git; the repository has only.env.example. - How to check: Check
.gitignorefor.env; run a secret scanner (for example gitleaks) over the full history; search for key-like strings. - Evidence:
.gitignoreline, scanner report with zero findings,.env.examplepath.
- What: Passwords, keys and tokens live in environment variables or a secret manager;
- Reports separate “written”, “tested” and “works end to end”
- What: Status reports say clearly whether something is written, passed its tests, or was run end to end; skipped or failed steps are stated.
- How to check: Read the last HANDOFF or release notes; look for features reported as done that have no test or run record.
- Evidence: HANDOFF lines or a test log for each feature marked done.
- Project memory files exist and are current
- What: The repository has CLAUDE.md or AGENTS.md (permanent rules) and HANDOFF.md (where we stopped), updated at the end of every work round.
- How to check: Look in the repository root for both files; compare the HANDOFF date with the latest commit date.
- Evidence: File paths and the date of the last HANDOFF update.
- Model names and parameters are verified and configured
- What: The model identifier and parameters come from current official documentation and live in configuration, so a retired model is caught early.
- How to check: Compare the configured model name with the provider’s current model list.
- Evidence: Config line and provider page date.
- Users know they talk to an AI and what is shared
- What: The interface says an AI is used and the privacy text says which data goes to the provider and how long the provider keeps it.
- How to check: Read the interface text and privacy page.
- Evidence: Screens and privacy lines.
+ If it has users, personal data or API keys (M)
Items for class M: see AI assistant / app that uses an LLM: class M checklist.
+ If it has an admin panel, file uploads, many users or a store app (L)
Items for class L: see AI assistant / app that uses an LLM: classes L–XL checklist.
+ If it targets millions of users (XL)
Items for class XL: see AI assistant / app that uses an LLM: classes L–XL checklist.
Common mistakes
- The LLM key shipped inside the app or browser code.
- No per-user quota, so one user can run up the bill.
- Treating text from a document or web page as instructions to the model.
- Letting the model call tools with the system’s permissions instead of the user’s.
- Writing model output straight into the database or another system.
- Sending full conversations or private messages to the provider.
- Model name copied from memory and later retired.
- Deleting a note but keeping its copy in a search index or memory store.
Example projects
- Personal note and reminder assistant: AI assistant, M.
- Customer support chatbot on a website: AI assistant, M.
- Assistant in a store app with spending data: AI assistant, L.
- Meeting summarizer for a team: AI assistant, M, personal data.
- Coding helper that edits files: AI assistant plus local worker, M.
- Health coaching chatbot: AI assistant, L, health data.
- Document Q&A over company files: AI assistant, M, access control matters.
- Email drafting assistant: AI assistant, M.
- Voice assistant for a smart home: AI assistant, M.
- Tutor for students: AI assistant, M, children need care.
- Legal research helper: AI assistant, M, check outputs.
- Large consumer assistant with millions of users: AI assistant, XL.
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