Skip to content

Commit 74f11db

Browse files
authored
[Rule Tuning] Posh BBRs (#4372)
1 parent c912b78 commit 74f11db

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

rules_building_block/defense_evasion_posh_defender_tampering.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ bypass_bbr_timing = true
33
creation_date = "2024/09/11"
44
integration = ["windows"]
55
maturity = "production"
6-
updated_date = "2024/10/28"
6+
updated_date = "2025/01/13"
77
min_stack_version = "8.14.0"
88
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
99

@@ -58,7 +58,12 @@ event.category: "process" and host.os.type:windows and
5858
DisableRealtimeMonitoring or LowThreatDefaultAction or
5959
ModerateThreatDefaultAction or HighThreatDefaultAction
6060
)
61-
)
61+
) and
62+
not powershell.file.script_block_text : (
63+
("cmdletization" and "cdxml-Help.xml") or
64+
("function Set-MpPreference" and "Microsoft.PowerShell.Cmdletization.GeneratedTypes.MpPreference.SubmitSamplesConsentType")
65+
) and
66+
not file.directory : "C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\SenseCM"
6267
'''
6368

6469

rules_building_block/discovery_posh_generic.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["windows"]
44
maturity = "production"
55
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
66
min_stack_version = "8.14.0"
7-
updated_date = "2024/10/28"
7+
updated_date = "2025/01/13"
88

99

1010
[rule]
@@ -63,7 +63,7 @@ event.category:process and host.os.type:windows and
6363
("Get-WmiObject" or "gwmi" or "Get-CimInstance" or
6464
"gcim" or "Management.ManagementObjectSearcher" or
6565
"System.Management.ManagementClass" or
66-
"[WmiClass]" or "[WMI]") and
66+
"[WmiClass]") and
6767
(
6868
"AntiVirusProduct" or "CIM_BIOSElement" or "CIM_ComputerSystem" or "CIM_Product" or "CIM_DiskDrive" or
6969
"CIM_LogicalDisk" or "CIM_NetworkAdapter" or "CIM_StorageVolume" or "CIM_OperatingSystem" or
@@ -136,7 +136,8 @@ event.category:process and host.os.type:windows and
136136
"Microsoft.PowerShell.Core\Export-ModuleMember" and
137137
"Microsoft.PowerShell.Cmdletization.Cim.CimCmdletAdapter"
138138
) or
139-
"CmdletsToExport=@(\"Add-Content\","
139+
"CmdletsToExport=@(\"Add-Content\"," or
140+
("cmdletization" and "cdxml-Help.xml")
140141
) and
141142
not user.id : ("S-1-5-18" or "S-1-5-19" or "S-1-5-20")
142143
'''

rules_building_block/lateral_movement_posh_winrm_activity.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["windows"]
44
maturity = "production"
55
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
66
min_stack_version = "8.14.0"
7-
updated_date = "2024/10/28"
7+
updated_date = "2025/01/13"
88

99
[rule]
1010
author = ["Elastic"]
@@ -57,7 +57,9 @@ event.category:process and host.os.type:windows and
5757
) and
5858
not user.id : "S-1-5-18" and
5959
not file.directory : (
60-
"C:\\Program Files\\LogicMonitor\\Agent\\tmp"
60+
"C:\\Program Files\\LogicMonitor\\Agent\\tmp" or
61+
"C:\\Program Files\\WindowsPowerShell\\Modules\\icinga-powershell-framework\\cache" or
62+
"C:\\Program Files\\WindowsPowerShell\\Modules\\SmartCardTools\\1.2.2"
6163
) and not
6264
powershell.file.script_block_text : (
6365
"Export-ModuleMember -Function @('Invoke-Expression''Invoke-Command')" and

0 commit comments

Comments
 (0)