En este modulo

  1. The modern SOC: why it needs AI
  2. AI-integrated SOC pipeline
  3. Automated alert triage
  4. Detection engineering with LLMs
  5. False positive reduction
  6. SOAR integration
  7. Intelligent playbooks
  8. Reference architecture
  9. Ejercicio practico
  10. Puntos clave

The modern SOC: why it needs AI

An average SOC receives between 5,000 and 50,000 alerts daily. A Tier 1 analyst can review between 20 and 40 per hour if they are fast. The math does not add up. The result is predictable: alert fatigue, false positives being ignored, real incidents slipping through the noise unnoticed.

AI is not here to replace the analyst. It is here to eliminate the repetitive work that exhausts them. A well-trained model can classify an alert in milliseconds, automatically enrich IOCs and propose a verdict that the human analyst validates or corrects. This transforms the Tier 1 analyst from a ticket operator into a real analyst.

The three waves of AI in the SOC

The evolution of AI in security operations has followed three clear phases:

Key fact

According to the SANS SOC Survey 2025, SOCs that implemented AI for triage reduced their MTTR (Mean Time To Respond) by 63% and Tier 1 analyst burnout by 41%. The key was not the technology, but how they integrated it into the existing workflow.

AI-integrated SOC pipeline

An AI-integrated SOC pipeline is not a model that receives alerts and returns verdicts. It is a processing chain where each phase has its role and its appropriate model.

Phase 1: Ingestion and normalization

Alerts arrive from multiple sources: SIEM (Splunk, Elastic, Sentinel), EDR (CrowdStrike, SentinelOne), NDR (Darktrace, Vectra), firewalls, proxies, cloud logs. Each source has its own format. The first step is to normalize to a common schema.

Here AI helps with NER (Named Entity Recognition) to extract IOCs from unstructured alerts and with source classification to automatically tag the origin and event type.

Phase 2: Automatic enrichment

Each alert is enriched with external and internal context: IP reputation (VirusTotal, AbuseIPDB, OTX), geolocation, blocklist membership, user history in Active Directory, vulnerabilities of the affected asset.

An LLM can synthesize all this enrichment into a readable paragraph instead of forcing the analyst to review 6 different tabs.

Phase 3: Classification and prioritization

The model classifies the alert by severity (critical, high, medium, low, informational) and by type (malware, phishing, lateral movement, data exfiltration, policy violation). Additionally, it assigns a confidence score indicating how much to "trust" the automated verdict.

Phase 4: Decision and response

Based on the confidence score and severity, the alert follows one of three paths: auto-close (false positive with high confidence), escalation to Tier 2/Tier 3 (critical or low confidence), or automated playbook execution (known action with high confidence).

Automated alert triage

Automated triage is the use case with the highest immediate ROI. A Tier 1 analyst spends 70% of their time deciding whether an alert is a false positive or requires investigation. A model trained on the SOC's historical data can make that decision in milliseconds.

Triage model architecture

The most effective approach combines a fast classifier with an LLM for ambiguous cases:

# Pseudocode of the triage pipeline
def triage_alert(alert: Alert) -> TriageResult:
    # Step 1: Fast classifier (XGBoost or similar)
    quick_score = fast_classifier.predict(alert.features)

    if quick_score > 0.95:  # High confidence: false positive
        return TriageResult(verdict="FP", confidence=quick_score, auto_close=True)

    if quick_score < 0.20:  # High confidence: true positive
        return TriageResult(verdict="TP", confidence=1-quick_score, escalate=True)

    # Step 2: Gray zone -> LLM analyzes full context
    context = enrich_alert(alert)
    llm_analysis = llm.analyze(
        system_prompt=SOC_ANALYST_PROMPT,
        alert_data=alert.to_dict(),
        enrichment=context,
        historical_similar=find_similar_alerts(alert, top_k=5)
    )

    return TriageResult(
        verdict=llm_analysis.verdict,
        confidence=llm_analysis.confidence,
        explanation=llm_analysis.reasoning,
        recommended_actions=llm_analysis.actions
    )

The fast classifier (XGBoost, LightGBM) handles 70-80% of alerts. These are the obvious ones: known port scans, commodity malware signatures, failed logins from bots. The LLM is reserved for the ambiguous 20-30%, where context matters.

Features for the fast classifier

The most discriminative features for a SOC triage model are:

Common pitfall

Do not train the model only with alerts closed as "false positive." The SOC has a survivorship bias: alerts that were ignored and turned out to be real incidents were never labeled as true positives. You need to include data from confirmed incidents from the response team.

Detection engineering with LLMs

Detection engineering is the discipline of creating, maintaining and optimizing the SOC's detection rules. Traditionally it is a manual, slow and error-prone process. An analyst reads a threat report, extracts the techniques, and writes Sigma rules or KQL queries.

LLMs can accelerate every step of this process:

From threat report to detection rule

Given a threat report (blog, advisory, paper), an LLM can:

  1. Extract the MITRE ATT&CK techniques mentioned or implied.
  2. Identify IOCs (hashes, IPs, domains, paths, registry keys).
  3. Generate Sigma rules in standard format.
  4. Propose hunting queries for Splunk, Elastic or Sentinel.
# Example: prompt to generate a Sigma rule from a report
DETECTION_ENGINEER_PROMPT = """
You are a senior detection engineer. Given the following threat report,
generate Sigma rules that detect the described techniques.

Requirements:
- Valid Sigma v2 format (YAML)
- Include fields: title, status, description, author, date, logsource, detection, level
- Map to MITRE ATT&CK (tags)
- Minimize false positives with specific conditions
- Include falsepositive section with known scenarios

Report:
{threat_report}

Generate the Sigma rules:
"""

Automated rule validation

An LLM can also review existing rules to detect issues:

Rule testing with synthetic data

Before deploying a new rule, you need to test it. An LLM can generate synthetic events that should trigger the rule (true positives) and similar events that should not (true negatives). This allows calculating expected precision before putting it in production.

False positive reduction

False positives are the SOC's cancer. A false positive ratio of 95% (common in many SOCs) means that out of every 100 alerts, 95 are noise. The analyst learns to ignore alerts, and when the real one comes, they ignore it too.

AI-driven reduction strategies

1. Automated feedback loop. Every time an analyst closes an alert as a false positive, that decision feeds the model. Over time, the model learns the patterns specific to that organization's environment.

2. Intelligent allowlisting. Instead of static allowlists (which rot over time), a model learns that "the backup server makes connections to these 15 external IPs every night at 3AM" and stops alerting on that specific pattern.

3. Temporal correlation. An isolated "failed login" alert is noise. Three failed logins followed by a successful login from another IP within 10 minutes is an attack. An LLM can narrate this correlation and explain why the combination is suspicious even though each individual event is not.

4. Business context. Deploying a new application generates hundreds of "unknown new process" alerts. Without business context, the SOC investigates each one. With CMDB integration and the change calendar, the model knows it is a planned deployment.

SOAR integration

SOAR (Security Orchestration, Automation and Response) is the execution engine. The SIEM detects, the SOAR acts. AI connects both: it decides what action to execute and when.

Popular SOAR platforms

AI + SOAR integration pattern

# Typical flow: alert -> AI -> SOAR
1. SIEM generates alert
2. AI classifies and enriches (triage model)
3. If confidence > threshold:
   a. AI selects appropriate playbook
   b. SOAR executes playbook (IP block, endpoint isolation, etc.)
   c. AI generates incident report
4. If confidence < threshold:
   a. AI generates enriched summary
   b. Escalates to human analyst with full context
   c. Human decision feeds the model (feedback loop)

High-confidence automatable actions

HITL (Human-In-The-Loop) Principle

Never automate destructive actions without human oversight. Isolating a critical production server can cause more damage than the incident itself. AI recommends, the human approves. At least until the model has demonstrated >99% accuracy for that specific decision type.

Intelligent playbooks

Traditional playbooks are static decision trees: "if X, then Y." Intelligent playbooks use AI to adapt the response to the context.

Key differences

Traditional playbookIntelligent playbook
Fixed decision treeAdaptive decision based on context
Same response for all variantsResponse calibrated by asset criticality
Requires constant manual maintenanceLearns from analyst feedback
Does not explain why it makes each decisionGenerates narrative explanation for each step
Fails silently on unforeseen casesEscalates to human when confidence is low

Example: phishing playbook with AI

# Intelligent playbook: phishing detected
def phishing_playbook(alert, context):
    # 1. AI analyzes the email
    analysis = llm.analyze_email(
        headers=alert.email_headers,
        body=alert.email_body,
        attachments=alert.attachments,
        sender_reputation=context.sender_score
    )

    # 2. Determine scope
    recipients = email_gateway.find_recipients(alert.message_id)
    clicked = [r for r in recipients if r.clicked_link]

    # 3. Adaptive response
    if analysis.is_targeted_spearphishing:
        # Targeted spearphishing: escalate to Tier 3 + CTI
        escalate_to_n3(alert, analysis)
        notify_cti_team(analysis.threat_actor_indicators)
    elif len(clicked) > 10:
        # Mass campaign with clicks: rapid response
        quarantine_email(alert.message_id)
        block_sender(alert.sender)
        reset_credentials(clicked)
        notify_users(recipients, template="phishing_alert")
    else:
        # Phishing blocked, no clicks: log and close
        quarantine_email(alert.message_id)
        log_iocs(analysis.iocs)
        auto_close(alert, reason=analysis.summary)

Reference architecture

An AI-integrated SOC architecture has these components:

Data layer

Model layer

Orchestration layer

Sovereignty considerations

In regulated environments (ENS, NIS2, DORA), SOC data cannot leave controlled infrastructure. This implies:

Ejercicio practico

Ejercicio TS01: Design your AI SOC pipeline
  1. Choose a SIEM (Elastic, Splunk or Sentinel) and an EDR (CrowdStrike, SentinelOne or Defender) as alert sources.
  2. Define 5 alert types your SOC receives most frequently (e.g., failed login, port scan, suspicious execution, known C2 connection, data exfiltration).
  3. For each type, classify: can it be auto-closed with high confidence? Does it always require human review? Can the response be automated?
  4. Write a system prompt for an LLM acting as a Tier 1 analyst in your SOC. Include: organization context, expected alert types, escalation criteria, output format.
  5. Design a feedback flow: how does your system capture the human analyst's corrections to improve the model?
  6. Bonus: implement a prototype with a local LLM (Ollama + Qwen) that receives an alert in JSON and returns a verdict with explanation.

Puntos clave

Puntos clave from TS01

  1. AI in the SOC does not replace analysts: it eliminates repetitive work and lets them focus on what matters.
  2. The optimal pipeline combines a fast classifier (70-80% of alerts) with an LLM for ambiguous cases (20-30%).
  3. Detection engineering with LLMs accelerates the cycle from threat report to deployed rule from days to hours.
  4. False positives are reduced with feedback loops, intelligent allowlisting, temporal correlation and business context.
  5. HITL principle: AI recommends, the human approves destructive actions. Always.
  6. In regulated environments, models must be self-hosted and data cannot leave controlled infrastructure.
Guia de estudio — Conceptos clave de TS01

El SOC moderno: por que necesita IA

  • Ola 1: Reglas y firmas (2000-2015).SIEM con correlacion basica. Reglas Sigma, YARA. Eficaz contra amenazas conocidas, inutil contra tecnicas nuevas. La carga de mantenimiento de reglas crece exponencialmente.
  • Ola 2: Machine learning clasico (2015-2023).Deteccion de anomalias con modelos supervisados y no supervisados. Random forests para clasificacion de alertas. UEBA (User and Entity Behavior Analytics). Problema: requiere features engineering manual y los modelos se degradan rapido.
  • Ola 3: LLMs y agentes (2023-presente).Modelos de lenguaje que entienden contexto, correlacionan eventos narrativamente y generan explicaciones legibles. Agentes autonomos que ejecutan playbooks. El analista supervisa en vez de ejecutar.
  • Dato clave: Segun el informe SANS SOC Survey 2025, los SOC que implementaron IA para triaje redujeron su MTTR (Mean Time To Respond) en un 63% y el burnout de analistas N1 en un 41%. La clave no fue la tecnologia, sino como la integraron en el flujo existente.

Triaje automatizado de alertas

  • Historicas:numero de veces que esta regla ha generado falsos positivos, ratio TP/FP de la fuente, frecuencia de la alerta en las ultimas 24h.
  • Contextuales:criticidad del activo afectado, horario del evento (vs horario laboral), geolocalizacion del origen vs pais de operacion.
  • Tecnicas:tipo de protocolo, puertos involucrados, payload size, user-agent, TLS version.
  • De usuario:rol del usuario, departamento, patron de comportamiento habitual, si esta de viaje o vacaciones.
  • Trampa comun: No entrenes el modelo solo con alertas cerradas como "falso positivo". El SOC tiene un sesgo de supervivencia: las alertas que se ignoraron y resultaron ser incidentes reales nunca se etiquetaron como verdaderos positivos. Necesitas incluir datos de incidentes confirmados del equipo de respuesta.

Detection engineering con LLMs

  • Extraer las tecnicas MITRE ATT&CK mencionadas o implicadas.
  • Identificar los IOCs (hashes, IPs, dominios, paths, registry keys).
  • Generar reglas Sigma en formato estandar.
  • Proponer queries de hunting para Splunk, Elastic o Sentinel.
  • Formato Sigma v2 valido (YAML)
  • Incluir campos: title, status, description, author, date, logsource, detection, level

Reduccion de falsos positivos

  • Cada vez que un analista cierra una alerta como falso positivo, esa decision alimenta al modelo. Con el tiempo, el modelo aprende los patrones del entorno especifico de esa organizacion.
  • En vez de allowlists estaticas (que se pudren con el tiempo), un modelo aprende que "el servidor de backup hace conexiones a estas 15 IPs externas cada noche a las 3AM" y deja de alertar sobre ese patron especifico.
  • Una alerta aislada de "login fallido" es ruido. Tres logins fallidos seguidos de un login exitoso desde otra IP en 10 minutos es un ataque. Un LLM puede narrar esta correlacion y explicar por que el conjunto es sospechoso aunque cada evento individual no lo sea.
  • El deploy de una nueva aplicacion genera cientos de alertas de "nuevo proceso desconocido". Sin contexto de negocio, el SOC investiga cada una. Con integracion al CMDB y al calendario de cambios, el modelo sabe que es un deploy planificado.

Integracion con SOAR

  • Palo Alto XSOAR (Cortex):el mas maduro, con marketplace de integraciones y playbooks predefinidos. Caro, pero completo.
  • Splunk SOAR (Phantom):integracion nativa con Splunk. Buena opcion si tu SIEM ya es Splunk.
  • Tines:no-code SOAR con tier gratuito. Ideal para equipos pequenos que quieren automatizar sin programar.
  • Shuffle:SOAR open source. Limitado pero suficiente para empezar.
  • Bloqueo de IP en firewall perimetral (si la IP tiene reputacion maliciosa confirmada en 3+ fuentes).
  • Aislamiento de endpoint via EDR (si se detecta ejecucion de ransomware con firma conocida).

Arquitectura de referencia

  • Data lake de seguridad:todos los logs normalizados en un formato comun (ECS, OCSF). Almacenamiento en caliente (30 dias), tibio (90 dias), frio (1 anio).
  • Vector store:embeddings de alertas pasadas y su resolucion, para buscar alertas similares historicas.
  • Knowledge base:documentacion interna, runbooks, politicas de seguridad indexadas para que el LLM las consulte.
  • Clasificador rapido:XGBoost/LightGBM para triaje de alto volumen. Latencia<50ms.
  • LLM de analisis:modelo 7B-27B para analisis contextual de alertas ambiguas. Self-hosted para soberania de datos.
  • Modelo de anomalias:autoencoder o isolation forest para UEBA. Detecta desviaciones del comportamiento normal.

Siguiente: TS02 - AI for CTI

Now that you know how AI transforms the SOC, let us see how it powers threat intelligence: feeds, IOC correlation, MITRE ATT&CK mapping and actor profiling.

Ir al modulo TS02