Detection rules › Elastic

Suspicious Execution from a PDF Documents

Source
github.com/elastic/protections-artifacts

Identifies a suspicious execution from a PDF document with embedded objects. This behavior is consistent with the successful exploitation using spearphishing attachment.

MITRE ATT&CK coverage

TacticTechniques
Initial Access

Rule body

[rule]
description = """
Identifies a suspicious execution from a PDF document with embedded objects. This behavior is consistent with the
successful exploitation using spearphishing attachment.
"""
id = "4994b3af-632c-41b8-9bff-d96488b1af52"
license = "Elastic License v2"
name = "Suspicious Execution from a PDF Documents"
os_list = ["windows"]
version = "1.0.8"

query = '''
process where event.action == "start" and
 (
  (process.parent.name : "AcroRd*.exe" and
   process.name : ("chrome.exe", "firefox.exe", "msedge.exe", "cscript.exe", "wscript.exe",
                   "mshta.exe", "powershell.exe", "hh.exe", "cmd.exe") and
   process.args : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*") or

  (process.parent.name : ("chrome.exe", "firefox.exe", "msedge.exe") and process.parent.args : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*" and
   not process.name : ("chrome.exe", "firefox.exe", "msedge.exe")) or

  (process.executable : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*" and
   not process.code_signature.status : ("trusted", "errorExpired", "errorCode_endpoint*"))
 )
'''

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 = "T1566"
name = "Phishing"
reference = "https://attack.mitre.org/techniques/T1566/"
[[threat.technique.subtechnique]]
id = "T1566.001"
name = "Spearphishing Attachment"
reference = "https://attack.mitre.org/techniques/T1566/001/"



[threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"

[internal]
min_endpoint_version = "7.16.0"

Stages and Predicates

Stage 1: process

process where event.action == "start" and
 (
  (process.parent.name : "AcroRd*.exe" and
   process.name : ("chrome.exe", "firefox.exe", "msedge.exe", "cscript.exe", "wscript.exe",
                   "mshta.exe", "powershell.exe", "hh.exe", "cmd.exe") and
   process.args : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*") or

  (process.parent.name : ("chrome.exe", "firefox.exe", "msedge.exe") and process.parent.args : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*" and
   not process.name : ("chrome.exe", "firefox.exe", "msedge.exe")) or

  (process.executable : "?:\\Users\\*\\AppData\\Local\\Temp\\acrord*_sbx\\*" and
   not process.code_signature.status : ("trusted", "errorExpired", "errorCode_endpoint*"))
 )

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • start corpus 391 (elastic 391)
field:"EventType" kind:eq value:"start"
process.argswildcard
  • ?:\Users\*\AppData\Local\Temp\acrord*_sbx\*
field:"process.args" kind:wildcard value:"?:\Users\*\AppData\Local\Temp\acrord*_sbx\*"
process.executablewildcard
  • ?:\Users\*\AppData\Local\Temp\acrord*_sbx\*
field:"Image" kind:wildcard value:"?:\Users\*\AppData\Local\Temp\acrord*_sbx\*"
process.namewildcard
  • chrome.exe corpus 16 (elastic 14, splunk 2)
  • cmd.exe corpus 121 (elastic 92, splunk 29)
  • cscript.exe corpus 67 (elastic 65, splunk 2)
  • firefox.exe corpus 5 (elastic 5)
  • hh.exe corpus 8 (elastic 5, splunk 3)
  • msedge.exe corpus 12 (elastic 12)
  • mshta.exe corpus 84 (elastic 79, splunk 5)
  • powershell.exe corpus 184 (elastic 140, splunk 44)
  • wscript.exe corpus 83 (elastic 82, splunk 1)
field:"process_name" kind:wildcard
process.parent.argswildcard
  • ?:\Users\*\AppData\Local\Temp\acrord*_sbx\*
field:"process.parent.args" kind:wildcard value:"?:\Users\*\AppData\Local\Temp\acrord*_sbx\*"
process.parent.namewildcard
  • AcroRd*.exe
  • chrome.exe corpus 9 (elastic 9)
  • firefox.exe corpus 9 (elastic 9)
  • msedge.exe corpus 7 (elastic 7)
field:"parent_process_name" kind:wildcard