Chapter 56 · Reviewing Claude Config
Subchapter 56.13
examples/example-settings-review.mdMarkdown2 KBView on GitHub
Context: Reviewing settings.json with multiple security concerns.
.claude/settings.json:5 - CRITICAL: Overly broad file permissions
Current:
"autoApprovedTools": [
"Read://*"
]Change to project-scoped:
"autoApprovedTools": [
"Read://Users/username/projects/myproject/**"
]Read://* grants read access to entire filesystem including:
~/.ssh/ (SSH keys)~/.aws/ (AWS credentials)/etc/ (system config)Scope to project directory only per principle of least privilege.
Reference: Security best practices - Permission scoping
.claude/settings.json:8 - CRITICAL: Dangerous command auto-approved
Current:
"Bash:rm -rf:*"REMOVE THIS IMMEDIATELY
rm -rf performs recursive deletion without confirmation. Auto-approving this command creates risk of accidental data loss.
If file deletion is needed frequently, scope to specific safe directories:
"Bash:rm -rf /tmp/project-build-cache:*"Or require manual approval for all rm commands.
Reference: Security best practices - Dangerous commands
.claude/settings.json:12 - IMPORTANT: Permissions reference sensitive directory
Current:
"Read://Users/username/.ssh/**"Remove access to .ssh directory containing private keys.
If SSH config reading is required (rare), scope to specific config file:
"Read://Users/username/.ssh/config"Never grant blanket access to directories containing credentials.
Overall Assessment: BLOCK - Critical Security Issues
CRITICAL issues must be fixed immediately:
Read://* permissionrm -rf command.ssh directoryThese issues expose significant security risks:
Cannot approve until all CRITICAL issues are resolved.
After fixes, re-review the scoped permissions to ensure they follow principle of least privilege.