feat(security): Add security hardening for MCP, URL scheme, and per-terminal controls#50
Merged
Conversation
Security improvements based on comprehensive audit: - Add NSFileCoordinator for safe concurrent board.json access - Add input validation with length limits (1000 chars general, 50000 chars LLM context, 4096 chars paths) - Add path traversal prevention (blocks ../ sequences) - Add user confirmation dialog for external LLM context modifications via termq:// URL scheme - Add OSC 52 clipboard access preference Includes: - Security audit report in .claude/security-audit-2026-01-16.md - Localized security strings for all 40 supported languages - 25 new unit tests for security features Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Enhance security controls with granular per-terminal options: - Add per-terminal OSC 52 clipboard control (overrides global setting) - Add per-terminal external modification confirmation (overrides global) - Rename Data tab to "Data & Security" in Settings - Add Security section in terminal editor with clear status indicators - Add comprehensive Security documentation page in Help UI improvements: - Show "Disabled globally" indicator when global settings override - Group security settings in dedicated section - Improve interactive mode toggle labeling Includes: - Localized strings for all 40 supported languages - Updated help index and sidebar navigation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
c773306 to
a0daf0a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Security Features Added
Input Validation
../sequences)URL Scheme Protection
termq://URL schemeClipboard Access Control
File Coordination
Per-Terminal Security Settings
Documentation
Includes
.claude/security-audit-2026-01-16.mdTest plan
make checkpasses (build, lint, 516 tests, localization validation)termq://updatewith LLM fields🤖 Generated with Claude Code