heroui logo

Multiple Elastic Defend Alerts from an Agentic Attack

Elastic Detection Rules

View Source
Summary
Detects a host with Elastic Defend behavior alerts indicating an agentic attack. The rule searches for intent IDs embedded in command lines, parent command lines, executable paths, or file paths. An intent ID pattern looks like i[4-7 digits][token] (e.g., i42463_dbg.b64 or i43345sys); or a command line that outputs three or more section banners via echo "===LABEL==="; ending with semicolons. The rule triggers when a single host.id accumulates ten or more such alerts within a one-hour lookback, or when alerts originate from at least two distinct behavior rules. Repeat alerts for the same host are suppressed for one hour to reduce noise. The detector aggregates candidate values from process.command_line, process.parent.command_line, process.executable, process.parent.executable, and file.path, returning the host.id, agent.id, user.name, and the extracted command/file fields for triage. Patterns use Lucene ES|QL RLIKE (anchored, with no lookaround) to match three arms: intent IDs, known harness tokens (artex, pentest, probe, canary), and path-embedded IDs, with constraints such as a four-to-seven digit ID, a 16-character token cap, and an underscore in the token. The rule maps to MITRE ATT&CK technique T1059 (Command and Scripting Interpreter) with subtechniques T1059.001 (PowerShell), T1059.003 (Windows Command Shell), and T1059.004 (Unix Shell). Severity is critical with a risk_score of 99, and an alert suppression policy groups by host.id for one hour. Aims to surface high-signal activity linked to agentic offensive frameworks and provides triage and remediation guidance for containment and credential rotation if the indicators are confirmed.
Categories
  • Endpoint
Data Sources
  • Process
  • File
  • Command
ATT&CK Techniques
  • T1059
  • T1059.001
  • T1059.003
  • T1059.004
Created: 2026-11-30