[Rule Tuning] Unusual Parent-Child Relationship#6394
Open
Mikaayenson wants to merge 4 commits into
Open
Conversation
…98-4ee5-93ec-11d0bfc81988)
…3c-4164-94ae-fb7707a0944e)
…77-446c-8d16-44a9f09011ef)
|
⛔️ Test failed Results
|
Contributor
There was a problem hiding this comment.
Pull request overview
Tunes the existing Windows EQL rule “Unusual Parent-Child Relationship” to reduce alert noise caused by known benign parent/child patterns and data quality issues.
Changes:
- Adds a top-level filter to suppress events where
process.parent.nameappears as a SID (S-1-*). - Expands multiple “expected parent” allow-lists for system processes and “expected child” allow-lists for
conhost.exe. - Adds additional known-good parents for
svchost.exe(Computrace/Absoluterpcnet*).
| (process.name:"SearchIndexer.exe" and not process.parent.name:"services.exe") or | ||
| (process.name:"SearchProtocolHost.exe" and not process.parent.name:("SearchIndexer.exe", "dllhost.exe")) or | ||
| (process.name:"dllhost.exe" and not process.parent.name:("services.exe", "svchost.exe")) or | ||
| (process.name:("fontdrvhost.exe", "dwm.exe") and not process.parent.name:("wininit.exe", "winlogon.exe", "dwm.exe", "svchost.exe")) or |
| (process.name:"SearchProtocolHost.exe" and not process.parent.name:("SearchIndexer.exe", "dllhost.exe")) or | ||
| (process.name:"dllhost.exe" and not process.parent.name:("services.exe", "svchost.exe")) or | ||
| (process.name:("fontdrvhost.exe", "dwm.exe") and not process.parent.name:("wininit.exe", "winlogon.exe", "dwm.exe", "svchost.exe")) or | ||
| (process.name:("consent.exe", "RuntimeBroker.exe", "TiWorker.exe") and not process.parent.name:("svchost.exe", "Workplace Container Helper.exe", "RuntimeBroker.exe", "TiWorker.exe")) or |
| (process.name:"taskhostw.exe" and not process.parent.name:("services.exe", "svchost.exe", "taskhostw.exe")) or | ||
| (process.name:"userinit.exe" and not process.parent.name:("dwm.exe", "winlogon.exe", "KUsrInit.exe")) or | ||
| (process.name:("wmiprvse.exe", "wsmprovhost.exe", "winrshost.exe") and not process.parent.name:"svchost.exe") or | ||
| (process.name:("wmiprvse.exe", "wsmprovhost.exe", "winrshost.exe") and not process.parent.name:("svchost.exe", "wmiprvse.exe", "wsmprovhost.exe")) or |
Contributor
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
|
⛔️ Test failed Results
|
w0rk3r
reviewed
Jul 6, 2026
| query = ''' | ||
| process where host.os.type == "windows" and event.type == "start" and | ||
| process.parent.name != null and process.parent.executable like ("?:\\*", "\\Device\\*") and | ||
| not process.parent.name like "S-1-*" and |
Contributor
There was a problem hiding this comment.
Already addressed by process.parent.executable like ("?:\\*", "\\Device\\*")
| (process.name:"SearchIndexer.exe" and not process.parent.name:"services.exe") or | ||
| (process.name:"SearchProtocolHost.exe" and not process.parent.name:("SearchIndexer.exe", "dllhost.exe")) or | ||
| (process.name:"dllhost.exe" and not process.parent.name:("services.exe", "svchost.exe")) or | ||
| (process.name:("fontdrvhost.exe", "dwm.exe") and not process.parent.name:("wininit.exe", "winlogon.exe", "dwm.exe", "svchost.exe")) or |
| (process.parent.name:"wermgr.exe" and not process.name:("WerFaultSecure.exe", "wermgr.exe", "WerFault.exe") and | ||
| not (process.name:"rundll32.exe" and process.command_line : "*WerConCpl.dll*LaunchErcApp*")) or | ||
| (process.parent.name:"conhost.exe" and not process.name:("mscorsvw.exe", "wermgr.exe", "WerFault.exe", "WerFaultSecure.exe", "conhost.exe")) | ||
| (process.parent.name:"conhost.exe" and not process.name:("mscorsvw.exe", "wermgr.exe", "WerFault.exe", "WerFaultSecure.exe", "conhost.exe", "cmd.exe", "powershell.exe")) |
Contributor
There was a problem hiding this comment.
Suggested change
| (process.parent.name:"conhost.exe" and not process.name:("mscorsvw.exe", "wermgr.exe", "WerFault.exe", "WerFaultSecure.exe", "conhost.exe", "cmd.exe", "powershell.exe")) | |
| (process.parent.name:"conhost.exe" and not process.name:("mscorsvw.exe", "wermgr.exe", "WerFault.exe", "WerFaultSecure.exe", "conhost.exe")) |
Seems too broad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves elastic/ia-trade-team#991
Reduces noise from SID-as-parent data quality issues, legitimate Windows self-spawn pairs, headless conhost spawning cmd/powershell, and Computrace BIOS-level software (rpcnet/rpcnetp). Adds a top-level S-1-* parent name filter, expands allowed-parent lists for system processes to cover self-spawn scenarios (wmiprvse, dllhost, taskhostw, spoolsv, SearchIndexer, SearchProtocolHost, LogonUI, RuntimeBroker, TiWorker, wsmprovhost), adds rpcnet.exe and rpcnetp.exe as known-good parents for svchost, adds svchost.exe as an allowed parent for dwm.exe, and adds cmd.exe and powershell.exe to the conhost.exe allowed-children list.
Full telemetry triage, analytics links, and KQL verification: see linked ia-trade-team issue.