macos-post-exploitation
यह क्या करती है
यह गाइड macOS की गोपनीयता और सुरक्षा नियंत्रण और Apple कंप्यूटरों पर दुरुपयोग के संकेत बताती है। यह उन Mac एडमिनिस्ट्रेटर और सुरक्षा टीमों के लिए है जो अधिकृत परीक्षण चलाते हैं।
कब इस्तेमाल करें
- ✓जब Mac एंडपॉइंट पर अधिकृत परीक्षण को गोपनीयता नियंत्रण और सुरक्षा जाँचनी हो।
- ✓जब Mac एडमिनिस्ट्रेटर देखना चाहे कि किन ऐप्स के पास संवेदनशील एक्सेस है।
- ✓जब बचाव करने वाले जानना चाहें कि built-in macOS कमांड समझौता हुई मशीन के बारे में क्या बताते हैं।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/macos/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप हमारे कंपनी के Mac की जाँच कर सकते हैं कि किन ऐप्स के पास संवेदनशील एक्सेस है, और पुष्टि कर सकते हैं कि built-in सुरक्षा चालू है?”
हर हफ़्ते 5 नई skills, 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 का डेटाबेस है जो रिकॉर्ड करता है कि कौन से ऐप फ़ाइलों और कैमरा जैसे संरक्षित डेटा तक पहुँच सकते हैं।
system integrity protection क्यों जाँचें?
गाइड कहती है कि यह मुख्य सिस्टम फ़ाइलों की रक्षा करता है, इसलिए किसी भी समीक्षा में इसकी स्थिति मायने रखती है।
क्या built-in टूल इस्तेमाल होते हैं?
हाँ। गाइड जाँच के लिए built-in 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
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।