@@ -5,6 +5,7 @@ rule http_url_with_exe: high {
55 strings :
66 $ exe_url = /https * : \/\/ [ \w \. ] {0,160 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. exe /
77 $ not_mongodb_404 = " https://docs.mongodb.com/manual/reference/method/Bulk.exe "
8+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
89
910 condition :
1011 any of ($ exe * ) and none of ($ not * )
@@ -14,11 +15,14 @@ rule http_ip_url_with_exe: critical {
1415 meta :
1516 description = " accesses hardcoded executable endpoint via IP "
1617
18+
1719 strings :
1820 $ exe_url = /https * : \/\/ [ \d \.\:\[\] ] {8,64 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. exe /
1921
22+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
23+
2024 condition :
21- any of ($ exe * )
25+ any of ($ exe * ) and none of ( $ not * )
2226 }
2327
2428rule http_url_with_msi : high {
@@ -28,8 +32,10 @@ rule http_url_with_msi: high {
2832 strings :
2933 $ exe_url = /https * : \/\/ [ \w \. ] {0,160 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. msi /
3034
35+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
36+
3137 condition :
32- any of ($ exe * )
38+ any of ($ exe * ) and none of ( $ not * )
3339 }
3440
3541rule http_ip_url_with_msi : critical {
@@ -39,8 +45,10 @@ rule http_ip_url_with_msi: critical {
3945 strings :
4046 $ exe_url = /https * : \/\/ [ \d \.\:\[\] ] {8,64 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. msi /
4147
48+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
49+
4250 condition :
43- any of ($ exe * )
51+ any of ($ exe * ) and none of ( $ not * )
4452 }
4553
4654rule http_url_with_powershell : high {
@@ -50,8 +58,10 @@ rule http_url_with_powershell: high {
5058 strings :
5159 $ exe_url = /https * : \/\/ [ \w \. ] {0,160 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. ps1 /
5260
61+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
62+
5363 condition :
54- any of ($ exe * )
64+ any of ($ exe * ) and none of ( $ not * )
5565 }
5666
5767rule http_ip_url_with_powershell : critical {
@@ -61,6 +71,8 @@ rule http_ip_url_with_powershell: critical {
6171 strings :
6272 $ exe_url = /https * : \/\/ [ \d \.\:\[\] ] {8,64 } [ : \/ \w \_\-\?\@ = ] {6,160 } \. ps1 /
6373
74+ $ not_elastic = " \" license \" : \" Elastic License v2 \" "
75+
6476 condition :
65- any of ($ exe * )
77+ any of ($ exe * ) and none of ( $ not * )
6678 }
0 commit comments