Skip to content

AAK-CLAUDE-WIN-001: Claude Code below 2.1.75 reads managed-settings.json from unsafe ProgramData path

Severity
HIGH
Category
Agent Config (agent-config)
Scanner
agent_audit_kit/scanners/agent_config.py
Auto-fixable
No.
SARIF name
ClaudeCodeWindowsProgramData

What it detects

On Windows, Claude Code prior to 2.1.75 loads %ProgramData%\ClaudeCode\managed-settings.json without validating directory ownership or ACLs. A low-privileged user can plant a malicious config that executes on every launch. CVE-2026-35603 (CVSS 5.4 MEDIUM, CWE-426 Untrusted Search Path).

How to fix

Upgrade Claude Code to 2.1.75 or later. If the directory must exist for deployment, ship a sibling setup.ps1 that runs icacls to restrict ACLs to TrustedInstaller + administrators before any Claude Code launch.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-CLAUDE-WIN-001

Limitations

Needs a managed-settings.json whose own path contains ProgramData, so a file staged elsewhere and copied into %ProgramData%\ClaudeCode by an installer is not seen. A sibling setup.ps1 that mentions icacls clears the finding whatever the command grants, icacls ... /grant Everyone:(OI)(CI)F included. A setup.ps1 over 512 KB is not read, and counts as one that does not run icacls.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-CLAUDE-WIN-001.md: the page then shows that text, with the registry reference appended under it.