Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.3 KB
Raw Blame
id: critical-vulnerability-response-v1
name: Critical Vulnerability Response
description: >
  Responds to critical CVEs (CVSS >= 9.0) affecting production systems.
  Triggers emergency patch workflows, scans for exploitation indicators,
  applies virtual patching via WAF/IPS where possible, and escalates to
  the vulnerability management team with a remediation deadline.
version: "1.0.0"
author: Beenu - [email protected]
enabled: true
tags:
  - vulnerability
  - cve
  - patch-management
  - critical
  - vuln-management

trigger:
  on: alert
  severity:
    - critical
  tags:
    - critical-vuln

steps:
  - id: enrich-vuln
    name: Enrich Vulnerability Details
    type: enrich
    params:
      source: vuln_scanner
      fields:
        - cve_id
        - cvss_score
        - cvss_vector
        - affected_hosts
        - affected_services
        - exploit_available
        - patch_available
        - vendor_advisory
        - asset_criticality
    timeout_seconds: 30
    on_failure: continue

  - id: investigate-exploitation
    name: Check for Active Exploitation Evidence
    type: investigate
    params:
      query: >
        exploit_attempts cve={{ alert.cve_id }}
        last_hours=72
      context_fields:
        - alert.cve_id
        - alert.affected_hosts
        - alert.exploit_available
    timeout_seconds: 60
    on_failure: continue

  - id: check-exploit-available
    name: Check If Exploit Is Publicly Available
    type: condition
    condition:
      field: alert.exploit_available
      operator: eq
      value: true
    next_true: apply-virtual-patch
    next_false: notify-vuln-team

  - id: apply-virtual-patch
    name: Apply Virtual Patch via WAF/IPS
    type: http
    params:
      method: POST
      url: "{{ env.WAF_API_URL }}/virtual-patches"
      body:
        cve_id: "{{ alert.cve_id }}"
        affected_hosts: "{{ alert.affected_hosts }}"
        action: block
        comment: "Virtual patch — {{ alert.cve_id }} CVSS={{ alert.cvss_score }}"
    timeout_seconds: 30
    on_failure: continue

  - id: notify-vuln-team
    name: Notify Vulnerability Management Team
    type: notify
    params:
      channel: "#vuln-management"
      message: |
        🚨 *Critical Vulnerability Detected*
        CVE: `{{ alert.cve_id }}`
        CVSS: `{{ alert.cvss_score }}`
        Affected Hosts: {{ alert.affected_hosts }}
        Exploit Available: {{ alert.exploit_available }}
        Patch Available: {{ alert.patch_available }}
        Virtual patch applied: {{ steps.apply-virtual-patch.status }}

        Advisory: {{ alert.vendor_advisory }}
        SLA: Patch within 24 hours (production systems)
    timeout_seconds: 20
    on_failure: continue

  - id: create-ticket
    name: Create Critical Vulnerability Ticket
    type: create_ticket
    params:
      title: "VULN: {{ alert.cve_id }} (CVSS {{ alert.cvss_score }}) — {{ alert.affected_hosts }} hosts"
      severity: P1
      assignee_group: vuln-management
      tags:
        - critical-cve
        - patch-required
        - 24h-sla
    timeout_seconds: 30
    on_failure: continue

  - id: close-case
    name: Close Vulnerability Response Case
    type: close_case
    params:
      status: under-investigation
      resolution: "Virtual patch applied; vuln team notified; 24h patch SLA initiated."
    timeout_seconds: 15
    on_failure: continue