Skip to main content

Ransomware Gangs Exploit Critical TeamCity Auth Bypass Flaw Hunt Query

The vulnerability abuses the TeamCity agent polling protocol via HTTP(S) to bypass authentication and execute arbitrary operating system commands.

// Microsoft Sentinel / Defender Hunting Query: Detect Anomalous Shell Execution from TeamCity Server
DeviceProcessEvents
| where Timestamp > ago(7d)
| where InitiatingProcessCommandLine has_any ("teamcity", "JetBrains", "tomcat")
| where FileName in~ ("powershell.exe", "cmd.exe", "sh", "bash", "vssadmin.exe", "wbadmin.exe")
| where ProcessCommandLine has_any ("download", "Invoke-Expression", "hidden", "delete shadows", "bcedit")
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, AccountName
| sort 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

Ransomware Gangs Exploit Critical TeamCity Auth Bypass Flaw

Disclosed: 2026-09-24

Read Attack Chain
DETECTION_ENGINEERING_FEEDBACK

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

Submit Feedback →