Skip to main content

GitLab AI Gateway Critical RCE Flaw Allows Remote Code Execution Hunt Query

Root cause stems from improper neutralization within prompt template evaluation engines when processing crafted flow configurations in the Duo Agent Platform.

// Hunt for abnormal child process creation from GitLab AI Gateway container workloads
DeviceProcessEvents
| where Timestamp > ago(7d)
| where ProcessCommandLine has_any ("ai_gateway", "duo_agent", "gitlab-ai")
    or FolderPath has_any ("/opt/gitlab", "/ai-gateway")
| where FileName in~ ("bash", "sh", "dash", "curl", "wget", "python", "python3", "nc")
| where InitiatingProcessFileName in~ ("python", "python3", "uvicorn", "gunicorn")
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, AccountName
| order by Timestamp desc
Need to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
Open SOC Defanger Workbench
Target Log Sources & Tables
DeviceProcessEvents

Ensure telemetry connector is actively ingesting this table into your Sentinel workspace or Defender XDR.

False Positives & Tuning Guidance

Legitimate administrative software deployment scripts, authorized security testing, or system maintenance tasks.

Source Incident Analysis

GitLab AI Gateway Critical RCE Flaw Allows Remote Code Execution

Disclosed: 2026-10-02

Read Attack Chain
DETECTION_ENGINEERING_FEEDBACK

Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?

Submit Feedback →