Potential Process Herpaderping Attempt

Identifies process execution followed by a file overwrite of an executable by the same parent process. This may indicate an evasion attempt to execute malicious code in a stealthy way.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/10/27"
 3integration = ["endpoint", "windows"]
 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 process execution followed by a file overwrite of an executable by the same parent process. This may indicate
13an evasion attempt to execute malicious code in a stealthy way.
14"""
15from = "now-9m"
16index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.*"]
17language = "eql"
18license = "Elastic License v2"
19name = "Potential Process Herpaderping Attempt"
20references = ["https://github.com/jxy-s/herpaderping"]
21risk_score = 73
22rule_id = "ccc55af4-9882-4c67-87b4-449a7ae8079c"
23severity = "high"
24tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Defense Evasion", "Data Source: Elastic Defend"]
25type = "eql"
26
27query = '''
28sequence with maxspan=5s
29   [process where host.os.type == "windows" and event.type == "start" and not process.parent.executable :
30      (
31         "?:\\Windows\\SoftwareDistribution\\*.exe",
32         "?:\\Program Files\\Elastic\\Agent\\data\\*.exe",
33         "?:\\Program Files (x86)\\Trend Micro\\*.exe"
34      )
35   ] by host.id, process.executable, process.parent.entity_id
36   [file where host.os.type == "windows" and event.type == "change" and event.action == "overwrite" and file.extension == "exe"] by host.id, file.path, process.entity_id
37'''
38
39
40[[rule.threat]]
41framework = "MITRE ATT&CK"
42[[rule.threat.technique]]
43id = "T1036"
44name = "Masquerading"
45reference = "https://attack.mitre.org/techniques/T1036/"
46
47
48[rule.threat.tactic]
49id = "TA0005"
50name = "Defense Evasion"
51reference = "https://attack.mitre.org/tactics/TA0005/"

References

Related rules

to-top