What AI security is
AI security is the practice of protecting artificial intelligence systems — the models, prompts, agents, retrieval pipelines, and training data that make up an organization's AI layer — from attack, manipulation, and data loss, while also ensuring that the AI an enterprise builds and adopts is used safely. It is the branch of AI cybersecurity concerned with securing AI systems as first-class infrastructure, the same way network security once emerged to defend a new and rapidly expanding surface.
For most of the last three decades, enterprise security was organized around a stable set of layers: the network, the endpoint, the application, and the identity system that ties them together. Each of those layers accumulated its own defenses, its own tooling, and its own body of practice. Artificial intelligence introduces something genuinely new. It does not slot neatly into any of those categories, and it does not respond to the controls that protect them. AI security is the response to that gap — a distinct discipline for a distinct layer.
The reason AI security exists as its own field, rather than as a footnote in application security, comes down to three properties of modern AI systems that break long-held assumptions. AI systems are driven by natural language, so the attack payload is a sentence rather than a script. They are non-deterministic, so the same input can produce different outputs and defenses cannot rely on fixed signatures. And they are data-centric in a way that turns a model into both a target and a potential leak. We will unpack each of these in the sections that follow, because they explain nearly everything about why securing AI requires a different playbook.
AI security protects the models, prompts, agents, retrieval systems, and data that power AI features from natural-language attacks, manipulation, and leakage — and governs the safe use of AI across the enterprise. It is where cybersecurity meets the behavior of non-deterministic, language-driven systems.
It is worth being precise about scope, because "AI security" is sometimes used loosely. In this guide the term covers the security of AI systems: defending the models and pipelines an enterprise runs, and controlling how employees use external AI tools. It overlaps with, but is not the same as, using AI to improve security operations (AI-assisted detection and response), or the broad field of AI safety and alignment. Those are important adjacent topics. Our focus here is the practical, board-relevant question every security leader now faces: how do we keep our AI systems, and the data they touch, secure? For a plain-English overview of how these pieces fit into a single defensive stack, see the Deflected platform guide.
How AI security differs from traditional cybersecurity
The fastest way to understand AI security is to see exactly where it departs from the cybersecurity most organizations already do well. Traditional security is not wrong; it is simply aimed at a different kind of system. Three differences matter most.
The attack is written in natural language
Classic application security assumes that malicious input looks like code: a SQL fragment, a script tag, a malformed packet, a buffer that overflows. Decades of tooling — web application firewalls, input validators, intrusion detection — are tuned to spot code where code should not be. AI systems invert this assumption. The dangerous input to a large language model is not code at all; it is a fluent, grammatically correct instruction. An attacker does not need to break the parser. They need only write a sentence that persuades the model to do something it should not. A web application firewall inspecting HTTP traffic has no concept of a paragraph that politely tells a model to ignore its own safety rules and reveal the contents of its context window. The payload passes through, because to every layer beneath the model it looks like ordinary text.
The system is non-deterministic
Traditional software is deterministic: the same input yields the same output, and security controls exploit that predictability. A signature that matches a known exploit matches it every time. AI models do not behave this way. The same prompt can produce different responses depending on sampling, context, and subtle phrasing. This has two consequences for defense. First, you cannot fully enumerate the ways a model will respond, so you cannot write an exhaustive blocklist — testing has to be continuous and probabilistic rather than one-and-done. Second, a control that appears to work in one test may fail in another, which is why continuous adversarial testing is a core practice rather than an occasional audit. Security has to be measured as a distribution of outcomes, not a binary pass or fail.
The risk is data-centric
In conventional systems, data sits behind the application and is reached through defined interfaces. In an AI system, data flows into the model as context and can flow back out through the model's generated response. A model with access to customer records, source code, or internal documents can surface that information in its output — sometimes because an attacker coaxed it, sometimes by simple accident. The boundary that used to separate "the data" from "the response about the data" becomes porous. This is why AI data leakage is treated as a primary risk category in its own right, and why watching model outputs matters as much as watching inputs. We explore this failure mode in depth in our companion article on AI data leakage.
Put together, these three differences mean that securing AI is not a matter of pointing existing tools at a new endpoint. The threat model, the failure modes, and the controls are different enough to warrant a dedicated discipline. That does not make traditional security obsolete — an AI system still runs on infrastructure that needs network segmentation, patching, and identity controls. AI security is additive. It closes the specific gap the AI layer opens, and it assumes the rest of your defense-in-depth is still doing its job underneath.
The AI attack surface: the "AI layer"
To secure something, you first have to see it. The AI layer is the collection of components that make an AI feature work, and each component is a distinct place where an attack, a leak, or a manipulation can occur. Enterprises consistently underestimate how large this surface is, because much of it is invisible to the tools that map traditional infrastructure. Here is the full picture.
- Models — the large language models (LLMs) and other machine-learning systems that generate text, code, decisions, or predictions. Whether hosted by a provider or run in-house, the model is the reasoning engine, and its behavior is the thing attackers most want to hijack.
- Prompts — the instructions and context assembled and sent to a model on each request. Prompts are frequently built on the fly from a mix of trusted system instructions, live user input, and data pulled from other systems. That blending of trusted and untrusted text is the root of the most important AI vulnerability.
- Agents — AI systems granted tools and autonomy to take actions: calling APIs, querying databases, writing files, sending messages, or executing code. Agents dramatically expand the blast radius of a successful attack, because a manipulated model is no longer just producing text — it is taking actions on your systems with real permissions.
- Retrieval pipelines — systems that fetch documents and data (often from a vector database) and inject them into prompts, commonly called retrieval-augmented generation, or RAG. Retrieval is powerful because it grounds a model in your data; it is dangerous because any document the model retrieves becomes part of the prompt, and a poisoned document can carry hidden instructions.
- Training and fine-tuning data — the datasets used to build or adapt a model. Corrupt this input and you corrupt the model's behavior at the source, in ways that can be extremely hard to detect after the fact.
- Model weights and artifacts — the trained parameters themselves, which are valuable intellectual property and a target for theft, as well as third-party models and dependencies pulled in from external sources.
A useful way to think about the AI layer is that it sits on top of your existing stack rather than beside it. Every AI feature ultimately runs on infrastructure you already secure, but it introduces a new plane of behavior — reasoning, retrieval, and action — that your existing controls cannot observe. And critically, much of the AI layer is adopted informally. Employees paste sensitive data into public chatbots; teams wire up an agent over a weekend; a product manager enables an AI feature in a SaaS tool without review. This is shadow AI, and it means the real attack surface is almost always larger than the sanctioned one. You cannot protect what you have not inventoried, which is why discovery is the foundation of any serious program. Our deep dive on shadow AI discovery explains how to bring that hidden surface back under policy.
The major AI security threat categories
With the attack surface mapped, we can name the threats that operate across it. These are the categories every enterprise AI security program should be able to detect, test for, and respond to. They range from the everyday to the strategic, and no serious program can afford to cover only some of them.
Prompt injection: the defining AI vulnerability
When an application inserts untrusted input — from a user, or from a document it retrieved — into a prompt, an attacker can hide instructions inside that input to hijack the model. This is prompt injection, and it is to AI what SQL injection was to databases: the single most common and consequential vulnerability of the era. In its direct form, a user types instructions designed to override the system prompt. In its more dangerous indirect form, the malicious instruction is planted in a web page, email, or document that the model later reads through a retrieval pipeline, so the model is compromised without the attacker ever touching it directly. A successful injection can exfiltrate the contents of a model's context, manipulate an agent's tool calls, or bypass guardrails entirely. Because it targets the fundamental way models blend trusted and untrusted text, there is no single patch that eliminates it — defense requires layered inspection at runtime. We treat this threat comprehensively in our dedicated article on prompt injection.
Jailbreaks
A jailbreak is a prompt engineered to make a model bypass its own safety training and produce content or behavior it is supposed to refuse. Where prompt injection typically hijacks an application's use of a model, a jailbreak targets the model's guardrails themselves — through role-play framings, obfuscation, hypothetical scenarios, or long multi-turn manipulation that gradually erodes the model's restraint. Jailbreaks matter for the enterprise because a jailbroken model in a customer-facing product can be induced to say things that create legal, reputational, or safety exposure, and because the techniques evolve constantly. This is another reason a program cannot rely on a one-time assessment; the resilience you proved last quarter can regress with a model update or a new technique.
Data leakage through model outputs
An AI system can leak sensitive information simply by generating it. A model connected to customer records, internal documents, or source code can be led — deliberately or accidentally — into revealing that data in its response. This includes personally identifiable information, secrets and credentials, regulated health or financial data, and confidential business information. It also includes training-data extraction, where an attacker probes a model to recover data it memorized during training. Conventional data-loss prevention watches files and network flows; it does not read a model's prose output for regulated data escaping in plain language. Detecting and blocking leakage at the moment of generation is a core AI security function, covered in detail in our article on AI data leakage.
Model and supply-chain poisoning
Poisoning attacks corrupt an AI system at its source. In data poisoning, an adversary manipulates the training or fine-tuning data so the resulting model behaves incorrectly — sometimes broadly, sometimes only when a hidden trigger appears, which is known as a backdoor. In supply-chain poisoning, the compromise arrives through a third-party model, a pre-trained checkpoint, an open dataset, or a software dependency pulled into the pipeline. Because modern AI development leans heavily on external models and datasets, the supply chain is a genuine and often unexamined risk. Poisoning is especially dangerous because it can lie dormant and pass ordinary functional testing, only activating under conditions the defender never thought to test. Vetting models, datasets, and dependencies before they enter production is the countermeasure; see model supply-chain security for how that vetting works in practice.
Adversarial inputs
Adversarial inputs are carefully crafted data designed to fool a model into making a wrong decision — an image altered in ways imperceptible to a human that causes a classifier to misread it, or text perturbed to evade a content filter. In language systems this blends into prompt injection and evasion, but the underlying idea generalizes across AI: the input space of a model is vast, and an attacker who understands the model can find regions of that space where it fails predictably. For enterprises using AI in fraud detection, content moderation, document processing, or authentication, adversarial evasion is a direct operational risk, not a theoretical one.
Deepfakes and impersonation
Generative AI has made convincing voice clones and synthetic video cheap and fast. Long-standing corporate fraud vectors — business email compromise, executive impersonation, fraudulent wire approvals — are now supercharged by an attacker who can produce a CFO's voice on a phone call or a plausible video of a leader on demand. This threat sits at the intersection of AI security and social engineering, and it is one where the human trust that greases business operations becomes the exploit. Detecting synthetic media in high-trust workflows is an AI-era control that traditional email and identity tooling does not provide; our deepfake and voice-clone defense page covers the detection approach, and our companion piece on deepfake fraud explores the threat landscape.
The quantum threat to encryption
The final category is invisible today but already in motion. Much of the encryption protecting AI data — and all data — relies on public-key mathematics that a sufficiently large quantum computer could break using Shor's algorithm. Adversaries understand this, and some are already capturing encrypted data now to store and decrypt later, once the hardware matures. This is the harvest now, decrypt later threat, and it means any AI data that will still be sensitive in five or ten years — model weights, training corpora, customer records — is effectively exposed today unless it is encrypted with post-quantum algorithms. AI systems concentrate exactly this kind of long-lived, high-value data, which makes the quantum horizon an AI security concern and not merely a cryptography one. We cover the transition in full in our guide to post-quantum cryptography.
Why traditional tools don't cover the AI layer
A reasonable objection at this point is: we already spend heavily on security tooling — why doesn't it protect our AI? The answer is that the leading categories of enterprise security tools were each designed for a problem that is structurally different from AI risk. Understanding precisely where they stop is the clearest argument for why AI security is a separate investment.
Web application firewalls (WAF)
A WAF inspects HTTP traffic for known malicious patterns — injection strings, malformed requests, signatures of common web exploits. It is excellent at what it does. But a prompt injection is not a malformed request; it is a well-formed, grammatical instruction that looks exactly like the legitimate text a user would send to an AI feature. There is no signature to match, because the attack is semantic, not syntactic. The WAF sees valid traffic and passes it through, and the manipulation happens inside the model where the WAF has no visibility.
Data-loss prevention (DLP)
DLP tools watch for sensitive data moving where it should not — patterns like credit-card or Social Security numbers in files, emails, and network traffic. They assume data leaves through recognizable channels in recognizable formats. AI leakage breaks both assumptions. Sensitive information can leave through a model's generated response, rephrased in natural language, in a channel (the AI feature) that classic DLP does not inspect as a data-egress point. Reading model output for regulated content escaping in prose requires understanding the semantics of the response, which is outside the pattern-matching model of traditional DLP.
Endpoint detection and response (EDR)
EDR monitors processes, memory, and behavior on endpoints to catch malware and intrusion. It operates at the level of code execution on a machine. An AI attack, by contrast, unfolds in the reasoning of a model and the flow of a conversation — there is no malicious binary to detect, no suspicious process to flag. The model doing exactly what an attacker's sentence convinced it to do is, from the operating system's perspective, entirely normal execution. EDR has no lens on model behavior.
Every traditional tool inspects a layer beneath the model — packets, files, processes — where AI attacks leave no trace. The manipulation lives in language and behavior at the model layer, which none of these tools can see. That blind spot is precisely what AI security exists to close.
The takeaway is not that these tools should be removed. They remain essential for defending the infrastructure the AI layer runs on. The point is that pointing more of the same tooling at the problem does not help, because the problem is not on the layer those tools inspect. Effective coverage requires controls that operate at the AI layer itself — inspecting prompts and responses, testing model behavior, and reading outputs for leakage — which is a new category of capability. For the design of that inspection layer, our engineering-focused guide on securing LLM applications goes deeper into implementation.
The governance and compliance dimension
AI security is not only a technical problem; it is increasingly a regulatory and governance one. Security that cannot be demonstrated is incomplete, and regulators, auditors, and enterprise buyers now expect organizations to prove that their AI is governed responsibly. This dimension turns AI security from a purely defensive activity into one that also enables the business to sell, to pass audits, and to satisfy oversight. Three frameworks anchor the conversation.
- NIST AI Risk Management Framework (AI RMF) — the leading voluntary framework for identifying, measuring, and managing AI risk across the model lifecycle. Its four functions — Govern, Map, Measure, and Manage — give organizations a structured, defensible way to demonstrate that AI risk is being handled deliberately rather than ad hoc. We break the framework down in our dedicated guide to the NIST AI RMF.
- EU AI Act — the European Union's risk-based regulation of AI systems, which imposes concrete obligations on high-risk use cases, with real penalties for non-compliance. Any enterprise operating in or selling into the EU needs to understand where its AI systems fall on the Act's risk tiers and what documentation and controls each tier requires.
- SOC 2 — the trust-services criteria that enterprise procurement teams rely on to evaluate a vendor's security posture. As AI features become part of products, the security of those features increasingly falls within SOC 2 scope, and buyers ask pointed questions about it.
The practical goal is an AI program that is audit-ready, not just secure: framework mappings, implemented controls, and the evidence and reporting to back them up. For many corporate teams this is the difference between a stalled enterprise deal and a signed one, or between a clean audit and a painful remediation cycle. Governance and security reinforce each other — good controls generate the evidence governance needs, and governance ensures the controls actually get implemented and maintained. Our overview of AI compliance and governance maps these frameworks to concrete controls, and the AI governance and compliance service describes how organizations operationalize them.
How to build an AI security program
A durable AI security program is not a single product; it is a set of functions that operate together across the AI lifecycle. The most useful way to organize them is as seven capabilities, each answering a specific question. An enterprise does not have to stand all of them up at once, but a mature program covers all seven, and gaps in any one create risk the others cannot compensate for.
- Govern — establish the policy, ownership, and framework alignment that make AI security a deliberate program rather than a series of reactions. This is where you define acceptable use, assign accountability, and map to the NIST AI RMF, the EU AI Act, and SOC 2. Governance sets the standard everything else is measured against.
- Discover and inventory — find every AI system in use, sanctioned or not. You cannot secure what you cannot see, and shadow AI means the real inventory is almost always larger than the official one. Continuous discovery surfaces the unsanctioned tools, quantifies the exposure, and brings hidden usage back under policy.
- Protect inline — place a control in the live request path that inspects every prompt and response in real time, blocking prompt injection, jailbreaks, and data leakage before they reach the model or the user. This inline AI gateway is the workhorse of runtime defense, and it has to operate with sub-second latency and safe fallbacks so it never breaks the application it protects.
- Test and red-team — continuously attack your own models the way real adversaries would, and turn the results into a prioritized, fixable report. Because AI systems are non-deterministic and the techniques evolve, testing must be ongoing rather than a point-in-time assessment. Continuous red teaming lets you find weaknesses before an attacker does and prove resilience to leadership.
- Monitor — maintain visibility and an immutable audit log of every decision the AI layer makes, so you can detect anomalies, investigate incidents, and demonstrate what happened after the fact. Monitoring is what turns a set of controls into an operable program and supplies the evidence governance requires.
- Encrypt, including post-quantum — protect AI data at rest and in transit with encryption that resists both today's attackers and tomorrow's quantum computers. Because AI concentrates long-lived, high-value data, the harvest-now-decrypt-later threat makes post-quantum encryption a present-tense requirement for anything that will still be sensitive in a decade.
- Respond — prepare a specific plan for when an AI system is breached, manipulated, or found leaking, with the expertise in place to contain, investigate root cause, and recover. AI incidents differ from conventional ones, and having a prepared response — ideally on retainer — means help is already in place before you need it.
The sequence matters less than the coverage. Many organizations begin with discovery, because it reveals the true scope of the problem and builds the case for investment; others start with inline protection on their highest-risk customer-facing feature. What separates a mature program from a collection of point tools is that these seven functions share context — the discovery inventory informs what gets protected, the red team findings feed the inline rules, the monitoring feeds the response plan, and governance ties the whole thing to the frameworks the business is measured against. Treating them as one coordinated system, rather than seven disconnected purchases, is what makes the program hold together under pressure.
Where AI data must be protected for the long term, the current standard is NIST's post-quantum suite: ML-KEM-1024 (FIPS 203) for key encapsulation, ML-DSA-87 (FIPS 204) and SLH-DSA (FIPS 205) for digital signatures, deployed in a hybrid configuration alongside classical X25519 so protection holds even if either scheme is weakened, with AES-256 for symmetric encryption at rest and in transit.
How the pieces fit for different industries
AI security is not one-size-fits-all, because the consequences of a failure differ sharply by sector. The seven functions above are constant; their emphasis and their regulatory framing shift with the industry. A useful way to prioritize is to ask where a breach would do the most damage — regulatory exposure, lost customer trust, or direct financial harm — and weight the program accordingly.
- Financial services — the priority is protecting customer data, models, and approval workflows against fraud and exfiltration. Deepfake-enabled wire fraud and prompt-injection attacks on customer-facing assistants are direct threats, and the regulatory bar for data protection is high.
- Healthcare — regulated patient data must stay sealed against both today's attackers and the quantum horizon, and any AI feature touching clinical or claims data inherits strict privacy obligations. Data leakage through model output is a particularly acute risk.
- SaaS and technology — the goal is securing AI features so they can be sold into demanding enterprise and regulated markets. Here AI security is a revenue enabler: buyers will not adopt an AI feature they cannot trust, and SOC 2 scope now includes it.
- Government and public sector — high assurance requirements for both AI behavior and cryptography make governance and post-quantum readiness central, alongside strict controls on data handling.
- Legal and professional services — privileged and confidential information handled by AI systems demands strong leakage prevention and clear governance, since a single disclosure can carry outsized consequences.
The common thread across every sector is leadership that recognizes AI is now core infrastructure, and that securing it can no longer be deferred to "later." The specific mix of controls, and which framework carries the most weight, is what varies. Our industries overview details how the program adapts to the risk profile and regulatory context of each sector, so the same seven functions land where they matter most for a given business.
How Deflected helps
Everything in this guide points to the same conclusion: AI security requires coverage across the entire AI layer, delivered as a coordinated system rather than a drawer of disconnected tools. That is exactly what Deflected is built to provide. The Deflected platform combines always-on software products with expert services and encrypts everything it touches with post-quantum cryptography by default, so that the seven functions of a mature program share context and reinforce one another instead of operating in isolation.
On the runtime side, the Prompt Firewall is the inline AI gateway that inspects every prompt and response in real time, blocking prompt injection, jailbreaks, and data leakage before they reach your model or your users, with every decision logged for audit. Shadow AI Discovery continuously surfaces the unsanctioned AI tools employees use, quantifies the exposure, and brings that hidden risk back under policy — the discovery function that makes everything else possible. And the Continuous AI Red Team runs always-on adversarial testing against your own models and returns a prioritized, fixable report, so you find weaknesses before an attacker does and can prove resilience to the board.
These runtime capabilities are backed by expert engagements for the work that needs human specialists — post-quantum cryptographic migration, governance and compliance mapping across the frameworks that matter, model supply-chain vetting, and incident response on standing retainer. The design principle is that Deflected sits at the AI layer and works alongside your existing cloud, network, and identity security, adding the AI-specific defenses those tools were never built to provide. You keep your stack; Deflected closes the gap that AI opened. For the full layer-by-layer breakdown, the platform guide walks through how each capability maps to your environment.
Frequently asked questions
What is AI security?
How is AI security different from traditional cybersecurity?
What are the biggest AI security threats?
Why don't traditional security tools protect AI systems?
How do you secure AI systems in an enterprise?
Does AI security require post-quantum encryption?
The takeaway
AI security is the discipline that emerged because artificial intelligence broke the assumptions enterprise security was built on. The attack is written in natural language, the system is non-deterministic, and the risk flows through data that moves into and out of a model. Those three properties explain why the AI layer — models, prompts, agents, retrieval pipelines, and training data — needs its own defenses, and why the WAF, DLP, and EDR tools that protect everything beneath it cannot see the attacks that matter here.
The threats are concrete and already in play: prompt injection and jailbreaks that hijack model behavior, data leakage through generated output, poisoning of models and supply chains, adversarial inputs, deepfake-enabled impersonation, and the quantum threat that makes post-quantum encryption a present-tense requirement. Meeting them takes a program, not a product — seven functions spanning govern, discover, protect, test, monitor, encrypt, and respond, aligned to the frameworks that regulators and buyers now expect, and adapted to the risk profile of your industry.
The organizations that do this well treat AI security as core infrastructure and stand it up as one coordinated system rather than a scatter of point tools. That is the approach Deflected was built to deliver: coverage across the entire AI layer, backed by expert services and post-quantum encryption by default, working alongside the security you already run. If AI is now part of how your business operates, securing it can no longer wait — and it does not have to be complicated to start.
Secure your AI layer with Deflected
Book a working session with our team. We'll map AI security to your environment and show exactly where each layer of protection fits.