1. Home
  2. AI Labs
  3. AI security

AI Labs · AI security services

AI security services: test it like an attacker, fix it like an engineer.

Javixor Labs secures chatbots, copilots, agents and other AI applications. We map how your AI handles data and actions, attack it the way real users and attackers would, then fix what we find with guardrails, tighter permissions and better architecture, and add monitoring and safety tests so it stays fixed.

8+AI projects shipped
10+AI features running in production
5Industries with live AI work
6 weeksTypical time from idea to working pilot

Definition

What is AI security?

AI security

AI security is protecting AI applications, models and their data from misuse and attack, such as prompt injection, data leakage, unsafe tool use and harmful outputs, through testing, guardrails, access controls, secure architecture and monitoring.

AI securityApplication securityResponsible AI
Main threatManipulating the model and what it can reachExploiting code and infrastructureUnfair or harmful outcomes
Attack surfacePrompts, documents, tools, model outputsAPIs, inputs, serversTraining data, decisions
Typical testsInjection, jailbreaks, data extraction, agent misusePenetration tests, code scansBias and impact reviews
OwnerSecurity and AI teams togetherSecurity teamRisk and ethics groups
Learn moreYou are hereMaintenance and supportEnterprise AI

AI security does not replace normal application security. It adds the risks that come from a model that reads untrusted text and can take actions.

Attack lab

Five common attacks. Switch the guardrails on and off.

Pick an attack against a fictional support assistant. See what an unprotected assistant might do, then turn on layered defences and see which layer stops it.

Guardrails
Attacker input

Defence layers

Illustration with a fictional assistant and invented data. Examples are simplified to show the idea, not working attacks.

OWASP Top 10 for LLM applications

The risks we test for, using the industry list.

The OWASP Top 10 for Large Language Model Applications is the most widely used list of AI application risks. Open any card to see what we check.

LLM01

Prompt injection

Direct and hidden instructions in user input, documents, emails and web pages. We test both and check what an attacker could reach.

LLM02

Sensitive information disclosure

Personal data, secrets and other customers' records appearing in answers. We test permission filtering and redaction.

LLM03

Supply chain

Third party models, plugins, datasets and libraries. We review sources, versions and how they are verified.

LLM04

Data and model poisoning

Tampered training, fine tuning or retrieval data. We check who can add content and how it is reviewed.

LLM05

Improper output handling

Model output passed into web pages, queries or code without checks. We test for injection into downstream systems.

LLM06

Excessive agency

Agents with more tools, permissions or freedom than they need. We test misuse and tighten scope and approvals.

LLM07

System prompt leakage

Instructions or secrets revealed by the model. We check that prompts hold no secrets and that controls do not rely on them.

LLM08

Vector and embedding weaknesses

Retrieval that ignores permissions or can be steered by planted content. We test search filtering and source trust.

LLM09

Misinformation

Confident wrong answers that people act on. We test grounding, citations and how uncertainty is shown.

LLM10

Unbounded consumption

Abuse that runs up cost or denies service. We test rate limits, quotas and input size limits.

Defence in depth

No single guardrail is enough. We build six layers.

LAYER 1

Secure architecture

Keys on the server, an AI gateway, isolated environments and data kept in the right region.

LAYER 2

Least privilege

The AI sees only what the user may see and uses only the tools the task needs. See AI agents.

LAYER 3

Input checks

Injection detection, size limits and marking of untrusted content from documents and the web.

LAYER 4

Output checks

Sensitive data redaction, harmful content filters and safe handling before output reaches other systems.

LAYER 5

Human approval

A person confirms risky actions such as payments, deletions and messages to customers.

LAYER 6

Monitoring and tests

Logs, abuse alerts and safety tests on every release so fixes stay fixed.

Process

How an AI security review works.

  1. 01 · MAP

    Threat model

    We map data flows, tools, users and trust boundaries, and rank what could go wrong.

    You get: a threat model
  2. 02 · ATTACK

    Red team

    Manual and automated testing against the risks that matter for your app.

    You get: findings with evidence
  3. 03 · FIX

    Remediate

    We fix findings with your team: guardrails, permissions and design changes.

    You get: verified fixes
  4. 04 · WATCH

    Monitor

    Safety test suites in CI, logging and alerts for abuse and drift.

    You get: lasting protection

Technology

Which tools and frameworks do we use for AI security?

Frameworks

  • OWASP LLM Top 10
  • MITRE ATLAS
  • NIST AI RMF
  • ISO/IEC 42001

Testing

  • PyRIT
  • garak
  • promptfoo
  • Custom attack sets

Guardrails

  • Azure AI Content Safety
  • Amazon Bedrock Guardrails
  • Llama Guard
  • NeMo Guardrails

Data protection

  • Microsoft Presidio
  • Cloud DLP services
  • Secrets managers

Access

  • OAuth 2.0
  • OIDC
  • Row level security
  • Policy engines

Monitoring

  • Langfuse
  • OpenTelemetry
  • SIEM integration

The complete guide

Securing AI applications: a defender's handbook.

A guide for CISOs, security engineers and AI product teams. The threats unique to AI applications, how prompt injection really works, how to protect data, how to limit agents, which guardrails help, how to red team and monitor AI, and how frameworks such as OWASP, MITRE ATLAS, NIST and ISO fit together.

Chapter 01

Why do AI applications need their own kind of security?

Short answer

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.

Chapter 02

What is the attack surface of an AI application?

Short answer

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.

PartWhat could go wrong
User inputDirect injection, jailbreaks, abuse
Retrieved contentHidden instructions in documents, emails and web pages
Knowledge baseContent returned to users who should not see it, or planted content
Tools and APIsActions taken that the user did not intend or is not allowed
Model outputHarmful text, leaked data or code injected into other systems
Prompts and configSecrets exposed, safety rules bypassed
Models and librariesTampered or vulnerable third party components
LogsSensitive 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.

Chapter 03

How do you threat model an AI application?

Short answer

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.

Chapter 04

What is prompt injection, and why is it so hard to stop?

Short answer

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.

Chapter 05

What is indirect prompt injection?

Short answer

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.

Illustrative example

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.

Chapter 06

How do you defend against prompt injection?

Short answer

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.

LayerWhat it does
Least privilegeThe AI can only reach data and tools the current user and task need
Content separationUntrusted text is clearly marked and the model is told to treat it as data
DetectionClassifiers flag likely injection in inputs and retrieved content
Capability splittingA model that reads untrusted content cannot also call sensitive tools
ApprovalA person confirms actions with real consequences
Output checksResponses are checked for data leaks and unexpected links
MonitoringAttempts 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.

Chapter 07

What are jailbreaks, and how much should you worry about them?

Short answer

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.

Chapter 08

How do AI applications leak sensitive information?

Short answer

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

PathExampleControl
Over broad retrievalSearch returns HR files to any employeePermission filtering per user
Shared contextOne customer's data in another's sessionStrict session and tenant isolation
Secrets in promptsAPI keys placed in instructionsSecrets only in server code and vaults
Fine tuning dataModel repeats records it was trained onClean training data, extraction tests
LogsFull conversations stored openlyMasking, access control and retention limits
Outbound linksData placed in a link to an outside siteLink 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.

Chapter 09

How do you secure retrieval augmented generation?

Short answer

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.

Chapter 10

What is excessive agency, and how do you limit AI agents?

Short answer

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.

Chapter 11

How do you secure tools, plugins and MCP servers?

Short answer

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

RuleWhy
Enforce permissions in the toolThe model cannot be trusted to respect access rules
Validate every parameterThe model may pass unexpected or manipulated values
Narrow scopeSmaller tools limit what misuse can achieve
Review third party serversA malicious tool description can itself carry injected instructions
Pin versionsA tool that changes silently can change behaviour
Untrusted resultsContent returned by tools may contain injection
Separate credentialsEach 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.

Chapter 12

Why does improper output handling create security holes?

Short answer

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.

Chapter 13

Is it a problem if someone sees your system prompt?

Short answer

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.

Chapter 14

What supply chain risks come with AI?

Short answer

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.

Chapter 15

What are data and model poisoning?

Short answer

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

StageExample
Knowledge baseA planted wiki page gives false instructions that the assistant repeats
Fine tuning dataTampered examples teach the model a hidden behaviour
Feedback loopsCoordinated ratings push the system toward bad answers
Public sourcesWeb 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.

Chapter 16

How do attackers abuse AI to run up cost or deny service?

Short answer

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.

Chapter 17

How do you choose and tune AI guardrails?

Short answer

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.

TypeExamples
Provider safety servicesAzure AI Content Safety, Amazon Bedrock Guardrails, Google model safety settings
Open safety modelsLlama Guard and similar classifiers
FrameworksNVIDIA NeMo Guardrails, Guardrails AI
Data protectionMicrosoft Presidio, cloud DLP services
Custom rulesTopic 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.

Chapter 18

What does a secure AI architecture look like?

Short answer

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.

Chapter 19

How is AI red teaming done?

Short answer

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.

Chapter 20

Why should safety tests run on every release?

Short answer

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.

Chapter 21

How do you monitor AI applications for attacks and incidents?

Short answer

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

SignalCould mean
Many injection detections from one userActive probing
Injection found in retrieved contentPlanted content in a source
Output blocked for sensitive dataA permission gap or extraction attempt
Unusual tool call patternsAgent manipulation or a bug
Sudden cost or volume spikesAbuse or stolen keys
Quality drops on monitored answersPoisoning, 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.

Chapter 22

Which frameworks and standards apply to AI security?

Short answer

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.

FrameworkWhat it is for
OWASP Top 10 for LLM ApplicationsThe main risks to test and fix in language model applications
MITRE ATLASA knowledge base of real attack tactics and techniques against AI
NIST AI RMFA structure for governing, mapping, measuring and managing AI risk
ISO/IEC 42001A certifiable management system standard for AI
ISO/IEC 27001Information security management, which still applies to AI systems
EU AI ActLegal 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.

Chapter 23

How should organisations manage staff use of public AI tools?

Short answer

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.

Chapter 24

What does an AI security review look like in practice?

Short answer

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.

Illustrative example

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.

Chapter 25

What are the most common AI security mistakes?

Short answer

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.

Prompt says "never reveal other customers' data".Enforce access in the data layer.
One service account for every tool.Act with the user's permissions.
Documents and web pages treated as instructions.Mark and isolate untrusted content.
API keys in the system prompt or app.Keep secrets on the server only.
Model output inserted into pages or queries directly.Validate, escape and use parameters.
Security test once before launch.Run safety tests on every release.
Guardrails left at default settings.Tune on real traffic and attack sets.
No logs of tool calls.Log every action with user and inputs.
Chapter 26

What should you ask an AI security partner?

Short answer

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.

  1. How will you map our system's data flows and trust boundaries?
  2. Which risks will you test, and against which frameworks?
  3. How do you combine automated tools and manual testing?
  4. Will you test indirect injection through documents, email and the web?
  5. How will you test agents and their tools?
  6. How will you handle our data and production systems during testing?
  7. Do you help fix findings, or only report them?
  8. Will we receive a test suite we can run on every release?
  9. What monitoring and response will you recommend?
  10. 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.

Glossary

AI security terms, in plain English.

The vocabulary of securing AI applications, explained simply. Type to filter.

AI security
Protecting AI applications, models and data from misuse and attack.
Prompt injection
Text that tries to override an AI system's intended instructions.
Direct prompt injection
Injection typed by the user of the AI system.
Indirect prompt injection
Injection hidden in content the AI reads, such as emails, documents or web pages.
Jailbreak
An attempt to make a model ignore its safety training.
Guardrail
A check on inputs, retrieved content or outputs that blocks or changes unsafe content.
Red teaming
Testing a system the way an attacker would, to find weaknesses.
Threat model
A structured view of what could go wrong, how and with what impact.
Trust boundary
A point where untrusted content meets trusted systems.
Least privilege
Giving each user, tool or agent only the access it needs.
Excessive agency
An AI system with more tools, permissions or freedom than its task needs.
Data exfiltration
Moving data out of a system without permission.
Data loss prevention
Tools and rules that detect and stop sensitive data leaving where it should not.
PII
Personally identifiable information: data that identifies a person.
Redaction
Removing or hiding sensitive parts of text.
System prompt
The instructions that set up how an AI application behaves.
Data poisoning
Tampering with data a model learns from or retrieves to change its behaviour.
Model supply chain
The outside models, datasets, libraries and tools an AI application depends on.
AI bill of materials
An inventory of the models, datasets and AI components a system uses.
Unbounded consumption
Abuse that drives up cost or overloads an AI system.
Sandbox
An isolated environment where code runs without access to sensitive systems.
OWASP Top 10 for LLM Applications
A widely used list of the main security risks in language model applications.
MITRE ATLAS
A knowledge base of attack tactics and techniques against AI systems.
NIST AI RMF
The US National Institute of Standards and Technology's AI Risk Management Framework.
ISO/IEC 42001
An international standard for AI management systems.
Shadow AI
Staff use of AI tools that the organisation has not approved.
SIEM
Security information and event management: a system that collects and analyses security events.

Questions

AI security services, answered.

What are AI security services?

AI security services protect AI applications such as chatbots, copilots and agents from misuse and attack. They include threat modelling, red team testing for prompt injection and data leakage, guardrails on inputs and outputs, permission design for tools, secure architecture, monitoring and safety tests on every release.

What is prompt injection?

Prompt injection is when text tries to override an AI system's instructions. It can come directly from a user, or be hidden in content the AI reads, such as an email, document or web page. It is the top risk in the OWASP list for language model applications.

Can prompt injection be fully prevented?

Not with today's models. Detection helps, but the reliable defence is limiting what an injected instruction could achieve: least privilege for data and tools, human approval for risky actions, output checks and monitoring. We design so that a successful injection does little harm.

What is AI red teaming?

AI red teaming is testing an AI system the way an attacker or misuser would, to find weaknesses before others do. It combines manual creativity with automated attack sets and covers injection, jailbreaks, data extraction, unsafe actions and harmful outputs.

How do you stop an AI from leaking sensitive data?

By making sure it never receives data the user is not allowed to see, masking or blocking sensitive fields before they reach the model, checking outputs for personal data and secrets, and keeping secrets out of prompts entirely.

Do you test AI agents that take actions?

Yes. Agents carry the highest risk because they can act. We test whether they can be tricked into misusing tools, check their permissions and approvals, and make sure every action is logged and reversible where possible.

How much does an AI security review cost?

Ballpark: $18 to $34 an hour per engineer. Cost is priced to your scope: the number of applications, their complexity, the tools and data they reach and whether you want fixes and monitoring included. You get a written estimate before anything starts. These are ballpark figures. Your final cost is confirmed after the proposal discussion. Try the cost calculator.

Which frameworks do you follow?

We use the OWASP Top 10 for LLM Applications, MITRE ATLAS for attack techniques, the NIST AI Risk Management Framework for risk structure and ISO/IEC 42001 where clients pursue AI management system certification.

Who owns the findings and test suites?

You do. Reports, test suites, guardrail configurations and code belong to you by contract, and an NDA is signed before you share any details.

What is the OWASP Top 10 for LLM applications?

It is a list of the most important security risks for applications built on large language models, published by the OWASP Foundation. It covers prompt injection, sensitive information disclosure, supply chain, poisoning, output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation and unbounded consumption.

How long does an AI security review take?

It depends on how many applications are in scope, how many tools and data sources they reach and whether fixes are included. A focused review of one application is a common starting point. Dates are set in your written estimate before work starts.

Can you test an AI application that is already live?

Yes. We agree scope and rules with your security team, prefer a staging environment that mirrors production and coordinate any production testing carefully to avoid affecting real users or data.

Do you secure AI built on Microsoft Copilot Studio or similar platforms?

Yes. Low code AI platforms still need permission reviews, connector checks, data protection and testing for injection. We review the configuration and connected data as well as the conversations.

What is MITRE ATLAS?

MITRE ATLAS is a knowledge base of tactics and techniques attackers use against AI systems, based on real cases and research. It complements the OWASP list by describing how attacks unfold, which helps plan testing and detection.

Can guardrails slow down our AI application?

They can add some delay. We choose the smallest effective set of checks, run them in parallel where possible and place heavier checks only where risk is high, so responses stay fast.

How do you secure a customer facing chatbot?

Limit it to your topics and content, filter retrieval by the signed in customer, keep actions behind confirmation, filter outputs for sensitive data and harmful content, rate limit use and monitor for abuse. See AI chatbot development.

Is it safe to use open source models?

It can be, with care: download from verified publishers, use safe file formats, check hashes, scan dependencies and test behaviour before use. Self hosted open models can also improve data control.

Do you help with ISO/IEC 42001 certification?

We help build the technical controls, testing and evidence that an AI management system needs, and work alongside your compliance team or auditors. We do not issue certificates ourselves.

Does the EU AI Act affect AI security?

For some uses, yes. High risk AI systems have duties around accuracy, robustness and cybersecurity. We help build and document technical controls. For legal interpretation, please consult your legal counsel.

Can AI security testing damage our systems?

Testing is planned to avoid harm: agreed scope, test accounts, staging environments where possible, limits on volume and coordination with your team. Any testing of actions that change data uses test records.

How do you protect our data during a review?

We sign an NDA, use the minimum access needed, prefer test data, store findings securely and delete working data at the end of the engagement as agreed.

Do you secure AI coding assistants?

Yes. Coding assistants read code and documents that may contain hidden instructions and can run commands. We review their permissions, sandboxing, secret handling and which repositories and tools they can reach.

What should we do if our AI application is attacked?

Follow your incident plan: disable the affected feature or tool, preserve logs, assess what data or actions were involved, fix the cause, notify affected parties where required and add the attack to your test suite. We can help with each step.

Can you train our developers in AI security?

Yes. We run practical sessions for developers and security teams on AI threats, secure design patterns, testing tools and real findings, using your own applications as examples where possible.

How do we get started with AI security?

Tell us what your AI application does, who uses it and what data and tools it can reach. A delivery lead replies within one working day. We usually begin with a short threat modelling session and send a written estimate.

Find the weak spots before someone else does.

Tell us what your AI application does and what it can reach. A delivery lead replies within one working day.

Or email sales@javixorlabs.com
Request a matchDevelopers