2020-12-08 20:35:18 +01:00
[ metadata ]
creation_date = "2020/11/18"
maturity = "production"
2022-04-01 15:27:08 -08:00
updated_date = "2022/03/31"
2020-12-08 20:35:18 +01:00
[ rule ]
author = [ "Elastic" ]
description = "Identifies script engines creating files in the startup folder, or the creation of script files in the startup folder."
2021-02-17 19:49:58 -09:00
from = "now-9m"
2021-01-28 20:53:57 -09:00
index = [ "winlogbeat-*" , "logs-endpoint.events.*" , "logs-windows.*" ]
2020-12-08 20:35:18 +01:00
language = "eql"
2021-03-03 22:12:11 -09:00
license = "Elastic License v2"
2020-12-08 20:35:18 +01:00
name = "Persistent Scripts in the Startup Directory"
2022-04-01 15:27:08 -08:00
note = "" "## Config
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.
" ""
2020-12-08 20:35:18 +01:00
risk_score = 47
rule_id = "f7c4dc5a-a58d-491d-9f14-9b66507121c0"
severity = "medium"
tags = [ "Elastic" , "Host" , "Windows" , "Threat Detection" , "Persistence" ]
2021-02-16 10:52:48 -09:00
timestamp_override = "event.ingested"
2020-12-08 20:35:18 +01:00
type = "eql"
query = '' '
2020-12-12 20:11:17 -06:00
file where event.type != "deletion" and user.domain != "NT AUTHORITY" and
/* detect shortcuts created by wscript.exe or cscript.exe */
(file.path : "C:\\*\\Programs\\Startup\\*.lnk" and
process.name : ("wscript.exe", "cscript.exe")) or
/* detect vbs or js files created by any process */
file.path : ("C:\\*\\Programs\\Startup\\*.vbs",
"C:\\*\\Programs\\Startup\\*.vbe",
"C:\\*\\Programs\\Startup\\*.wsh",
"C:\\*\\Programs\\Startup\\*.wsf",
"C:\\*\\Programs\\Startup\\*.js")
2020-12-08 20:35:18 +01:00
' ''
[ [ rule . threat ] ]
framework = "MITRE ATT&CK"
[ [ rule . threat . technique ] ]
2020-12-18 12:46:16 -09:00
id = "T1547"
name = "Boot or Logon Autostart Execution"
reference = "https://attack.mitre.org/techniques/T1547/"
[ [ rule . threat . technique . subtechnique ] ]
id = "T1547.001"
2020-12-08 20:35:18 +01:00
name = "Registry Run Keys / Startup Folder"
2020-12-18 12:46:16 -09:00
reference = "https://attack.mitre.org/techniques/T1547/001/"
2020-12-08 20:35:18 +01:00
2021-02-16 10:52:48 -09:00
2020-12-08 20:35:18 +01:00
[ rule . threat . tactic ]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
2020-12-18 12:46:16 -09:00