Install any skill in seconds. Free to start, no credit card required.
Get Started Free →cyberstrikeus/T1037.002_login-hook
Adversaries may use a Login Hook to establish persistence executed upon user logon.
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
In which specific version of OS X / macOS were Login Hooks officially deprecated by Apple in favor of service management frameworks?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies OS X / macOS version 10.11 | Missed | Passed |
The instructions your model reads when the skill loads.
Sub-technique of: T1037
Adversaries may use a Login Hook to establish persistence executed upon user logon. A login hook is a plist file that points to a specific script to execute with root privileges upon user logon. The plist file is located in the /Library/Preferences/com.apple.loginwindow.plist file and can be modified using the defaults command-line utility. This behavior is the same for logout hooks where a script can be executed upon user logout. All hooks require administrator permissions to modify or create hooks.
Adversaries can add or insert a path to a malicious script in the com.apple.loginwindow.plist file, using the LoginHook or LogoutHook key-value pair. The malicious script is executed upon the next user login. If a login hook already exists, adversaries can add additional commands to an existing login hook. There can be only one login and logout hook on a system at a time.
Note: Login hooks were deprecated in 10.11 version of macOS in favor of Launch Daemon and Launch Agent
Platforms: macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Mac logon script
Supported Platforms: macos
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.