b4c84e8a40
* Update Tags * Bump updated date separately to be easy to revert if needed * Update resource_development_ml_linux_anomalous_compiler_activity.toml * Apply changes from the discussion * Update persistence_init_d_file_creation.toml * Update defense_evasion_timestomp_sysmon.toml * Update defense_evasion_application_removed_from_blocklist_in_google_workspace.toml * Update missing Tactic tags * Update unit tests to match new tags * Add missing IG tags * Delete okta_threat_detected_by_okta_threatinsight.toml * Update command_and_control_google_drive_malicious_file_download.toml * Update persistence_rc_script_creation.toml * Mass bump * Update persistence_shell_activity_by_web_server.toml * . --------- Co-authored-by: Mika Ayenson <Mika.ayenson@elastic.co> Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
67 lines
2.6 KiB
TOML
67 lines
2.6 KiB
TOML
[metadata]
|
|
creation_date = "2021/01/06"
|
|
integration = ["endpoint"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/06/22"
|
|
|
|
[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"
|
|
index = ["auditbeat-*", "logs-endpoint.events.*", "endgame-*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Persistence via KDE AutoStart Script or Desktop File Modification"
|
|
note = """## Setup
|
|
|
|
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.
|
|
"""
|
|
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"
|
|
tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Persistence", "Data Source: Elastic Endgame"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
file where host.os.type == "linux" and event.type != "deletion" and
|
|
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/*"
|
|
) and
|
|
not process.name in ("yum", "dpkg", "install", "dnf", "teams", "yum-cron", "dnf-automatic")
|
|
'''
|
|
|
|
|
|
[[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/"
|
|
|