Lock Down Your Mac With Claude

Before and after: five Mac security problems fixed

Your Mac is probably still running apps you deleted months ago. Mine was. This post covers what an hour with Claude turned up, the rules that kept it safe, and how to run the same checkup on your own Mac.

The short version: I asked Claude, working through Claude Code on my Mac, to audit my security without changing anything. In about an hour it found 13 leftover background items from 5 apps I had deleted (one still running with full admin rights), 11 files holding API keys that any account on the Mac could read, a 3-hour screen lock, and no backups at all. Everything got fixed one item at a time, with my approval, and nothing broke. You can download the same checkup as a free skill below, or paste one prompt into Claude.

Why aren’t deleted apps really gone?

Think about moving out of an apartment. You pack up and hand back the keys, but the spare key is still taped under the doormat. The place looks empty, but someone could still get in.

Two-panel stick-figure comic: a person throws an app in the trash; a ghost waves from inside a laptop. Text: You deleted it. It never left.
The short version of this whole post. Illustration: Beginners in AI.

Dragging an app to the Trash works the same way. macOS deletes the app itself, but many apps also install small helper programs in other folders: updaters, network tools, things that start when your Mac starts. Those helpers stay behind. They don’t show up in your Applications folder or your Dock, and some of them run with root access, the highest level of control on the machine. Apple’s developer guide to launch daemons and agents explains where these startup items live.

On my Mac, the leftovers came from Docker, Zoom, Adobe Creative Cloud, Sideloadly and Little Snitch. Docker’s network helper was still running as root weeks after I deleted Docker. Nobody was updating it anymore.

Claude found them with one question, asked about every startup item on the machine: does the program this launches still exist? If the answer is no, the item is a leftover.

Words you will meet

Background helper
A small program an app installs to run on its own, like an updater. Also called a launch agent or launch daemon.
Root
Full administrator control over the Mac. A helper with root access can change almost anything.
API key
A long password that lets one app use another company’s service, often tied to a bill.
.env file
A plain text file developers use to store API keys for a project.
FileVault
Apple’s disk encryption. If your Mac is stolen, the files can’t be read without your password.
Gatekeeper
Apple’s check that apps come from a known developer before they open.
Activation Lock
Stops anyone else from erasing and reusing your Mac without your Apple Account password. It comes on with Find My.

What did Claude find on my Mac?

The leftover helpers were the surprise, but they weren’t the only problem. Claude ranked them roughly like this:

  • No backups at all. Time Machine had never been set up.
  • Screen lock set to 3 hours. Anyone who sat down at my desk in that window could use the Mac.
  • Find My Mac was off, so Activation Lock was off too.
  • 11 files holding API keys (.env and login token files) could be read by any user account on the Mac.
  • 13 leftover background items from 5 deleted apps, one running as root.
  • AirDrop was set to Everyone. Strangers nearby could send me files.
  • AirPlay Receiver was listening on the network, and I never use it.
  • An old developer tool (JupyterLab) was set to start on its own. I hadn’t opened it in months.
Terminal window titled Claude security cleanup listing removed Docker, Zoom and Adobe background helpers and a backup folder path
The cleanup, in Claude Code. Five of the thirteen leftovers, including Docker’s helper that was running as root. Each one was moved to a dated backup folder, not deleted.

Claude also built me a list of every company I hold API keys for, where to cancel each key, and when each key file was last touched. The checkup tells Claude to read only the variable names in those files, never the keys, and it stuck to that on my Mac. Some key files hadn’t been touched in over a year, which makes those keys easy ones to cancel. Leaked keys get abused fast. In the newsletter we covered a viral AI assistant where security researchers found hundreds of exposed passwords.

Before → after:

  • Leftover background items: 13 → 0 (moved to a backup folder)
  • API key files anyone could read: 11 → 0 (now readable by my account only)
  • Screen lock: 3 hours → 5 minutes
  • Backups: none → Time Machine
  • Find My Mac: off → on
  • AirDrop: Everyone → Contacts Only
  • AirPlay Receiver: on → off
  • JupyterLab auto-start: on → off (uninstalled, with my OK)
Beginners in AI community on Skool: learn AI in fourteen days, master it in 30, one small win a day, zero experience needed

Is it safe to let AI change your Mac’s settings?

Letting an AI change settings on your computer sounds risky, and done carelessly, it is. What made this work was a short set of rules Claude followed the whole time:

  1. Look first, change nothing. The first pass is read-only. You get a red, yellow and green report ranked by risk before anything moves.
  2. One fix at a time, only after you approve it. Claude says what will change and how to undo it.
  3. Move files, never delete them. Everything removed went into a dated backup folder. If something had broken, I could have put it back.
  4. A warning before every password box. A few fixes need admin access, so macOS asks for your password. Claude tells you before each box appears and what it is for. The box may say Apple could not verify the script. That is expected here only because Claude told you it was coming.
  5. Never paste a password or API key into the chat. Claude never needs them.

The rule to rememberIf a password box appears that your AI didn’t warn you about, click Cancel. That one habit blocks the riskiest mistake.

The five safety rules as listed in the security-checkup skill read-me
The rules ship with the skill. They are written into the download’s read-me and its instructions, so Claude follows them on your Mac too.

How do you run the checkup yourself?

You need a Mac and Claude Code, Anthropic’s tool that lets Claude work with files and settings on your computer. If you haven’t set it up yet, our Claude Code install guide walks through it. Claude Code needs a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a pay-as-you-go Anthropic developer account, according to Anthropic’s setup page.

  1. Download the skill. Download security-checkup.zip (6 KB, free). It holds the instructions Claude follows plus a short read-me.
  2. Install it. Unzip the file. In Finder, choose Go > Go to Folder, type ~/.claude/skills, and drag the security-checkup folder in. If the skills folder doesn’t exist, create it. Anthropic’s skills guide has more detail, and our Claude skills explainer covers what skills are.
  3. Start it. Open Claude Code and type /security-checkup, or just say “run a security checkup on my Mac.”
  4. Read the report. It takes a minute or two. Every finding is ranked from most to least urgent, in plain English.
  5. Pick your fixes. Say “do 3, 4 and 6” or “do them all.” Claude makes the changes it can, one at a time.
  6. Approve the password boxes. Claude warns you before each one and can show you the exact script first.
  7. Click the last few switches yourself. Some settings, like Find My, only you can change. Claude gives you the menu path for each. Most take 30 seconds.
Claude Code Docs page Extend Claude with skills, explaining SKILL.md files and invoking a skill with /skill-name
Where skills come from. Anthropic’s skills page explains how a SKILL.md file adds a new command like /security-checkup. Screenshot: code.claude.com, December 2026.

No Claude Code? Paste this prompt into Claude instead. It works best in a version of Claude that can run commands on your Mac; in a regular chat, Claude will walk you through each check by hand.

Prompt: Mac security checkup
Be my Mac security assistant. Run a READ-ONLY audit first: FileVault, firewall, Gatekeeper, updates, screen lock, Find My, backups, AirDrop, open ports, background helpers left by apps I’ve uninstalled, and secret files (.env, tokens) other users can read.

Then give me a plain-English red/yellow/green report ranked by risk.

Fix one item at a time, only after I approve. Move files, never delete them. Warn me before any password box appears and tell me what it will do. Never ask me to paste a password or API key into the chat.

You don’t need to know every term in the prompt. Claude explains each one in the report.

What can you check by hand, without Claude?

Five of the fixes are settings anyone can check in a few minutes. Paths below are for macOS 27 Golden Gate (older versions use similar menus with slightly different names):

  • Startup items: System Settings > General > Login Items & Extensions (check both Open at Login and App Background Activity). Turn off anything from an app you no longer have. Apple’s guide.
  • Screen lock: System Settings > Lock Screen, then “Require password after screen saver begins or display is turned off”. Set it to five minutes or less.
  • Backups: System Settings > General > Time Machine > Add Backup Disk. Any external drive works. Apple’s Time Machine guide.
  • Find My Mac: System Settings > [your name] > iCloud > See All > Find My Mac. On Macs with Apple silicon or the T2 chip, it also turns on Activation Lock. Apple’s guide.
  • AirDrop and AirPlay Receiver: Control Center > AirDrop for AirDrop, and System Settings > General > AirDrop & Continuity for AirPlay Receiver. Set AirDrop to Contacts Only, and turn off AirPlay Receiver if you never stream to your Mac.
Apple Mac User Guide page Change Login Items and Extensions settings on Mac, version macOS 27 Golden Gate
Apple’s own guide to startup items. Note the line further down the page: a warning sign next to an item means its app was moved or deleted. Screenshot: support.apple.com, December 2026.

Leftover helpers and readable key files are harder to spot by hand. Those two are what the checkup is best at.

What about your router, phone and accounts?

The skill finishes by walking you through the rest of your setup, based on the NSA’s home network guidance and mobile device guidance, plus a few extras of our own. You do the clicking; Claude tells you where.

First page of the NSA Cybersecurity Information Sheet Best Practices for Securing Your Home Network
The NSA’s home network guide, written for regular households, not government offices. Screenshot: media.defense.gov, February 2023 edition.

Your router:

  • Use WPA3 (the newest Wi-Fi lock), or WPA2/WPA3 if older devices need it.
  • Turn off remote management and UPnP (a feature that lets devices open doors in your router by themselves). Then settings can only be changed from inside your home.
  • Put smart TVs, cameras and visitors on a separate guest network.
  • Leave automatic router software updates on, restart the router weekly, and replace it once the maker stops sending updates.
  • Two more of our own: change the admin password from the default on the sticker, and turn off WPS, the push-button pairing feature.

Your browser may warn that the router’s login page is “not secure.” That is normal when you typed your router’s address yourself (often something like 192.168.1.1).

Your phone: restart it once a week, use a passcode of at least 6 digits and set the phone to erase itself after 10 wrong tries (the NSA says six digits is enough once that is on), install apps only from the official store, and on an iPhone turn on Stolen Device Protection.

Your accounts:

Have I Been Pwned homepage with an email search box and counts of breached websites and accounts
Two minutes, one search. Type your email address to see which known data breaches it appeared in. Screenshot: haveibeenpwned.com, December 2026.

One more for Gmail users: search your inbox for “Critical security alert” from Google. Google sends these when it spots risky activity, such as someone signing in with your correct password and getting stopped by your second step. Check the alert inside your Google Account rather than clicking the email, because fake alerts exist (Google explains how). If you find one, change that password today. Our AI privacy guide covers the same habits for chatbots.

Block out an hour this weekend

You spend most of the hour reading the report. The fixes themselves take minutes, and files are moved rather than deleted, which means most changes can be undone. Run the checkup again every few months; new apps leave new leftovers.

And send this to the friend who still has a 3-hour screen lock.

Frequently asked questions

Does this work on Windows?

No. The skill and the steps here are for Macs only.

Is the skill free?

Yes, the download is free. Running it needs Claude Code, which comes with paid Claude plans.

Will Claude see my passwords or API keys?

No. The checkup tells Claude to read only the names in your key files, never the values, and it never asks you to type a password into the chat. Password boxes come from macOS itself.

What if a fix breaks something?

Removed files go to a dated backup folder, so you can move them back. Nothing broke on my Mac.

How often should I run it?

Every three months or so, and after you uninstall a big app.

Made for regular people, by a real person

One email a day with practical AI walkthroughs like this one, tested on our own computers first. Curated and edited by a human.

Free forever. Unsubscribe anytime.

Sources

You May Also Like