Skip to content

fix(security): permissions hardening + deny list + hook timeouts#2

Closed
riaworks wants to merge 6 commits intomainfrom
fix/permissions-hardening
Closed

fix(security): permissions hardening + deny list + hook timeouts#2
riaworks wants to merge 6 commits intomainfrom
fix/permissions-hardening

Conversation

@riaworks
Copy link
Owner

Summary

  • C-02: Specific Bash command patterns instead of unrestricted 'Bash'
  • C-03: Correct single-level permissions structure
  • C-04: Complete deny list (curl, wget, .env, .ssh, git push, npm publish)
  • L-05: Deny list aligned with ANTHROPIC-STANDARDS.md
  • L-06: Add timeout to 2 hooks (gsd-check-update.js, gsd-context-monitor.js)

Files Changed

  • .claude/settings.json (2 timeout additions)
  • .claude/settings.local.example.json (new 139-line hardened template)

riaworks and others added 6 commits February 28, 2026 15:19
- L-06: Add timeout: 30000 to gsd-check-update.js and gsd-context-monitor.js
- Restore git push deny rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Provides secure reference template with:
- C-02: Specific Bash command patterns instead of unrestricted 'Bash'
- C-03: Correct single-level permissions structure
- C-04: Complete deny list (curl, wget, .env, .ssh, git push, npm publish)
- L-05: Deny list aligned with ANTHROPIC-STANDARDS.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Each permission group now has clear explanations:
- File System, Git, Package Managers, Runtimes, CLI, MCP
- Every deny rule explains the risk it prevents
- Header with copy instructions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…were user-customized, not original package

6 findings removed (C-02, C-03, C-04, L-05, L-06, L-13) — all were based on
settings.local.json/settings.json customized by user after download.
Original package only distributes settings.md.
Updated totals: 21 findings (1 CRITICAL), 6 PRs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@riaworks riaworks closed this Mar 1, 2026
@riaworks riaworks deleted the fix/permissions-hardening branch March 1, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant