System Reconnaissance from Unsigned Parent Followed by Network Connection
Description
Identifies macOS system discovery commands used to collect the computer name and hardware UUID, executed by a child of an unsigned or untrusted process running from a user-writable path, followed within a short window by an outbound network connection to a named domain.
Query · eql
sequence with maxspan=1m
[process where event.type == "start" and event.action == "exec" and
(
process.command_line like "*scutil --get ComputerName*" or
process.command_line like~ "*ioreg*IOPlatformExpertDevice*IOPlatformUUID*" or
process.command_line like~ "*ioreg*-rd1*IOPlatformExpertDevice*"
) and
(process.parent.code_signature.trusted == false or process.parent.code_signature.exists == false) and
process.parent.executable like ("/Users/*", "/private/tmp/*", "/tmp/*") and
not process.parent.executable like~ (
"/Users/*/.local/share/uv/python/*/bin/python*",
"/Users/*/Desktop/*"
) and
not process.parent.code_signature.signing_id like~ ("spawn-helper-*", "herdr-*")] by process.parent.entity_id
[network where event.type == "start" and event.action == "connection_attempted" and
destination.domain != null and
not destination.domain in ("login.microsoftonline.com",
"storage.googleapis.com", "test.salesforce.com", "api.github.com",
"graph.microsoft.com", "cloud.tilt.dev", "api.anthropic.com",
"platform.claude.com") and
not destination.domain like "*.acronis.com"] by process.entity_id