Back to Intelligence

CISA Warns of Agentic Offensive Frameworks (ARTEX, Cairn, PentAGI, HexStrike): Detection and Defense Guide

SA
Security Arsenal Team
November 30, 2026
12 min read

On November 30, 2026, CISA published an alert that should be on every SOC lead's reading list this week: Defending Against Malicious Use of Agentic Offensive Frameworks. CISA has observed — and responded to — numerous incidents across Federal Civilian Executive Branch (FCEB) agencies, state, local, tribal, and territorial (SLTT) governments, and critical infrastructure organizations in which threat actors used agentic offensive frameworks (AOFs) to increase the speed and scale of intrusions relative to traditional offensive cyber campaigns.

Named frameworks include ARTEX, Cairn, PentAGI, HexStrike, and Cyber Strike AI — large language model (LLM)-driven offensive frameworks that use autonomous agents to execute stages of the attack lifecycle with minimal human involvement. Reconnaissance, vulnerability scanning, exploitation attempts, and post-exploitation tasking can now be orchestrated at machine speed by an agent loop rather than typed by a human operator.

Here is the single most important sentence in the CISA alert, and the one your detection strategy should be built around: AOFs do not change the tactics, techniques, and procedures — the defensive indicators — that cyber threat actors use. The attacker is still running nmap. Still spraying credentials. Still executing standard exploitation tooling. What changed is the tempo. An intrusion that used to unfold over days can now compress into minutes. Your detections still work — but your mean time to detect and respond is now the weakest link.

Technical Analysis

What AOFs actually are

Agentic offensive frameworks wrap an LLM reasoning loop around conventional offensive tooling. Frameworks like HexStrike and PentAGI use an orchestration layer — frequently built on the Model Context Protocol (MCP) or similar agent-to-tool plumbing — to dynamically select, parameterize, and execute well-known security tools based on the output of previous steps. The LLM decides what to run next; the underlying binaries are the same scanners and exploit tools defenders have been detecting for years.

A typical AOF-driven intrusion chain, from the defender's side of the glass:

  1. Automated reconnaissance — High-velocity port and service scanning, web content discovery, and technology fingerprinting, with the agent adapting scan parameters based on initial responses.
  2. Vulnerability triage at scale — Mass template-based scanning (nuclei-style), automated exploit matching against identified versions, and parallelized testing of many targets simultaneously.
  3. Exploitation — Execution of public PoCs and exploitation frameworks, selected and tuned by the agent without human review.
  4. Post-exploitation and credential access — Automated password spraying, hash dumping, and brute-force tooling launched immediately upon initial access.
  5. Iterative pivoting — The agent loops: enumerate, select next action, execute, parse output, repeat — with cycle times measured in seconds rather than the hours a human operator needs.

Exploitation status

This is not theoretical. Per CISA, AOF-enabled malicious activity has been observed and responded to in confirmed incidents across FCEB, SLTT, and critical infrastructure sectors as of November 2026. Because these frameworks are largely open or semi-open tooling, barrier to entry is low and adoption across threat actor tiers should be assumed. There is no single CVE to patch here — the exposure is your organization's attack surface being worked at machine speed, around the clock.

Why tempo is the real story

Traditional SOC tuning assumes human-paced adversaries: an alert fires, an analyst triages within minutes-to-hours, containment follows. AOFs collapse the window between initial recon and exploitation to the point where an alert-to-containment time of even 30 minutes may mean the agent has already completed exploitation, credential access, and lateral movement planning. The defensive implications:

  • Pre-execution prevention matters more. You cannot out-respond a machine; you must deny it the foothold.
  • Burst/velocity detection matters more. AOFs produce distinctive temporal signatures — many offensive actions in unnaturally tight succession from a single source.
  • LLM egress is a new observable. Agent frameworks frequently phone home to LLM API endpoints. On servers and network infrastructure, that traffic has almost no legitimate business justification.

Detection & Response

The detections below target the observable mechanics of AOF operation: offensive tool execution at machine tempo, agent runtime processes in suspicious contexts, and egress to LLM API infrastructure from systems that should never talk to it. Tune the allowlists to your authorized red team and vulnerability management tooling before deployment — otherwise your own scanners will page you at 3 AM.

SIGMA

YAML
---
title: Rapid Offensive Tool Execution Chain - Agentic Framework Behavior
title_note: Detects machine-tempo execution of multiple offensive tools on one host
id: 3f8a1c24-7b9d-4e51-a6f2-9d0e1b2c3d4e
status: experimental
description: Detects execution of reconnaissance, exploitation, or credential-attack tooling commonly orchestrated by agentic offensive frameworks (HexStrike, PentAGI, Cyber Strike AI) from non-standard parent processes or user-writable paths. AOFs run these tools via Python/Node agent runtimes rather than interactive shells.
references:
  - https://www.cisa.gov/news-events/alerts/2026/11/30/defending-against-malicious-use-agentic-offensive-frameworks
  - https://attack.mitre.org/techniques/T1046/
  - https://attack.mitre.org/techniques/T1059/006/
author: Security Arsenal
date: 2026/11/30
tags:
  - attack.discovery
  - attack.t1046
  - attack.execution
logsource:
  category: process_creation
  product: windows
detection:
  selection_tools:
    Image|endswith:
      - '\nmap.exe'
      - '\nuclei.exe'
      - '\sqlmap.exe'
      - '\hydra.exe'
      - '\nikto.exe'
      - '\ffuf.exe'
      - '\gobuster.exe'
      - '\masscan.exe'
      - '\crackmapexec.exe'
      - '\netexec.exe'
      - '\metasploit\framework\'
  selection_suspicious_context:
    ParentImage|endswith:
      - '\python.exe'
      - '\python3.exe'
      - '\node.exe'
      - '\pwsh.exe'
    Image|contains:
      - '\AppData\Local\Temp\'
      - '\ProgramData\'
      - '\Users\Public\'
  condition: selection_tools and selection_suspicious_context
falsepositives:
  - Authorized penetration testing and red team operations using scripted tooling
  - Vulnerability management platforms executing checks from agent directories
level: high
---
title: Egress to LLM API Endpoints from Server or Non-Browser Process
id: 8c2e4f61-3a7b-4d95-b1e8-5f6a7b8c9d0e
status: experimental
description: Detects network connections from server processes, scripting runtimes, or other non-browser executables to public LLM API endpoints. Agentic offensive frameworks maintain persistent API sessions for agent reasoning loops; legitimate LLM API use on servers is rare and should be explicitly inventoried.
references:
  - https://www.cisa.gov/news-events/alerts/2026/11/30/defending-against-malicious-use-agentic-offensive-frameworks
  - https://attack.mitre.org/techniques/T1071/001/
  - https://attack.mitre.org/techniques/T1102/
author: Security Arsenal
date: 2026/11/30
tags:
  - attack.command_and_control
  - attack.t1071.001
logsource:
  category: network_connection
  product: windows
detection:
  selection_destination:
    DestinationHostname|contains:
      - 'api.openai.com'
      - 'api.anthropic.com'
      - 'api.deepseek.com'
      - 'generativelanguage.googleapis.com'
      - 'api.mistral.ai'
      - 'openrouter.ai'
      - 'api.groq.com'
  selection_initiator:
    Image|endswith:
      - '\python.exe'
      - '\python3.exe'
      - '\node.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\curl.exe'
      - '\svchost.exe'
  filter_browsers:
    Image|endswith:
      - '\chrome.exe'
      - '\msedge.exe'
      - '\firefox.exe'
  condition: selection_destination and selection_initiator and not filter_browsers
falsepositives:
  - Approved internal AI/automation integrations using LLM APIs (inventory and allowlist by process hash and service account)
  - Developer workstations with sanctioned AI tooling
level: medium
---
title: MCP Server or Agent Runtime Spawned with Offensive Tool Arguments
id: 5b1d9e37-2c4a-4f86-a3d7-8e9f0a1b2c3d
status: experimental
description: Detects Python/Node processes loading agent orchestration modules or MCP server components while invoking offensive tooling arguments — a signature of LLM-agent-driven tool orchestration as used by frameworks like HexStrike (MCP-based) and PentAGI.
references:
  - https://www.cisa.gov/news-events/alerts/2026/11/30/defending-against-malicious-use-agentic-offensive-frameworks
  - https://attack.mitre.org/techniques/T1059/006/
author: Security Arsenal
date: 2026/11/30
tags:
  - attack.execution
  - attack.t1059.006
logsource:
  category: process_creation
  product: windows
detection:
  selection_runtime:
    Image|endswith:
      - '\python.exe'
      - '\python3.exe'
      - '\node.exe'
  selection_agent_indicators:
    CommandLine|contains:
      - 'mcp'
      - 'langchain'
      - 'langgraph'
      - 'autogen'
      - 'crewai'
      - 'hexstrike'
      - 'pentagi'
  selection_offensive_args:
    CommandLine|contains:
      - 'nmap'
      - 'nuclei'
      - 'sqlmap'
      - 'hydra'
      - 'nikto'
      - 'exploit'
      - 'reverse shell'
      - 'mimikatz'
  condition: selection_runtime and (selection_agent_indicators or selection_offensive_args)
falsepositives:
  - AI/ML engineering environments running agent frameworks for legitimate development
  - Authorized security automation platforms
level: high

KQL — Microsoft Sentinel / Defender

This query hunts the defining AOF signature: a single device executing an abnormally dense burst of distinct offensive tools within a short window — tempo no human operator sustains — plus a companion query for LLM API egress from servers.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Machine-tempo offensive tooling burst on a single device
let OffensiveTools = dynamic(["nmap.exe","nuclei.exe","sqlmap.exe","hydra.exe","nikto.exe","ffuf.exe","gobuster.exe","masscan.exe","crackmapexec.exe","netexec.exe","mimikatz.exe","msfconsole"]
);
DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where FileName has_any (OffensiveTools) or ProcessCommandLine has_any (OffensiveTools)
| summarize ToolCount = dcount(FileName),
            Tools = make_set(FileName),
            FirstExec = min(TimeGenerated),
            LastExec = max(TimeGenerated)
    by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, AccountName
| extend BurstWindowSeconds = datetime_diff("second", LastExec, FirstExec)
| where ToolCount >= 3 and BurstWindowSeconds <= 300
| project DeviceName, AccountName, InitiatingProcessFileName, ToolCount, BurstWindowSeconds, Tools, FirstExec, LastExec
| order by ToolCount desc;

// Hunt 2: LLM API egress from non-browser processes (agent reasoning-loop callback)
let LLMEndpoints = dynamic(["api.openai.com","api.anthropic.com","api.deepseek.com","generativelanguage.googleapis.com","api.mistral.ai","openrouter.ai","api.groq.com"]
);
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where RemoteUrl has_any (LLMEndpoints)
| where InitiatingProcessFileName !in~ ("chrome.exe","msedge.exe","firefox.exe","brave.exe")
| summarize Connections = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
            Endpoints = make_set(RemoteUrl)
    by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessFolderPath
| where Connections > 20  // Agent loops maintain high API call volume; one-off user queries do not
| order by Connections desc;

Velociraptor VQL

For DFIR triage of a suspected AOF-compromised host, this artifact pulls live processes matching agent-runtime and offensive-tooling patterns, plus resident tool binaries staged in user-writable directories.

VQL — Velociraptor
-- Hunt for agentic offensive framework artifacts: agent runtimes invoking
-- offensive tools, and staged tooling in user-writable paths
LET procs = SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE CommandLine =~ '(?i)(nmap|nuclei|sqlmap|hydra|nikto|ffuf|gobuster|masscan|crackmapexec|netexec|hexstrike|pentagi|mcp.*serv|langchain|autogen)'
   OR Name =~ '(?i)(nmap|nuclei|sqlmap|hydra|nikto|masscan)'

LET staged = SELECT FullPath, Size, Mtime, Ctime
FROM glob(globs=[
  'C:/Users/*/AppData/Local/Temp/**/*.exe',
  'C:/ProgramData/**/*.exe',
  '/tmp/**',
  '/dev/shm/**',
  '/var/tmp/**'
])
WHERE FullPath =~ '(?i)(nmap|nuclei|sqlmap|hydra|nikto|ffuf|gobuster|masscan|crackmapexec|netexec|nc\.exe|ncat|chisel|ligolo)'

SELECT * FROM procs
UNION ALL
SELECT NULL AS Pid, NULL AS Ppid, 'STAGED_BINARY' AS Name,
       FullPath AS Exe, '' AS CommandLine, '' AS Username,
       Mtime AS CreateTime
FROM staged

Remediation / Hardening Script

This PowerShell script performs an authorized-environment audit for staged offensive tooling, inventories outbound LLM API connectivity (for allowlisting), and applies Windows Firewall egress blocks for LLM API endpoints on servers where no sanctioned AI integration exists. Run elevated. Review findings before enabling the block rules.

PowerShell
#Requires -RunAsAdministrator
# Security Arsenal - AOF Exposure Audit & Egress Hardening
# Reference: CISA Alert - Defending Against Malicious Use of Agentic Offensive Frameworks

$report = @()

# 1. Audit for staged offensive tooling in user-writable paths
$toolPattern = 'nmap|nuclei|sqlmap|hydra|nikto|ffuf|gobuster|masscan|crackmapexec|netexec|mimikatz|chisel|ligolo|ncat'
$searchPaths = @("$env:SystemDrive\Users", "$env:ProgramData", "$env:SystemDrive\Windows\Temp")
foreach ($path in $searchPaths) {
    Get-ChildItem -Path $path -Recurse -Include *.exe -ErrorAction SilentlyContinue |
        Where-Object { $_.Name -match $toolPattern } |
        ForEach-Object { $report += [pscustomobject]@{Type='OffensiveTool'; Path=$_.FullName; LastWrite=$_.LastWriteTime} }
}

# 2. Inventory processes with established connections to LLM API infrastructure
$llmIPs = @()  # Populate from your DNS resolver logs for api.openai.com, api.anthropic.com, etc.
Get-NetTCPConnection -State Established -ErrorAction SilentlyContinue |
    Where-Object { $_.RemotePort -eq 443 } |
    ForEach-Object {
        $proc = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
        if ($proc.ProcessName -match 'python|node|powershell|pwsh|curl') {
            $report += [pscustomobject]@{Type='LLMCapableEgress'; Path=$proc.Path; LastWrite=$_.CreationTime}
        }
    }

$report | Export-Csv -Path "$env:ProgramData\AOF-Audit-$(Get-Date -Format 'yyyyMMdd') .csv" -NoTypeInformation
$report | Format-Table -AutoSize

# 3. Egress block for LLM API endpoints (ENABLE ONLY AFTER REVIEWING AUDIT OUTPUT)
# Resolve current API endpoint IPs via your DNS layer; prefer blocking at the
# perimeter/proxy where FQDN rules are supported. Example host-level rules:
$llmDomains = @('api.openai.com','api.anthropic.com','api.deepseek.com','openrouter.ai','api.groq.com')
foreach ($domain in $llmDomains) {
    try {
        $ips = (Resolve-DnsName -Name $domain -Type A -ErrorAction Stop).IPAddress
        foreach ($ip in $ips) {
            if (-not (Get-NetFirewallRule -DisplayName "AOF-Block-$domain-$ip" -ErrorAction SilentlyContinue)) {
                New-NetFirewallRule -DisplayName "AOF-Block-$domain-$ip" -Direction Outbound `
                    -Action Block -RemoteAddress $ip -Protocol TCP -RemotePort 443 | Out-Null
                Write-Host "[+] Blocked egress to $domain ($ip)" -ForegroundColor Yellow
            }
        }
    } catch { Write-Host "[-] DNS resolution failed for $domain - block at proxy/DNS layer instead" -ForegroundColor Red }
}

# 4. Verify command-line process auditing is enabled (required for Sigma detections above)
$audit = auditpol /get /subcategory:"Process Creation"
Write-Host "`nProcess Creation auditing:"; $audit
wevtutil sl Microsoft-Windows-PowerShell/Operational /e:true
Write-Host "[+] Ensure Sysmon or equivalent telemetry is deployed for full command-line visibility." -ForegroundColor Cyan

Remediation

There is no patch for this threat — AOFs weaponize your existing attack surface at higher speed. Remediation is about shrinking exposure and compressing response time. Prioritize the following, in order:

  1. Read and distribute the CISA alert. Official guidance: Defending Against Malicious Use of Agentic Offensive Frameworks. FCEB agencies should treat applicable Binding Operational Directive timelines as in force; SLTT and critical infrastructure organizations should align with CISA's recommendations voluntarily and immediately.
  2. Patch the basics at emergency cadence. AOFs select exploits automatically from public tooling against identified versions — anything internet-facing and unpatched against known-exploited vulnerabilities is a near-certain target. Re-prioritize your CISA KEV backlog for internet-facing systems and treat remediation SLAs as hours-to-days, not weeks.
  3. Reduce internet-facing surface. Inventory and justify every exposed service, VPN concentrator, remote access portal, and management interface. AOF-driven recon will find the forgotten staging server and the unpatched dev instance before your quarterly scan does.
  4. Enforce phishing-resistant MFA on all remote access, VPN, and identity infrastructure. Automated credential attacks are a standard AOF workflow stage; MFA that resists real-time phishing breaks that loop.
  5. Deploy burst-based detections. Implement the Sigma/KQL content above, plus network-layer velocity detections (scan rate thresholds, connection fan-out). Tune out your authorized scanners by source identity, not just IP — agents inherit host context.
  6. Control LLM egress. Inventory and allowlist sanctioned AI integrations by process, service account, and destination. Block LLM API egress from servers and network devices at the proxy or DNS layer — agent frameworks need their reasoning loop, and severing API access degrades them to dumb scripted tooling.
  7. Stress-test response speed. Run a tabletop or purple-team exercise simulating a 10-minute recon-to-exploitation timeline. If your containment workflow requires human approval chains measured in hours, build pre-authorized automated containment playbooks now — isolation triggers for high-confidence offensive-tool bursts should not wait for a ticket.
  8. Segment aggressively. AOFs iterate laterally at machine speed. Strict east-west segmentation, tiered administration, and disabled legacy protocols (SMBv1, unrestricted WinRM/PSRemoting) convert a fast intrusion into a contained one.

The uncomfortable truth in CISA's alert is also the good news: the indicators haven't changed. Organizations with mature fundamentals — patched exposure, segmented networks, command-line telemetry, and response playbooks measured in minutes — are positioned to absorb this shift. Organizations still detecting on a human-tempo assumption are not. Close that gap before an agent finds it for you.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.