Potential Protocol Tunneling via EarthWorm

Identifies the execution of the EarthWorm tunneler. Adversaries may tunnel network communications to and from a victim system within a separate protocol to avoid detection and network filtering, or to enable access to otherwise unreachable systems.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2021/04/12"
 3integration = ["endpoint"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/06/22"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12Identifies the execution of the EarthWorm tunneler. Adversaries may tunnel network communications to and from a victim
13system within a separate protocol to avoid detection and network filtering, or to enable access to otherwise unreachable
14systems.
15"""
16from = "now-9m"
17index = ["auditbeat-*", "logs-endpoint.events.*", "endgame-*"]
18language = "eql"
19license = "Elastic License v2"
20name = "Potential Protocol Tunneling via EarthWorm"
21note = """## Setup
22
23If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
24"""
25references = [
26    "http://rootkiter.com/EarthWorm/",
27    "https://decoded.avast.io/luigicamastra/apt-group-targeting-governmental-agencies-in-east-asia/",
28]
29risk_score = 47
30rule_id = "9f1c4ca3-44b5-481d-ba42-32dc215a2769"
31severity = "medium"
32tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Command and Control", "Data Source: Elastic Endgame", "Data Source: Elastic Defend"]
33timestamp_override = "event.ingested"
34type = "eql"
35
36query = '''
37process where host.os.type == "linux" and event.type == "start" and
38 process.args : "-s" and process.args : "-d" and process.args : "rssocks"
39'''
40
41
42[[rule.threat]]
43framework = "MITRE ATT&CK"
44[[rule.threat.technique]]
45id = "T1572"
46name = "Protocol Tunneling"
47reference = "https://attack.mitre.org/techniques/T1572/"
48
49
50[rule.threat.tactic]
51id = "TA0011"
52name = "Command and Control"
53reference = "https://attack.mitre.org/tactics/TA0011/"

Setup

If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define event.ingested and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate event.ingested to @timestamp for this rule to work.

References

Related rules

to-top