AI security
Which limits must the service hold, and how do you know they hold? Not "is the model safe", but what it could reveal, what it could change, and what it could stop people from doing.
Start from a harm, not from "AI risk"
"AI risk" is too vague to give to anyone. A useful conversation names something worth protecting, how it could fail and what that would cost: a confidential document shown to the wrong colleague, a company rule quietly altered, a service down on the day everyone needs it. Each needs a different control. Four questions do most of the work: what could the system reveal, what could it change, what could it prevent people from doing, and how would we know?
The six rules that matter most
-
Check permissions before the AI reads anything
Apply the person's own rights before a document reaches the model. Asking the model to hide something afterwards is too late: it has already seen it. A sentence in the instructions ("do not reveal…") is not an access control. When someone loses access, test that it also disappears from saved answers, open conversations and search copies.
-
Every text it reads can try to give it orders
A document, an email or a web page can carry hidden instructions that try to steer the AI: this is called prompt injection. Filters help but do not close the door completely. Design so that even a misled model cannot reach what the person could not reach, and check in the records whether the forbidden document was fetched, not only whether the answer looked clean.
-
What is shown on screen can leak too
A link or an image in the answer can send information to an outside server just by being displayed. No email tool does not mean nothing can leave. Treat the generated answer as untrusted, block code and unknown links in it, and test what the browser actually loads.
-
Explaining is not doing
An assistant that explains a rule and an agent that changes a record are different risks. Allow drafts and keep sending switched off until it is a decision of its own. For every action, the target system checks who the real person is and what they may do; a document or the model's word is never proof of an approval. Know who can switch off one action without stopping everything else.
-
Protect the sources as carefully as the model
An allowed source can still be wrong, out of date or deliberately edited. Someone owns publishing, versions and withdrawal, and someone else makes sure a withdrawn rule also disappears from search copies and saved answers. Adding a source is a change to the service, not a detail.
-
Put limits on runaway use
Repeated requests, automatic retries and agents that loop can burn money and block the service for everyone. Limit request size, retries, tool steps and time; test what the person sees at the limit and where unfinished work goes. Write down who can switch a feature off at once, who decides whether anyone must be told, and who approves the restart.
Buy evidence for the service you will run
A hosted service moves some technical work to the supplier; integration and settings stay with you. Ask which product, settings and period a security report covers: a report on another service does not close your gap. Find out where data is processed and stored, who at the supplier can see it, how long it is kept and how you hear about a change of model, sub-supplier or country. "We do not train on your data" answers one question only. Rehearse an outage: people can still find what they need, keys can be revoked, a known-good setup can be restored.
Before release: the evidence to ask for
- restricted sources
- Someone without the right cannot get protected material, including through search copies and reused answers.
- access removed
- When access is taken away, sources, saved answers, sessions and support access follow within the agreed time.
- hostile text
- The recorded attacks cannot cross the tested limits on data and actions.
- what is displayed
- The answer on screen does not run code or load unapproved outside resources.
- source changes
- Expiry, replacement and withdrawal of a document reach search and saved answers.
- failures
- Limits, alerts, suspension and the fallback work, with named owners.
A known critical failure blocks the release, however good the average answer looks. Passing a fixed list of attacks supports a bounded decision; it does not prove the service resists attacks the list never contained.
Where this goes wrong
A bigger account to fix the demo
Giving the assistant one account that reads the whole drive makes the demo look better by removing the very limit you needed.
Security is not the whole answer
A service that passes every security test can still give a wrong answer, or use personal data for the wrong purpose. Quality, privacy and the business case are separate checks.
Where to read the real thing
- attacks on AI apps
- OWASP Top 10 for Large Language Model Applications, 2025 edition
- building it securely
- National Cyber Security Centre (UK) and partners, Guidelines for secure AI system development, 2023
- risks of generative AI
- NIST, AI Risk Management Framework: Generative AI Profile (NIST AI 600-1), 2024
In practice
The words used here (model, tools, agents, MCP server) are explained in Definitions. Checking every part an application uses against the public lists of known weak spots is what Guardian does every week for my own applications.