Adaptive Defenses for Large Language Models
Blog post from Lakera
Claude Code's permission model, designed for managing shell command execution, can inadvertently lead to sensitive credential exposure when its settings file, .claude/settings.local.json, is included in npm packages. This file, which records approved shell commands and any embedded credentials, is often overlooked due to its inconspicuous nature and lack of default exclusion in npm's publish process. A study monitoring approximately 46,500 npm packages found that 428 contained this settings file, with 33 of those containing sensitive credentials such as npm authentication tokens, GitHub personal access tokens, and Telegram Bot API tokens. The issue arises from developers allowing permanent command approvals during development, which can embed sensitive information into the file. To prevent such exposures, developers are advised to add .claude/ to their .npmignore and .gitignore files, ensuring that this settings file is excluded from published packages and version control, and to rotate any credentials that have already been exposed.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.