Japanese LAC engineer discloses five layers of leak-prevention measures for Claude Code
Japanese LAC engineer Urakawa Tatsuhiro wrote an article introducing that when introducing Claude Code into a real commissioned development project with delivery deadlines and members of partner companies, the team used the CLI version of the Claude Team plan, identified four categories of risk—confidential information being read by the agent, personal information leaking through prompts, accidental file operations or external transmission, and third-party copyrighted code being mixed in—and built five layers of leak-prevention guardrails: copying the repository into an agent workspace after removing sensitive files; using settings.json to prohibit executing commands that connect externally and referencing files that may contain secrets; using gitleaks, Presidio and ScanCode to detect during initial scans and daily commits; using the SessionStart hook to verify the exclusion configuration; and using the UserPromptSubmit hook to block prompts containing confidential or personal information.
Japanese LAC engineer Urakawa Tatsuhiro wrote an article introducing that when introducing Claude Code into a real commissioned development project with delivery deadlines and members of partner companies, the team used the CLI version of the Claude Team plan, identified four categories of risk—confidential information being read by the agent, personal information leaking through prompts, accidental file operations or external transmission, and third-party copyrighted code being mixed in—and built five layers of leak-prevention guardrails: copying the repository into an agent workspace after removing sensitive files; using settings.json to prohibit executing commands that connect externally and referencing files that may contain secrets; using gitleaks, Presidio and ScanCode to detect during initial scans and daily commits; using the SessionStart hook to verify the exclusion configuration; and using the UserPromptSubmit hook to block prompts containing confidential or personal information.