Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents MITRE ATT&CK technique T1547.007, where attackers modify macOS loginwindow plist files to relaunch malicious apps at user login.
68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
3 of 3 safety checks passed
Not used yet
Sub-technique of: T1547
Adversaries may modify plist files to automatically run an application when a user logs in. When a user logs out or restarts via the macOS Graphical User Interface (GUI), a prompt is provided to the user with a checkbox to "Reopen windows when logging back in". When selected, all applications currently open are added to a property list file named com.apple.loginwindow.[UUID].plist within the ~/Library/Preferences/ByHost directory. Applications listed in this file are automatically reopened upon the user’s next logon.
Adversaries can establish Persistence by adding a malicious application path to the com.apple.loginwindow.[UUID].plist file to execute payloads when a user logs in.
Platforms: macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Copy in new loginwindow.plist to launch Calculator.
Supported Platforms: macos
cp #{calc_plist_path} ~/Library/Preferences/ByHost/com.apple.loginwindow.plist
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.