Why do AI applications need their own kind of security?
Language models follow instructions written in plain text, and they cannot reliably tell your instructions apart from text an attacker supplies. Once a model can read untrusted content and reach data or tools, ordinary security controls are not enough on their own.
Traditional software does exactly what its code says. Inputs are data, and well written code keeps them as data. Security teams have decades of practice in validating inputs, escaping output and controlling access.
Language models blur the line between data and instructions. Everything is text: the system prompt you wrote, the user's question, the document being summarised and the web page being read. A model weighs all of it when deciding what to do. If a document says "ignore previous instructions", the model may treat that as an instruction.
This creates new risks. An attacker no longer needs to find a bug in your code. They can try to persuade your AI to misbehave, either directly or by planting text where the AI will read it. When the AI can only chat, the damage is limited. When it can see customer data, send emails or update records, the stakes rise sharply.
AI security adds new tests, controls and design rules on top of normal application security. It does not replace secure coding, access control, patching or network security. A chatbot with a vulnerable API is still vulnerable, whatever guardrails sit in front of the model.
What is the attack surface of an AI application?
Every place text enters the model, every source of data it can reach, every tool it can call and every system that consumes its output. Plus the usual surface: APIs, authentication, infrastructure and third party components.
| Part | What could go wrong |
|---|---|
| User input | Direct injection, jailbreaks, abuse |
| Retrieved content | Hidden instructions in documents, emails and web pages |
| Knowledge base | Content returned to users who should not see it, or planted content |
| Tools and APIs | Actions taken that the user did not intend or is not allowed |
| Model output | Harmful text, leaked data or code injected into other systems |
| Prompts and config | Secrets exposed, safety rules bypassed |
| Models and libraries | Tampered or vulnerable third party components |
| Logs | Sensitive prompts and answers stored without protection |
Mapping this surface is the first step of every review. We draw the data flows: where text comes from, which parts are trusted, what the model can reach and where its output goes. Trust boundaries, the lines where untrusted content meets trusted systems, are where most AI security problems live.
The surface grows quickly as features are added. A chatbot that only answers from a fixed FAQ has a small surface. Add document upload, web browsing, CRM access and the ability to send emails, and the surface multiplies. Security review should happen each time a new source or tool is connected, not just once.
How do you threat model an AI application?
List who uses the system, what data and tools it can reach, where untrusted content enters and what the worst realistic outcomes are. Then rank threats by likelihood and impact and match each to controls and tests.
Threat modelling sounds formal, but for AI applications it comes down to a few practical questions answered with the team that builds the system.
Key questions
- Who uses it: staff, customers, anonymous public, partners?
- What can it read: which data stores, documents, systems?
- What can it do: which tools, with what permissions?
- Where does untrusted content enter: uploads, emails, web, user text?
- Where does output go: screens, emails, databases, other systems?
- What is the worst realistic outcome, and who would be harmed?
Ranking and planning
Each threat gets a rough likelihood and impact. A public chatbot that can reveal one customer's orders to another is high impact and fairly likely to be tried. An internal tool that might give a slightly wrong summary is lower. The ranking sets the order of testing and fixing.
Frameworks help structure the work. STRIDE, a classic method, still applies to the surrounding system. The OWASP Top 10 for LLM Applications and MITRE ATLAS list AI specific threats. We use them as checklists, not as a replacement for thinking about your specific system.
What is prompt injection, and why is it so hard to stop?
Prompt injection is text that tries to change what an AI system does, overriding its intended instructions. It is hard to stop because models process instructions and data in the same way, and attackers can phrase the same request in endless ways.
In a direct prompt injection, the user types instructions meant to override the system, for example telling a support assistant to ignore its rules and act as something else. In an indirect injection, covered in the next chapter, the instructions arrive inside content the AI reads.
Why filters alone fail
It is tempting to block phrases such as "ignore previous instructions". Attackers simply rephrase, translate, encode, split the request across messages or wrap it in a story. Detection models catch many attempts, but none catch all of them, and new techniques appear regularly.
Model providers train their models to resist injection, and newer models are better at it. But resistance is a matter of degree. Security leaders should assume that a determined attacker will eventually get some instruction through.
The practical conclusion
Treat prompt injection the way you treat phishing: you reduce it, but you design so that success does limited damage. If an injected assistant has no access to other users' data and cannot take risky actions without approval, the worst outcome is an odd reply, not a breach. Chapter 6 describes these defences in detail.
What is indirect prompt injection?
Indirect injection hides instructions in content the AI processes on someone else's behalf, such as an email, a shared document, a web page or a support ticket. The user never sees the instruction, but the AI may follow it.
Indirect injection is the more dangerous form, because the person using the AI is not the attacker. They ask for something innocent, such as "summarise my inbox" or "research this supplier", and the AI reads content that an attacker controls.
Where hidden instructions appear
- Emails sent to a mailbox an assistant reads
- Web pages an agent browses or a search tool returns
- Documents uploaded by customers or shared by partners
- Support tickets, reviews and form submissions
- Code comments and files in repositories coding assistants read
- Tool results returned from third party services
Instructions can be hidden in ways people do not notice: white text on a white background, tiny fonts, metadata, alt text or long documents where one line looks harmless.
An assistant that drafts replies to supplier emails receives a message containing a hidden line asking it to include the customer list in its reply. A well designed assistant has no access to the customer list for this task and treats the email body as untrusted, so the instruction does nothing. A poorly designed one with broad access might comply.
The risk grows with each capability. An assistant that reads untrusted content, can access private data and can send information outward combines the three ingredients attackers need. Removing any one of them sharply reduces the risk.
How do you defend against prompt injection?
Combine layers: limit what the AI can access and do, keep untrusted content clearly separated, detect injection attempts, require approval for risky actions, check outputs and log everything. Design so that a successful injection causes little harm.
No single defence stops prompt injection. Several layers together make it unlikely to succeed and unlikely to matter if it does.
| Layer | What it does |
|---|---|
| Least privilege | The AI can only reach data and tools the current user and task need |
| Content separation | Untrusted text is clearly marked and the model is told to treat it as data |
| Detection | Classifiers flag likely injection in inputs and retrieved content |
| Capability splitting | A model that reads untrusted content cannot also call sensitive tools |
| Approval | A person confirms actions with real consequences |
| Output checks | Responses are checked for data leaks and unexpected links |
| Monitoring | Attempts are logged and alert the security team |
Capability splitting deserves special mention. One pattern uses a privileged model that plans and calls tools but never sees raw untrusted content, and a separate restricted model that reads untrusted content and returns only structured, checked results. Research designs such as the dual model pattern and CaMeL explore this approach, and simpler versions are practical today.
Blocking outbound paths also helps. Many data theft attempts rely on the AI including data in a link or image address that sends it to the attacker. Restricting which links and images can appear in output removes this route.
What are jailbreaks, and how much should you worry about them?
Jailbreaks are attempts to make a model ignore its safety training and produce content it normally refuses. For most business applications, the bigger concern is reputational: your branded assistant saying something offensive or off topic. Topic limits and output filters handle most of this.
Jailbreaks target the model's built in safety behaviour, often through role play, hypothetical framing, unusual languages or long conversations that gradually shift the model's behaviour. They differ from prompt injection in goal: injection tries to make your application misuse its access, while jailbreaks try to make the model say things it should not.
Business risk
A customer support assistant that can be coaxed into rude jokes, political opinions, competitor recommendations or made up promises can end up in screenshots on social media. In regulated industries, it might give advice it is not allowed to give.
Defences
- Clear topic boundaries in the system design, not only in the prompt
- Input classifiers for known jailbreak patterns
- Output filters for harmful, off topic and off brand content
- Conversation length limits and resets where suitable
- Choosing models with strong safety training for public use
- Monitoring for repeated attempts by the same user
Perfection is not realistic, and over strict filters frustrate real customers. We tune filters on real conversations so legitimate questions pass and clear misuse is stopped.
How do AI applications leak sensitive information?
Through answers built from data the user should not see, personal data copied into outputs, secrets placed in prompts, training data memorised by fine tuned models and logs that store sensitive conversations without protection.
Sensitive information disclosure is the second item on the OWASP list, and in practice it is one of the most common findings in our reviews.
Common leak paths
| Path | Example | Control |
|---|---|---|
| Over broad retrieval | Search returns HR files to any employee | Permission filtering per user |
| Shared context | One customer's data in another's session | Strict session and tenant isolation |
| Secrets in prompts | API keys placed in instructions | Secrets only in server code and vaults |
| Fine tuning data | Model repeats records it was trained on | Clean training data, extraction tests |
| Logs | Full conversations stored openly | Masking, access control and retention limits |
| Outbound links | Data placed in a link to an outside site | Link and image allow lists |
Data loss prevention for AI combines input controls, so sensitive data does not reach the model unless needed, with output controls that detect and redact personal data, account numbers and secrets. Tools such as Microsoft Presidio and cloud data loss prevention services help with detection, tuned to your data formats.
How do you secure retrieval augmented generation?
Filter search results by the user's permissions before anything reaches the model, keep tenants separate in the index, control who can add content, treat retrieved text as untrusted and keep indexes in sync with source permissions.
Retrieval augmented generation, where AI answers from documents found by search, is the most common pattern in business AI. It is also where many data leaks start, because indexes are often built with a powerful service account that can read everything.
Controls for retrieval
- Store permission data with every indexed passage
- Filter results by the user's identity and groups on every query
- Separate indexes or strict filters for each customer in multi tenant products
- Sync permission changes and deletions quickly
- Limit who can add documents to sources the AI trusts
- Mark retrieved passages as untrusted content in the prompt
- Log which passages were used for each answer
Vector databases bring their own concerns, listed in the OWASP category on vector and embedding weaknesses. Embeddings can sometimes be partly reversed to recover the original text, so they need the same protection as the documents themselves. Access to the vector store should be as tightly controlled as access to the source systems.
Our AI search team builds permission aware retrieval as standard, and we test it directly in every security review.
What is excessive agency, and how do you limit AI agents?
Excessive agency is when an AI system has more functions, permissions or freedom than its task needs, so a mistake or manipulation can cause real harm. Limit each agent's tools, scope each tool narrowly, require approval for risky actions and make actions reversible where possible.
AI agents plan and take actions: they search, update records, send messages and call APIs. That is what makes them useful. It is also what makes them risky, because a confused or manipulated agent acts with whatever power it has.
Three kinds of excess
Too many tools. An agent that only needs to read orders also has tools to issue refunds and delete accounts, because they were in the same plugin.
Too much permission. A tool that should read one customer's orders uses an account that can read all orders.
Too much autonomy. The agent can take high impact actions without anyone confirming them.
Controls
- Give each agent only the tools its task needs
- Make tools narrow: "get this user's open orders", not "run any query"
- Run tools with the user's permissions, not a super account
- Require human approval for payments, deletions and outbound messages
- Set limits on amounts, counts and frequency
- Prefer reversible actions and keep an undo path
- Log every tool call with its inputs and result
Our AI agent team designs these controls into agents from the start, and our reviews test whether existing agents can be pushed beyond their intended scope.
How do you secure tools, plugins and MCP servers?
Treat every tool as an API exposed to an unpredictable caller. Authenticate users, enforce permissions in the tool itself, validate every parameter, limit what each tool can do, review third party tools before use and treat tool results as untrusted content.
Tools connect AI to the real world. The Model Context Protocol has made it easier to connect many tools quickly, which is useful, and it also means teams sometimes connect tools without the review they would give any other integration.
Rules for tools
| Rule | Why |
|---|---|
| Enforce permissions in the tool | The model cannot be trusted to respect access rules |
| Validate every parameter | The model may pass unexpected or manipulated values |
| Narrow scope | Smaller tools limit what misuse can achieve |
| Review third party servers | A malicious tool description can itself carry injected instructions |
| Pin versions | A tool that changes silently can change behaviour |
| Untrusted results | Content returned by tools may contain injection |
| Separate credentials | Each tool gets its own limited credentials |
Tool descriptions deserve attention. The model reads them to decide how to use each tool, so a third party tool with a misleading or manipulated description can steer the model. We review descriptions as carefully as code for any tool that is not built in house.
Why does improper output handling create security holes?
When model output is placed into web pages, database queries, shell commands or code without checks, an attacker who influences the output can inject into those systems. Treat model output like user input: validate, escape and restrict it.
Model output often flows onward: displayed in a web app, used to build a query, passed to another service or executed as code. If the model can be influenced, so can everything downstream.
Classic attacks, new route
- Script injection when output is shown in a web page without escaping
- SQL injection when output is used to build database queries
- Command injection when output is passed to a shell
- Unsafe code execution when generated code runs without a sandbox
- Data theft through links and images that call outside addresses
Controls
Escape output for the place it is displayed. Use parameterised queries, never string building. Ask the model for structured output, such as JSON with a fixed schema, and validate it before use. Run generated code only in isolated sandboxes with no access to secrets or internal networks. Restrict links and images to approved domains.
These are familiar application security practices. The lesson is that model output belongs on the untrusted side of the boundary, even though your own system produced it.
Is it a problem if someone sees your system prompt?
Only if the prompt contains secrets or your security depends on it staying hidden. Assume system prompts can be revealed. Keep keys, internal URLs and sensitive rules out of them, and enforce controls in code rather than in prompt text.
Users often try to make assistants reveal their instructions, and many succeed. OWASP lists system prompt leakage as its own risk, but the real risk is what the prompt contains and what depends on it.
What should never be in a prompt
- API keys, passwords or tokens
- Internal hostnames and URLs
- Names and details of staff or customers
- Rules whose secrecy is the only protection
A prompt that says "never show salary data" is not a control. If the model can reach salary data, a determined user may get it. The control is that the model cannot reach salary data for users who are not allowed to see it.
Prompts may still hold business value, such as carefully tuned instructions. Output checks can block verbatim prompt disclosure, and that is reasonable. But security should never depend on it.
What supply chain risks come with AI?
AI applications depend on outside models, model hubs, datasets, libraries, plugins and APIs. Any of these can be vulnerable, tampered with or changed without notice. Use trusted sources, verify what you download, pin versions and keep an inventory.
A typical AI application uses a hosted model from one provider, embeddings from another, open source libraries for orchestration, a vector database, some third party tools and perhaps an open model downloaded from a hub. Each is a dependency with its own risks.
Common risks
- Model files that run code when loaded, such as older pickle formats
- Models or datasets on public hubs that are tampered with or mislabelled
- Vulnerable orchestration libraries and plugins
- Hosted models that change behaviour when the provider updates them
- Third party tools and MCP servers with too much access
- Unclear licence and data use terms
Controls
Prefer safe model formats such as safetensors. Download models only from verified publishers and check hashes. Scan dependencies like any other software. Pin model versions where providers allow it, and run your test suites when they change. Keep an AI bill of materials: a list of every model, dataset and AI component, with source and version. This makes it possible to answer quickly when a vulnerability is announced.
What are data and model poisoning?
Poisoning is tampering with the data a model learns from or retrieves, so it behaves wrongly in ways the attacker chooses. In business applications, the most practical risk is planted content in knowledge bases and feedback loops rather than attacks on large training sets.
Poisoning can target several stages. Pre training data for large models is mostly out of your hands. Fine tuning data, retrieval content and feedback data are within your control and deserve protection.
Where poisoning happens in practice
| Stage | Example |
|---|---|
| Knowledge base | A planted wiki page gives false instructions that the assistant repeats |
| Fine tuning data | Tampered examples teach the model a hidden behaviour |
| Feedback loops | Coordinated ratings push the system toward bad answers |
| Public sources | Web content written to influence AI that reads it |
Controls are mostly about provenance and review: knowing where each piece of content came from, limiting who can add to trusted sources, reviewing changes to high impact content, cleaning and checking fine tuning data and treating feedback signals with care. Monitoring answer quality over time helps spot unexpected changes that might signal poisoning.
How do attackers abuse AI to run up cost or deny service?
By sending huge inputs, triggering long outputs, looping agents or scripting endless requests. Every model call costs money and capacity. Rate limits, quotas, size limits, step limits for agents and budget alerts prevent runaway use.
OWASP calls this unbounded consumption. It covers both denial of service, where the system becomes slow or unavailable, and denial of wallet, where the bill grows without limit.
Abuse patterns
- Very long inputs that consume large amounts of processing
- Prompts designed to produce very long outputs
- Agents tricked into loops of tool calls
- Bots using a public assistant as free AI access
- Stolen API keys used by outsiders
Controls
Limit input and output size. Rate limit by user, account and network address. Set daily quotas per user and per feature. Cap the number of steps and tool calls an agent can make for one request. Use bot protection on public interfaces. Keep keys on the server only. Set budget alerts at the provider and in your AI gateway, and investigate unusual spikes quickly.
How do you choose and tune AI guardrails?
Pick guardrails for your top risks, not every risk. Combine provider safety features, open classifiers and custom rules. Tune them on real traffic to balance blocking misuse against frustrating real users, and measure both.
Guardrails are checks placed around a model: on input, on retrieved content and on output. Many options exist, from cloud provider services to open source models and libraries.
| Type | Examples |
|---|---|
| Provider safety services | Azure AI Content Safety, Amazon Bedrock Guardrails, Google model safety settings |
| Open safety models | Llama Guard and similar classifiers |
| Frameworks | NVIDIA NeMo Guardrails, Guardrails AI |
| Data protection | Microsoft Presidio, cloud DLP services |
| Custom rules | Topic limits, link allow lists, schema validation, business rules |
Tuning matters
Every guardrail makes two kinds of mistake: blocking legitimate requests and missing harmful ones. Out of the box settings are rarely right for a specific product. A bank's assistant needs to discuss fraud openly. A children's app needs stricter content limits. We test guardrails on samples of real traffic and on attack sets, then adjust thresholds until both error types are acceptable.
Guardrails also add delay and cost. Running several classifiers on every message slows responses. We choose the smallest set that covers the main risks and run checks in parallel where possible.
What does a secure AI architecture look like?
Keys and prompts on the server, all model calls through one AI gateway, identity carried on every request, data access enforced outside the model, untrusted content isolated, sandboxes for code and full logging. Security comes from design more than from filters.
Most serious AI security findings are architecture problems, not missing filters. A well designed system can tolerate a model being fooled. A poorly designed one cannot.
Core principles
- Clients never hold AI provider keys
- One AI gateway handles keys, routing, rate limits, logging and checks
- Every request carries the user's identity end to end
- Permissions are enforced by data stores and tools, not by prompts
- Untrusted content is separated from instructions and privileged tools
- Generated code runs only in isolated sandboxes
- Network rules limit where AI services can connect
- Sensitive workloads use private connections or self hosted models
This architecture also makes other work easier: switching model providers, controlling cost and proving compliance. Our AI integration services page describes the AI layer that many of these controls live in.
How is AI red teaming done?
Testers think like attackers and misusers, using the threat model to choose targets. They combine automated attack libraries for breadth with manual, creative testing for depth, record every finding with evidence and retest after fixes.
Red teaming an AI application is different from a classic penetration test, but follows a similar discipline: clear scope, rules of engagement, careful evidence and a report that leads to fixes.
Automated testing
Tools such as Microsoft's PyRIT, NVIDIA's garak and promptfoo send large sets of known attack patterns and score the responses. They are good for breadth: checking many variations of injection, jailbreaks and data extraction quickly, and for repeating tests after changes.
Manual testing
Automated tools find known patterns. People find the specific weaknesses of your system: a tool that accepts a parameter it should not, a document workflow where untrusted content meets a privileged agent, a business rule the model can be talked out of. Manual testers chain small weaknesses into real impact, the way an attacker would.
What a good report contains
- Each finding with steps, evidence and impact
- A severity based on realistic harm, not just possibility
- A recommended fix, preferring design changes over filters
- Tests added to the suite so the issue cannot return unnoticed
We red team with care: testing in agreed environments, avoiding real customer data where possible and coordinating with your security team before testing production systems.
Why should safety tests run on every release?
AI behaviour changes when prompts, models, tools or data change. A fix that worked last month can quietly break. Safety test suites in the release pipeline catch regressions before users or attackers do.
Traditional security fixes tend to stay fixed. AI fixes are softer: a prompt change to improve helpfulness can weaken a refusal, a new model version can respond differently to an old attack, a new tool can open a new path.
What a safety suite contains
- Every attack that ever succeeded, from red teams and real incidents
- Injection attempts in each place untrusted content enters
- Data access tests across users and tenants
- Tool misuse attempts for each agent
- Harmful and off topic content checks
- Normal questions that must not be blocked
The suite runs automatically when prompts, models, tools or guardrail settings change. Results are compared with the previous release, and a drop blocks deployment until reviewed. The last item in the list matters too: tests for legitimate use stop teams from making guardrails so strict that the product stops working.
How do you monitor AI applications for attacks and incidents?
Log prompts, retrieved sources, tool calls and outputs with user identity, protected like any sensitive data. Alert on injection attempts, blocked outputs, unusual tool use and cost spikes, feed events into your security monitoring and have a response plan with a way to disable features fast.
Prevention is never perfect, so detection and response matter. AI applications need the same operational security as other systems, plus some new signals.
Signals worth alerting on
| Signal | Could mean |
|---|---|
| Many injection detections from one user | Active probing |
| Injection found in retrieved content | Planted content in a source |
| Output blocked for sensitive data | A permission gap or extraction attempt |
| Unusual tool call patterns | Agent manipulation or a bug |
| Sudden cost or volume spikes | Abuse or stolen keys |
| Quality drops on monitored answers | Poisoning, model change or data change |
Events flow to your SIEM, such as Microsoft Sentinel or Splunk, so the security operations team sees AI alerts with everything else. An AI incident plan names owners, explains how to disable a feature or tool instantly, how to preserve evidence and how to notify affected users where required. Our AIOps work covers operational monitoring more broadly.
Which frameworks and standards apply to AI security?
OWASP lists the top risks for language model applications. MITRE ATLAS catalogues attack techniques. The NIST AI Risk Management Framework structures risk work. ISO/IEC 42001 defines an AI management system. Regulations such as the EU AI Act add legal duties for some uses.
| Framework | What it is for |
|---|---|
| OWASP Top 10 for LLM Applications | The main risks to test and fix in language model applications |
| MITRE ATLAS | A knowledge base of real attack tactics and techniques against AI |
| NIST AI RMF | A structure for governing, mapping, measuring and managing AI risk |
| ISO/IEC 42001 | A certifiable management system standard for AI |
| ISO/IEC 27001 | Information security management, which still applies to AI systems |
| EU AI Act | Legal duties based on risk level, including for some high risk uses |
These frameworks overlap and complement each other. OWASP and ATLAS guide testing. NIST and ISO guide governance and evidence. Regulations set legal minimums for specific uses and markets.
For most organisations, the practical path is to test against OWASP, map controls to NIST or ISO for governance, and check legal duties for each use case. We help produce the evidence security reviews, auditors and enterprise customers ask for. Wider governance work sits within our enterprise AI service. We are not lawyers, so legal questions go to your counsel.
How should organisations manage staff use of public AI tools?
Give staff approved, secure AI tools so they do not need unapproved ones, set clear and short rules on what data may be used, protect sensitive data with technical controls and train people with real examples.
Many employees already use public AI assistants at work, often without approval. This shadow AI risks confidential data being pasted into services with unclear data terms.
A practical approach
- Provide approved enterprise AI tools with proper data terms
- Write a short policy: what is allowed, what is not and why
- Classify data so people know what counts as confidential
- Use data loss prevention and browser controls for the most sensitive data
- Train staff with real examples of safe and unsafe use
- Offer a simple way to request new tools
Banning AI outright rarely works. People find ways around bans, and the organisation loses visibility. Giving people a safe, useful option is more effective. Internal assistants built on an AI layer with proper controls, such as those described on our AI copilot page, often replace much unapproved use.
What does an AI security review look like in practice?
Map the system and its threats, test with automated and manual attacks, fix findings with design changes and guardrails, then add monitoring and a safety test suite. Retest to confirm.
This insurer is an invented composite based on typical AI security reviews. It is not a real client.
An insurer has launched a customer assistant that answers policy questions, reads uploaded documents such as repair quotes and can start claims. Before expanding it, the security team asks for an independent review.
Threat model
The map shows three trust boundaries: customer messages, uploaded documents and a retrieval index of policy documents. The assistant has tools to look up policies, start claims and attach documents.
Findings
Testing finds that the policy lookup tool accepts any policy number, relying on the prompt to keep users to their own. Uploaded documents are passed to the same model that calls tools, so hidden text in a quote can influence claim details. Conversation logs store full documents without masking. The system prompt contains an internal URL.
Fixes
The lookup tool now uses the signed in customer's identity and ignores supplied numbers. Documents are processed by a separate extraction step that returns only structured fields, which are validated before the assistant sees them. Logs mask personal data and have a retention limit. The URL moves to server configuration.
Ongoing
Every successful attack becomes a test in the release pipeline. Alerts for injection detections and blocked outputs flow to the security operations team. A retest confirms the fixes before the assistant expands to new products.
What are the most common AI security mistakes?
Relying on prompts for security, giving agents broad access, trusting retrieved content, keeping secrets in prompts, testing once at launch and treating model output as safe.
What should you ask an AI security partner?
Ask how they threat model, which risks they test, how they combine automated and manual testing, whether they help fix findings, how they protect your data during testing and what you keep afterwards.
- How will you map our system's data flows and trust boundaries?
- Which risks will you test, and against which frameworks?
- How do you combine automated tools and manual testing?
- Will you test indirect injection through documents, email and the web?
- How will you test agents and their tools?
- How will you handle our data and production systems during testing?
- Do you help fix findings, or only report them?
- Will we receive a test suite we can run on every release?
- What monitoring and response will you recommend?
- Who owns the reports, tests and code?
We answer these in writing before any engagement starts. To build in house, you can hire AI/ML engineers or backend developers who join your team for as long as you need them.