-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New Rule] Potential Forced Authentication - SMB Named Pipes #3916
base: main
Are you sure you want to change the base?
Changes from all commits
bc2217d
8c1d45c
c2e8861
6347709
71bb89d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[metadata] | ||
creation_date = "2024/07/23" | ||
integration = ["system", "windows"] | ||
maturity = "production" | ||
updated_date = "2024/07/23" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
Identifies a potential forced authentication using related SMB named pipes. Attackers may attempt to force targets to | ||
authenticate to a host controlled by them to capture hashes or enable relay attacks. | ||
""" | ||
from = "now-9m" | ||
index = ["logs-system.security-*", "logs-windows.forwarded-*"] | ||
language = "eql" | ||
license = "Elastic License v2" | ||
name = "Potential Forced Authentication - SMB Named Pipes" | ||
references = [ | ||
"https://github.com/p0dalirius/windows-coerced-authentication-methods", | ||
"https://www.thehacker.recipes/a-d/movement/mitm-and-coerced-authentications", | ||
"https://attack.mitre.org/techniques/T1187/", | ||
] | ||
risk_score = 21 | ||
rule_id = "73d05fd0-d73b-4625-aa2e-3221965aa2e3" | ||
setup = """## Setup | ||
|
||
The 'Audit Detailed File Share' audit policy must be configured (Success Failure). | ||
Steps to implement the logging policy with Advanced Audit Configuration: | ||
|
||
``` | ||
Computer Configuration > | ||
Policies > | ||
Windows Settings > | ||
Security Settings > | ||
Advanced Audit Policies Configuration > | ||
Audit Policies > | ||
Object Access > | ||
Audit Detailed File Share (Success,Failure) | ||
``` | ||
""" | ||
severity = "low" | ||
tags = [ | ||
"Domain: Endpoint", | ||
"OS: Windows", | ||
"Use Case: Threat Detection", | ||
"Tactic: Credential Access", | ||
"Data Source: Elastic Defend", | ||
"Data Source: Active Directory", | ||
"Use Case: Active Directory Monitoring", | ||
] | ||
timestamp_override = "event.ingested" | ||
type = "eql" | ||
|
||
query = ''' | ||
sequence by host.id, source.ip, user.name with maxspan=1s | ||
[authentication where host.os.type == "windows" and event.action == "logged-in" and | ||
winlog.event_data.AuthenticationPackageName : "NTLM" and winlog.event_data.SubjectUserSid == "S-1-0-0"] | ||
[file where host.os.type == "windows" and event.code == "5145" and file.name : ("Spoolss", "netdfs", "lsarpc", "lsass", "netlogon", "samr", "efsrpc", "FssagentRpc")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had some unrelated hits in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lsarpc, lsass, spoolss, netlogon and samr are all very frequent and risk to be very noisy, I would suggest to use a new term rule type and limit to the 5145 event (no need for a sequence with logon event) and use 3 terms There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I'll work on that |
||
''' | ||
|
||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
[[rule.threat.technique]] | ||
id = "T1187" | ||
name = "Forced Authentication" | ||
reference = "https://attack.mitre.org/techniques/T1187/" | ||
|
||
|
||
[rule.threat.tactic] | ||
id = "TA0006" | ||
name = "Credential Access" | ||
reference = "https://attack.mitre.org/tactics/TA0006/" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need MITRE URL as ref if mapped already?