Detection rules › Elastic
NetWire RAT Registry Modification
Identifies registry modification activity consistent with the NetWire Remote Access Trojan (RAT). NetWire is a publicly available, multi-platform RAT that is used by criminal and APT groups.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | |
| Defense Impairment |
Rule body
[rule]
description = """
Identifies registry modification activity consistent with the NetWire Remote Access Trojan (RAT). NetWire is a publicly
available, multi-platform RAT that is used by criminal and APT groups.
"""
id = "102f340f-1839-4bad-8493-824cc02c4e69"
license = "Elastic License v2"
name = "NetWire RAT Registry Modification"
os_list = ["windows"]
reference = [
"https://any.run/malware-trends/netwire",
"https://attack.mitre.org/software/S0198/",
"https://www.elastic.co/security-labs/exploring-the-ref2731-intrusion-set",
]
version = "1.0.30"
query = '''
registry where
registry.path : (
"HKEY_USERS\\S-1-5-21-*\\SOFTWARE\\NetWire\\HostId",
"HKEY_USERS\\S-1-5-21-*\\SOFTWARE\\NetWire\\Install Date",
"HKEY_USERS\\S-1-12-1-*\\SOFTWARE\\NetWire\\HostId",
"HKEY_USERS\\S-1-12-1-*\\SOFTWARE\\NetWire\\Install Date"
)
'''
min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0
[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 0
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1112"
name = "Modify Registry"
reference = "https://attack.mitre.org/techniques/T1112/"
[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
[[threat]]
framework = "MITRE ATT&CK"
[threat.tactic]
id = "TA0011"
name = "Command and Control"
reference = "https://attack.mitre.org/tactics/TA0011/"
[internal]
min_endpoint_version = "7.15.0"
Stages and Predicates
Stage 1: registry
registry where
registry.path : (
"HKEY_USERS\\S-1-5-21-*\\SOFTWARE\\NetWire\\HostId",
"HKEY_USERS\\S-1-5-21-*\\SOFTWARE\\NetWire\\Install Date",
"HKEY_USERS\\S-1-12-1-*\\SOFTWARE\\NetWire\\HostId",
"HKEY_USERS\\S-1-12-1-*\\SOFTWARE\\NetWire\\Install Date"
)
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
registry.path | wildcard |
| field:"TargetObject" kind:wildcard |