Skip to content

Commit 0709f6c

Browse files
w0rk3rgithub-actions[bot]
authored andcommitted
[Rule Tuning] Windows BBR Tuning - 4 (#3384)
* [Rule Tuning] Windows BBR Tuning - 4 * Update discovery_system_time_discovery.toml (cherry picked from commit 1a8271d)
1 parent 2df3d2b commit 0709f6c

5 files changed

+25
-12
lines changed

rules_building_block/discovery_posh_generic.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["windows"]
44
maturity = "production"
55
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
66
min_stack_version = "8.3.0"
7-
updated_date = "2023/10/19"
7+
updated_date = "2024/01/12"
88

99

1010
[rule]
@@ -47,9 +47,6 @@ building_block_type = "default"
4747
query = '''
4848
event.category:process and host.os.type:windows and
4949
powershell.file.script_block_text : (
50-
(
51-
("Get-ItemProperty" or "Get-Item") and "-Path"
52-
) or
5350
(
5451
"Get-ADDefaultDomainPasswordPolicy" or
5552
"Get-ADDomain" or "Get-ComputerInfo" or
@@ -132,6 +129,14 @@ event.category:process and host.os.type:windows and
132129
)
133130
)
134131
) and
132+
not powershell.file.script_block_text : (
133+
(
134+
"__cmdletization_BindCommonParameters" and
135+
"Microsoft.PowerShell.Core\Export-ModuleMember" and
136+
"Microsoft.PowerShell.Cmdletization.Cim.CimCmdletAdapter"
137+
) or
138+
"CmdletsToExport=@(\"Add-Content\","
139+
) and
135140
not user.id : ("S-1-5-18" or "S-1-5-19" or "S-1-5-20") and
136141
not file.path : (
137142
?\:\\\\Program?Files\\\\WindowsPowerShell\\\\Modules\\\\*.psd1 or

rules_building_block/discovery_posh_password_policy.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["windows"]
44
maturity = "production"
55
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
66
min_stack_version = "8.3.0"
7-
updated_date = "2023/10/19"
7+
updated_date = "2024/01/12"
88

99
[rule]
1010
author = ["Elastic"]
@@ -76,6 +76,10 @@ event.category: "process" and host.os.type:windows and
7676
) and not powershell.file.script_block_text : (
7777
"sentinelbreakpoints" and "Set-PSBreakpoint" and "PowerSploitIndicators"
7878
)
79+
and not
80+
(
81+
powershell.file.script_block_text : ("43c15630-959c-49e4-a977-758c5cc93408" and "CmdletsToExport" and "ActiveDirectory.Types.ps1xml")
82+
)
7983
and not user.id : "S-1-5-18"
8084
'''
8185

rules_building_block/discovery_system_time_discovery.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["windows", "endpoint"]
44
maturity = "production"
55
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
66
min_stack_version = "8.3.0"
7-
updated_date = "2023/09/21"
7+
updated_date = "2024/01/12"
88
bypass_bbr_timing = true
99

1010
[rule]
@@ -36,8 +36,10 @@ type = "eql"
3636
query = '''
3737
process where host.os.type == "windows" and event.type == "start" and
3838
(
39-
((process.name: "net.exe" or (process.name : "net1.exe" and not process.parent.name : "net.exe")) and
40-
process.args : "time") or
39+
(
40+
(process.name: "net.exe" or (process.name : "net1.exe" and not process.parent.name : "net.exe")) and
41+
process.args : "time" and not process.args : "/set"
42+
) or
4143
(process.name: "w32tm.exe" and process.args: "/tz") or
4244
(process.name: "tzutil.exe" and process.args: "/g")
4345
) and not user.id : ("S-1-5-18", "S-1-5-19", "S-1-5-20")

rules_building_block/execution_settingcontent_ms_file_creation.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["endpoint"]
44
maturity = "production"
55
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
66
min_stack_version = "8.3.0"
7-
updated_date = "2023/08/24"
7+
updated_date = "2024/01/12"
88

99
[rule]
1010
author = ["Elastic"]
@@ -31,7 +31,8 @@ type = "eql"
3131

3232
query = '''
3333
file where host.os.type == "windows" and event.type == "creation" and
34-
file.extension : "settingcontent-ms"
34+
file.extension : "settingcontent-ms" and
35+
not file.path : "?:\\Users\\*\\AppData\\Local\\Packages\\windows.immersivecontrolpanel_*\\LocalState\\Indexed\\Settings\\*"
3536
'''
3637

3738
[[rule.threat]]

rules_building_block/execution_unsigned_service_executable.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ integration = ["endpoint"]
44
maturity = "production"
55
min_stack_comments = "Multiple field support in the New Terms rule type was added in Elastic 8.6"
66
min_stack_version = "8.6.0"
7-
updated_date = "2023/09/19"
7+
updated_date = "2024/01/12"
88
bypass_bbr_timing = true
99

1010
[rule]
@@ -36,7 +36,8 @@ type = "new_terms"
3636
query = '''
3737
host.os.type:windows and event.category:process and event.type:start and
3838
process.parent.executable:"C:\\Windows\\System32\\services.exe" and
39-
(process.code_signature.exists:false or process.code_signature.trusted:false)
39+
(process.code_signature.exists:false or process.code_signature.trusted:false) and
40+
not process.code_signature.status : (errorCode_endpoint* or "errorChaining")
4041
'''
4142

4243
[[rule.threat]]

0 commit comments

Comments
 (0)