Adversaries may add login items to execute upon user login to gain persistence or escalate privileges. Login items are applications, documents, folders, or server connections that are automatically launched when a user logs in.1 Login items can be added via a shared file list or Service Management Framework.2 Shared file list login items can be set using scripting languages such as AppleScript, whereas the Service Management Framework uses the API call <code>SMLoginItemSetEnabled</code>. Login items installed using the Service Management Framework leverage <code>launchd</code>, are not visible in the System Preferences, and can only be removed by the application that created them.34 Login items created using a shared file list are visible in System Preferences, can hide the application when it launches, and are executed through LaunchServices, not launchd, to open applications, documents, or URLs without using Finder.5 Users and applications use login items to configure their user environment to launch commonly used services or applications, such as email, chat, and music applications. Adversaries can utilize AppleScript and Native API calls to create a login item to spawn malicious executables.6 Prior to version 10.5 on macOS, adversaries can add login items by using AppleScript to send an Apple event to the “System Events” process, which has an AppleScript dictionary for manipulating login items.7 Adversaries can use a command such as <code>tell application “System Events” to make login item at end with properties /path/to/executable</code>.8910 This command adds the path of the malicious executable to the login item file list located in <code>~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm</code>.11 Adversaries can also use login items to launch executables that can be used to control the victim system remotely or as a means to gain privilege escalation by prompting for user credentials.121314
- Open Login Items Apple
- Adding Login Items
- Adding Login Items
- SMLoginItemSetEnabled Schroeder 2013
- Launch Services Apple Developer
- ELC Running at startup
- Login Items AE
- Startup Items Eclectic
- hexed osx.dok analysis 2019
- Add List Remove Login Items Apple Script
- Startup Items Eclectic
- objsee mac malware 2017
- CheckPoint Dok
- objsee netwire backdoor 2019
使用该技术的组织
参考表中尚无组织使用记录。
断言
尚无指向该技术的公开断言。
记录自动入库·未人工复核;置信度与有效期按引用读取。