This post is a November follow-up to my 4-part (now 5-part) series from August on security vulnerabilities in Claude Code’s managed settings engine:

Back in August, I spent a long, focused stretch auditing the startup policy engine in Claude Code 2.1.234.

If you have ever done this kind of security research, you know the drill. You do not just stumble across a three-part exploit chain by accident. You unpack minified runtime code, trace obfuscated state machines (z0S, j0S, G0S, mVy), set up clean test environments, verify every edge case, capture the exact debug logs, map the CWEs, and write clear, step-by-step reproduction guides so the vendor’s engineers can verify the problem in five minutes.

I did that work in good faith. On August 24, I submitted three reports to Anthropic through HackerOne.

Within thirty minutes, Anthropic’s automated triage bot closed all three. Not a vulnerability. Working as designed. Outside our threat model. Have a nice day.

We are now in November. Claude Code is at version 2.1.319, roughly eighty-five releases past the version I audited. Out of curiosity, I went through Anthropic’s official CHANGELOG.md and updated documentation to see if anything had changed since August.

Well, well, well. Look at what we have here!

Over the past ten weeks, Anthropic quietly shipped fixes, mitigations, and diagnostic warnings for the exact vulnerabilities they rejected as “working as designed.”

Let us look at the receipts.

Receipt 1: “Working as designed” meets v2.1.316

In Part 3, I showed that Claude Code cached server-managed settings in a plain, user-writable file at ~/.claude/remote-settings.json and loaded it at startup with a raw JSON.parse. No signature. No integrity check. By editing that file and dropping network connectivity for twenty seconds during launch, an unprivileged user could forge arbitrary organization policy and wipe out root-owned rules in /etc/claude-code/managed-settings.json without sudo.

In August, my report recommended three concrete fixes: sign the policy payload, reject unsigned or tampered local cache files, and never let an unverified user cache shadow root policy.

When Anthropic’s HackerOne bot rejected that report in 27 minutes, this was the official excuse:

That same documentation states that these settings operate as a client-side control, not a security boundary against the device’s own user, and lists a user editing the cached settings file as an expected scenario.

Read that again: lists a user editing the cached settings file as an expected scenario. Outside the threat model. Nothing to fix here.

Now open Anthropic’s CHANGELOG.md and read what their engineers actually did over the following two months:

## 2.1.292
- Fixed a tampered on-disk cache of server-managed settings being able to
  switch off or unseat the built-in policy plugin while the settings fetch
  failed

## 2.1.295
- Fixed a tampered cache of server-managed settings making a person's own
  plugin count as organization-managed on machines whose managed settings list
  or enable plugins

## 2.1.314
- Changed Claude's file tools to ask before editing the local copy of your
  organization's server-managed settings, as they do for your settings files

## 2.1.316
- Changed server-managed settings for Team and Enterprise logins: settings
  fetched from Anthropic's API now apply without an approval prompt, and a
  stored copy that doesn't verify is refused

Wait a second.

Look at the wording in 2.1.292: “a tampered on-disk cache of server-managed settings… while the settings fetch failed.” That is literally the exact two-stage exploit chain from Parts 2 and 3 of my series: tamper with remote-settings.json on disk, make the startup fetch fail, and ride the forged cache.

First they tried playing whack-a-mole with specific keys in 2.1.259, 2.1.292, and 2.1.295, withholding cached managedMcpServers and blocking a tampered cache from unseating the built-in policy guard. Then, in 2.1.316, they finally implemented verification on the cached file so that a stored copy that doesn’t verify is refused.

If a local user editing ~/.claude/remote-settings.json while offline is “an expected scenario” and “outside our threat model,” why did Anthropic spend September and October patching tampered-cache escalations, and why does 2.1.316 verify the stored copy and refuse it when verification fails?

Maybe because it was a… vulnerability?

Receipt 2: The “non-merging” hierarchy that suddenly learned to merge

In Part 1, I demonstrated that Claude Code’s [remote, mdm, file] tier resolution used a naive u[0] ?? null selector. If an org admin pushed a single cosmetic setting in the web console (such as empty commit attribution strings), the client silently discarded the entire root-owned /etc/claude-code/managed-settings.json file, including all permissions.deny rules and PreToolUse security hooks.

I argued that a security policy engine must merge restrictive rules across tiers, surface visible warnings when a tier is shadowed, and expose conflicts in /status and claude doctor.

On August 24, the HackerOne rejection stated:

After review, this behavior is working as designed. Claude Code resolves managed settings from the highest-priority managed source that delivers a policy key and does not merge the remaining sources… a change at that level replacing a machine-local policy is an administrative configuration outcome rather than a bypass of a control that protects against an attacker.

Working as designed. No merge needed.

Eight releases after 2.1.234, in 2.1.242 and 2.1.243, Anthropic shipped:

  1. managedSourcesBehavior: "merge" (v2.1.242): A brand-new managed setting that tells Claude Code to combine every admin source (remote, mdm, and file) instead of dropping lower tiers. Under "merge", list keys like permissions.allow, permissions.deny, hooks, and deniedMcpServers union across tiers, and locks take the strictest value.
  2. Skipped sources in /status (v2.1.243): A new diagnostic line explicitly listing managed settings files on disk that were skipped because a higher-precedence source was active.
  3. claude_code.managed_settings_resolved OTel event (v2.1.274): Telemetry specifically designed so enterprise admins can audit which managed sources loaded and which were ignored.

And it gets better. Because Anthropic kept "first-wins" as the default when managedSourcesBehavior is not set (and worse, only reads managedSourcesBehavior from the highest-ranking tier, so setting it inside /etc/claude-code/managed-settings.json alone does nothing when remote is present), "first-wins" kept burning enterprise deployments.

So Anthropic had to keep patching individual security keys to bypass their own "first-wins" rule:

## 2.1.273
- Fixed `allowManagedMcpServersOnly`, `deniedMcpServers` and
  `disableClaudeAiConnectors` set via MDM or `managed-settings.json` being
  ignored when server-managed settings are also present

## 2.1.299
- Fixed `forceLoginOrgUUID` and `forceLoginMethod` from MDM or the
  managed-settings file being hidden or replaced by server-managed settings

Notice the first word of both changelog entries: Fixed.

When I reported in August that remote settings silently replaced local MDM and managed-settings.json restrictions, the triage bot lectured me that this was “an administrative configuration outcome.” When their own enterprise customers hit the exact same behavior with MCP denylists (2.1.273) and login locks (2.1.299), Anthropic called it a bug and fixed it.

Even today in 2.1.319, unless an administrator knows to explicitly add "managedSourcesBehavior": "merge" to their remote console payload, the default "first-wins" behavior still silently wipes out local permissions.deny and hooks defined in /etc/claude-code/managed-settings.json.

Receipt 3: The fail-closed defense that was itself broken

In Part 2, I showed how disconnecting the network for twenty seconds at launch caused the remote policy fetch to fail silently (logging only to --debug), leaving the session running without remote policy for up to an hour.

In Rejections #2 and #3, Anthropic’s bot defended the fail-open default by pointing to their documented opt-in setting, forceRemoteSettingsRefresh: true, which is supposed to force fail-closed startup.

Two problems with that defense.

First, right after my report, in 2.1.248, Anthropic had to add actual user- and admin-visible diagnostics because silent fail-open was indefensible:

## 2.1.248
- Added server-managed settings diagnostics: a startup warning when the
  settings fail to load, and a `/doctor` and `/status` line explaining a load
  failure or why they weren't fetched

In their own error documentation, Anthropic now admits: “Before v2.1.248, Claude Code reported a failed settings fetch only in the debug log.” They also changed 2.1.285 to withhold WebFetch in Team and Enterprise sessions when organization policy fails to load at startup, and made Claude apps gateway clients fail closed at startup by default.

Second, what about forceRemoteSettingsRefresh: true, the very setting the HackerOne bot used to dismiss my report?

Look at the changelog for 2.1.259 and 2.1.314:

## 2.1.259
- Fixed managed `forceRemoteSettingsRefresh` being ignored at startup when a
  policy helper configured by MDM or the managed settings file had already run

## 2.1.314
- Fixed `forceRemoteSettingsRefresh` set only in remote managed settings no
  longer applying once the stored copy had expired, which let sessions start
  without policy when the server could not be reached

Let that sink in for a moment.

In August, Anthropic’s triage bot told me my fail-open report was invalid because organizations that care about offline bypasses can simply enable the fail-closed option in server-managed settings. Meanwhile, in the actual codebase, forceRemoteSettingsRefresh set in remote managed settings stopped applying once the cached copy expired, letting offline sessions start without policy anyway. And it stayed broken until 2.1.314 in November.

You cannot make this up!

The bug bounty theater

I am glad Claude Code is more secure in November than it was in August. Refusing unverified remote-settings.json caches (2.1.316), adding a "merge" mode (2.1.242), surfacing Skipped sources (2.1.243), warning on failed policy fetches (2.1.248), and fixing forceRemoteSettingsRefresh (2.1.314) are all good engineering changes.

What is not acceptable is how Anthropic’s bug bounty program treated the research that documented these exact flaws.

Here is the game being played by them on HackerOne right now:

  1. A researcher spends days reverse-engineering a complex client binary, identifying architectural flaws, and writing clean, reproducible proof-of- concept exploits.
  2. An automated triage bot ingests the report, cross-references the current product documentation, and weaponizes the docs as a shield. Does the code skip merging tiers? “The documentation states sources do not merge, so it is working as designed.” Does the client trust an unsigned JSON file in ~/.claude? “The documentation says it is a client-side control, so cache tampering is an expected scenario.”
  3. The report is closed as Informative / Not Applicable in minutes. The researcher gets zero credit, zero bounty, and a hit to their signal score.
  4. Over the next two months, the vendor’s engineering team quietly ships fixes for the exact mechanisms described in the rejected reports.

This is a complete inversion of what a bug bounty program is supposed to be.

Documentation is not a threat model. Writing “users can edit the cache file” on a docs page does not magically transform an unauthenticated privilege escalation vector into sound security architecture. If it did, Anthropic would not have needed to ship 2.1.292, 2.1.295, and 2.1.316.

Even more importantly, a bug bounty program is built on respect for technical labor. Independent researchers are not paid employees testing their own PRs. We spend our own time auditing your software and handing you reproducible findings on a silver platter before a real attacker uses them against your enterprise customers.

Slamming the door in under thirty minutes with an automated “working as designed” rubber stamp, only to quietly patch the flaws in subsequent point releases, is deeply disrespectful to the people doing the work.

If you run a bug bounty program, have the integrity to acknowledge when a report exposes a real architectural gap in your product. And if your triage bot is configured to reject anything that matches your current documentation, do not be surprised when researchers stop bothering with your front door and publish their findings straight to the web instead.