Mac security audit by agent
Claude Code and Codex: A markdown checklist pasted into a coding agent that runs read-only security checks on a Mac, then proposes fixes one at a time for approval.
On two Macs, checks found unpatched Bun and Claude Code builds and pip, uv and Java trusting bad certificates. Fixes were verified.
Overview
How it was set up
Paste the file into Claude Code, Codex or similar with shell access. Say: run the checks, report, then ask before every fix. Needs sudo for some steps.
Worth knowing
Some steps need a human to confirm dialogs. Without sudo, the agent only sees your own processes.
A prompt to start from
Here is a security checklist for my Mac. Run all Phase 1 checks read-only and report one table: item, status (ok / at risk / unknown), evidence. Then propose each fix with the exact command and wait for my yes before running it. Never print secrets.
Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Source published
- 2026-10-23
- Added to Agentic Feats
- 2026-10-26
- Pick
- No
- Markdown copy
- /c/mac-security-audit-by-agent-claude-code.md
More in ops and IT
31 featsResultOn a 2019 TCL TV, idle CPU fell from 61% to 12% and free RAM rose from 451 MB to 720 MB.
ResultPatched almost 10 devices in one session and says it saved a lot of time compared with logging in to each one.
ResultAll repos now run on Origin, which the author calls fast. Cloudflare Workers and CodeRabbit kept working, and open PRs were reopened.