46 lines
1.4 KiB
TOML
46 lines
1.4 KiB
TOML
[metadata]
|
|
creation_date = "2020/01/07"
|
|
maturity = "production"
|
|
updated_date = "2021/03/03"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = "Identifies the execution of a shell process with suspicious arguments which may be indicative of reverse shell activity."
|
|
from = "now-9m"
|
|
index = ["auditbeat-*", "logs-endpoint.events.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Potential Reverse Shell Activity via Terminal"
|
|
references = [
|
|
"https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Reverse%20Shell%20Cheatsheet.md",
|
|
"https://github.com/WangYihang/Reverse-Shell-Manager",
|
|
"https://www.netsparker.com/blog/web-security/understanding-reverse-shells/",
|
|
]
|
|
risk_score = 73
|
|
rule_id = "a1a0375f-22c2-48c0-81a4-7c2d11cc6856"
|
|
severity = "high"
|
|
tags = ["Elastic", "Host", "Linux", "macOS", "Threat Detection", "Execution"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where event.type in ("start", "process_started") and
|
|
process.name in ("sh", "bash", "zsh", "dash", "zmodload") and
|
|
process.args:("*/dev/tcp/*", "*/dev/udp/*", "zsh/net/tcp", "zsh/net/udp")
|
|
'''
|
|
|
|
|
|
[[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.tactic]
|
|
id = "TA0002"
|
|
name = "Execution"
|
|
reference = "https://attack.mitre.org/tactics/TA0002/"
|
|
|