T1547.013 / TECHNIQUE
XDG Autostart Entries
Adversaries may add or modify XDG Autostart Entries to execute malicious programs or commands when a user’s desktop environment is loaded at login. XDG Autostart entries are available for any XDG-compliant Linux system. XDG Autostart entries use Desktop Entry files (`.desktop`) to configure the user’s desktop environment upon user login. These configuration files determine what applications launch upon user login, define associated applications to open specific file types, and define applications used to open removable media. Adversaries may abuse this feature to establish persistence by adding a path to a malicious binary or command to the `Exec` directive in the `.desktop` configuration file. When the user’s desktop environment is loaded at user login, the `.desktop` files located in the XDG Autostart directories are automatically executed. System-wide Autostart entries are located in the `/etc/xdg/autostart` directory while the user entries are located in the `~/.config/autostart` directory. Adversaries may combine this technique with Masquerading to blend malicious Autostart entries with legitimate programs.
- Category
- ATT&CK Enterprise
- Version / scope
- ATT&CK Enterprise 20.1; object 1.2
- Affected / relevant technologies
- Linux
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Assess applicability to the documented environment and obtain authorization before any testing. This publisher reference is not a tested configuration or execution guide.
Potential impact
Publisher tactic context: persistence, privilege escalation
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: ATT&CK Enterprise 20.1. Source checked: 2026-11-18.
Source object: attack-pattern--e0232cb0-ded5-4c2e-9dc7-2893142a5c11. Object created: 2019-09-10T18:13:12.195Z. Object modified: 2025-10-24T17:49:30.252Z.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- See publisher detection strategy relationships where available; local detection coverage requires independent assessment.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- See publisher mitigation relationships where available; local control effectiveness requires independent assessment.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
- M1022 → mitigates → T1547.013: Restrict File and Directory Permissions
- M1018 → mitigates → T1547.013: User Account Management
- M1033 → mitigates → T1547.013: Limit Software Installation
- DET0390 → detects → T1547.013: Linux Detection Strategy for T1547.013 - XDG Autostart Entries
- T1547.013 → subtechnique-of → T1547: Boot or Logon Autostart Execution
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://attack.mitre.org/techniques/T1547/013 — Publisher link; not separately HTTP-checked
- enterprise — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
