Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Checks macOS for and tests MITRE ATT&CK T1037.005 Startup Items persistence via /Library/StartupItems with Atomic Red Team tests.
64% 91%+27 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
15 agent runs
Sub-technique of: T1037
Adversaries may use startup items automatically executed at boot initialization to establish persistence. Startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items.
This is technically a deprecated technology (superseded by Launch Daemon), and thus the appropriate folder, /Library/StartupItems isn’t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist, reside in the top-level directory.
An adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism. Additionally, since StartupItems run during the bootup phase of macOS, they will run as the elevated root user.
Platforms: macOS
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Modify or create an file in /Library/StartupItems Reference
Supported Platforms: macos Elevation Required: Yes
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.