Detection rules › Elastic

Suspicious Execution via Microsoft Exchange Transport Agent

Source
github.com/elastic/protections-artifacts

Identifies the execution of a suspicious Microsoft Exchange Transport server child process. Adversaries may register a malicious transport agent to provide a persistence mechanism in Exchange Server that can be triggered by adversary-specified email events.

MITRE ATT&CK coverage

Rule body

[rule]
description = """
Identifies the execution of a suspicious Microsoft Exchange Transport server child process. Adversaries may register a
malicious transport agent to provide a persistence mechanism in Exchange Server that can be triggered by
adversary-specified email events.
"""
id = "243315b3-8664-4869-a3f4-197eb54c1446"
license = "Elastic License v2"
name = "Suspicious Execution via Microsoft Exchange Transport Agent"
os_list = ["windows"]
version = "1.0.4"

query = '''
process where event.action == "start" and 
 process.name : ("cmd.exe", "powershell.exe", "certutil.exe", "bitsadmin.exe", "rundll32.exe", "curl.exe", "reg.exe", "net.exe", "mshta.exe") and 
 process.parent.name : ("MSExchangeTransport.exe", "EdgeTransport.exe")
'''

min_endpoint_version = "7.16.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1505"
name = "Server Software Component"
reference = "https://attack.mitre.org/techniques/T1505/"
[[threat.technique.subtechnique]]
id = "T1505.002"
name = "Transport Agent"
reference = "https://attack.mitre.org/techniques/T1505/002/"



[threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"

[internal]
min_endpoint_version = "7.16.0"

Stages and Predicates

Stage 1: process

process where event.action == "start" and 
 process.name : ("cmd.exe", "powershell.exe", "certutil.exe", "bitsadmin.exe", "rundll32.exe", "curl.exe", "reg.exe", "net.exe", "mshta.exe") and 
 process.parent.name : ("MSExchangeTransport.exe", "EdgeTransport.exe")

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • start corpus 391 (elastic 391)
field:"EventType" kind:eq value:"start"
process.namewildcard
  • bitsadmin.exe corpus 23 (elastic 21, splunk 2)
  • certutil.exe corpus 44 (elastic 38, splunk 6)
  • cmd.exe corpus 121 (elastic 92, splunk 29)
  • curl.exe corpus 34 (elastic 31, splunk 3)
  • mshta.exe corpus 84 (elastic 79, splunk 5)
  • net.exe corpus 28 (elastic 26, splunk 2)
  • powershell.exe corpus 184 (elastic 140, splunk 44)
  • reg.exe corpus 27 (elastic 18, splunk 9)
  • rundll32.exe corpus 126 (elastic 100, splunk 26)
field:"process_name" kind:wildcard
process.parent.namewildcard
  • EdgeTransport.exe
  • MSExchangeTransport.exe
field:"parent_process_name" kind:wildcard