This skill runs a comprehensive, read-only security scan of a macOS machine
and produces a detailed report. It is safe to run — it only reads system
state and never modifies anything.
Tell the user:
sudo,but all checks work without it.
Ask: "Ready to run the scan? And do you want to run it with sudo for deeper
results, or without sudo to keep it simple?"
Once the user confirms, run:
python3 scripts/scan.py [--sudo] --out ~/Desktop/security_report.md
Pass --sudo only if the user agreed to it. The script handles all checks
and writes the report file.
After the script finishes, read the report and give the user a plain-English
verdict in chat:
checked.
explain what each one means in plain language, and recommend next steps.
(active keylogger, known malware process, suspicious kernel extension),
say so clearly and recommend they contact Apple Support or a security
professional before using the device for sensitive tasks.
Always remind the user: this scan is a good first check, but it is not a
replacement for dedicated antivirus software.
Tell them the report has been saved to ~/Desktop/security_report.md and
they can open it in any text editor or share it with a professional.
| Category | What is checked |
|---|---|
| --- | --- |
| Keyloggers & input monitors | Processes with Accessibility / Input Monitoring permissions; IOHIDFamily kernel extensions |
| Suspicious background processes | Running processes cross-referenced against a known-bad list; processes with no bundle ID hiding in temp folders |
| Launch agents & daemons | Startup items in all LaunchAgent / LaunchDaemon directories, flagging unknown or recently added items |
| Network connections | Active connections, listening ports, and processes making outbound connections to non-Apple IPs |
| Recently installed software | Apps and packages installed in the last 14 days |
| Login items | Items set to launch at login via System Settings |
| Kernel extensions (kexts) | Third-party kexts loaded into the kernel |
| Browser extensions | Installed extensions for Safari, Chrome, and Firefox |
| Privacy permissions | Apps with Camera, Microphone, Screen Recording, Accessibility, Full Disk Access |
| System Integrity Protection | Whether SIP is enabled (disabled SIP is a red flag) |
| Gatekeeper | Whether Gatekeeper is enforcing app signing |
| FileVault | Whether disk encryption is active |
Guide the user using these thresholds:
Green (normal)
/tmp, /var/folders, or home-directory hidden foldersYellow (worth investigating)
Red (act now)
scripts/scan.py bad-list)legitimate (e.g. Logi Options has Accessibility access, Zoom has Screen
Recording). Always say "check whether you recognise this" before calling
something suspicious.
it — don't just say "unknown".
them to System Settings or explain the manual removal steps. The scan is
read-only; remediation is a separate, deliberate action.
共 1 个版本