-
Notifications
You must be signed in to change notification settings - Fork 678
[Rule Tuning] Unusual Parent-Child Relationship #6394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Mikaayenson
wants to merge
4
commits into
main
Choose a base branch
from
tuning/35df0dd8-092d-4a83-88c1-5151a804f31b
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+13
−12
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b49b749
[Rule Tuning] Unusual Parent-Child Relationship (workflow 235c7f2a-2e…
Mikaayenson 5378654
[Rule Tuning] Unusual Parent-Child Relationship (workflow d9a0466a-97…
Mikaayenson a8433e1
[Rule Tuning] Unusual Parent-Child Relationship (workflow 698fef28-1c…
Mikaayenson c16ea18
[Rule Tuning] bump updated_date for CI (genai-tradecraft workflow)
Mikaayenson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||
| creation_date = "2020/02/18" | ||||||
| integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"] | ||||||
| maturity = "production" | ||||||
| updated_date = "2026/07/06" | ||||||
| updated_date = "2026/07/07" | ||||||
|
|
||||||
| [transform] | ||||||
| [[transform.osquery]] | ||||||
|
|
@@ -147,34 +147,35 @@ type = "eql" | |||||
| 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 | ||||||
| ( | ||||||
| /* suspicious parent processes */ | ||||||
| (process.name:"autochk.exe" and not process.parent.name:"smss.exe") or | ||||||
| (process.name:("fontdrvhost.exe", "dwm.exe") and not process.parent.name:("wininit.exe", "winlogon.exe", "dwm.exe")) or | ||||||
| (process.name:("consent.exe", "RuntimeBroker.exe", "TiWorker.exe") and not process.parent.name:("svchost.exe", "Workplace Container Helper.exe")) or | ||||||
| (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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Valid |
||||||
| (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:"SearchIndexer.exe" and not process.parent.name:("services.exe", "SearchIndexer.exe")) or | ||||||
| (process.name:"SearchProtocolHost.exe" and not process.parent.name:("SearchIndexer.exe", "dllhost.exe", "SearchProtocolHost.exe")) or | ||||||
| (process.name:"dllhost.exe" and not process.parent.name:("services.exe", "svchost.exe", "dllhost.exe")) or | ||||||
| (process.name:"smss.exe" and not process.parent.name:("System", "smss.exe")) or | ||||||
| (process.name:"csrss.exe" and not process.parent.name:("smss.exe", "svchost.exe")) or | ||||||
| (process.name:"wininit.exe" and not process.parent.name:"smss.exe") or | ||||||
| (process.name:"winlogon.exe" and not process.parent.name:"smss.exe") or | ||||||
| (process.name:("lsass.exe", "LsaIso.exe") and not process.parent.name:"wininit.exe") or | ||||||
| (process.name:"LogonUI.exe" and not process.parent.name:("wininit.exe", "winlogon.exe")) or | ||||||
| (process.name:"LogonUI.exe" and not process.parent.name:("wininit.exe", "winlogon.exe", "LogonUI.exe")) or | ||||||
| (process.name:"services.exe" and not process.parent.name:"wininit.exe") or | ||||||
| (process.name:"svchost.exe" and not process.parent.name:("MsMpEng.exe", "services.exe", "svchost.exe")) or | ||||||
| (process.name:"spoolsv.exe" and not process.parent.name:("services.exe", "Workplace Starter.exe")) or | ||||||
| (process.name:"svchost.exe" and not process.parent.name:("MsMpEng.exe", "services.exe", "svchost.exe", "rpcnet.exe", "rpcnetp.exe")) or | ||||||
| (process.name:"spoolsv.exe" and not process.parent.name:("services.exe", "Workplace Starter.exe", "spoolsv.exe")) or | ||||||
| (process.name:"taskhost.exe" and not process.parent.name:("services.exe", "svchost.exe", "ngentask.exe")) or | ||||||
| (process.name:"taskhostw.exe" and not process.parent.name:("services.exe", "svchost.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 | ||||||
|
|
||||||
| /* suspicious child processes */ | ||||||
| (process.parent.name:("SearchProtocolHost.exe", "taskhost.exe", "csrss.exe") and not process.name:("werfault.exe", "wermgr.exe", "WerFaultSecure.exe", "conhost.exe", "ngentask.exe", "SearchProtocolHost.exe")) or | ||||||
| (process.parent.name:"autochk.exe" and not process.name:("chkdsk.exe", "doskey.exe", "WerFault.exe")) or | ||||||
| (process.parent.name:"smss.exe" and not process.name:("autochk.exe", "smss.exe", "csrss.exe", "wininit.exe", "winlogon.exe", "setupcl.exe", "WerFault.exe", "wpbbin.exe", "PvsVmBoot.exe", "SophosNA.exe", "omnissa-ic-nga.exe", "icarus_rvrt.exe", "poqexec.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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Seems too broad |
||||||
| ) | ||||||
| ''' | ||||||
|
|
||||||
|
|
||||||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already addressed by
process.parent.executable like ("?:\\*", "\\Device\\*")