Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may add or modify XDG Autostart Entries to execute malicious programs or commands when a user’s desktop environment is loaded at login.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-24 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 11% | 0% |
> Sub-technique of: T1547
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.
Platforms: Linux
> Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Restrict write access to XDG autostart entries to only select privileged users.
Limit privileges of user accounts so only authorized privileged users can create and modify XDG autostart entries.
Restrict software installation to trusted repositories only and be cautious of orphaned software packages.
| Finding | Severity | Impact | | ------------------------------------------ | -------- | ----------- | | XDG Autostart Entries technique applicable | Low | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.