Skip to content

Commit 5d15fc9

Browse files
Samirbousgithub-actions[bot]
authored andcommitted
[New] Suspicious Execution via ScreenConnect (#3541)
* [New] Suspicious Execution via ScreenConnect - Suspicious ScreenConnect Client Child Process (limited to known suspicious patterns) - ScreenConnect Server Spawning Suspicious Processes (webshell access via ScreenConnect server) * Update command_and_control_screenconnect_childproc.toml * Update rules/windows/initial_access_webshell_screenconnect_server.toml * Update rules/windows/command_and_control_screenconnect_childproc.toml * Update rules/windows/command_and_control_screenconnect_childproc.toml Co-authored-by: Jonhnathan <[email protected]> * Update command_and_control_screenconnect_childproc.toml * Update command_and_control_screenconnect_childproc.toml --------- Co-authored-by: Ruben Groenewoud <[email protected]> Co-authored-by: Jonhnathan <[email protected]> (cherry picked from commit d7aff43)
1 parent 4422cf5 commit 5d15fc9

File tree

2 files changed

+142
-0
lines changed

2 files changed

+142
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
[metadata]
2+
creation_date = "2024/03/27"
3+
integration = ["endpoint", "windows"]
4+
maturity = "production"
5+
updated_date = "2024/03/27"
6+
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
7+
min_stack_version = "8.3.0"
8+
9+
10+
[rule]
11+
author = ["Elastic"]
12+
description = """
13+
Identifies suspicious processes being spawned by the ScreenConnect client processes. This activity may indicate execution
14+
abusing unauthorized access to the ScreenConnect remote access software.
15+
"""
16+
from = "now-9m"
17+
index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.sysmon_operational-*", "logs-system.security*", "endgame-*"]
18+
language = "eql"
19+
license = "Elastic License v2"
20+
name = "Suspicious ScreenConnect Client Child Process"
21+
references = ["https://www.huntress.com/blog/slashandgrab-screen-connect-post-exploitation-in-the-wild-cve-2024-1709-cve-2024-1708"]
22+
risk_score = 47
23+
rule_id = "78de1aeb-5225-4067-b8cc-f4a1de8a8546"
24+
severity = "medium"
25+
tags = [
26+
"Domain: Endpoint",
27+
"OS: Windows",
28+
"Use Case: Threat Detection",
29+
"Tactic: Command and Control",
30+
"Resources: Investigation Guide",
31+
"Data Source: Elastic Endgame",
32+
"Data Source: Elastic Defend",
33+
"Data Source: Sysmon"
34+
]
35+
timestamp_override = "event.ingested"
36+
type = "eql"
37+
38+
query = '''
39+
process where host.os.type == "windows" and event.type == "start" and
40+
process.parent.name :
41+
("ScreenConnect.ClientService.exe",
42+
"ScreenConnect.WindowsClient.exe",
43+
"ScreenConnect.WindowsBackstageShell.exe",
44+
"ScreenConnect.WindowsFileManager.exe") and
45+
(
46+
(process.name : "powershell.exe" and
47+
process.args : ("-enc", "-ec", "-e", "*downloadstring*", "*Reflection.Assembly*", "*http*")) or
48+
(process.name : "cmd.exe" and process.args : "/c") or
49+
(process.name : "net.exe" and process.args : "/add") or
50+
(process.name : "schtasks.exe" and process.args : ("/create", "-create")) or
51+
(process.name : "sc.exe" and process.args : "create") or
52+
(process.name : "rundll32.exe" and not process.args : "url.dll,FileProtocolHandler") or
53+
(process.name : "msiexec.exe" and process.args : ("/i", "-i") and
54+
process.args : ("/q", "/quiet", "/qn", "-q", "-quiet", "-qn", "-Q+")) or
55+
process.name : ("mshta.exe", "certutil.exe", "bistadmin.exe", "certreq.exe", "wscript.exe", "cscript.exe", "curl.exe",
56+
"ssh.exe", "scp.exe", "wevtutil.exe", "wget.exe", "wmic.exe")
57+
)
58+
'''
59+
60+
61+
[[rule.threat]]
62+
framework = "MITRE ATT&CK"
63+
[[rule.threat.technique]]
64+
id = "T1219"
65+
name = "Remote Access Software"
66+
reference = "https://attack.mitre.org/techniques/T1219/"
67+
68+
69+
[rule.threat.tactic]
70+
id = "TA0011"
71+
name = "Command and Control"
72+
reference = "https://attack.mitre.org/tactics/TA0011/"
73+
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[metadata]
2+
creation_date = "2024/03/26"
3+
integration = ["endpoint", "windows"]
4+
maturity = "production"
5+
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
6+
min_stack_version = "8.3.0"
7+
updated_date = "2024/03/26"
8+
9+
[rule]
10+
author = ["Elastic"]
11+
description = """
12+
Identifies suspicious processes being spawned by the ScreenConnect server process (ScreenConnect.Service.exe). This activity may
13+
indicate exploitation activity or access to an existing web shell backdoor.
14+
"""
15+
from = "now-9m"
16+
index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.sysmon_operational-*", "logs-system.security*", "endgame-*"]
17+
language = "eql"
18+
license = "Elastic License v2"
19+
name = "ScreenConnect Server Spawning Suspicious Processes"
20+
references = ["https://blackpointcyber.com/resources/blog/breaking-through-the-screen/"]
21+
risk_score = 73
22+
rule_id = "3d00feab-e203-4acc-a463-c3e15b7e9a73"
23+
severity = "high"
24+
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Initial Access", "Tactic: Execution", "Data Source: Elastic Endgame", "Data Source: Elastic Defend", "Data Source: Sysmon"]
25+
timestamp_override = "event.ingested"
26+
type = "eql"
27+
28+
query = '''
29+
process where host.os.type == "windows" and event.type == "start" and
30+
process.parent.name : "ScreenConnect.Service.exe" and
31+
(process.name : ("cmd.exe", "powershell.exe", "pwsh.exe", "powershell_ise.exe", "csc.exe") or
32+
?process.pe.original_file_name in ("cmd.exe", "powershell.exe", "pwsh.dll", "powershell_ise.exe"))
33+
'''
34+
35+
36+
[[rule.threat]]
37+
framework = "MITRE ATT&CK"
38+
[[rule.threat.technique]]
39+
id = "T1190"
40+
name = "Exploit Public-Facing Application"
41+
reference = "https://attack.mitre.org/techniques/T1190/"
42+
43+
44+
[rule.threat.tactic]
45+
id = "TA0001"
46+
name = "Initial Access"
47+
reference = "https://attack.mitre.org/tactics/TA0001/"
48+
49+
[[rule.threat]]
50+
framework = "MITRE ATT&CK"
51+
[[rule.threat.technique]]
52+
id = "T1059"
53+
name = "Command and Scripting Interpreter"
54+
reference = "https://attack.mitre.org/techniques/T1059/"
55+
[[rule.threat.technique.subtechnique]]
56+
id = "T1059.001"
57+
name = "PowerShell"
58+
reference = "https://attack.mitre.org/techniques/T1059/001/"
59+
[[rule.threat.technique.subtechnique]]
60+
id = "T1059.003"
61+
name = "Windows Command Shell"
62+
reference = "https://attack.mitre.org/techniques/T1059/003/"
63+
64+
65+
[rule.threat.tactic]
66+
id = "TA0002"
67+
name = "Execution"
68+
reference = "https://attack.mitre.org/tactics/TA0002/"
69+

0 commit comments

Comments
 (0)