Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may establish persistence by executing malicious content triggered by the execution of tainted binaries.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 40% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -42% | 0% |
> Sub-technique of: T1546
Adversaries may establish persistence by executing malicious content triggered by the execution of tainted binaries. Mach-O binaries have a series of headers that are used to perform certain operations when a binary is loaded. The LC_LOAD_DYLIB header in a Mach-O binary tells macOS and OS X which dynamic libraries (dylibs) to load during execution time. These can be added ad-hoc to the compiled binary as long as adjustments are made to the rest of the fields and dependencies. There are tools available to perform these changes.
Adversaries may modify Mach-O binary headers to load and execute malicious dylibs every time the binary is executed. Although any changes will invalidate digital signatures on binaries because the binary is being modified, this can be remediated by simply removing the LC_CODE_SIGNATURE command from the binary so that the signature isn’t checked at load time.
Platforms: macOS
> Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Binaries can also be baselined for what dynamic libraries they require, and if an app requires a new dynamic library that wasn't included as part of an update, it should be investigated.
Allow applications via known hashes.
Enforce that all binaries be signed by the correct Apple Developer IDs.
| Finding | Severity | Impact | | ------------------------------------------- | -------- | -------------------- | | LC_LOAD_DYLIB Addition technique applicable | Low | Privilege Escalation |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-269 | Improper Privilege Management |
Other measured skills in the registry, with their headline benchmark lift.