81292aee8a
* [Rule Tuning] 3rd Party EDR - Add Crowdstrike FDR support - 1 * Update Integrations unit tests * Update test_all_rules.py
63 lines
2.1 KiB
TOML
63 lines
2.1 KiB
TOML
[metadata]
|
|
creation_date = "2024/09/09"
|
|
integration = ["endpoint", "windows", "sentinel_one_cloud_funnel", "m365_defender", "system", "crowdstrike"]
|
|
maturity = "production"
|
|
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
|
|
min_stack_version = "8.14.0"
|
|
updated_date = "2024/10/31"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Detects the execution of the VScode portable binary with the tunnel command line option indicating an
|
|
attempt to establish a remote tunnel session to Github or a remote VScode instance.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.process-*", "winlogbeat-*", "logs-windows.sysmon_operational-*", "logs-system.security*", "endgame-*", "logs-sentinel_one_cloud_funnel.*", "logs-m365_defender.event-*", "logs-crowdstrike.fdr*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Attempt to Establish VScode Remote Tunnel"
|
|
references = [
|
|
"https://badoption.eu/blog/2023/01/31/code_c2.html",
|
|
"https://code.visualstudio.com/docs/remote/tunnels"
|
|
]
|
|
risk_score = 47
|
|
rule_id = "0b96dfd8-5b8c-4485-9a1c-69ff7839786a"
|
|
severity = "medium"
|
|
tags = [
|
|
"Domain: Endpoint",
|
|
"OS: Windows",
|
|
"Use Case: Threat Detection",
|
|
"Tactic: Command and Control",
|
|
"Data Source: Elastic Endgame",
|
|
"Data Source: Elastic Defend",
|
|
"Data Source: Sysmon",
|
|
"Data Source: SentinelOne",
|
|
"Data Source: Microsoft Defender for Endpoint",
|
|
"Data Source: System",
|
|
"Data Source: Crowdstrike",
|
|
]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where host.os.type == "windows" and event.type == "start" and
|
|
process.args : "tunnel" and (process.args : "--accept-server-license-terms" or process.name : "code*.exe") and
|
|
not (process.name == "code-tunnel.exe" and process.args == "status" and process.parent.name == "Code.exe")
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1219"
|
|
name = "Remote Access Software"
|
|
reference = "https://attack.mitre.org/techniques/T1219/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0011"
|
|
name = "Command and Control"
|
|
reference = "https://attack.mitre.org/tactics/TA0011/"
|
|
|