What each check runs¶
This page is generated
Written by python scripts/generate_command_catalog.py from the module
source code. CI runs it with --check, so it cannot drift from what ships.
Do not edit it by hand.
Every check in Device Rescue is a Python file under modules/. Most of them
gather evidence by running ordinary system commands — the same ones you could
type yourself. This page lists, for every check, each command it can run.
…marks an argument filled in at runtime (a path, a user name, a value read from an earlier command).- Built at runtime counts calls whose program name itself is computed, so it cannot be shown here.
- Which commands actually run depends on the platform and on what each earlier command returned. To see exactly what ran on your machine, with exit codes and timings:
$ rescue scan --trace --json > results.json # commands stream to stderr
$ rescue scan --trace --profile digital_security_reset --json 2> trace.jsonl >/dev/null
In the desktop app, open Show technical details while a checkup runs.
Besides commands, checks read files (launch agents, browser profiles, logs)
directly; read a module's __init__.py for the full picture. No check writes
anything — fix() is separate and always asks first.
Bloatware¶
login_items¶
process_scanner¶
Runs no external commands; reads files and system APIs only.
startup_auditor¶
win_bloatware¶
powershell -Command 'Get-AppxPackage | Select-Object Name, Publisher | ConvertTo-Csv -NoTypeInformation'
Integrity¶
accessibility_check¶
airport_wifi_scan¶
Plus 2 command(s) built at runtime.
app_crash_analyzer¶
Runs no external commands; reads files and system APIs only.
application_compatibility¶
application_crash_report¶
Runs no external commands; reads files and system APIs only.
audio_config¶
defaults read -g com.apple.sound.beep.muted
defaults read -g com.apple.sound.default.output
osascript -e 'output volume of (get volume settings)'
system_profiler SPAudioDataType
audio_troubleshoot¶
defaults read -g com.apple.sound.beep.muted
defaults read -g com.apple.sound.default.input
defaults read -g com.apple.sound.default.output
osascript -e 'output volume of (get volume settings)'
system_profiler SPAudioDataType
backup_status¶
defaults read /Library/Preferences/com.apple.TimeMachine AutoBackup
tmutil destinationinfo
tmutil latestbackup
battery_health¶
bluetooth_diagnostics¶
core_services_reset¶
Plus 1 command(s) built at runtime.
coreaudio_reset¶
crash_log_analyzer¶
Runs no external commands; reads files and system APIs only.
default_browser¶
defaults read com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers
duti -x …
mdfind …
directory_permissions¶
Runs no external commands; reads files and system APIs only.
disk_health¶
disk_permissions_repair¶
disk_smart_check¶
df -B1 /
diskutil apfs list
diskutil info /
system_profiler SPNVMeDataType
system_profiler SPStorageDataType
disk_utility_firstaid¶
display_config¶
defaults read com.apple.AppleDisplayBrightness
defaults read com.apple.CoreBrightness
defaults read com.apple.CoreBrightness CBUser
system_profiler SPDisplaysDataType
display_issues¶
defaults read com.apple.CoreBrightness
defaults read com.apple.CoreBrightness CBUser
defaults read com.apple.windowserver DisplayResolutionEnabled
system_profiler SPDisplaysDataType
dns_config¶
filesystem_health_check¶
font_issues¶
gpu_health¶
log show --predicate 'eventMessage contains "GPU"' --last 7d --style compact
system_profiler SPDisplaysDataType
handoff_continuity¶
defaults read /Library/Preferences/com.apple.Bluetooth ControllerPowerState
defaults read com.apple.coreservices.useractivityd ActivityReceivingAllowed
defaults read com.apple.iCloud.plist MobileMeAccounts
networksetup -getairportpower en0
homebrew_health¶
hostname_check¶
icloud_status¶
defaults read '~/Library/Preferences/com.apple.iCloud.plist' ForceSyncEnabled
defaults read com.apple.iCloud.plist Enabled
defaults read com.apple.iCloud.plist MobileMeAccounts
defaults read com.apple.iCloud.plist iCloudDrive
icloud_storage¶
defaults read com.apple.iCloud.plist DesktopAndDocumentsManagedByiCloud
defaults read com.apple.iCloud.plist MobileMeAccounts
defaults read com.apple.iCloud.plist iCloudDriveEnabled
icloud_storage_check¶
input_devices¶
defaults read -g …
defaults read …
system_profiler SPBluetoothDataType
system_profiler SPUSBDataType
kernel_panic_check¶
Runs no external commands; reads files and system APIs only.
keychain_health¶
linux_journal_errors¶
linux_package_updates¶
apt list --upgradable
dnf --quiet check-update
dnf --quiet check-update --security
pacman -Qu
zypper --quiet list-patches --category security
zypper --quiet list-updates
linux_service_health¶
systemctl is-active …
systemctl list-units --failed --no-legend --plain --no-pager
systemctl list-units --type=service --state=running --no-legend --plain --no-pager
systemctl show … --property=NRestarts
login_keychain_repair¶
macos_eol_check¶
macos_version_support¶
sw_vers -buildVersion
sw_vers -productVersion
sysctl hw.model
system_profiler SPHardwareDataType
uname -m
mail_config¶
defaults read com.apple.mail AutoFetchingEnabled
defaults read com.apple.mail MailAccounts
defaults read com.apple.mail PollInterval
network_diagnostics¶
network_interface_audit¶
network_interfaces_check¶
networksetup -getdnsservers …
networksetup -getinfo …
networksetup -getipv6 …
networksetup -listallnetworkservices
networksetup -listnetworkserviceorder
network_proxy_detect¶
Plus 1 command(s) built at runtime.
network_speed_test¶
dig google.com +stats
ping -c 5 8.8.8.8
ping -c 5 …
route -n get default
system_profiler SPAirPortDataType
notifications_config¶
defaults read com.apple.controlcenter 'NSStatusItem Visible FocusModes'
defaults read com.apple.ncprefs doNotDisturb
defaults read com.apple.ncprefs focusSchedules
defaults read com.apple.ncprefs show_in_lockscreen
defaults read …
photos_library_check¶
defaults read com.apple.photolibraryd CloudPhotoLibraryDownloadOriginalEnabled
defaults read com.apple.photolibraryd CloudPhotoLibraryOptimizeStorageEnabled
defaults read com.apple.photolibraryd PQLCloudEnabled
pram_nvram_check¶
printer_diagnostics¶
printer_queue¶
recovery_partition_check¶
rosetta_status¶
safe_boot_check¶
safe_mode_check¶
bless --info --getBoot
diskutil info /
nvram boot-args
sysctl -n kern.boottime
sysctl -n kern.safeboot
screen_time_password¶
defaults read com.apple.ScreenTimeAgent ScreenTimePasscodeSet
defaults read com.apple.applicationaccess
defaults read …
dscl . -list /Users
dscl . -read /Groups/admin GroupMembership
dscl . -read … ParentalControls
dscl . -read … UniqueID UserShell IsHidden NFSHomeDirectory
sleep_wake_issues¶
defaults read /Library/Preferences/com.apple.Bluetooth
pmset -g assertions
pmset -g log
pmset -g sched
smart_status¶
smc_reset_check¶
smcreset_guide¶
powermetrics --samplers smc -n 1
sysctl hw.model
system_profiler SPDisplaysDataType
system_profiler SPHardwareDataType
system_profiler SPPowerDataType
software_inventory¶
system_age_check¶
stat -f %SB /var/db/.AppleSetupDone
sw_vers -buildVersion
sw_vers -productVersion
system_profiler SPHardwareDataType
system_extensions_check¶
system_log_errors¶
Plus 1 command(s) built at runtime.
time_machine_check¶
defaults read /Library/Preferences/com.apple.TimeMachine
defaults read /Library/Preferences/com.apple.TimeMachine ExcludeByPath
tmutil destinationinfo
tmutil latestbackup
tmutil status
time_machine_exclusions¶
time_machine_health¶
log show --predicate 'subsystem == "com.apple.TimeMachine"' --last 24h --style compact
tmutil destinationinfo
tmutil latestbackup
tmutil status
time_sync_check¶
date
defaults read /Library/Preferences/com.apple.timezone.auto Active
systemsetup -getnetworktimeserver
systemsetup -getusingnetworktime
update_checker¶
usb_devices_check¶
user_account_health¶
defaults read …
dscl . -list /Users UniqueID
dscl . -read … NFSHomeDirectory
dscl . -read … UserShell
wifi_diagnostics¶
Plus 1 command(s) built at runtime.
wifi_password_recovery¶
Plus 1 command(s) built at runtime.
win_activation¶
win_activation_check¶
Plus 1 command(s) built at runtime.
win_audio_check¶
win_battery¶
win_bluetooth_check¶
win_boot_config_check¶
bcdedit /enum
bcdedit /enum '{bootmgr}'
bcdedit /enum '{current}'
powershell -NoProfile -Command Confirm-SecureBootUEFI
powershell -NoProfile -Command …
reagentc /info
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power' /v HiberbootEnabled
win_bsod_analysis¶
win_disk_health¶
win_dism_health¶
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
Dism.exe /Online /Cleanup-Image /CheckHealth
powershell -NoProfile -Command …
win_display_check¶
win_dns_config¶
powershell -NoProfile -Command 'Get-DnsClientCache | Measure-Object | Select-Object -ExpandProperty Count'
powershell -NoProfile -Command 'Get-DnsClientServerAddress -AddressFamily IPv4 | Select-Object -ExpandProperty ServerAddresses'
powershell -NoProfile -Command 'Measure-Command { Resolve-DnsName google.com } | Select-Object -ExpandProperty TotalMilliseconds'
win_driver_check¶
win_event_errors¶
Plus 2 command(s) built at runtime.
win_event_log_health¶
win_memory_diagnostics¶
win_network_adapters¶
win_network_diag¶
win_network_reset¶
netsh winsock show catalog
powershell -Command 'Get-Service Dhcp | Select-Object Status'
powershell -Command 'Get-Service Dnscache | Select-Object Status'
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters'
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Services\\Winsock2\\Parameters\\Protocol_Catalog9\\Catalog_Entries'
win_print_spooler_check¶
win_printer_check¶
win_printer_issues¶
powershell -NoProfile -Command 'Get-PrintJob | Measure-Object | Select-Object Count'
powershell -NoProfile -Command 'Get-Printer | Select-Object Name, DriverName, PortName, PrinterStatus, Shared | Format-List'
powershell -NoProfile -Command 'Get-Printer | Select-Object Name, PrinterStatus | ConvertTo-Csv -NoTypeInformation'
powershell -NoProfile -Command 'Get-Service Spooler | Select-Object Status'
win_recovery_options¶
win_restore_points¶
win_safe_mode_check¶
win_sfc_check¶
powershell -NoProfile -Command …
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager' /v PendingFileRenameOperations
win_shadow_copies_check¶
reg query 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore' /v RPSessionInterval
sc query VSS
vssadmin list shadows
vssadmin list shadowstorage
win_startup_repair¶
bcdedit /enum
bcdedit /enum '{bootmgr}'
bcdedit /enum '{current}'
bcdedit /enum '{recoverysequence}'
powershell -NoProfile -Command …
win_update_history¶
win_updates¶
powershell -NoProfile -Command 'Get-Service -Name wuauserv | ConvertTo-Json'
powershell -NoProfile -Command 'Start-Service -Name wuauserv'
win_wifi_diagnostics¶
win_windows_update_status¶
win_winsock_check¶
win_wmi_health¶
Network¶
arp_spoof_check¶
Runs no external commands; reads files and system APIs only.
dns_over_https_check¶
ethernet_diagnostics¶
lan_common¶
Plus 1 command(s) built at runtime.
lan_device_inventory¶
Runs no external commands; reads files and system APIs only.
network_proxy_check¶
Plus 1 command(s) built at runtime.
router_security_audit¶
Runs no external commands; reads files and system APIs only.
vpn_leak_check¶
wifi_security_audit¶
networksetup -getairportnetwork en0
networksetup -listpreferredwirelessnetworks en0
system_profiler SPAirPortDataType
Performance¶
browser_cache_cleanup¶
Runs no external commands; reads files and system APIs only.
clamshell_mode¶
disk_fragmentation_check¶
disk_io_health¶
iostat -d 1 2
system_profiler SPNVMeDataType
system_profiler SPSerialATADataType
system_profiler SPStorageDataType
disk_space¶
Runs no external commands; reads files and system APIs only.
docker_cleanup¶
docker images -f dangling=true -q
docker ps -a -f status=exited -q
docker system df --format '{{json .}}'
which docker
energy_saver_check¶
energy_settings¶
font_cache¶
font_cache_repair¶
atsutil databases -list
atsutil server -ping
find /private/var/folders -name com.apple.ATS -type d
system_profiler SPFontsDataType
large_files_finder¶
Plus 1 command(s) built at runtime.
library_cache_cleanup¶
Runs no external commands; reads files and system APIs only.
linux_memory_pressure¶
Runs no external commands; reads files and system APIs only.
login_items_cleanup¶
Plus 1 command(s) built at runtime.
macos_user_cleanup¶
mail_attachment_cleanup¶
Runs no external commands; reads files and system APIs only.
memory_pressure¶
memory_pressure_check¶
memory_pressure
sysctl hw.memsize
sysctl hw.pagesize
sysctl vm.compressor_mode
sysctl vm.swapusage
vm_stat
network_quality¶
notification_center_check¶
power_settings¶
resource_hog_identifier¶
Runs no external commands; reads files and system APIs only.
screen_resolution_scaling¶
spotlight_rebuild¶
spotlight_repair¶
spotlight_status¶
startup_optimizer¶
storage_cleanup¶
Runs no external commands; reads files and system APIs only.
swap_memory_check¶
swap_usage¶
temp_file_scanner¶
Runs no external commands; reads files and system APIs only.
thermal_throttle¶
thermal_throttle_check¶
ioreg -r -n AppleSMC
ioreg -r -n AppleSMCFan
pmset -g thermlog
sudo powermetrics --samplers smc -n 1 -i 100
sysctl hw.cpufrequency
sysctl hw.cpufrequency_max
trash_cleanup¶
Runs no external commands; reads files and system APIs only.
user_profile_size¶
win_boot_time¶
powershell -NoProfile -Command "$event = Get-WinEvent -FilterHashtable @{LogName='System'; ID=12} -MaxEvents 1 -ErrorAction SilentlyContinue; if ($event) { $event.Properties[0].Value } else { 'N/A' }"
powershell -NoProfile -Command '(Get-CimInstance Win32_OperatingSystem).LastBootUpTime'
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power' /v HiberbootEnabled
win_disk_cleanup¶
Plus 3 command(s) built at runtime.
win_disk_space¶
win_pagefile¶
win_pagefile_check¶
win_power_plan¶
win_power_plan_check¶
powercfg /getactivescheme
powercfg /query SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226
powercfg /query SCHEME_CURRENT SUB_DISK DISKIDLE
powercfg /query SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMAX
powercfg /query SCHEME_CURRENT SUB_SLEEP STANDBYIDLE
win_search_index¶
powershell -Command '(Get-ItemProperty "HKLM:\\SOFTWARE\\Microsoft\\Windows Search" -Name DataDirectory -ErrorAction SilentlyContinue).DataDirectory'
powershell -Command '(Get-ItemProperty "HKLM:\\SOFTWARE\\Microsoft\\Windows Search\\CrawlScopeManager\\Windows\\SystemIndex" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty ItemCount)'
powershell -Command '(Get-Process SearchIndexer -ErrorAction SilentlyContinue | Select-Object -ExpandProperty CPU)'
powershell -Command 'Get-Service WSearch | Select-Object -ExpandProperty Status'
powershell -Command …
win_startup¶
win_startup_programs_audit¶
powershell -NoProfile -Command "$items = @(); $paths = @( [System.Environment]::GetFolderPath('Startup'), [System.Environment]::GetFolderPath('CommonStartup') ); foreach ($path in $paths) { if (Test-Path $path) { Get-ChildItem $path -ErrorAction SilentlyContinue | ForEach-Object { $items += @{ name = $_.Name; path = $_.FullName; command = $_.FullName } } } }; ConvertTo-Json $items -AsArray"
powershell -NoProfile -Command '$items = @(); Get-CimInstance Win32_StartupCommand -ErrorAction SilentlyContinue | ForEach-Object { $items += @{ name = $_.Name; command = $_.Command; location = $_.Location; user = $_.User } }; ConvertTo-Json $items -AsArray'
reg query …
schtasks /query /fo CSV /v
win_temp_cleanup¶
Plus 2 command(s) built at runtime.
win_temp_files¶
Plus 2 command(s) built at runtime.
win_temp_files_cleanup¶
Plus 6 command(s) built at runtime.
win_user_profiles¶
Plus 3 command(s) built at runtime.
win_visual_effects¶
reg query 'HKCU\\Control Panel\\Desktop\\WindowMetrics' /v MinAnimate
reg query 'HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize' /v EnableTransparency
reg query 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects' /v VisualFXSetting
xcode_cleanup¶
Runs no external commands; reads files and system APIs only.
Security¶
accessibility_permissions¶
ai_threat_indicators¶
ai_worm_filesystem¶
Runs no external commands; reads files and system APIs only.
ai_worm_git_ssh¶
ai_worm_iocs¶
Runs no external commands; reads files and system APIs only.
ai_worm_lateral¶
ai_worm_network¶
Plus 1 command(s) built at runtime.
ai_worm_persistence¶
launchctl unload …
schtasks /Delete /TN … /F
schtasks /Query /FO CSV /V
systemctl --user disable …
systemctl --user stop …
airdrop_config¶
defaults read /Library/Preferences/com.apple.Bluetooth ControllerPowerState
defaults read com.apple.sharingd DiscoverableMode
networksetup -getairportpower en0
airdrop_security_check¶
defaults read /Library/Preferences/com.apple.Bluetooth ControllerPowerState
defaults read com.apple.Bluetooth PrefKeyServicesEnabled
defaults read com.apple.sharingd DiscoverableMode
defaults read … ActivityAdvertisingAllowed
networksetup -getairportpower en0
antivirus_status¶
app_permissions¶
appleid_security_check¶
defaults read /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled
defaults read com.apple.mail-shared MailPrivacyProtectionEnabled
defaults read …
defaults read … AppleIDAccount
defaults read … ICloudPrivateRelayEnabled
system_profiler SPiCloudDataType
automatic_updates¶
bluetooth_audit¶
defaults read /Library/Preferences/com.apple.Bluetooth ControllerPowerState
defaults read /Library/Preferences/com.apple.Bluetooth DiscoverableState
system_profiler SPBluetoothDataType
browser_cryptojacking_check¶
Runs no external commands; reads files and system APIs only.
browser_extension_audit¶
browser_hijack_check¶
browser_privacy_check¶
certificate_audit¶
openssl x509 -noout -enddate
openssl x509 -noout -issuer -subject
security find-certificate -a -c '' -Z /Library/Keychains/System.keychain
security find-certificate -a -c '' -Z /Library/Keychains/login.keychain-db
security find-certificate -c … -p /Library/Keychains/System.keychain
security find-certificate -c … -p /Library/Keychains/login.keychain-db
certificate_trust_audit¶
openssl x509 -noout -issuer
openssl x509 -noout -subject -dates
security dump-trust-settings …
security find-certificate -a -p /Library/Keychains/System.keychain
chrome_extensions¶
Runs no external commands; reads files and system APIs only.
clamav_scanner¶
code_signature_audit¶
codesign --verify --deep --strict …
powershell -NoProfile -Command …
spctl --assess --type execute …
cron_jobs_audit¶
crypto_miner_detect¶
crypto_miner_persistence¶
Plus 1 command(s) built at runtime.
cryptojacking_iocs¶
Runs no external commands; reads files and system APIs only.
disk_encryption_recovery¶
dscl . -list /Users
fdesetup hasinstitutionalrecoverykey
fdesetup haspersonalrecoverykey
fdesetup list
fdesetup status
dns_poisoning_check¶
defaults read /Library/Preferences/com.apple.networkd DNSSettings
dig +short …
networksetup -getdnsservers Wi-Fi
route -n get default
scutil --dns
encryption_check¶
evidence_bundle¶
Plus 1 command(s) built at runtime.
filevault_recovery¶
dscl . -list /Users
fdesetup hasinstitutionalrecoverykey
fdesetup haspersonalrecoverykey
fdesetup list
fdesetup status
find_my_mac¶
defaults read com.apple.FindMyMac FMMEnabled
defaults read com.apple.FindMyMac SendLastLocation
nvram -p
find_my_mac_check¶
defaults read /Library/Preferences/com.apple.FindMyMac.plist FMMEnabled
defaults read /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled
defaults read …
system_profiler SPHardwareDataType
firewall_audit¶
Plus 2 command(s) built at runtime.
firewall_rules_audit¶
/usr/libexec/ApplicationFirewall/socketfilterfw --getallowsigned
/usr/libexec/ApplicationFirewall/socketfilterfw --getblockall
/usr/libexec/ApplicationFirewall/socketfilterfw --listapps
defaults read /Library/Preferences/com.apple.alf globalstate
defaults read /Library/Preferences/com.apple.alf stealthenabled
firmware_password¶
gatekeeper_quarantine_check¶
/usr/bin/csrutil status
/usr/bin/xattr -p com.apple.quarantine …
/usr/sbin/spctl --assess --type execute --verbose /Applications/Safari.app
/usr/sbin/spctl --status
guest_account_check¶
defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server AllowGuestAccess
defaults read /Library/Preferences/com.apple.AppleFileServer guestAccess
defaults read /Library/Preferences/com.apple.loginwindow GuestEnabled
hosts_file_check¶
Runs no external commands; reads files and system APIs only.
kernel_extensions_audit¶
kext_audit¶
keylogger_indicators¶
log show --last 1h --predicate "eventMessage CONTAINS 'CGEventTap'" --style compact
sqlite3 … "SELECT client FROM access WHERE service='kTCCServiceListenEvent' AND auth_value=2"
launch_agent_audit¶
Runs no external commands; reads files and system APIs only.
launchd_persistence_audit¶
Runs no external commands; reads files and system APIs only.
linux_account_audit¶
Runs no external commands; reads files and system APIs only.
linux_disk_encryption_check¶
linux_firewall_check¶
linux_persistence_audit¶
linux_ssh_hardening¶
location_services¶
defaults read /Library/Preferences/com.apple.locationmenu.plist
defaults read com.apple.locationd LocationServicesEnabled
defaults read com.apple.locationd SystemServices
defaults read com.apple.locationmenu
sysctl hw.model
system_profiler SPHardwareDataType
lock_screen_check¶
defaults read com.apple.screensaver askForPassword
defaults read com.apple.screensaver askForPasswordDelay
pmset -g
login_password_policy¶
login_window_settings¶
defaults read /Library/Preferences/com.apple.loginwindow RetriesUntilHint
defaults read /Library/Preferences/com.apple.loginwindow SHOWFULLNAME
defaults read /Library/Preferences/com.apple.loginwindow autoLoginUser
malware_scan_indicators¶
mdm_enrollment¶
mdm_enrollment_check¶
profiles list -verbose
profiles status -type bootstraptoken
profiles status -type enrollment
sudo profiles list -verbose
mvt_spyware_scan¶
Plus 1 command(s) built at runtime.
network_connections_monitor¶
network_proxy¶
Plus 1 command(s) built at runtime.
open_ports_scan¶
password_manager_check¶
privacy_audit¶
privacy_permissions_audit¶
remote_login_check¶
defaults read /Library/Preferences/com.apple.RemoteDesktop
defaults read /Library/Preferences/com.apple.RemoteManagement ARD_AllLocalUsers
systemsetup -getremoteappleevents
systemsetup -getremotelogin
rootkit_check¶
/bin/ps -eo pid
/usr/bin/codesign -v …
/usr/bin/csrutil status
/usr/sbin/kextstat
/usr/sbin/sysctl kern.proc.all
safari_extensions¶
scheduled_tasks_audit¶
Runs no external commands; reads files and system APIs only.
screen_lock_check¶
screen_time_audit¶
defaults read com.apple.ScreenTimeAgent AppLimits
defaults read com.apple.ScreenTimeAgent CommunicationLimits
defaults read com.apple.ScreenTimeAgent ScreenTimePasscodeSet
defaults read …
screen_time_parental¶
defaults read com.apple.ScreenTimeAgent AppLimits
defaults read com.apple.ScreenTimeAgent AskToBuyEnabled
defaults read com.apple.ScreenTimeAgent CommunicationLimits
defaults read com.apple.ScreenTimeAgent ScreenTimePasscodeSet
defaults read …
dscl . -list /Users
dscl . -read … GeneratedUID
dscl . -read … dsAttrTypeNative:isHiddenUser
security_baseline_diff¶
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
csrutil status
fdesetup status
netstat -an
powershell -NoProfile -Command '(Get-MpComputerStatus).RealTimeProtectionEnabled'
schtasks /query /fo csv
session_revocation_scan¶
sharing_preferences_audit¶
cupsctl
defaults read com.apple.sharingd DiscoverableMode
launchctl list
systemsetup -getremotelogin
sharing_services¶
defaults read /Library/Preferences/com.apple.AppleFileServer
defaults read /Library/Preferences/com.apple.AppleFileServer guestAccess
launchctl list
systemsetup -getremotelogin
sip_gatekeeper¶
siri_privacy¶
ssh_key_audit¶
stalkerware_scan¶
Plus 1 command(s) built at runtime.
sudo_config_audit¶
sudo_touchid¶
suspicious_connections¶
suspicious_processes¶
system_extensions¶
twofa_audit¶
reg query 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon' /v EnableFirstLogonAnimation
reg query 'HKLM\\SOFTWARE\\Policies\\Microsoft\\PassportForWork'
reg query … /s /v DisplayName
usb_device_audit¶
user_account_audit¶
defaults read /Library/Preferences/com.apple.loginwindow GuestEnabled
defaults read /Library/Preferences/com.apple.loginwindow autoLoginUser
dscl . -list /Users
dscl . -read /Groups/admin GroupMembership
vpn_config¶
win_antivirus_status¶
powershell -NoProfile -Command 'Get-MpComputerStatus | Select-Object AntivirusSignatureLastUpdated | ConvertTo-Json'
powershell -NoProfile -Command …
win_autorun¶
win_autoruns_audit¶
win_bitlocker¶
win_bitlocker_check¶
win_cortana_telemetry¶
win_credential_guard¶
net accounts
powershell -Command 'Get-LocalUser | Where-Object {$_.PasswordNeverExpires -eq $true} | Select-Object -ExpandProperty Name'
reg query 'HKLM\\SOFTWARE\\Microsoft\\PolicyManager\\default\\Settings\\AllowSignInOptions' /v value
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard' /v EnableVirtualizationBasedSecurity
win_credential_manager_audit¶
win_crypto_miner_detect¶
Plus 1 command(s) built at runtime.
win_defender¶
powershell -NoProfile -Command 'Get-MpComputerStatus | ConvertTo-Json'
powershell -NoProfile -Command …
win_defender_deep_check¶
powershell -NoProfile -Command 'Get-MpComputerStatus | ConvertTo-Json'
powershell -NoProfile -Command 'Get-MpPreference | ConvertTo-Json'
win_firewall¶
win_firewall_rules_audit¶
powershell -NoProfile -Command 'Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, DefaultOutboundAction | ConvertTo-Json'
powershell -NoProfile -Command 'Get-NetFirewallRule -Direction Inbound -Action Allow -Enabled True | Select-Object DisplayName, Profile, Program | ConvertTo-Json'
win_group_policy_audit¶
auditpol /get '/category:*'
gpresult /r …
net accounts
powershell -NoProfile -Command '(Get-WmiObject Win32_ComputerSystem).PartOfDomain'
powershell -NoProfile -Command 'Get-AppLockerPolicy -Effective -Xml 2>/dev/null | Select-Object -ExpandProperty RuleCollections | Measure-Object | Select-Object -ExpandProperty Count'
powershell -NoProfile -Command …
win_hosts_file¶
win_hosts_file_check¶
powershell -NoProfile -Command '(Get-Item $env:windir\\System32\\drivers\\etc\\hosts).GetAccessControl() | Select-Object -ExpandProperty Access'
powershell -NoProfile -Command '(Get-Item $env:windir\\System32\\drivers\\etc\\hosts).Length'
powershell -NoProfile -Command 'Get-Content $env:windir\\System32\\drivers\\etc\\hosts'
win_local_admin_audit¶
net localgroup Administrators
net user …
powershell -Command 'Get-LocalUser -Name Administrator | Select-Object -ExpandProperty Enabled'
powershell -Command 'Get-LocalUser -Name Guest | Select-Object -ExpandProperty Enabled'
win_malware_indicators¶
win_network_shares_audit¶
net share
powershell -Command 'Get-SmbServerConfiguration | Select-Object -ExpandProperty EnableSMB1Protocol'
powershell -Command …
win_proxy_detect¶
netsh winhttp show proxy
reg query 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' /v AutoConfigURL
reg query 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' /v ProxyEnable
reg query 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' /v ProxyServer
win_rdp_check¶
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server' /v fDenyTSConnections
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' /v PortNumber
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' /v UserAuthentication
win_remote_access_audit¶
reg query 'HKLM\\SOFTWARE\\AnyDesk'
reg query 'HKLM\\SOFTWARE\\LogMeIn'
reg query 'HKLM\\SOFTWARE\\WOW6432Node\\LogMeIn'
reg query 'HKLM\\SOFTWARE\\WOW6432Node\\TeamViewer'
reg query 'HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server' /v fDenyTSConnections
tasklist
win_rootkit_check¶
bcdedit /enum
bcdedit /enum '{current}'
powershell -NoProfile -Command "$drivers = @(); driverquery /v 2>$null | Select-Object -Skip 1 | ForEach-Object { if ($_ -match 'No.*System32') { $name = ($_ -split '\\s+')[0]; $drivers += $name } }; ConvertTo-Json $drivers -AsArray"
powershell -NoProfile -Command "$files = @(); Get-Item 'C:\\Windows\\System32\\*.exe' -Stream * -ErrorAction SilentlyContinue | Where-Object {$_.Stream -ne ':$DATA'} | Select-Object -ExpandProperty FileName -Unique | ForEach-Object { $files += [System.IO.Path]::GetFileName($_) }; ConvertTo-Json $files -AsArray"
powershell -NoProfile -Command 'Confirm-SecureBootUEFI -ErrorAction SilentlyContinue'
powershell -NoProfile -Command 'Get-Service -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Name | ConvertTo-Json'
sc query state= all
win_scheduled_tasks¶
win_scheduled_tasks_security¶
win_services_audit¶
win_services_security_audit¶
powershell -Command 'Get-WmiObject Win32_Service | Select-Object Name, DisplayName, PathName, StartMode, State, StartName | ConvertTo-Json'
win_suspicious_processes¶
Plus 2 command(s) built at runtime.
win_uac_check¶
win_user_accounts¶
net accounts
net localgroup Administrators
net user
net user Guest
reg query 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon' /v AutoAdminLogon
reg query 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon' /v DefaultUserName