Skip to content

Commit e117b9a

Browse files
authored
Update Detection_of_External_Direct_IP_Usage_in_CommandLine_Windows_and_Mac.yml
1 parent 6a5d483 commit e117b9a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

queries/Detection_of_External_Direct_IP_Usage_in_CommandLine_Windows_and_Mac.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,26 @@ tags:
3434
# The actual CrowdStrike Query Language (CQL) code.
3535
# Using the YAML block scalar `|` allows for multi-line strings.
3636
cql: |
37-
in(#event_simpleName, values=["ProcessRollup2","SyntheticProcessRollup2"])
37+
in(#event_simpleName, values=["ProcessRollup2","SyntheticProcessRollup2"])
3838
| CommandLine=*http* event_platform!="Lin"
39-
// Basline to exclude legitimate process | !in(field="ParentBaseFileName", values=//["UmbrellaDiagnostic.exe","HPClickExe","Eagle" ,"HPClick.exe"])
40-
//| !in(field="FileName", values=["Google Chrome","chrome.exe"])
39+
// Basline to exclude legitimate process
40+
//| !in(field="ParentBaseFileName", values=//["UmbrellaDiagnostic.exe","HPClickExe","Eagle" ,"HPClick.exe"])
41+
//| !in(field="FileName", values=["Google Chrome","chrome.exe"])
4142
//| !in(field="CommandLine", values=["Google Chrome.app"])
4243
| regex("(?<Urlink>\\bhttps?://\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}.*\\/\\b)", field=CommandLine)
4344
| regex("(?<Ipaddress>\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})", field=Urlink)
4445
| !cidr(Ipaddress, subnet=["224.0.0.0/4", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.0/8", "169.254.0.0/16", "168.63.0.0/16", "0.0.0.0/8"])
45-
| // Basline to exclude legitimate url !in(field="Urlink", values=[
46-
// Basline to exclude legitimate url "http://100.1.1.1"
47-
])
46+
// Basline to exclude legitimate url | !in(field="Urlink", values=[
47+
// Basline to exclude legitimate url "http://100.1.1.1"
48+
// Basline to exclude legitimate url ])
4849
| default(field=GrandParentBaseFileName, value="Unknown")
4950
| rootURL := "https://falcon.crowdstrike.com/"
5051
| ProcessStartTime := round(ProcessStartTime)
5152
| processStart:=formattime(field=ProcessStartTime, format="%m/%d %H:%M:%S")
5253
// If Context Process ID is available utilize it, if not utilize Target Process ID
53-
| case{ ContextProcessId ="*" | ContextId:=ContextProcessId; TargetProcessId="*" | ContextId:=TargetProcessId}
54+
| case{ ContextProcessId ="*"
55+
| ContextId:=ContextProcessId; TargetProcessId="*"
56+
| ContextId:=TargetProcessId}
5457
// Create URLs for Process and Graph Explorers
5558
| format("[ProcessExplorer]%sinvestigate/process-explorer/%s/%s?_cid=%s", field=["rootURL", "aid", "ContextId", "cid"], as="ProcessExplorer")
5659
| format("[GraphExplorer]%sgraphs/process-explorer/graph?id=pid:%s:%s", field=["rootURL", "aid", "TargetProcessId"], as="GraphExplorer")

0 commit comments

Comments
 (0)