macos-post-exploitation
하는 일
이 가이드는 Apple 컴퓨터의 macOS 개인정보 보호 및 보안 통제와 오용의 징후를 다룹니다. 허가된 테스트를 운영하는 Mac 관리자와 보안 팀을 위한 것입니다.
사용하는 경우
- ✓Mac 엔드포인트의 허가된 테스트가 개인정보 통제와 보호 장치를 확인해야 할 때.
- ✓Mac 관리자가 민감한 접근 권한을 가진 앱을 검토하려는 경우.
- ✓방어자가 내장 macOS 명령이 침해된 장비에 대해 무엇을 알려 주는지 알고 싶을 때.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/macos/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 회사 Mac에서 민감한 접근 권한을 가진 앱을 찾고, 내장 보호 기능이 켜져 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 시스템 보호 상태를 검토하고, 민감한 권한을 가진 앱을 확인한 뒤, 강화가 필요한 설정을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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)
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).- Installed security tooling:
ls /Library/Objective-See,pgrep -l 'CrowdStrike|SentinelOne|falcon|Jamf|santad'.
Privilege escalation
- TCC bypass / abuse (T1548 family). TCC gates access to Documents, Desktop,
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. - Sudo / admin group.
sudo -n true(cached creds), membership inadmin. - Setuid hunting:
find / -perm -4000 -type f 2>/dev/null.
Persistence
- LaunchAgents / LaunchDaemons (T1543.001 / T1543.004). Drop a plist in
~/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. - Login items (T1547.015) via
osascript -e 'tell application "System Events" to make login item ...'or a Service Management (SMAppService) helper. - Dylib hijacking / proxying (T1574.004). Find apps with a writable/missing
@rpathor weak-linked dylib (otool -l <app>); plant a malicious dylib that re-exports the original. Survives as the host app's identity. - Re-opened apps / cron / emond / at — lower-signal fallbacks.
Defense evasion
- Gatekeeper / quarantine (T1553.001). Downloaded files carry the
com.apple.quarantinexattr;xattr -d com.apple.quarantine <file>(orxattr -c) strips it so the binary runs without the Gatekeeper prompt. - Code signing (T1553).
codesign --force --deep --sign - <bundle>ad-hoc signs a tampered bundle; checkcodesign -dv --verbose=4andspctl -a -vv. - File-permission/attribute manipulation (T1222.002):
chflags,chmod. - AppleScript / osascript execution (T1059.002) for living-off-the-land.
Credential access (T1555.001)
- Keychain.
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 withchainbreaker. - Browser & app secrets under
~/Library/Application Support/...(often TCC-protected — see TCC abuse above). - Sudo/SSH keys in
~/.ssh,~/.aws,~/.kube.
Collection, C2 & exfil
- Stage under
/tmpor~/Library/Caches; archive withtar/ditto. - C2: prefer signed, allow-listed channels; see
post-exploit/c2andpost-exploit/c2-sliver(Sliver has a macOS implant). Beacon over HTTPS to blend with managed-device telemetry.
Detection & defense (blue-cell notes)
- Monitor new plists in
*/LaunchAgentsand*/LaunchDaemonsandlaunchctlbootstraps; alert onxattr -d com.apple.quarantine, ad-hoccodesign,security dump-keychain, and TCC.db reads by non-Apple binaries. - Endpoint Security framework (ES) + tools like santad/Objective-See catch most
of the above; LOTL via
osascript/launchctlis the gap to watch.
See also
post-exploit/credential-access, post-exploit/lateral-movement,
post-exploit/privilege-escalation, shared/defense-evasion, reverser/ios-static.
자주 묻는 질문
개인정보 제어 데이터베이스란 무엇인가요?
앱이 파일이나 카메라 같은 보호된 데이터에 접근할 수 있는지 기록하는 macOS 데이터베이스입니다.
시스템 무결성 보호는 왜 확인하나요?
핵심 시스템 파일을 보호하므로, 어떤 검토에서든 그 상태가 중요하다고 가이드는 말합니다.
내장 도구를 쓰나요?
네. 가이드는 점검에 내장 macOS 명령을 선호합니다.
상세 정보
작성자의 원본 설명
macOS endpoint post-exploitation — launchd persistence, TCC bypass, Keychain credential access, dylib hijacking, Gatekeeper/quarantine evasion, and discovery on Apple hosts.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14136
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.