Elastic medium stable eql
MsBuild Making Network Connections
Identifies MsBuild.exe making outbound network connections. This may indicate adversarial activity as MsBuild is often leveraged by adversaries to execute code and evade detection.
Detection Logic
sequence by process.entity_id with maxspan=30s
/* Look for MSBuild.exe process execution */
/* The events for this first sequence may be noisy, consider adding exceptions */
[process where host.os.type == "windows" and event.type == "start" and
(
process.pe.original_file_name: "MSBuild.exe" or
process.name: "MSBuild.exe"
) and
not user.id == "S-1-5-18"]
/* Followed by a network connection to an external address */
/* Exclude domains that are known to be benign */
[network where host.os.type == "windows" and
event.action: ("connection_attempted", "lookup_requested") and
not user.id == "S-1-5-18" and
not cidrmatch(destination.ip, "127.0.0.1", "::1") and
not dns.question.name : (
"localhost",
"dc.services.visualstudio.com",
"vortex.data.microsoft.com",
"api.nuget.org")] Field Validations
Loading…
Comments (0)
Loading comments...