Japanese LAC engineer discloses five layers of leak-prevention measures for Claude Code
Start here
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.
Generated by AI from reports · Updated 8 days ago
Attention and developments
Attention, hourly
Now 31, 0% in 24 hours·Peak 32 (Nov 22 21:00)
Progress timeline
- lac.co.jpJapanese LAC engineer discloses five layers of leak-prevention measures for Claude Code in a real project
Japanese LAC engineer Urakawa Tatsuhiro wrote an article introducing the five layers of leak-prevention guardrails he set up when introducing Claude Code into a real contract development project with delivery deadlines and members from partner companies. The team used the CLI version of Claude Code under the Claude Team plan and identified four categories of risk: confidential information being read by the agent, personal information leaking through prompts, unintended file operations or external sending, and third-party copyrighted code being mixed in. The five countermeasures, in order, are: copying the repository into an agent workspace after removing sensitive files, using settings.json to prohibit execution of externally connecting commands and references to files that may contain secrets, detecting with gitleaks, Presidio and ScanCode at initial scans and daily commits, verifying exclusion configurations with the SessionStart hook, and blocking prompts containing confidential or personal information with the UserPromptSubmit hook.
Related discussion
Attention trend
New sources per day
- Nov 21: 1 new sources (1 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)