Lab Verified: 2026-09-24
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 descNeed to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
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
DETECTION_ENGINEERING_FEEDBACK
Submit Feedback →Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?