2021-02-09 10:47:05 +01:00
[ metadata ]
creation_date = "2021/01/06"
2023-01-04 09:30:07 -05:00
integration = [ "endpoint" ]
2021-02-09 10:47:05 +01:00
maturity = "production"
2022-08-24 10:38:49 -06:00
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
min_stack_version = "8.3.0"
2023-03-05 09:41:19 -09:00
updated_date = "2023/02/22"
2021-02-09 10:47:05 +01:00
[ rule ]
author = [ "Elastic" ]
description = "" "
Identifies the creation or modification of a K Desktop Environment (KDE) AutoStart script or desktop file that will
execute upon each user logon. Adversaries may abuse this method for persistence.
" ""
from = "now-9m"
2023-01-23 20:53:15 -03:00
index = [ "auditbeat-*" , "logs-endpoint.events.*" , "endgame-*" ]
2021-02-09 10:47:05 +01:00
language = "eql"
2021-03-03 22:12:11 -09:00
license = "Elastic License v2"
2021-02-09 10:47:05 +01:00
name = "Persistence via KDE AutoStart Script or Desktop File Modification"
2022-07-18 15:41:32 -04:00
note = "" "## Setup
2022-04-01 15:27:08 -08:00
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.
" ""
2021-02-09 10:47:05 +01:00
references = [
"https://userbase.kde.org/System_Settings/Autostart" ,
"https://www.amnesty.org/en/latest/research/2020/09/german-made-finspy-spyware-found-in-egypt-and-mac-and-linux-versions-revealed/" ,
"https://www.intezer.com/blog/research/operation-electrorat-attacker-creates-fake-companies-to-drain-your-crypto-wallets/" ,
]
risk_score = 47
rule_id = "e3e904b3-0a8e-4e68-86a8-977a163e21d3"
severity = "medium"
2023-01-23 20:53:15 -03:00
tags = [ "Elastic" , "Host" , "Linux" , "Threat Detection" , "Persistence" , "Elastic Endgame" ]
2021-02-17 19:49:58 -09:00
timestamp_override = "event.ingested"
2021-02-09 10:47:05 +01:00
type = "eql"
query = '' '
2023-03-05 09:41:19 -09:00
file where host.os.type == "linux" and event.type != "deletion" and
2021-02-09 10:47:05 +01:00
file.extension in ("sh", "desktop") and
file.path :
(
"/home/*/.config/autostart/*", "/root/.config/autostart/*",
"/home/*/.kde/Autostart/*", "/root/.kde/Autostart/*",
"/home/*/.kde4/Autostart/*", "/root/.kde4/Autostart/*",
"/home/*/.kde/share/autostart/*", "/root/.kde/share/autostart/*",
"/home/*/.kde4/share/autostart/*", "/root/.kde4/share/autostart/*",
"/home/*/.local/share/autostart/*", "/root/.local/share/autostart/*",
"/home/*/.config/autostart-scripts/*", "/root/.config/autostart-scripts/*",
"/etc/xdg/autostart/*", "/usr/share/autostart/*"
2022-07-29 21:55:49 +05:30
) and
not process.name in ("yum", "dpkg", "install", "dnf", "teams", "yum-cron", "dnf-automatic")
2021-02-09 10:47:05 +01:00
' ''
[ [ rule . threat ] ]
framework = "MITRE ATT&CK"
[ [ rule . threat . technique ] ]
id = "T1547"
name = "Boot or Logon Autostart Execution"
reference = "https://attack.mitre.org/techniques/T1547/"
[ rule . threat . tactic ]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
2021-02-17 19:49:58 -09:00