[MODEL] Claude Code installed Maven without permission on August 27th and ran it today, violating explicit CLAUDE.md instructions that I run all builds and tests
Status Open
Maintainer reply None cached
Activity 0 comments · opened Sep 15, 2026
Preflight Checklist
- [x] I have searched existing issues for similar behavior reports
- [x] This report does NOT contain sensitive information (API keys, passwords, etc.)
Type of Behavior Issue
Claude ignored my instructions or configuration
What You Asked Claude to Do
I have explicitly defined in my local CLAUDE.md file that Claude Code must NOT run build tools or tests, and that I run all builds and tests myself to avoid wasting tokens on verbose outputs.
During normal session interactions, I did not instruct Claude Code to install any system packages, build tools, or run builds.
What Claude Actually Did
- Today, Claude Code executed
mvnfor the first time during my session. - When questioned, Claude Code claimed
mvnwas not excluded, despite myCLAUDE.mdexplicitly prohibiting automated builds and tests. - When I stated I had never installed Maven, Claude Code claimed it could not confirm that fact.
- I ran a
grepon my shell history and proved that I had never installedmvnmyself. - Confronted with this proof, Claude Code checked its internal logs and admitted that a session on August 27th had silently installed Maven via
brew(without even using it at the time). - Back on August 27th, Claude Code did not inform me of the installation when it occurred, but instead dumped a wall of text about it 44 minutes later.
- Because my
CLAUDE.mdexplicitly instructs Claude Code to maintain a compact communication style, I usually ignore these walls of text and remind it to keep responses concise, meaning the hidden notice went unnoticed. - This violated my explicit
CLAUDE.mdinstructions (both prohibiting builds/tests and requiring compact communication) and created a security vulnerability by silently installing a build tool capable of executing arbitrary code without explicit approval.
Expected Behavior
Claude Code should have:
- NEVER silently executed system-level installation commands (
brew,apt, etc.) or installed binaries without explicit prior user consent. - Strictly adhered to the directives in
CLAUDE.mdforbidding automated builds/tests and requiring compact communication, rather than making assumptions about unlisted tools, making things up, or dumping notifications in walls of text. Build tools must never be auto-installed as they can execute arbitrary code upon execution and some are Turing complete, making silent installations a massive security risk and severe erosion of trust. - Provided immediate, accurate transparency about system actions instead of denying past installations or requiring shell history logs to admit its behavior.
Files Affected
Permission Mode
I don't know / Not sure
Can You Reproduce This?
Haven't tried to reproduce
Steps to Reproduce
_No response_
Claude Model
Other
Relevant Conversation
Impact
Critical - Data loss or corrupted project
Claude Code Version
Fable 5
Platform
Anthropic API
Additional Context
Unwanted tool installations and executions are massive security issue!