Source dated
Microsoft documents ARTEX abuse across multiple threat groups
Original query
Microsoft Sentinel ยท KQL
Surfaces short bursts of web requests and user-agent patterns. Common automation agents require context.
Telemetry W3CIISLog, AppServiceHTTPLogs and AGWAccessLogs
// Requests per client IP per minute, with default ARTEX and tool user agents flagged
union isfuzzy=true
(W3CIISLog
| project TimeGenerated, LogSource = "IIS", ClientIP = cIP, Path = csUriStem,
Status = tostring(scStatus), UserAgent = csUserAgent, Target = Computer),
(AppServiceHTTPLogs
| project TimeGenerated, LogSource = "App Service", ClientIP = CIp, Path = CsUriStem,
Status = tostring(ScStatus), UserAgent, Target = CsHost),
(AGWAccessLogs
| project TimeGenerated, LogSource = "Application Gateway", ClientIP = ClientIp,
Path = RequestUri, Status = tostring(HttpStatus), UserAgent, Target = Host)
| extend AgentType = case(
UserAgent has_any ("artex", "norma"), "ARTEX default",
UserAgent matches regex @"^(curl|Wget|python-requests|Python-urllib|Go-http-client)/",
"Tool default",
UserAgent has_any ("HeadlessChrome", "Nmap"), "Tool default",
"Other")
| summarize Requests = count(), DistinctPaths = dcount(Path),
ClientErrors = countif(Status startswith "4"),
ArtexAgentRequests = countif(AgentType == "ARTEX default"),
ToolAgentRequests = countif(AgentType == "Tool default"),
UserAgents = make_set(UserAgent, 10), Targets = make_set(Target, 10)
by ClientIP, LogSource, bin(TimeGenerated, 1m)
| where ArtexAgentRequests > 0 or (DistinctPaths >= 100 and ClientErrors >= 50)
| order by ArtexAgentRequests desc, DistinctPaths desc