Automating the Security Lifecycle with Large Language Models

This direction is split into other directions: security analysis scalability. Its last version stays readable and citable here.

Version 1 of 1321 papers330 conceptsfrozen 2026-10-04

The traditional cybersecurity workflow is defined by a "manual bottleneck." Historically, tasks like reverse engineering binaries, reproducing vulnerabilities from text reports, and crafting patches have been treated as a "dark art" reserved for elite experts. As Insu Yun and Taesoo Kim note in their work on heap exploitation, this reliance on human intuition prevents security measures from scaling alongside the exponential growth of modern software.

Recent research is shifting this paradigm by using Large Language Models (LLMs) and agentic frameworks to automate the entire security lifecycle—from the initial discovery of a flaw to the generation of a verified patch.

Bridging the Semantic Gap in Vulnerability Reproduction

The most significant hurdle in security response is the gap between a vulnerability disclosure (often a vague text description) and a working Proof-of-Concept (PoC) exploit. Defenders need PoCs to verify that a vulnerability is "reachable" and to test their defenses, but manually building them is slow.

Researchers like Wenjia Song and Na Meng have shown that LLMs like GPT-4 can bridge this gap by synthesizing code context with exemplar tests to generate exploits for third-party libraries. This works because LLMs excel at "migrating" logic from one context to another. For instance, the VESTA framework by Zirui Chen and David Lo automatically adapts known library exploits into project-specific test cases, achieving a 71.7% success rate in reproduction.

To handle the complexity of real-world bugs, researchers are moving toward multi-agent systems. Saad Ullah and colleagues developed CVE-GENIE, which uses "Developer-Critic" loops. In this setup, one agent attempts to write an exploit while another agent—the critic—attempts to run it in a containerized environment and provides feedback on why it failed. This iterative reasoning allows the system to reproduce over half of recent real-world vulnerabilities at a fraction of the cost of human labor.

Automating Static and Dynamic Discovery

Beyond reproducing known bugs, automation is transforming how we find new ones. Traditional static analysis requires experts to manually write "rules" or "queries" to find buggy patterns. This is slow and error-prone.

The MoCQ framework by Penghui Li and Yinzhi Cao automates this by using LLMs to generate code queries. By combining the semantic reasoning of LLMs with the formal rigor of symbolic analysis, they can uncover zero-day vulnerabilities without needing a human to define the bug pattern first. Similarly, Wasuwee Sodsong and Bernhard Scholz demonstrated with SPARK that machine learning can learn these analysis rules directly from code examples, translating them into human-readable symbolic rules.

In the realm of dynamic testing (fuzzing), the bottleneck is often the "seed corpus"—the initial set of files used to stress-test a program. SeedAIchemy uses LLMs not to write the files themselves, but to brainstorm diverse search queries that mine the internet for real-world, complex inputs. This approach achieves expert-level performance in vulnerability discovery for "pennies in API costs."

Scaling Reverse Engineering and Documentation

A major portion of a security professional's time is spent on "triage"—understanding what a piece of code does or why a report is relevant. LLMs are now being used to automate these interpretive tasks:

  • Binary Analysis: Meet Udeshi and Prashanth Krishnamurthy developed a framework to summarize differences between software binaries. By calculating a Functional Sensitivity Score (FSS), their system can automatically flag suspicious changes, such as the backdoors found in the XZ Utils attack.
  • Threat Intelligence: Tools like GENTTP extract Tactics, Techniques, and Procedures (TTPs) from malware in a zero-shot fashion, allowing researchers to analyze thousands of malicious packages at a scale impossible for human teams.
  • Taxonomy Generation: Yang Zhang and Wenyi Ouyang created CryMisTa, which uses LLMs to automatically classify cryptographic API misuses. Their system discovered 36 categories of errors that previous expert-led taxonomies had missed.

The Path to Autonomous Repair

The final stage of the lifecycle is repair. While Benjamin Tan and Hammond Pearce found that "off-the-shelf" models struggle with the complexity of historical real-world vulnerabilities, specialized frameworks are closing the gap.

For example, SPIDER by Aravind Machiry and Giovanni Vigna uses static analysis to identify "safe patches"—fixes that can be propagated across software forks without breaking functionality. In specialized domains like 5G, Rupam Patir and Haipeng Cai have shown that combining Chain-of-Thought prompting with domain-specific security properties allows LLMs to successfully detect and patch critical bugs that traditional tools miss.

As Zhiwei Fu and Steven H. H. Ding conclude in their systematization of the field, LLMs are rapidly evolving from simple assistants into professional-grade tools capable of automating the most labor-intensive aspects of cybersecurity.

Papers in this version

Showing 60 of 321 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_automating_the_security_lifecycle_with_l_98cd3e63,
  title = {Automating the Security Lifecycle with Large Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automating-the-security-lifecycle-with-large-language-models/rdr_98cd3e63daba41e699baf5a7ad340423},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_automating_the_security_lifecycle_with_l_98cd3e63_v1,
  title = {Automating the Security Lifecycle with Large Language Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automating-the-security-lifecycle-with-large-language-models/rdr_98cd3e63daba41e699baf5a7ad340423/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}