8d25a7ddce
* [Rule Tuning] Fix MS Defender XDR tag * bump upodated_date
158 lines
5.9 KiB
TOML
158 lines
5.9 KiB
TOML
[metadata]
|
||
creation_date = "2025/08/19"
|
||
integration = ["endpoint", "windows", "system", "sentinel_one_cloud_funnel", "m365_defender", "crowdstrike"]
|
||
maturity = "production"
|
||
updated_date = "2026/04/07"
|
||
|
||
[rule]
|
||
author = ["Elastic"]
|
||
description = """
|
||
Identifies potential fake CAPTCHA phishing attack based on PowerShell or Cmd argument values. Adversaries employ this
|
||
technique via compromised websites with browser injects, posing either as fake CAPTCHAs to access the site or as a page
|
||
loading error requiring a fix to display the page. The victim is instructed to copy and past a malicious command to
|
||
the Windows Run dialog box.
|
||
"""
|
||
from = "now-9m"
|
||
index = [
|
||
"logs-endpoint.events.process-*",
|
||
"logs-crowdstrike.fdr*",
|
||
"logs-m365_defender.event-*",
|
||
"logs-sentinel_one_cloud_funnel.*",
|
||
"logs-system.security*",
|
||
"logs-windows.forwarded*",
|
||
"logs-windows.sysmon_operational-*",
|
||
"winlogbeat-*",
|
||
]
|
||
language = "eql"
|
||
license = "Elastic License v2"
|
||
name = "Potential Fake CAPTCHA Phishing Attack"
|
||
note = """## Triage and analysis
|
||
|
||
> **Disclaimer**:
|
||
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
|
||
|
||
### Investigating Potential Fake CAPTCHA Phishing Attack
|
||
|
||
### Possible investigation steps
|
||
|
||
- Review the process command line and arguments to identify any malicious intent.
|
||
- Review web activity preceeding the alert to identify the initial vector.
|
||
- Investigate any network activity or child processes from the suspected process.
|
||
- Correlate the event with other security alerts or logs from the same host or user to identify patterns or additional indicators of compromise.
|
||
- Assess the risk and impact of the detected activity by considering the context of the environment, such as the presence of sensitive data or critical systems that might be affected.
|
||
|
||
### False positive analysis
|
||
|
||
- Legitimate administrative scripts containing the suspicious keywords such as CAPTCHA.
|
||
|
||
### Response and remediation
|
||
|
||
- Immediately isolate the affected system from the network to prevent further spread or communication with potential command and control servers.
|
||
- Terminate any suspicious processes identified by the detection rule to halt ongoing malicious activities.
|
||
- Conduct a thorough scan of the affected system using updated antivirus or endpoint detection and response (EDR) tools to identify and remove any malicious payloads or scripts.
|
||
- Review and clean up any unauthorized changes to system configurations or scheduled tasks that may have been altered by the malicious PowerShell activity.
|
||
- Restore any affected files or system components from known good backups to ensure system integrity and functionality.
|
||
- Escalate the incident to the security operations center (SOC) or incident response team for further analysis and to determine if additional systems are compromised.
|
||
- Implement additional monitoring and logging for PowerShell activities across the network to enhance detection of similar threats in the future."""
|
||
risk_score = 73
|
||
rule_id = "fbad57ec-4442-48db-a34f-5ee907b44a22"
|
||
severity = "high"
|
||
tags = [
|
||
"Domain: Endpoint",
|
||
"OS: Windows",
|
||
"Use Case: Threat Detection",
|
||
"Tactic: Execution",
|
||
"Data Source: Windows Security Event Logs",
|
||
"Data Source: Elastic Defend",
|
||
"Data Source: Sysmon",
|
||
"Data Source: SentinelOne",
|
||
"Data Source: Microsoft Defender XDR",
|
||
"Data Source: Crowdstrike",
|
||
"Resources: Investigation Guide",
|
||
]
|
||
timestamp_override = "event.ingested"
|
||
type = "eql"
|
||
|
||
query = '''
|
||
process where host.os.type == "windows" and event.type == "start" and
|
||
process.name : ("powershell.exe", "cmd.exe", "mshta.exe") and process.parent.name : "explorer.exe" and
|
||
process.command_line : ("*recaptcha *", "*CAPTCHA Verif*", "*complete verification*", "*Verification ID*", "*Verification Code*", "*Verification UID*",
|
||
"*hυmаn vаlіdаtiοn*", "*human ID*", "*Action Identificator*", "*not a robot*", "*Click OK to*", "*anti-robot test*",
|
||
"*Cloudflare ID*")
|
||
'''
|
||
|
||
|
||
[[rule.threat]]
|
||
framework = "MITRE ATT&CK"
|
||
|
||
[[rule.threat.technique]]
|
||
id = "T1059"
|
||
name = "Command and Scripting Interpreter"
|
||
reference = "https://attack.mitre.org/techniques/T1059/"
|
||
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1059.001"
|
||
name = "PowerShell"
|
||
reference = "https://attack.mitre.org/techniques/T1059/001/"
|
||
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1059.003"
|
||
name = "Windows Command Shell"
|
||
reference = "https://attack.mitre.org/techniques/T1059/003/"
|
||
|
||
[[rule.threat.technique]]
|
||
id = "T1204"
|
||
name = "User Execution"
|
||
reference = "https://attack.mitre.org/techniques/T1204/"
|
||
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1204.004"
|
||
name = "Malicious Copy and Paste"
|
||
reference = "https://attack.mitre.org/techniques/T1204/004/"
|
||
|
||
[rule.threat.tactic]
|
||
id = "TA0002"
|
||
name = "Execution"
|
||
reference = "https://attack.mitre.org/tactics/TA0002/"
|
||
|
||
[[rule.threat]]
|
||
framework = "MITRE ATT&CK"
|
||
|
||
[[rule.threat.technique]]
|
||
id = "T1218"
|
||
name = "System Binary Proxy Execution"
|
||
reference = "https://attack.mitre.org/techniques/T1218/"
|
||
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1218.005"
|
||
name = "Mshta"
|
||
reference = "https://attack.mitre.org/techniques/T1218/005/"
|
||
|
||
[rule.threat.tactic]
|
||
id = "TA0005"
|
||
name = "Defense Evasion"
|
||
reference = "https://attack.mitre.org/tactics/TA0005/"
|
||
|
||
[[rule.threat]]
|
||
framework = "MITRE ATT&CK"
|
||
|
||
[[rule.threat.technique]]
|
||
id = "T1189"
|
||
name = "Drive-by Compromise"
|
||
reference = "https://attack.mitre.org/techniques/T1189/"
|
||
|
||
[[rule.threat.technique]]
|
||
id = "T1566"
|
||
name = "Phishing"
|
||
reference = "https://attack.mitre.org/techniques/T1566/"
|
||
|
||
[[rule.threat.technique.subtechnique]]
|
||
id = "T1566.001"
|
||
name = "Spearphishing Attachment"
|
||
reference = "https://attack.mitre.org/techniques/T1566/001/"
|
||
|
||
[rule.threat.tactic]
|
||
id = "TA0001"
|
||
name = "Initial Access"
|
||
reference = "https://attack.mitre.org/tactics/TA0001/"
|