2ad8b32ce2
* Add Investigation Guides for Windows Rules - First half
* + 1/2
* Update impact_volume_shadow_copy_deletion_or_resized_via_vssadmin.toml
* Update credential_access_mod_wdigest_security_provider.toml
* Apply suggestions from code review
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
* Update defense_evasion_amsienable_key_mod.toml
* Update defense_evasion_amsienable_key_mod.toml
* Apply suggestions from code review
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
* Update command_and_control_certutil_network_connection.toml
* Apply suggestions from code review
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
* Update collection_winrar_encryption.toml
* Apply suggestions from code review
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Colson Wilhoit <48036388+DefSecSentinel@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
Co-authored-by: benironside <91905639+benironside@users.noreply.github.com>
Co-authored-by: nastasha-solomon <79124755+nastasha-solomon@users.noreply.github.com>
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(cherry picked from commit a3d7427d29)
104 lines
4.5 KiB
TOML
104 lines
4.5 KiB
TOML
[metadata]
|
||
creation_date = "2021/01/19"
|
||
maturity = "production"
|
||
updated_date = "2022/03/07"
|
||
|
||
[rule]
|
||
author = ["Elastic"]
|
||
description = """
|
||
Identifies attempts to modify the WDigest security provider in the registry to force the user's password to be stored in
|
||
clear text in memory. This behavior can be indicative of an adversary attempting to weaken the security configuration of
|
||
an endpoint. Once the UseLogonCredential value is modified, the adversary may attempt to dump clear text passwords from
|
||
memory.
|
||
"""
|
||
from = "now-9m"
|
||
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
|
||
language = "eql"
|
||
license = "Elastic License v2"
|
||
name = "Modification of WDigest Security Provider"
|
||
note = """## Triage and analysis.
|
||
|
||
### Investigating Modification of WDigest Security Provider
|
||
|
||
In Windows XP, Microsoft added support for a protocol known as WDigest. The WDigest protocol allows clients to send
|
||
cleartext credentials to Hypertext Transfer Protocol (HTTP) and Simple Authentication Security Layer (SASL) applications
|
||
based on RFC 2617 and 2831. Windows versions up to 8 and 2012 store logon credentials in memory in plaintext by default,
|
||
which is no longer the case with newer Windows versions.
|
||
|
||
Still, attackers can force WDigest to store the passwords insecurely on the memory by modifying the
|
||
`HKLM\\SYSTEM\\*ControlSet*\\Control\\SecurityProviders\\WDigest\\UseLogonCredential` registry key. This activity is
|
||
commonly related to the execution of credential dumping tools.
|
||
|
||
#### Possible investigation steps
|
||
|
||
- It is unlikely that the monitored registry key was modified legitimately in newer versions of Windows. Analysts should
|
||
treat any activity triggered from this rule with high priority as it typically represents an active adversary.
|
||
- Investigate the script execution chain (parent process tree).
|
||
- Investigate other alerts related to the user/host in the last 48 hours.
|
||
- Determine if credential dumping tools were run on the host and if any suspicious tool is found:
|
||
- Retrieve the file.
|
||
- Use a sandboxed malware analysis system to perform analysis.
|
||
- Observe attempts to contact external domains and addresses.
|
||
- Use the PowerShell Get-FileHash cmdlet to get the SHA-256 hash value of the file.
|
||
- Search for the existence of this file in resources like VirusTotal, Hybrid-Analysis, CISCO Talos, Any.run, etc.
|
||
- Use process name, command line, and file hash to search for other compromised hosts.
|
||
- Scope potentially compromised accounts. Analysts can do this by searching for login events (for example, 4624) to the target
|
||
host after the registry modification.
|
||
|
||
### False positive analysis
|
||
|
||
- This modification should not happen legitimately. Any potential benign true positive (B-TP) should be mapped and
|
||
monitored by the security team, as these modifications expose the entire domain to credential compromises and
|
||
consequently unauthorized access.
|
||
|
||
### Related rules
|
||
|
||
- Mimikatz Powershell Module Activity - ac96ceb8-4399-4191-af1d-4feeac1f1f46
|
||
|
||
### Response and remediation
|
||
|
||
- Initiate the incident response process based on the outcome of the triage.
|
||
- Isolate the involved hosts to prevent further post-compromise behavior.
|
||
- Disable user account’s ability to log in remotely.
|
||
- Reset the password for the user account and other potentially compromised accounts (email, services, CRMs, etc.).
|
||
- Reimage the host operating system and restore compromised files to clean versions.
|
||
"""
|
||
references = [
|
||
"https://www.csoonline.com/article/3438824/how-to-detect-and-halt-credential-theft-via-windows-wdigest.html",
|
||
"https://www.praetorian.com/blog/mitigating-mimikatz-wdigest-cleartext-credential-theft?edition=2019",
|
||
"https://frsecure.com/compromised-credentials-response-playbook",
|
||
]
|
||
risk_score = 73
|
||
rule_id = "d703a5af-d5b0-43bd-8ddb-7a5d500b7da5"
|
||
severity = "high"
|
||
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Credential Access"]
|
||
timestamp_override = "event.ingested"
|
||
type = "eql"
|
||
|
||
query = '''
|
||
registry where event.type : ("creation", "change") and
|
||
registry.path :
|
||
"HKLM\\SYSTEM\\*ControlSet*\\Control\\SecurityProviders\\WDigest\\UseLogonCredential"
|
||
and registry.data.strings : ("1", "0x00000001")
|
||
'''
|
||
|
||
|
||
[[rule.threat]]
|
||
framework = "MITRE ATT&CK"
|
||
[[rule.threat.technique]]
|
||
id = "T1003"
|
||
name = "OS Credential Dumping"
|
||
reference = "https://attack.mitre.org/techniques/T1003/"
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1003.001"
|
||
name = "LSASS Memory"
|
||
reference = "https://attack.mitre.org/techniques/T1003/001/"
|
||
|
||
|
||
|
||
[rule.threat.tactic]
|
||
id = "TA0006"
|
||
name = "Credential Access"
|
||
reference = "https://attack.mitre.org/tactics/TA0006/"
|
||
|