Skip to content

[New Rule] Virtual Private Network Connection Attempt #912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 3, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions rules/macos/lateral_movement_vpn_connection_attempt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[metadata]
creation_date = "2020/01/25"
maturity = "production"
updated_date = "2020/01/25"

[rule]
author = ["Elastic"]
description = "Identifies the execution of macOS built-in commands to connect to an existing Virtual Private Network (VPN)."
from = "now-9m"
index = ["auditbeat-*", "logs-endpoint.events.*"]
language = "eql"
license = "Elastic License"
name = "Virtual Private Network Connection Attempt"
references = [
"https://github.com/rapid7/metasploit-framework/blob/master/modules/post/osx/manage/vpn.rb",
"https://www.unix.com/man-page/osx/8/networksetup/",
"https://superuser.com/questions/358513/start-configured-vpn-from-command-line-osx",
]
risk_score = 21
rule_id = "15dacaa0-5b90-466b-acab-63435a59701a"
severity = "low"
tags = ["Elastic", "Host", "macOS", "Threat Detection", "Lateral Movement"]
type = "eql"

query = '''
process where event.type in ("start", "process_started") and
(
(process.name:"networksetup" and process.args:"-connectpppoeservice") or
(process.name:"scutil" and process.args:"--nc" and process.args:"start") or
(process.name:"osascript" and process.command_line:"osascript*set VPN to service*")
)
'''


[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1021"
name = "Remote Services"
reference = "https://attack.mitre.org/techniques/T1021/"


[rule.threat.tactic]
id = "TA0008"
name = "Lateral Movement"
reference = "https://attack.mitre.org/tactics/TA0008/"