Version: 1.0
Date: 2026-10-25
DO NOT report security vulnerabilities via public GitHub issues.
For any questions, feedback, or suggestions, please leave a comment or open a new issue on GitHub.
Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
| Severity | Acknowledgment | Fix Target |
|---|---|---|
| Critical | 24 hours | 7 days |
| High | 48 hours | 14 days |
| Medium | 7 days | 30 days |
| Low | 14 days | 90 days |
- Coordinated disclosure preferred
- 90-day disclosure deadline from report
- CVE requested for qualifying issues
- Credit given to reporters (unless anonymous requested)
| Version | Supported | End of Life |
|---|---|---|
| 0.x (pre-1.0) | Best effort | N/A |
| 1.x (current) | ✅ Active | TBD |
| 1.x-1 (previous) | Security only | 6 months after 1.x+1 |
- QUIC Native: TLS 1.3 (RFC 9001) via quic-go
- HTTP/3: TLS 1.3 + HTTP/3 (RFC 9114) via quic-go
- Certificate Validation: Mandatory, system CA + optional pinning
- Cipher Suites: TLS 1.3 only (AES-GCM, ChaCha20-Poly1305)
- Primary: Pre-shared tokens (256-bit entropy, constant-time compare)
- Alternative: mTLS (client certificates)
- Token Rotation: Hot reload via config file watch
- Session Binding: Token validated per connection
- Destination ACL: Allowlist/denylist (CIDR, hostnames)
- Default Denylist: RFC1918, localhost, link-local, multicast
- DNS Resolution: At connection time, TTL respected
- Connection limits (default: 1000)
- Stream limits (default: 100/connection)
- Buffer limits (stream: 1MB, connection: 10MB)
- Timeouts: handshake (10s), idle (30s)
- Rate limiting (planned)
# SECURE DEFAULTS - DO NOT WEAKEN
server:
listen:
addr: ":4433" # Non-standard port recommended
tls:
cert_file: "server.crt" # Valid, non-expired cert
key_file: "server.key" # Protected (chmod 600)
auth:
tokens: ["..."] # 32-byte base64, rotate periodically
# OR token_file: "tokens.txt" # One per line, watched for changes
proxy:
allowlist: ["specific.dest:443"] # Restrict destinations
denylist:
- "10.0.0.0/8" # RFC1918
- "127.0.0.0/8" # Localhost
- "::1" # IPv6 localhost
- "169.254.0.0/16" # Link-local
- "224.0.0.0/4" # Multicast
limits:
max_connections: 1000
max_streams_per_conn: 100client:
server:
addr: "server.example.com:4433"
sni: "server.example.com"
insecure_skip_verify: false # NEVER true in production
auth:
token: "..." # Same 32-byte token- Use short-lived certificates (Let's Encrypt: 90 days)
- Automate renewal (cert-manager, acme.sh, etc.)
- Monitor expiry (alert at 30 days)
- Private keys: file permissions 600, owned by qtunnel user
See docs/THREAT-MODEL.md for full model. Key points:
| Threat | Mitigation |
|---|---|
| MITM | TLS 1.3 + certificate pinning option |
| Unauthorized access | Token auth + ACL |
| DoS (resource exhaustion) | Connection/stream/buffer limits |
| Open proxy abuse | Default denylist + allowlist |
| Credential theft | Token rotation, short TTL |
| Traffic analysis | Encryption (QUIC/TLS); padding planned |
- TLS: Go standard library (
crypto/tls) - FIPS 140-3 validated modules available - QUIC Crypto: quic-go (uses Go TLS)
- Randomness:
crypto/randonly - Comparison:
crypto/subtle.ConstantTimeCompare
| Purpose | Algorithm |
|---|---|
| Transport Encryption | TLS 1.3 (AES-256-GCM, ChaCha20-Poly1305) |
| Key Derivation | TLS 1.3 HKDF |
| Token Generation | crypto/rand 32 bytes |
| Token Comparison | Constant-time |
- ❌ Custom cryptography
- ❌ Hardcoded keys/secrets
- ❌ Disabled certificate verification (in production config)
- ❌ Legacy TLS (< 1.2)
- ❌ Weak cipher suites
- Pin dependency versions in
go.mod govulncheckin CI on every PR- Dependabot alerts enabled
- Weekly dependency review
| Dependency | Risk | Monitoring |
|---|---|---|
| quic-go | Transport security | quic-go security advisories |
| Go stdlib | TLS, crypto | Go security releases |
| masque-go | MASQUE implementation | Upstream security |
| connect-ip-go | VPN implementation | Upstream security |
- All changes require review
- Security-focused review for: auth, parsing, crypto, network
gosecstatic analysis in CI
- Fuzzing on all parsers (frame, config, capsule)
- Race detector on all tests
- Integration tests with malicious inputs
- Signed releases (cosign/sigstore planned)
- Reproducible builds
- SBOM generation (planned)
- Unexpected connection patterns
- Authentication failure spikes
- Unknown destinations in logs
- Certificate validation failures
- Immediate: Rotate tokens, reload config
- Short-term: Block suspicious IPs, increase logging
- Long-term: Certificate rotation, audit access
- FIPS 140-3: Not supported in v1 (requires Go 1.26+)
- Common Criteria: Not evaluated
- Export Controls: Standard TLS/QUIC cryptography (unrestricted)
For any questions, feedback, or suggestions, please leave a comment or open a new issue on GitHub.
PGP Key: (to be published)
| Date | Version | Changes |
|---|---|---|
| 2026-10-25 | 1.0 | Initial policy |