2020-06-29 22:57:00 -06:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2020/02/18"
|
2021-04-21 19:10:06 +00:00
|
|
|
deprecation_date = "2021/04/15"
|
|
|
|
|
maturity = "deprecated"
|
|
|
|
|
updated_date = "2021/04/15"
|
2020-06-29 22:57:00 -06:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = """
|
|
|
|
|
A Socat process is running on a Linux host. Socat is often used as a persistence mechanism by exporting a reverse shell,
|
|
|
|
|
or by serving a shell on a listening port. Socat is also sometimes used for lateral movement.
|
|
|
|
|
"""
|
|
|
|
|
false_positives = [
|
|
|
|
|
"""
|
|
|
|
|
Socat is a dual-use tool that can be used for benign or malicious activity. Some normal use of this program, at
|
|
|
|
|
varying levels of frequency, may originate from scripts, automation tools, and frameworks. Usage by web servers is
|
|
|
|
|
more likely to be suspicious.
|
|
|
|
|
""",
|
|
|
|
|
]
|
2020-08-21 12:23:43 -05:00
|
|
|
from = "now-9m"
|
2020-08-03 15:46:57 -04:00
|
|
|
index = ["auditbeat-*", "logs-endpoint.events.*"]
|
2020-06-29 22:57:00 -06:00
|
|
|
language = "kuery"
|
2021-03-03 22:12:11 -09:00
|
|
|
license = "Elastic License v2"
|
2020-06-29 22:57:00 -06:00
|
|
|
name = "Socat Process Activity"
|
|
|
|
|
references = ["https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/#method-2-using-socat"]
|
|
|
|
|
risk_score = 47
|
|
|
|
|
rule_id = "cd4d5754-07e1-41d4-b9a5-ef4ea6a0a126"
|
|
|
|
|
severity = "medium"
|
2020-10-26 13:50:45 -05:00
|
|
|
tags = ["Elastic", "Host", "Linux", "Threat Detection"]
|
2021-02-16 10:52:48 -09:00
|
|
|
timestamp_override = "event.ingested"
|
2020-06-29 22:57:00 -06:00
|
|
|
type = "query"
|
|
|
|
|
|
|
|
|
|
query = '''
|
2020-07-07 13:43:33 -05:00
|
|
|
event.category:process and event.type:(start or process_started) and process.name:socat and not process.args:-V
|
2020-06-29 22:57:00 -06:00
|
|
|
'''
|
|
|
|
|
|