Please report suspected vulnerabilities privately through GitHub's private vulnerability reporting rather than opening a public issue.
Useful things to include: the version or commit, how to reproduce it, and what an attacker gains. We will acknowledge the report, agree a disclosure timeline with you, and credit you in the advisory unless you prefer otherwise.
VecShield is pre-1.0. Fixes land on main and in the next release; there are
no long-term support branches yet.
In scope: authentication and authorization bypass (including bypass of
two-step sign-in), privilege escalation across
the viewer / operator / compliance / admin roles, separation-of-duties
bypass, unmasking of chunk values outside the audited reveal path, audit-log
tampering, secret disclosure in logs, reports or diagnostics, and SSRF through
connector or webhook configuration.
Out of scope: detector false negatives and false positives. Those are
correctness bugs — open an issue.
Known coverage gaps are documented in
docs/detection_limitations.md.
VecShield runs in your environment. Chunks, embeddings, findings, audit logs and reports stay in infrastructure you control. There is no managed backend and telemetry is off by default. The only outbound request any engine makes is to a vulnerability feed for CVE matching, which you can disable.
- Bind the API to a private network and front it with your own authentication
and TLS.
serverefuses to bind beyond loopback without auth configured, and refuses while the bootstrap admin still has its default password. - Configure auth explicitly: a static token
(
LOCAL_ADMIN_TOKEN/CUSTOMER_API_TOKEN), JWT validation (VECSHIELD_JWT_SECRET,VECSHIELD_JWT_AUDIENCE,VECSHIELD_JWT_ISSUER), or local accounts. - Require two-step sign-in for console accounts:
VECSHIELD_MFA_REQUIRED=admin(orall). Admins without an authenticator app are taken to set it up at their next sign-in. With an identity provider, setVECSHIELD_JWT_REQUIRE_MFA=1so that only JWTs whoseamrclaim shows MFA are accepted. - Use least-privilege roles.
viewerreads (reports, logs, masked views) and starts nothing.operatorruns assessments that write results.compliancepreviews erasure, opens and executes DSARs, and stages, approves and executes plans.adminimplies every role and alone may scan a server-side datasource or erase a subject directly. - Deletion obeys
VECSHIELD_SAFE_MODEfor every role and, except for an admin, needs a second person: whoever opened a DSAR cannot also execute it unless separation of duties is turned off. - Give connector credentials the least privilege that still lets the checks
read what they need — see
docs/pgvector.mdfor a worked example. - Prefer secret references (
*_env/*_file) over plaintext config values, and consider enforcing it withVECSHIELD_REJECT_PLAINTEXT_SECRETS=1. - Enable request hardening as needed: CORS allow-list, body-size caps, rate limiting.
- Store the audit log on append-only, customer-controlled storage. It is hash-chained, so tampering is detectable, but only durable storage makes it recoverable.
- Scrape
/metricsand monitor/readyz.
- Detected spans are stored as masked previews, never raw values.
- Unmasking goes through
reveal.py, which is role-gated and audit-logged. - Diagnostic bundles are redacted by default. Review one before sharing it outside your environment.
False positives are handled with allow-list rules and time-boxed suppressions. Suppressions are fingerprint-based, require an owner, reason and expiry, and are recorded in evidence. Suppressed findings stay visible for audit, and sensitive findings have stricter TTL limits. Suppressing a finding is a decision with a name on it, not a delete.
See docs/deployment.md for the full deployment guide.