Skip to content

Claude Code security check: is my Claude Code app secure?

Short answer

Short answer: scan an app built with Claude Code for secrets in browser assets, weak public rules, and common release misconfigurations. This guide explains what to verify and what the public scan cannot prove, without logging in, changing records, or treating an inconclusive response as a pass.

Use Claude Code's project-level security guidance and repository or backend checks first. ProofForge checks your live URL from the outside, the way a stranger sees it. Use both. Claude Code security guidance

Check yours now
Read-only. No writes or row contents.

What the Claude Code-built app security scan check covers

Claude Code can edit files and run project commands, while the app framework determines what ships. ProofForge checks the public deployment; it does not inspect local files, agent memory, shell history, or private cloud settings.

A public scan reviews only assets and responses a visitor can request without an account. It does not sign in, submit forms, change records, or use credentials discovered in the browser bundle.

Keep provider keys in the host's server-side secret store and use them only in backend code. A secret written into a client component or a public-prefixed variable can be included in the downloaded bundle.

Understand the evidence before changing code

If the scan finds a database endpoint, verify the associated role and policies before deciding what is exposed. Public configuration may be expected, but the service role and unrestricted access are not substitutes for a proper server boundary.

Treat browser configuration as public by design. A value in JavaScript, HTML, a source map, or a public file can be copied by every visitor; naming a variable private does not change where the browser receives it.

Apply the narrow, safe change

Give Claude Code a bounded task: locate the finding, propose a minimal fix, add a test for the intended user, and explain any migration. Review generated SQL and security-sensitive code before running it.

CLAUDE.md rule · md
## Security
- Keep provider secrets in server-side environment settings; never use public frontend prefixes.
- Review database policies and migrations before applying them.
- Add an authorization test for every changed route.

A clean result means the specific public checks completed without a detected issue. It does not prove that authenticated pages, business logic, dependencies, deployment permissions, or every backend policy are secure.

Verify the production result

After merging, deploy the same commit to production and verify the public asset. Re-scan only after the host has completed the rollout; a successful code change is not proof that the deployed bundle updated.

Fix one finding at a time, review the generated change, and keep the repair least-privilege. Do not paste a live credential into an AI chat, commit it to a repository, or weaken an access rule to quiet an error.

Keep the issue from returning

Add the rule to CLAUDE.md or project instructions: secrets remain server-side, policies match the actual owner claim, and tests must cover anonymous and authorized behavior.

After a change, deploy it and scan the production URL again. A local source edit is not proof that the public bundle changed; cached assets, a second deployment target, or a stale environment value can keep the old exposure live.

Limits and next steps

The scanner cannot determine whether an old secret remains in Git history or whether private functions are properly authorized. Use provider rotation and repository secret scanning for those separate concerns.

Keep the rule near the work: use server-side secret storage, add a build check for public bundles, and tell your coding agent which values are safe to expose. Review code and access policies before merging.

The scanner sees a public surface, not your private repository or authenticated data. A blocked request can be inconclusive because of a firewall or provider setting; resolve the cause rather than interpreting it as a pass.

Key facts

  • CLAUDE.md can preserve repository-specific instructions across coding sessions.
  • Secret rotation and source cleanup are separate after a public credential leak.
  • A deployment must finish before its public assets can be verified.

Questions

Can a clean Claude Code-built app security scan check prove the app is secure?
No. It is evidence about the advertised public surface only. A clean scan covers only public assets and responses, not private agent or deployment settings.
What should I do first if the finding is real?
Revoke a shipped key and move the provider call to server code.
Does ProofForge change application data?
No. The scan is read-only and does not sign in, write records, or use a discovered secret. You make and review any remediation in your own project.
What should I do after the repair?
Review the patch, test it, deploy the exact commit, and scan the production domain.

Official documentation referenced

Related

Last updated 2026-11-25 · Reviewed by ProofForge · Methodology · Markdown