Skip to content

Commit

Permalink
[Rule Tuning] Windows DR Tuning - 7 (#3344)
Browse files Browse the repository at this point in the history
* [Rule Tuning] Windows Rule Tuning -1

* Update command_and_control_ingress_transfer_bits.toml

(cherry picked from commit 2f468dd)
  • Loading branch information
w0rk3r authored and github-actions[bot] committed Dec 18, 2023
1 parent 42fdcbe commit 51c4e5b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
6 changes: 4 additions & 2 deletions rules/windows/collection_mailbox_export_winlog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["windows"]
maturity = "production"
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
updated_date = "2023/10/13"
updated_date = "2023/12/12"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -72,7 +72,9 @@ event.category:process and host.os.type:windows and
powershell.file.script_block_text : "New-MailboxExportRequest" and
not (
file.path : (
?\:\\\\Users\\\\*\\\\AppData\\\\Roaming\\\\Microsoft\\\\Exchange\\\\RemotePowerShell\\\\*
?\:\\\\Users\\\\*\\\\AppData\\\\Roaming\\\\Microsoft\\\\Exchange\\\\RemotePowerShell\\\\* or
?\:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Temp\\\\tmp_????????.???\\\\tmp_????????.???.ps?1* or
?\:\\\\Windows\\\\TEMP\\\\tmp_????????.???\\\\tmp_????????.???.ps?1*
) and file.name:(*.psd1 or *.psm1)
)
'''
Expand Down
3 changes: 2 additions & 1 deletion rules/windows/command_and_control_ingress_transfer_bits.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["endpoint"]
maturity = "production"
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
updated_date = "2023/10/22"
updated_date = "2023/12/13"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -39,6 +39,7 @@ file where host.os.type == "windows" and event.action == "rename" and
not file.path : (
"?:\\Users\\*\\AppData\\Local\\Temp*\\wct*.tmp",
"?:\\Users\\*\\AppData\\Local\\Adobe\\ARM\\*\\RdrServicesUpdater*.exe",
"?:\\Users\\*\\AppData\\Local\\Adobe\\ARM\\*\\AcroServicesUpdater2_x64.exe",
"?:\\Users\\*\\AppData\\Local\\Docker Desktop Installer\\update-*.exe"
)
'''
Expand Down
7 changes: 5 additions & 2 deletions rules/windows/credential_access_lsass_loaded_susp_dll.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ maturity = "production"
integration = ["endpoint"]
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
updated_date = "2023/10/23"
updated_date = "2023/12/14"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -90,7 +90,10 @@ library where host.os.type == "windows" and process.executable : "?:\\Windows\\S
"Audinate Pty Ltd",
"CyberArk Software Ltd.",
"McAfeeSysPrep",
"NVIDIA Corporation PE Sign v2016") and
"NVIDIA Corporation PE Sign v2016",
"Trend Micro, Inc.",
"Fortinet Technologies (Canada) Inc.",
"Carbon Black, Inc.") and
dll.code_signature.status : ("trusted", "errorExpired", "errorCode_endpoint*", "errorChaining")) and
not dll.hash.sha256 :
Expand Down
5 changes: 3 additions & 2 deletions rules/windows/credential_access_posh_request_ticket.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["windows"]
maturity = "production"
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
updated_date = "2023/10/23"
updated_date = "2023/12/14"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -87,7 +87,8 @@ event.category:process and host.os.type:windows and
KerberosRequestorSecurityToken
) and not user.id : ("S-1-5-18" or "S-1-5-20") and
not powershell.file.script_block_text : (
"sentinelbreakpoints" and ("Set-PSBreakpoint" or "Set-HookFunctionTabs")
("sentinelbreakpoints" and ("Set-PSBreakpoint" or "Set-HookFunctionTabs")) or
("function global" and "\\windows\\sentinel\\4")
)
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["system", "windows"]
maturity = "production"
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
updated_date = "2023/06/22"
updated_date = "2023/12/14"

[rule]
author = ["Elastic", "Anabella Cristaldi"]
Expand Down Expand Up @@ -56,7 +56,8 @@ timestamp_override = "event.ingested"
type = "query"

query = '''
event.action:("audit-log-cleared" or "Log clear") and winlog.api:"wineventlog"
event.action:("audit-log-cleared" or "Log clear") and winlog.api:"wineventlog" and
not winlog.provider_name:"AD FS Auditing"
'''


Expand Down

0 comments on commit 51c4e5b

Please sign in to comment.