Status: open Priority: MEDIUM Source: Security Audit, 2026-02-06
Two medium-severity defense-in-depth gaps were identified: an overly broad Bash permission rule in the local Claude settings and the use of the --no-sandbox flag in the Chrome headless PDF generation command documented in the skill prompt.
File: .claude/settings.local.json
Finding: M1 – The permission Bash(bash:*) allows arbitrary bash command execution without user confirmation, which is unnecessarily broad and could be exploited if the skill is extended or if other skills share this settings context.
Current Code (.claude/settings.local.json:3-7):
"permissions": {
"allow": [
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(bash:*)"
]
}Required Changes:
- Remove the overly broad
Bash(bash:*)permission. If specific bash commands are needed, allow them individually:
"permissions": {
"allow": [
"Bash(git add:*)",
"Bash(git commit:*)"
]
}- If Chrome headless execution is needed, add a specific permission for it rather than a blanket allowance.
File: SKILL.md
Finding: M2 – The Chrome headless command in the skill prompt uses --no-sandbox, which disables Chrome's sandbox security. While this may be required in some CI/container environments, it is unnecessary and insecure on local macOS execution where the skill is designed to run.
Current Code (SKILL.md:147-151):
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--headless --disable-gpu --no-sandbox \
--print-to-pdf="docs/security-audit/[projectname]-security-audit-YYYY-MM-DD.pdf" \
--print-to-pdf-no-header \
"docs/security-audit/[projectname]-security-audit-YYYY-MM-DD.html"Required Changes:
- Remove the
--no-sandboxflag since the skill targets macOS local execution:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--headless --disable-gpu \
--print-to-pdf="docs/security-audit/[projectname]-security-audit-YYYY-MM-DD.pdf" \
--print-to-pdf-no-header \
"docs/security-audit/[projectname]-security-audit-YYYY-MM-DD.html"- If container/CI support is needed in the future, document
--no-sandboxas an optional flag with an explanatory comment rather than including it by default.
-
.claude/settings.local.jsonno longer containsBash(bash:*)permission -
SKILL.mdChrome headless command no longer includes--no-sandbox - PDF generation still works correctly on macOS after removing
--no-sandbox