Login Item

From enterprise
Jump to: navigation, search
Login Item
ID T1162
Tactic Persistence
Platform macOS
Permissions Required User

MacOS provides the option to list specific applications to run when a user logs in. These applications run under the logged in user's context, and will be started every time the user logs in. Login items installed using the Service Management Framework are not visible in the System Preferences and can only be removed by the application that created them1. Users have direct control over login items installed using a shared file list which are also visible in System Preferences1. These login items are stored in the user's ~/Library/Preferences/ directory in a plist file called com.apple.loginitems.plist2. Some of these applications can open visible dialogs to the user, but they don’t all have to since there is an option to ‘Hide’ the window. If an adversary can register their own login item or modified an existing one, then they can use it to execute their code for a persistence mechanism each time the user logs in34.


Restrict users from being able to create their own login items. Additionally, holding the shift key during login prevents apps from opening automatically5.


All the login items are viewable by going to the Apple menu -> System Preferences -> Users & Groups -> Login items. This area should be monitored and whitelisted for known good applications. Monitor process execution resulting from login actions for unusual or unknown applications.