mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-25 00:36:22 +02:00
Security: - Fix RUSTSEC-2026-0007 (bytes integer overflow) - Restrict SQLite database file permissions to 0600 on Unix - Add 100KB size limit to intention descriptions (DoS prevention) - Redact JSON-RPC payloads from debug logs (data leakage prevention) - Update SECURITY.md with encryption docs and supported versions Modernization: - Upgrade Rust edition 2021 → 2024, MSRV 1.75 → 1.85 - Upgrade actions/checkout@v4 → v5, codecov/codecov-action@v3 → v5 - Update all dependencies to latest compatible versions - Fix edition 2024 match ergonomics in compression.rs Clippy fixes: - Rename from_str → parse_name to avoid shadowing FromStr trait - Replace .max().min() with .clamp() - Replace sort_by with sort_by_key Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Security Policy
Supported Versions
| Version | Supported |
|---|---|
| 1.1.x | ✅ |
| 1.0.x | ❌ |
Reporting a Vulnerability
If you discover a security vulnerability in Vestige, please report it responsibly:
- DO NOT open a public GitHub issue
- Email the maintainer directly (see GitHub profile)
- Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
You can expect a response within 48 hours.
Security Model
Trust Boundaries
Vestige is a local MCP server designed to run on your machine with your user permissions:
- Trusted: The MCP client (Claude Code/Desktop) that connects via stdio
- Untrusted: Content passed through MCP tool arguments (validated before use)
What Vestige Does NOT Do
- ❌ Make network requests (except first-run model download from Hugging Face)
- ❌ Execute shell commands
- ❌ Access files outside its data directory
- ❌ Send telemetry or analytics
- ❌ Phone home to any server
Data Storage
All data is stored locally in SQLite:
| Platform | Location |
|---|---|
| macOS | ~/Library/Application Support/com.vestige.core/vestige.db |
| Linux | ~/.local/share/vestige/core/vestige.db |
| Windows | %APPDATA%\vestige\core\vestige.db |
Default: Data is stored in plaintext with owner-only file permissions (0600).
Encryption at Rest
For database-level encryption, build with SQLCipher:
cargo build --no-default-features --features encryption,embeddings,vector-search
Set VESTIGE_ENCRYPTION_KEY environment variable. SQLCipher encrypts all database files including the WAL journal. Alternatively, use OS-level encryption (FileVault, BitLocker, LUKS).
Input Validation
All MCP tool inputs are validated:
- Content size limit: 1MB max
- Query length limit: 1000 characters
- FTS5 queries are sanitized to prevent injection
- All SQL uses parameterized queries (
params![]macro)
Dependencies
We use well-maintained dependencies and run cargo audit regularly. Current status:
- Vulnerabilities: 0
- Warnings: 2 (unmaintained transitive dependencies with no known CVEs)
Security Checklist
- No hardcoded secrets
- Parameterized SQL queries
- Input validation on all tools
- No command injection vectors
- No unsafe Rust code
- Dependencies audited