TL;DR: Claude Code can remember commands you approve. GitGuardian and Apiiro found that when you pick "Yes, and don't ask again", it can save the exact command in .claude/settings.local.json in your project folder. Claude Code saves that command as an allow rule, so the exact command can run again without asking. If the command had an API key in it, the key is in the file too. Both found that file in public GitHub repos, and GitGuardian found it in public Docker Hub images too. On GitHub, GitGuardian found 5,343 secrets in that file that worked when it checked. On Docker Hub it found 99 working secrets in Claude Code settings files.
If you use Claude Code, check your repos for .claude/settings.local.json and your Docker images for a .claude/ folder. If you're moving to a new laptop, check your old project folders for it before you copy them over.
Claude Code 2.1.323 changed this. If the command looks like it has a secret in it, or git tracks your settings.local.json, "don't ask again" now only lasts for that session and nothing gets saved. That doesn't clean up files you already have, so update and still check your repos and images.
I thought I'd just buy NVDA and GOOG, then I ended up buying ANT too. Can't regret missing the IPO if you buy it :P

WEEKLY RECON
Your Claude Code approvals can leak your API keys
In this issue
GitGuardian and Apiiro on how Claude Code approvals end up in public repos, and GitGuardian's numbers for Docker Hub images.
Bishop Fox on how a restricted Entra guest can still look up your apps by ID.
An agent workflow to find these files in your repos and Dockerfiles, with a person checking each hit.
Attack of the week: Claude Code settings files are showing up in Docker images
Guillaume Valadon at GitGuardian wrote "Claude Code settings.local.json Secrets: 17 months of exposure on GitHub, & Docker Hub" on November 9. Apiiro published "Coding Agents Are Leaking Your Secrets to GitHub" on November 5.
In GitGuardian's example, you ask Claude Code to list the workflows on your n8n server, and it proposes a curl with your n8n API key in the header. You pick "Yes, and don't ask again". Claude Code runs it and writes the full command, key included, as an allow rule in .claude/settings.local.json. The saved rule looks like this:
Bash(curl -H "X-N8N-API-KEY: n8n_api_9f3c...e21a" https://n8n.example.internal/api/v1/workflows)Apiiro says that when Claude Code creates the file inside a git repo, it adds it to your global git ignore list, which only covers your own machine, and leaves the repo's .gitignore alone. So the file can still get pushed if someone works on the repo from another machine, if the folder only becomes a git repo later, or if someone already committed it.
GitGuardian found that Docker builds leak the file too. Docker doesn't read git's ignore rules, so if .claude/ is in the build context and .dockerignore doesn't exclude it, COPY . . copies it in, even on a laptop where git ignored it. In a multi-stage build, check whether the file reaches the image you publish.
GitGuardian scanned public Docker Hub images for .claude/settings.local.json and .claude/settings.json. It found 613 distinct secrets in them, across 543 image repos and 7,625 tags, and 99 were valid when it checked. It says 72% of the secret occurrences sat under /app, /workspace or /usr/src, which GitGuardian reads as whole repos copied into images. One valid Cloudflare API token was in 559 tags of a single image. Deleting the file from the repo does not remove it from images you already pushed.
On public GitHub, GitGuardian's first leaks in this file show up in June 2025. In its data from January 2025 to November 7, 2026, it found 31,088 distinct secrets in .claude/settings.local.json across 23,276 repos, and 5,343 of them (17%) worked at detection. GitGuardian can only test some secret types, so it says the real number is probably higher. In the shared .claude/settings.json, it counted 8,271 distinct secrets, and 1,283 were valid at detection.
Database logins were GitGuardian's biggest group of working secrets. It counted 1,955 valid Postgres connection strings and 292 valid SSH passwords in settings.local.json. GitGuardian says a password after PGPASSWORD= doesn't have a prefix like an AWS or GitHub key does, so a scanner that only matches key formats misses it. Apiiro found a secret in 1,122 files but did not test whether they worked. It ran gitleaks and TruffleHog across all 104,185 files it collected, and neither tool flagged 215 of the 1,122.
Boris Cherny, who leads Claude Code at Anthropic, replied on Hacker News that the team is looking into it and plans to prototype a few ideas, with basic secret scanning as one possibility.
Ship this week
☐ Search your GitHub org and your git history for
.claude/settings.local.jsonand.claude/settings.json.☐ Rotate every secret the file ever held before you clean up. Apiiro says removing the file leaves copies in git history, forks and clones, and GitGuardian found copies in public images.
☐ If the file is tracked, run
git rm --cached .claude/settings.local.json, which keeps your local copy. Add.claude/settings.local.jsonto the repo's own.gitignore, then commit both changes.☐ If an image build uses
COPY . ., make sure its.dockerignoreexcludes.claude/. If there's a Dockerfile-specific ignore file, likeDockerfile.dockerignore, Docker uses that one instead.☐ GitGuardian says to open the file, or run
/permissionsin Claude Code, and delete every rule with a secret in it.☐ Use variables like
$N8N_API_KEYin commands, so the rule saves the variable name and the key stays out of the file. GitGuardian notes the value can still end up in the transcript if the shell prints it.
A .dockerignore to start from, with the **/ lines covering nested folders:
.git
.env
.claude
**/.claude
.cursor
**/.cursor
.mcp.json
**/.mcp.jsonStop feeding the feed.
You’ve put in the work to build an audience. But when the only way to reach your fans is through a social feed determined by algorithms, the platform decides who sees what you make next.
beehiiv gives you the tools to reach your audience directly. On their all-in-one platform, you can turn followers into subscribers, grow your newsletter, and connect it all to your community or podcast. Stop chasing virality on platforms you can’t control. Build a stronger, more sustainable business on beehiiv.
Defender's corner: a restricted Entra guest can still look up your apps
Leron Gray at Bishop Fox wrote "Inside Cirro: Enumeration as a Restricted Guest" on November 12.
Entra ID has three guest access levels. The most restrictive one is meant to let a guest see only its own profile. Gray says Microsoft's own docs state that even a restricted guest can read the properties of app registrations and enterprise apps, and the permissions granted to them. A restricted guest can't list them, so the Microsoft Graph list calls that tools like AzureHound and ROADtools use don't work.
He gets around that by asking Microsoft Graph for apps by ID. Well known app IDs, like the one for Microsoft Graph itself, are public. Some apps show which service principals hold roles on them, which gives him new IDs to look up, and he repeats the lookup on those. Cirro, Bishop Fox's enumeration tool on GitHub, does it in v1.4.0 with a --restricted-guest flag. In his test tenant, the expanded --restricted-guest-msapps run matched 341 of the 1,753 known app IDs it started with.
Gray says this lookup alone doesn't give the guest access to any app. One thing it can turn up is a redirect URI on a hostname someone else could register. With some app setups, an attacker who registers that hostname could use it in a phishing link to get a victim's access tokens. His demo app had a redirect URI on an azurewebsites.net name that didn't resolve, and his check showed the name was free to register. He submitted the guest visibility case to MSRC (Microsoft's security response team) on July 30 and says he got no update after following up in September and October.
Ship this week
☐ From an account that can list app registrations, export their redirect URIs and check that each public hostname you own still resolves and is still yours. Skip localhost and Microsoft's own login URLs.
az ad app list --all --query "[].{app:displayName, appId:appId, web:web.redirectUris, spa:spa.redirectUris, publicClient:publicClient.redirectUris}" -o json☐ Gray suggests baselining Microsoft Graph traffic for guest accounts and setting a per-account alert on the number of distinct app or service principal IDs one guest looks up. He says querying hundreds of apps is likely not legit.
☐ Remove guest accounts you don't use anymore.
Agent bench: find agent settings files with secrets in your repos and images
You can use a coding agent to find these files across your repos. Start a new session with read-only access to a checked out copy of each repo. Don't give it your cloud credentials, and don't let it run scripts or build commands from the repo.
Ask it to look for these:
Any
.claude/settings.json,.claude/settings.local.json,.cursor/mcp.jsonor.mcp.jsonfile, in the working tree and in git history. The last two can hold MCP server configs, and GitGuardian found API keys in MCP server env blocks in the agent config files it studied.Allow rules or env blocks that hold a literal secret, like a token in a header, a password after
PGPASSWORD=orsshpass -p, or a connection string with a password in it.Image builds that would copy
.claude/in, likeCOPY . .orADD . .with no ignore rule for it. Have it check the build context and the ignore file that applies to that build.
Have it report current hits as file:line and old ones as commit:file:line, with the type of secret and no part of the value. The agent still reads the raw file, so the key can end up in its transcript. To avoid that, have it read only the report from a local scanner that redacts values.
To check history with plain git, this lists matching paths changed in commits reachable from your local refs or HEAD, comparing each merge with each parent:
git log --all --full-history --sparse --diff-merges=separate --no-renames \
--name-only --format= -- \
':(top,glob)**/.claude/settings.json' ':(top,glob)**/.claude/settings.local.json' \
':(top,glob)**/.cursor/mcp.json' ':(top,glob)**/.mcp.json' |
sed '/^$/d' | sort -uFor an image you already pushed, this pulls it by digest and lists .claude paths in the final filesystem for the platform Docker pulls, without starting a container:
(
set -o pipefail
image='YOUR_REGISTRY/YOUR_IMAGE@sha256:YOUR_DIGEST'
docker pull "$image" || exit 1
cid=$(docker create --pull=never --entrypoint /bin/true "$image") || exit 1
trap 'docker rm -v "$cid" > /dev/null' EXIT
docker export "$cid" | tar -tf - | grep -E '(^|/)\.claude(/|$)'
)An agent can miss files or flag things that aren't secrets, so open each hit yourself before you rotate.
Ship this week
Run it on the three repos you build images from most often, and rotate any credential you confirm was exposed.
Hype Check: which of the big "2shell" bugs are attackers using
Hype Check is a new weekly section. For each loud bug I check three things: is it in CISA's KEV catalog (bugs CISA has seen exploited), its EPSS score from FIRST (the chance of an exploit attempt in the next 30 days), and has a named researcher published exploit code.
Bug | KEV | EPSS | Verdict |
|---|---|---|---|
PHP2Shell | Yes | 99.9% | Real and exploited |
Node2Shell | Yes | 99.9% | Real and exploited |
React2Shell | Yes | 99.7% | Real and exploited |
PolyShell | Yes | 81.6% | Real and exploited |
Plex2Shell | Yes | 19.8% | Real and exploited |
wp2shell | Yes | 10.6% | Real and exploited |
Java4Shell | No | 45.6% | PoC public, no attacks confirmed |
Nginx2Shell | No | 29.9% | PoC public, no attacks confirmed |
ICM2SHELL | No | 0.8% | No public proof |
If you run any of the six in KEV, patch those first:
PHP2Shell, found by Calif: PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (CISA).
Node2Shell: Node.js 22.23.4, 24.22.1 or 26.12.1, then rebuild your images.
React2Shell: React Server Components 19.0.1, 19.1.2 or 19.2.1 (Google).
PolyShell, found by Sansec: Magento 2.4.9 or the APSB26-73 backport.
Plex2Shell: Plex Media Server 1.43.3.10861 or newer.
wp2shell, found by Searchlight Cyber: WordPress 7.0.2, 6.9.5 or 6.8.6.
Nginx2Shell. Stephen Fewer at Rapid7 published a PoC, and it needs about 128 GB of HTTP/2 traffic over a direct connection. Update to 1.31.9 or 1.30.7.
Java4Shell. Quang Luong at Calif found it. GreyNoise, watchTowr and Previdian have seen attempts with no confirmed break-ins. Update OpenJDK to 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 (CERT-EU).
ICM2SHELL. Pablo Artuso at Onapsis found it and gave SAP the exploit privately. Apply SAP Notes 3778530 and 3778556.
Evidence as of November 21, 2026: KEV catalog 2026.11.20, EPSS dated 2026-11-21 (the highest score across each bug's CVEs). A GitHub repo with the CVE number alone doesn't count as a PoC.
Recon Labs: CloudTrail tamper drill
On Sunday I sent a free lab on a CloudTrail trick that Ritaban Das at Abstract Security wrote up in March, where the trail still says IsLogging true after someone sets it to ReadOnly. If you missed it, read it here and grab the PDF.
Correction: in Sunday's CloudTrail drill, EventBridge alerts stopped about 40 seconds after the trail was set to ReadOnly. They don't keep firing. The PDF is updated.
Reply and tell me if you found a .claude/ folder in any of your images. I'll share the anonymized count next week.
Forward this to whoever owns your Docker builds.
How was this issue?
Until next Tuesday,
R.K.
State of Product reveals what AI still hasn’t solved
80% of product professionals say AI helps them ship faster, but customers aren’t seeing value any sooner. Atlassian’s State of Product 2027 explores the gains AI is delivering and the challenges that remain, from decision-making that hasn’t kept pace to gut instinct overriding customer evidence.



