What Claude Code does
Claude Code runs as a command-line tool (with IDE integrations) that can explore a codebase, make multi-file edits, run tests and shell commands, and use Git. It can be extended with MCP servers and configured with permission rules, hooks, and organization-managed settings.
By default it asks for approval before editing files or running commands, and users and administrators can pre-approve or deny specific tools, commands, and file paths. More permissive modes that reduce or skip prompts exist and should be governed.
Verify current documentation
Vendor plans, features, and contractual terms change often. Treat the descriptions on this page as a starting point and confirm the current terms, admin settings, and data-handling commitments for your specific plan directly with the vendor before relying on them.
Can Claude Code access production secrets?
If secrets are reachable from the environment where it runs, assume yes. An agent that can read files and run commands can reach:
.envfiles and configuration files in the working directory.- Credentials cached by CLIs on the machine — cloud provider sessions, container registry logins, database clients,
kubectlcontexts pointing at production clusters. - Environment variables in the shell session.
- SSH keys and Git credentials, which may grant push access to protected repositories.
- Anything an MCP server connected to it can access.
Whether it *does* access them depends on the task, the permission rules, and the approvals you grant. The robust answer is architectural: don't let the environment where AI agents run hold production credentials in the first place.
Key risks
Broad approvals
Permission prompts are a strong control only if they are read. Blanket-approving shell commands, or running in modes that skip prompts on a machine with production access, removes the human check from potentially destructive commands.
Prompt injection from repository content and the web
Files, issues, dependency code, and fetched web pages can contain instructions. An agent working in a repository with a malicious file, or fetching a crafted web page, may be steered toward unintended commands.
MCP servers
Each MCP server extends the agent's reach and brings its own credentials. A database MCP server with write access gives the agent write access.
Personal credentials
The agent acts as the developer. In logs, its actions look like the developer's, and it inherits all of the developer's access.
Recommended controls
- Keep production credentials off developer workstations; use short-lived, just-in-time elevation for production tasks.
- Add deny rules for reading secret files (for example
.env*, key files, and credential directories) in shared project or managed settings. - Run agents in a dev container or sandbox without production network access for untrusted repositories.
- Keep default approval behavior for shell commands; allow-list only safe, specific commands.
- Use organization-managed settings to enforce permission policy across the team.
- Review and approve MCP servers; prefer read-only credentials.
- Protect default branches and require review of AI-authored pull requests.
- Enable secret scanning and rotate anything ever committed.
How FlashTower assesses this
When you add Claude Code to a FlashTower Scan, the Risk Engine evaluates how it is actually used in your organization — account type, data accessed, capabilities, autonomy, credentials, logging, and vendor terms — against a versioned, deterministic ruleset. These rules are the most relevant for Claude Code. Each fires only when its stated condition is met. See how scoring works.
Credentials & Secrets
FT-CRD-001CriticalCredentials embedded in code, configuration, or prompts
The AI system authenticates with a key embedded in code, configuration files, or prompts.
FT-CRD-005HighAI system can read passwords, keys, or secrets
The AI system has access to credentials or secrets as data.
Identity
FT-CRD-003HighAI system acts with an employee's personal credentials
The AI system uses an individual employee's login or personal access token.
Agent Risk
FT-AGT-001CriticalUnrestricted autonomous agent with high-impact permissions
The AI system acts on its own without limits or review and holds at least one high-impact capability.
FT-CDE-001HighAI can push code without review
The AI system can push code or open changes to repositories without per-action human approval.
Human Oversight
FT-AGT-003HighUnknown whether a person approves high-impact AI actions
The AI system holds high-impact capabilities and its level of autonomy is unknown.
Code Execution
FT-EXE-001CriticalAI can execute code against production or cloud infrastructure without approval
The AI system can execute code and reach production systems or cloud administration, without per-action human approval.
FT-EXE-002MediumHuman-approved AI code execution with production reach
The AI system can execute code with production or cloud access, and a person approves each action.
Production Access
FT-PRD-001HighAI system has unsupervised production or cloud access
The AI system can access production systems or manage cloud infrastructure without per-action human approval (and cannot execute code).
Permissions
FT-PRM-013MediumBroad permission scope
The AI system holds six or more distinct capabilities.
Third-Party Integrations
FT-3PI-001HighPrompt-injection exposure: web access combined with sensitive data or actions
The AI system can browse the web or call external URLs and also has sensitive data or high-impact capabilities.
Frequently asked questions
Can Claude Code access production secrets?
If production secrets or credentials are reachable from the environment where it runs — files, environment variables, CLI sessions, or connected MCP servers — assume it can. Keep production credentials out of that environment, deny reads of secret files, and review approvals.
Does Claude Code run commands without asking?
By default it asks before running commands and editing files. Users and administrators can pre-approve specific commands or enable more permissive modes; those settings should be governed by policy, especially on machines with privileged access.
How do we manage Claude Code across a team?
Use shared project settings and organization-managed settings to set permission rules, deny access to secret files, and control which MCP servers are allowed. Pair that with branch protection and review of AI-authored changes.