Macos

From PurpleAILAB/Decepticon · View interactive version

Macos is an AI agent skill from the GitHub repository PurpleAILAB/Decepticon. macOS endpoint post-exploitation — launchd persistence, TCC bypass, Keychain credential access, dylib hijacking, Gatekeeper/quarantine evasion, and discovery on Apple hosts.

How to use this skill

Skill file

macOS post-exploitation

Post-compromise operations on Apple/macOS endpoints. Apple's controls

(TCC, Gatekeeper/quarantine, SIP, code signing, AMFI) shape every step, so the

playbook is organized around defeating or living within them. Prefer

on-host built-ins (launchctl, security, sqlite3, dscl, system_profiler,

codesign, xattr) over dropped tooling for OPSEC.

Authorized engagements only. Stay within RoE scope; emulate destructive

actions as benign proofs unless explicitly authorized.

Discovery (T1087.001 / T1518 / T1647)

Privilege escalation

Downloads, camera/mic, Full Disk Access. Check `sqlite3

~/Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access'`

(user) and /Library/Application Support/com.apple.TCC/TCC.db (system, needs root).

Abuse an already-FDA-granted app (e.g. a terminal/Electron app) to read

protected data instead of triggering a prompt.

Persistence

~/Library/LaunchAgents (user, no root) or /Library/LaunchDaemons (root,

runs as root at boot); launchctl bootstrap gui/$(id -u) <plist>. The classic,

noisy-but-reliable mechanism.

to make login item ...' or a Service Management (SMAppService`) helper.

@rpath or weak-linked dylib (otool -l <app>); plant a malicious dylib that

re-exports the original. Survives as the host app's identity.

Defense evasion

com.apple.quarantine xattr; xattr -d com.apple.quarantine <file> (or

xattr -c) strips it so the binary runs without the Gatekeeper prompt.

signs a tampered bundle; check codesign -dv --verbose=4 and spctl -a -vv.

Credential access (T1555.001)

security find-internet-password; `security dump-keychain -d

~/Library/Keychains/login.keychain-db` (prompts unless unlocked). Offline:

exfil the *.keychain-db + the login password and crack with chainbreaker.

TCC-protected — see TCC abuse above).

Collection, C2 & exfil

post-exploit/c2-sliver (Sliver has a macOS implant). Beacon over HTTPS to

blend with managed-device telemetry.

Detection & defense (blue-cell notes)

bootstraps; alert on xattr -d com.apple.quarantine, ad-hoc codesign,

security dump-keychain, and TCC.db reads by non-Apple binaries.

of the above; LOTL via osascript/launchctl is the gap to watch.

See also

post-exploit/credential-access, post-exploit/lateral-movement,

post-exploit/privilege-escalation, shared/defense-evasion, reverser/ios-static.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.