Key takeaway
- Deep learning in cybersecurity for security leaders: where it detects threats, how attackers target models (MITRE ATLAS), LLM-era risks and governance.
Deep learning in cybersecurity means using multi-layer neural networks to detect and respond to threats by learning patterns from security data such as network traffic, files, emails, identity events and logs. It finds new malware variants, unusual behaviour and phishing that signatures miss, and machine learning of this kind now sits alongside rules in modern SIEM, XDR and email security platforms such as Microsoft Sentinel.
The model is now also a target. Attackers craft inputs to evade detectors, poison training data and use large language models (LLMs) to speed up their own operations. This guide covers where deep learning helps, how attackers go after the models (mapped to MITRE ATLAS and NIST's adversarial machine learning taxonomy), the LLM-era threats documented by Google, Anthropic and the UK NCSC, and how to govern it all. For the wider operating model that deep learning plugs into, see our guide to adaptive security architecture.
What is deep learning in cybersecurity?
Deep learning is a branch of machine learning that stacks many layers of artificial neurons so a model can learn features directly from raw or lightly processed data. In security that matters because attackers change their tools faster than analysts can write rules. A model trained on enough examples can generalise to variants it has not seen. Different network families suit different data, as the table shows; image-style models such as convolutional neural networks are one example.
| Model family | Security data it suits | Typical use |
|---|---|---|
| Convolutional neural networks (CNNs) | Byte sequences and binaries rendered as images, packet payloads | Malware family classification, payload inspection |
| Recurrent networks and transformers | Sequences: logs, command lines, URLs, email text | Phishing and malicious URL detection, suspicious command sequences |
| Autoencoders | Normal behaviour baselines for hosts, users and network flows | Anomaly and intrusion detection without many labelled attacks |
| Graph neural networks | Relationships between users, devices, processes and domains | Lateral movement and attack path detection |
| Large language models | Alerts, tickets, threat reports, code | Alert triage, investigation summaries, detection rule drafting |
What has changed since 2024?
The question used to be whether deep learning could detect threats. In 2026 the questions are how attackers use AI, how they attack the models, and what standards and regulators now expect.
| Change | What it means | Source and status |
|---|---|---|
| AI-enabled malware in live operations | Malware that calls a language model at run time; PROMPTSTEAL generates commands through an LLM, PROMPTFLUX rewrites its own code | Google Threat Intelligence Group, 5 November 2025; PROMPTFLUX described as experimental |
| AI-orchestrated intrusion | An agentic coding tool performed most of an espionage campaign, with humans at a few decision points | Anthropic, 13 November 2025; succeeded in a small number of cases |
| National threat assessment | AI will almost certainly make intrusion operations more effective and efficient through 2027 | UK NCSC, 7 May 2025 |
| Adversarial ML taxonomy | Common terms for evasion, poisoning, privacy and misuse attacks across predictive and generative AI | NIST AI 100-2 E2025, 24 March 2025 |
| LLM application risks | Ten risks from prompt injection to unbounded consumption | OWASP Top 10 for LLM Applications 2025 |
| AI attack knowledge base | Adversary tactics and techniques against AI systems, maintained as versioned data | MITRE ATLAS; the data repository references content version 2026.05 |
| Regulation of model robustness | High-risk AI must resist data poisoning, model poisoning and adversarial examples | EU AI Act Article 15 |
Where does deep learning help most in threat detection?
Not every security problem needs a neural network. Use the table to decide where deep learning earns its cost.
| Use case | When deep learning fits | Watch-outs |
|---|---|---|
| Network intrusion and anomaly detection | Large, encrypted or fast-changing traffic where rules cannot keep up | Noisy baselines; needs tuning per environment |
| Malware classification | High volumes of new samples and packed or polymorphic variants | Evasion by adversarial samples; keep sandbox and signature layers |
| Phishing and business email compromise | Language and layout cues, look-alike domains, unusual sender behaviour | LLM-written lures look clean; combine with identity and payment controls |
| User and entity behaviour analytics | Insider threats and compromised accounts that use valid credentials | Privacy review for employee monitoring; explainability for HR cases |
| Alert triage and investigation with LLMs | Analyst time is the bottleneck; alerts need context and summaries | Hallucination and prompt injection; keep humans approving actions |
These detections feed hunting as well as alerting; our guide to AI-driven threat hunting shows how analysts turn model output into proactive searches.
How does a deep learning detection pipeline work?
| Stage | What happens | Control to build in |
|---|---|---|
| Collect | Telemetry from endpoints, network, identity, email, cloud and SaaS | Data provenance and retention rules; protect training stores |
| Prepare | Normalise, label and balance data; build features or embeddings | Check labels for poisoning; separate training and evaluation data |
| Train and evaluate | Train models; measure precision, recall and false positive rates per use case | Adversarial testing and red teaming before release |
| Detect | Score events in real time; send findings to SIEM or XDR | Thresholds agreed with the SOC; confidence and explanation with every alert |
| Respond | Analysts or automation contain, investigate and recover | Approval rules for disruptive actions; full audit trail |
| Learn | Feedback from analysts and incidents retrains models | Monitor drift; version models and roll back safely |
Video: an AI threat detection flow, from a burst of failed logins to a signed, governed containment action.
How do attackers target the models themselves?
Adversarial machine learning turns the detector into an attack surface. NIST AI 100-2 E2025 gives the vocabulary and MITRE ATLAS catalogues real adversary techniques against AI systems in the style of MITRE ATT&CK. Security architects can use both to threat-model every model in the security stack.
| Attack class | What the attacker does | Example in security | Control |
|---|---|---|---|
| Evasion | Crafts inputs that the model misclassifies (adversarial examples) | Malware modified so a classifier scores it benign | Adversarial training, ensembles, keep non-ML detection layers |
| Poisoning | Corrupts training data or pre-trained components | Malicious samples labelled benign in a shared feed; tampered open models | Data provenance, signed models, review of third-party components |
| Privacy and extraction | Infers training data or copies the model through queries | Probing a detection API to learn its thresholds | Rate limits, query monitoring, output minimisation |
| Misuse and abuse (generative AI) | Manipulates an LLM through direct or indirect prompt injection | A malicious email that instructs an LLM triage assistant to close the alert | Treat model output as untrusted; least privilege for tools; human approval |
Article 15 of the EU AI Act makes these controls a legal expectation for high-risk AI systems: they must resist attempts to exploit vulnerabilities, with measures against data poisoning, model poisoning and adversarial examples.
What LLM-era threats should security leaders plan for?
Generative AI changes both sides of the contest. On the attack side, Google Threat Intelligence Group reports that state-sponsored actors from North Korea, Iran and the PRC use Gemini across reconnaissance, phishing lures, command and control and exfiltration, and that PROMPTSTEAL, attributed to APT28, was the first malware it observed querying an LLM in live operations. Anthropic reported that a group it assessed with high confidence as Chinese state-sponsored used Claude Code to run an estimated 80 to 90 percent of a campaign against roughly thirty organisations. The UK NCSC expects a widening gap between systems that keep pace with AI-enabled threats and those that do not.
On the defence side, every LLM assistant a SOC deploys brings its own risks. The OWASP Top 10 for LLM Applications 2025 is the practical checklist; the entries most relevant to security tooling are below. Our article on cybersecurity challenges in agentic AI covers agent-specific risks in more depth.
| OWASP LLM risk | Why it matters in a SOC |
|---|---|
| LLM01:2025 Prompt Injection | Attacker-controlled logs, emails or web pages can carry instructions to the triage assistant |
| LLM02:2025 Sensitive Information Disclosure | Assistants with access to incident data can leak it in answers or tickets |
| LLM04:2025 Data and Model Poisoning | Tampered fine-tuning data or models weaken detection quietly |
| LLM05:2025 Improper Output Handling | Generated queries or scripts run without validation |
| LLM06:2025 Excessive Agency | An agent that can isolate hosts or disable accounts without approval becomes a weapon |
How should governance, security and cost be handled?
- Model inventory: list every model in the security stack, its training data, owner, version and the decisions it influences.
- Threat modelling: map each model to MITRE ATLAS techniques and the NIST attack classes; red-team before release and after major retraining.
- Human approval for disruptive actions: containment, account disablement and firewall changes need policy-based approval and a full audit trail.
- Measurement: report precision, false positive rate and analyst time saved per use case, not a single accuracy figure.
- Cost: GPU training and LLM inference grow with data volume; score high-volume telemetry with compact models and reserve LLMs for triage and investigation.
For teams moving to agent-assisted operations, MetaSecure applies this model to an agentic SOC, with composable security agents for triage, investigation, enrichment, compliance and incident command, and governance features such as drift monitoring, explainability and audit trails. AgentGRC keeps autonomous agent actions inside policy, with the audit trail risk teams need.
What is a sensible adoption sequence?
- Fix telemetry first: consistent, well-labelled endpoint, identity, email and network data in one place.
- Use the deep learning detections already in your SIEM, XDR and email platforms before building your own.
- Build custom models only where you have unique data and a measurable gap, such as fraud or insider risk.
- Add an LLM triage assistant in read-only mode, with prompt injection testing against OWASP LLM01.
- Allow automated response for low-risk, reversible actions; keep human approval for the rest.
- Red-team the models against MITRE ATLAS techniques and repeat after each major change.
What are the trade-offs, and when should you not use deep learning?
| Situation | Better choice |
|---|---|
| Known threats with stable indicators | Signatures, rules and threat intelligence feeds: cheaper and easier to explain |
| Little labelled data and no clear baseline | Simpler statistical anomaly detection or vendor models trained on wider data |
| Decisions that must be fully explainable (HR, legal) | Interpretable models and human review |
| Small SOC without data science support | Managed detection services or platform-native analytics |
| Actions that cannot be undone | Human approval, whatever the model's confidence |
To map one threat response decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
Related on XenonStack
- Agentic SOC: AI agents that triage, investigate and contain threats.
- MetaSecure: security for AI agents and AI systems.
- AI Trust Score: score AI for fairness, explainability and robustness.
Frequently asked questions
How is deep learning used in cybersecurity?
Deep learning models detect threats by learning patterns from large volumes of security data: network flows, files, emails, identity events and logs. Common uses are intrusion and anomaly detection, malware classification, phishing detection, user and entity behaviour analytics, and, with large language models, alert triage and investigation support.
Is deep learning better than signature-based detection?
It complements it. Signatures and rules are precise and cheap for known threats; deep learning finds variants and unusual behaviour that rules miss. Most mature security operations run both, with models feeding a SIEM or XDR platform where analysts and automation act on the results.
What is adversarial machine learning?
It is the study of attacks on machine learning systems and their defences. NIST AI 100-2 E2025, published in March 2025, groups attacks into evasion, poisoning, privacy and, for generative AI, misuse or abuse. Attackers may craft inputs that slip past a detector, poison training data, or extract a model or its data.
What is MITRE ATLAS?
MITRE ATLAS (Adversarial Threat Landscape for AI Systems) is a public knowledge base of adversary tactics and techniques that target AI systems, modelled on MITRE ATT&CK. Security teams use it to threat-model AI systems, plan red-team exercises and map detections.
How are attackers using large language models?
Google Threat Intelligence Group reported in November 2025 that attackers use AI across the attack lifecycle and that malware such as PROMPTSTEAL queries a language model during live operations. Anthropic reported the same month that a state-sponsored group used Claude Code to perform an estimated 80 to 90 percent of an espionage campaign against about thirty targets.
Which regulations cover the security of AI models?
In the EU, Article 15 of the AI Act requires high-risk AI systems to resist attempts to exploit vulnerabilities, including data poisoning, model poisoning and adversarial examples. The OWASP Top 10 for LLM Applications 2025 and NIST AI 100-2 E2025 are widely used as practical baselines alongside it.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE