Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents MITRE ATT&CK technique T1546.006, LC_LOAD_DYLIB addition for macOS persistence, with checks and manual testing steps.
59% 86%+27 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
Not used yet
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
Identify Attack Surface: Determine if the target environment is susceptible to LC_LOAD_DYLIB Addition by examining the target platforms (macOS).
Assess Existing Defenses: Review whether mitigations for T1546.006 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.