Skip to content
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

Added parent_process_command_line to all the places I think it should #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions default/data/ui/views/process_create_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<default>*</default>
<initialValue>*</initialValue>
</input>
<input type="text" token="process_parent_command_line">
<label>process_parent_command_line</label>
<default>*</default>
<initialValue>*</initialValue>
</input>
<input type="text" token="hash_sha256">
<label>hash_sha256</label>
<default></default>
Expand All @@ -57,6 +62,7 @@
| eval mitre_technique_id = COALESCE(if(trim("$mitre_technique_id$")="", "*", trim("$mitre_technique_id$")), "*")
| eval reason = trim("$input_reason$")
| eval process_command_line = $process_command_line|s$
| eval process_parent_command_line = COALESCE(if(trim("$process_parent_command_line$")="", "*", trim("$process_parent_command_line$")), "*")
| eval process_path = COALESCE(if(trim("$process_path$")="", "*", trim("$process_path$")), "*")
| eval process_parent_path = COALESCE(if(trim("$process_parent_path$")="", "*", trim("$process_parent_path$")), "*")
| eval hash_sha256 = COALESCE(if(trim("$hash_sha256$")="", "*", trim("$hash_sha256$")), "*")
Expand All @@ -69,9 +75,9 @@
| inputlookup append=t threathunting_process_create_whitelist.csv

| sort -added_date
| dedup host_fqdn, user_name, mitre_technique_id, process_path process_parent_path process_command_line hash_sha256
| dedup host_fqdn, user_name, mitre_technique_id, process_path process_parent_path process_parent_command_line process_command_line hash_sha256
| outputlookup threathunting_process_create_whitelist.csv
| fields added_date contact mitre_technique_id reason host_fqdn user_name process_path process_parent_path process_command_line hash_sha256
| fields added_date contact mitre_technique_id reason host_fqdn user_name process_path process_parent_path process_parent_command_line process_command_line hash_sha256
</query>
<earliest>0</earliest>
</search>
Expand All @@ -88,7 +94,7 @@
<table>
<title>Current Entries</title>
<search>
<query>| inputlookup threathunting_process_create_whitelist.csv | sort -added_date | fields added_date contact mitre_technique_id reason host_fqdn user_name process_path process_parent_path process_command_line hash_sha256
<query>| inputlookup threathunting_process_create_whitelist.csv | sort -added_date | fields added_date contact mitre_technique_id reason host_fqdn user_name process_path process_parent_path process_parent_command_line process_command_line hash_sha256
</query>
<earliest>0</earliest>
</search>
Expand Down
2 changes: 1 addition & 1 deletion default/macros.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ definition = "WINDOMAIN\\*"
iseval = 0

[process_create_whitelist]
definition = lookup process_create_whitelist mitre_technique_id host_fqdn user_name process_path process_parent_path process_command_line output reason | where isnull(reason)
definition = lookup process_create_whitelist mitre_technique_id host_fqdn user_name process_path process_parent_path process_command_line process_parent_command_line output reason | where isnull(reason)
iseval = 0

[network_whitelist]
Expand Down
4 changes: 2 additions & 2 deletions default/transforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ filename = doh.csv
batch_index_query = 0
case_sensitive_match = 0
filename = threathunting_process_create_whitelist.csv
match_type = WILDCARD(mitre_technique_id),WILDCARD(host_fqdn),WILDCARD(user_name),WILDCARD(process_path),WILDCARD(process_parent_path),WILDCARD(process_command_line),WILDCARD(hash_sha256)
match_type = WILDCARD(mitre_technique_id),WILDCARD(host_fqdn),WILDCARD(user_name),WILDCARD(process_path),WILDCARD(process_parent_path),WILDCARD(process_command_line),WILDCARD(process_parent_command_line),WILDCARD(hash_sha256)
max_matches = 10
min_matches = 1

Expand Down Expand Up @@ -96,4 +96,4 @@ case_sensitive_match = 0
filename = threathunting_remote_thread_whitelist.csv
match_type = WILDCARD(mitre_technique_id),WILDCARD(host_fqdn),WILDCARD(process_path),WILDCARD(target_process_address),WILDCARD(target_process_path)
max_matches = 10
min_matches = 1
min_matches = 1
Binary file modified files/ThreatHunting.tar.gz
Binary file not shown.