Skip to content
Enrique Tomás Martínez Beltrán
HomeResearchPublicationsTopicsTeachingBlog
Contact
EN/ES
HomeResearchPublicationsTopicsTeachingBlogContact
EN/ES

Enrique Tomás Martínez Beltrán

Postdoctoral research in AI, cybersecurity and federated learning, spanning threat analysis, closed-loop cyberdefense and trustworthy decentralized learning.

  • Privacy Policy
  • Terms of Service
  • Accessibility Statement
  • Google Scholaropens in a new tab
  • ORCIDopens in a new tab
  • LinkedInopens in a new tab
  • GitHubopens in a new tab
All profiles
  • ResearchGateopens in a new tab
  • Scopusopens in a new tab
  • DBLPopens in a new tab
  • Web of Scienceopens in a new tab

Enrique Tomás Martínez Beltrán. All rights reserved.

Back to top

This site loads optional analytics from Google and external analytics providers only if you accept. You can decline and continue using the site normally.

  1. Home
  2. Research Notes on Federated Learning, Cybersecurity and Cyberdefense
  3. Large Language Models for Cybersecurity: A Careful Starting Point
Large Language ModelsLLMsCybersecurityThreat IntelligenceTrustworthy AI

Large Language Models for Cybersecurity: A Careful Starting Point

Where LLMs help analysts, where they fail, and how to design evidence-first workflows

Enrique Tomás Martínez Beltrán

Postdoctoral Researcher in Computer Science

August 13, 20269 min read
  • LinkedInopens in a new tab
  • Xopens in a new tab
Large Language Models for Cybersecurity: A Careful Starting Point

Large language models are becoming useful in cybersecurity, but their value is easy to misstate. They can summarize evidence, map incident language to a shared vocabulary, draft queries for an analyst and expose connections across long reports. They do not automatically know whether a security claim is true, current or safe to act on.

The most useful starting point is to assign the model a bounded role in a workflow whose evidence and authority remain visible.

1. Where an LLM can help

An LLM can support several parts of a security operation:

  • translating alerts into an analyst-readable incident summary,
  • extracting entities, indicators and relationships from reports,
  • proposing search queries for threat-intelligence repositories,
  • comparing an alert with approved playbooks,
  • asking for missing context before a response is proposed,
  • drafting a post-incident report with links to its evidence.

These roles are assistive. They are strongest when the output is a structured intermediate artifact rather than an opaque final decision.

2. Why cybersecurity is a difficult domain

Security data is heterogeneous, time-sensitive and adversarial. A hostname can be benign in one environment and suspicious in another. An indicator may be obsolete. A report may describe a possibility rather than an observed fact. Prompt injection can also arrive through the very documents the model is asked to summarize.

For that reason, the context sent to the model should preserve provenance:

ei=(xi,si,ti,ci,qi),e_i = (x_i, s_i, t_i, c_i, q_i),ei​=(xi​,si​,ti​,ci​,qi​),

where xix_ixi​ is the observation, sis_isi​ its source, tit_iti​ its time window, cic_ici​ its local context and qiq_iqi​ a quality or confidence signal. A prose answer without this tuple is difficult to audit.

3. A safer interaction contract

An operational prompt should define what the model may do and what it must not do. It should require:

  1. a separation between observed facts and hypotheses;
  2. citations or identifiers for every material claim;
  3. an explicit uncertainty statement when evidence is incomplete;
  4. no execution of commands or policy changes without an external approval step;
  5. a machine-readable record of the request, context and response.

This contract is more important than a clever prompt. It makes the model one component of a controlled system instead of an unreviewable operator.

4. Evaluation beyond fluent text

Fluency is not a security metric. Evaluation should test whether the model preserves indicators, avoids inventing attack stages, distinguishes a recommendation from an action and remains useful when the evidence is contradictory.

For a response yyy and evidence set EEE, a simple evaluation record can combine task utility and evidence discipline:

J(y,E)=λuU(y)+λgG(y,E)−λhH(y)−λaA(y),J(y,E) = \lambda_u U(y) + \lambda_g G(y,E) - \lambda_h H(y) - \lambda_a A(y),J(y,E)=λu​U(y)+λg​G(y,E)−λh​H(y)−λa​A(y),

where UUU measures usefulness, GGG grounding, HHH unsupported claims and AAA unsafe authority. The terms should be measured separately, not hidden behind a single score.

5. A practical first deployment

Start with a read-only assistant for a narrow queue. Store the input evidence, retrieved documents, model version, response and analyst correction. Review failures weekly and expand the role only when the correction pattern is understood.

The goal is not to make the LLM sound like an expert. It is to make the analyst's reasoning faster while keeping the evidence, uncertainty and decision authority inspectable.

This note is an original synthesis of LLM-for-security design principles.

Further reading

  • A Survey of Large Language Models in Cybersecurity
  • Large Language Models for Cyber Security: A Systematic Literature Review

Related Research

Autonomous Cyberdefense Needs More Than an LLM

August 13, 2026

Autonomous Cyberdefense Needs More Than an LLM

How to frame autonomous cyberdefense as a bounded control loop with evidence, policies, recovery paths and accountable human intervention.

Retrieval-Augmented Generation for Cybersecurity Workflows

August 13, 2026

Retrieval-Augmented Generation for Cybersecurity Workflows

A grounded introduction to RAG for threat intelligence, incident analysis and cyberdefense, including retrieval quality, provenance and failure modes.