LLMs in Cybersecurity

SOC automation, code review, threat intel, defense and offense. What 2026 settled about LLMs in blue-team and red-team work.

Chapter opener illustration: LLMs in Cybersecurity.

"Cybersecurity LLMs work because the haystack is finally machine-readable."

GuardGuard, Threat-Hunting AI Agent
Looking Back

Chapter 70 covered education; this chapter covers cybersecurity. Threat intelligence, log analysis, automated remediation, malware reverse engineering, and the dual-use risks of an LLM that can both defend and attack.

Big Picture

Cybersecurity is the only LLM application area where attackers and defenders are both adopting the technology at scale simultaneously. The defender side wins at scale because of mature SIEM/SOAR infrastructure to plug into. The attacker side wins at velocity because there is no compliance team slowing them down. The 2026 cybersecurity LLM playbook is fundamentally about whether you can deploy LLM automation faster than your adversaries can. Section 71.1 covers the blue-team use cases. Section 71.2 covers the red-team uses that defenders must understand. Section 71.3 covers the LLM-specific attack surface (OWASP Top 10, MITRE ATLAS). Section 71.4 covers the trust-boundary architecture. Section 71.5 closes with the vendor landscape, and Section 71.6 is the longer production-pattern companion.

Chapter Overview

Cybersecurity LLM deployment is dual-use by definition: every blue-team capability has a red-team counterpart. This chapter walks the defensive use cases (SOC alert triage, phishing analysis, code review, postmortems, detection-as-code), the offensive use cases (phishing content, vulnerability research acceleration, malware adaptation) that defenders need to understand, the LLM-specific attack surface (OWASP Top 10, MITRE ATLAS, prompt injection, training-data poisoning, membership inference, model extraction), the trust-boundary patterns (input classification, output filtering, tool-call sandboxing, authorization), and the vendor landscape plus canonical sources.

Cybersecurity is the industry where LLMs amplify both attackers and defenders. This chapter teaches what 2026 settled about LLMs in blue-team and red-team work.

Note: Learning Objectives

Sections in This Chapter

Prerequisites

What Comes Next

Cybersecurity established the trust-boundary pattern that Chapter 72 on government extends to a setting where the auditability and accountability requirements are imposed by administrative law rather than by an examination regime.

Further Reading

Prompt Injection & LLM Attack Surface

Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023). "Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection." AISec Workshop at CCS. arXiv:2302.12173. The canonical paper that formalized indirect prompt injection, the defining attack class for LLM-integrated applications.
Zou, A., Wang, Z., Carlini, N., Nasr, M., Kolter, J. Z., & Fredrikson, M. (2023). "Universal and Transferable Adversarial Attacks on Aligned Language Models." arXiv preprint. arXiv:2307.15043. The GCG paper that established transferable adversarial suffixes, the reference attack red-teaming pipelines reproduce.

Security Operations & Code Analysis

Pearce, H., Tan, B., Ahmad, B., Karri, R., & Dolan-Gavitt, B. (2023). "Examining Zero-Shot Vulnerability Repair with Large Language Models." S&P. arXiv:2112.02125. The IEEE S&P study that quantified LLM utility for vulnerability repair, foundational for any AppSec-LLM workflow.
OWASP Foundation (2025). "OWASP Top 10 for Large Language Model Applications." OWASP Project. owasp.org. The de-facto reference taxonomy of LLM application risks (prompt injection, training-data poisoning, supply-chain), the standard checklist for LLM-product threat modeling.