A 10-minute security check before you let AI act for you

In two weeks, two things happened to people using Claude Code: a "don't ask again" file put passwords into 1,122 public GitHub files, and a fake Claude Code extension on Cursor's marketplace tried to plant an SSH backdoor. Most coverage tells you what happened. This canvas is the checklist: the 3 places your keys leak from, and 10 minutes to check each. Gathered from the researchers' reports and official docs, rewritten in plain words.

Start here

How to use this canvas

Why now

What you'll end with

Leak point 1: the "don't ask again" file

What happened

Check it (3 minutes)

In each project folder:

cat .claude/settings.local.json
git log --all --oneline -- .claude/settings.local.json .claude/settings.json

The first line shows your saved rules. Look for anything that looks like a password, a token or a database address. The second shows whether the file was ever committed. If it prints nothing, it wasn't.

Fix it, in this order

1. If a secret was ever in a committed file: rotate it first (make a new key, revoke the old one). Deleting the file doesn't un-leak it.
2. Remove it from git and keep it out: `git rm --cached .claude/settings.local.json`, then add that path to the project's .gitignore.
3. Delete any rule that contains a secret.
4. Next time, put the secret in an environment variable and approve the command with the variable name (like $DB_URL), not the value.
5. Approve patterns, not one-off commands: a rule like Bash(npm run test:*) never contains a password.

Leak point 2: keys in your project

The usual suspects

- A .env file that isn't in .gitignore.
- A key pasted into code "just to test".
- A key pasted into a chat with an AI that then writes it into a file.
Common secret scanners miss a lot of these, because passwords inside commands don't look like normal key formats. Of the 1,122 files, gitleaks flagged 564, TruffleHog flagged 643, and 215 were flagged by neither. So don't rely on a scanner alone.

Ask Claude to check, without printing secrets

Check this project for hard-coded secrets: passwords, API keys, tokens, private keys and database URLs with passwords in them, in every file and in .claude/. For each one, give the file and line and what kind of secret it looks like. Don't print the secret itself. Then check that .env and .claude/settings.local.json are in .gitignore.

Then rotate anything it finds that was ever committed or shared.

Turn on GitHub's own guard

Leak point 3: extensions and plugins

What happened

Check your machine (3 minutes)

1. Open ~/.ssh/authorized_keys. Every line should be a key you added. Cursor told users to look for one named svc-telemetry.
2. In your editor, list installed extensions. Remove anything you don't use, and anything whose publisher you don't recognise.
3. On a Mac, it restarted itself through a LaunchAgent. Open ~/Library/LaunchAgents in Finder (Go, then Go to Folder) and look for anything you don't recognise.
4. If you find something wrong: disconnect that machine, follow the editor's instructions, and rotate every key that machine could reach.

Three rules for installing

What AI may do without asking / Honest bit

Look at what you've already allowed

In Claude Code, type /permissions to see every allow rule in one list. Remove anything that deletes files, pushes code, spends money or contains a secret.

A safe default

| Let it run | Always ask me |
|---|---|
| Reading files | Deleting anything |
| Running tests | git push, publishing, deploying |
| Formatting and linting | Anything that sends email or messages |
| Searching the project | Anything that costs money or uses a secret |
Our guide "Approve only the last step" goes deeper on this: https://puthere.space/collections/approve-only-the-last-step-en?ref=guide-ai-agent-safety-check

Limits worth knowing

Try it this week / Sources

Do the 10-minute version today

Run the two commands in "Check it" in your busiest project, open ~/.ssh/authorized_keys, and type /permissions in Claude Code. If all three look clean, you're done for now.

Keep the checklist on one canvas

Put the three leak points and your "let it run / always ask me" table as cards on one put·here canvas, and tick them each month. Download put·here for Mac: https://puthere.space/?ref=guide-ai-agent-safety-check · iPhone: https://apps.apple.com/app/id6823383945?ct=guide-ai-agent-safety-check

Sources

put·here
made by puthere