Skip to content

Commit 37ccdad

Browse files
Samirbousbm11100
andauthored
[New Rule] Virtual Private Network Connection Attempt (#912)
* [New Rule] Virtual Private Network Connection Attempt * fixed tactic_id * Update lateral_movement_vpn_connection_attempt.toml * Update rules/macos/lateral_movement_vpn_connection_attempt.toml Co-authored-by: Brent Murphy <[email protected]> Co-authored-by: Brent Murphy <[email protected]>
1 parent 8878104 commit 37ccdad

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[metadata]
2+
creation_date = "2020/01/25"
3+
maturity = "production"
4+
updated_date = "2020/01/25"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = "Identifies the execution of macOS built-in commands to connect to an existing Virtual Private Network (VPN)."
9+
from = "now-9m"
10+
index = ["auditbeat-*", "logs-endpoint.events.*"]
11+
language = "eql"
12+
license = "Elastic License"
13+
name = "Virtual Private Network Connection Attempt"
14+
references = [
15+
"https://github.com/rapid7/metasploit-framework/blob/master/modules/post/osx/manage/vpn.rb",
16+
"https://www.unix.com/man-page/osx/8/networksetup/",
17+
"https://superuser.com/questions/358513/start-configured-vpn-from-command-line-osx",
18+
]
19+
risk_score = 21
20+
rule_id = "15dacaa0-5b90-466b-acab-63435a59701a"
21+
severity = "low"
22+
tags = ["Elastic", "Host", "macOS", "Threat Detection", "Lateral Movement"]
23+
type = "eql"
24+
25+
query = '''
26+
process where event.type in ("start", "process_started") and
27+
(
28+
(process.name : "networksetup" and process.args : "-connectpppoeservice") or
29+
(process.name : "scutil" and process.args : "--nc" and process.args : "start") or
30+
(process.name : "osascript" and process.command_line : "osascript*set VPN to service*")
31+
)
32+
'''
33+
34+
35+
[[rule.threat]]
36+
framework = "MITRE ATT&CK"
37+
[[rule.threat.technique]]
38+
id = "T1021"
39+
name = "Remote Services"
40+
reference = "https://attack.mitre.org/techniques/T1021/"
41+
42+
43+
[rule.threat.tactic]
44+
id = "TA0008"
45+
name = "Lateral Movement"
46+
reference = "https://attack.mitre.org/tactics/TA0008/"

0 commit comments

Comments
 (0)