The following command can be used to disable Gatekeepers rearm functionality. This command requires root privileges.
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
- Native
- Defense Evasion
- Detection
No detections at time of publishing: No detections at time of publishing
An attacker can use defaults to add a login hook in attempt to gain persistence. This command requires root privileges.
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginHook gain_persistence.sh
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
- Native
- Persistence
- Detection
No detections at time of publishing: No detections at time of publishing
Retrieve Active Directory user info from Jamf Connect defaults configuration.
defaults read com.jamf.connect.state
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
- Native
- Discovery
- Detection
No detections at time of publishing: No detections at time of publishing