cvprism Security and Privacy¶
Status: Phase 0 draft. These are design commitments. Each "MUST" becomes a test at M1โM3.
cvprism watches people at work. It is useful only if users trust it with that. The design principle: capture claims about capability, never the work itself.
๐ฆ Captured vs never captured¶
| Captured (in cards) | Never captured |
|---|---|
Skill and tool names (pytorch, hec-ras, mcp-server-development) |
File contents, source code, notebooks' cells or outputs |
| Methods in market language ("Bayesian calibration of roughness coefficients") | Raw data, datasets, model weights, query results |
| Depth level (used โ built โ published) | Client, employer or colleague names, unless the user maps them via profile.yaml projects[].display |
| Measurable results the user or session stated, with units | Credentials, tokens, keys, URLs with query strings, hostnames, IPs |
A project alias slug (ctx) |
Full transcripts, prompts or diffs (never stored, never copied) |
Opaque references (git:<repo-alias>@<short-sha>, hashed session ID) |
Absolute file paths, usernames, repo remote URLs |
๐งช Processing boundaries¶
flowchart LR
accTitle: Privacy Boundaries in Capture
accDescr: Raw signals stay on the device. A code-only reducer produces a minimal digest, which is the only thing sent to Claude. The returned candidate is redacted and validated before it becomes a card, and only cards leave the device.
subgraph device["๐ Device only"]
raw_r["Raw signals<br/>transcript ยท commit ยท manifest diff"]
reduce_d["โ๏ธ Reducer (code)<br/>allow-list extraction"]
digest_d["Digest โค 6k tokens"]
redact_x["๐ก๏ธ Redactor + secret scan"]
card_c["Card"]
end
llm_l["๐ค claude -p<br/>(user's own account)"]
transport_t["Transports"]
raw_r --> reduce_d --> digest_d --> llm_l --> redact_x --> card_c --> transport_t
classDef safe fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
classDef ext fill:#fef9c3,stroke:#ca8a04,stroke-width:2px,color:#713f12
class reduce_d,redact_x safe
class llm_l,transport_t ext
- Reducer (code, allow-list). It keeps only fields on an allow-list:
- Claude session: user prompts truncated to 300 chars each, tool names and counts, file extensions touched, package names seen in install commands, the final assistant summary (truncated).
- git: commit subject, changed file extensions and counts, changed dependency names in manifests. No diff hunks.
- Watcher: added or removed dependency names, new
SKILL.md/.mcp.jsonserver names, notebook kernel language. - Before anything leaves the reducer, the redaction rules below are applied to the digest itself.
- LLM call. The digest goes to
claude -punder whatever account is logged in on that device. That is the same provider that already saw the session, but possibly a different account. Users who need stricter handling setcapture.claude_session.enabled: false, or usereview_mode, or exclude paths. - Redactor (after LLM). Runs on every candidate card field.
- Validation. A JSON Schema check that also enforces length caps, so no field can carry a paste of content.
โ๏ธ Redaction hooks¶
~/.cvprism/redact.yaml, per device, never synced (it may itself contain sensitive names):
v: 1
deny_terms: # case-insensitive, whole-word; matched card -> term replaced, card flagged needs_review
- "Contoso"
- "Project Nightingale"
replace: # literal or regex -> replacement
- {pattern: "(?i)acme water", with: "a water utility"}
exclude_paths: # signals from these paths are dropped before the reducer
- "~/Documents/clients/**"
secret_scanners: [aws, gcp, github, openai, anthropic, private_key, jwt, high_entropy]
on_secret: drop # drop | quarantine
plugins: [] # dotted paths to callables: (card: dict) -> dict | None
- Secret scanning uses built-in regexes for common key formats, plus a Shannon-entropy check on tokens โฅ 20 chars. A card that hits is dropped by default and never reaches the outbox.
- Plugins let organisations add their own rules (e.g. a client-list lookup) as one Python callable. Returning
Nonedrops the card. - Review mode (
privacy.review_mode: true) writes cards to~/.cvprism/pending/.cvprism reviewshows each one for approve, edit or drop before it enters the outbox.
๐ Storage and transport exposure¶
| Location | Exposure | Mitigation |
|---|---|---|
| Code repo (public) | Must never contain personal data | The wizard refuses vault paths inside a cvprism checkout. .gitignore covers vault/, *.jsonl. CI checks that no *.jsonl is committed outside tests/fixtures/ |
| Private git vault repo | GitHub account compromise | Private repo. Cards contain no secrets by construction. Optional age encryption is on the roadmap (Open question 10) |
| Synced folder (Drive etc.) | Provider and account access | Same as above, and the user chooses the provider |
| USB drop-box | Physical loss | Spokes write only their own inbox. No full vault, profile or CV is placed on the stick by default |
| Hub vault | Full career history and profile PII | Lives on the user's main machine. Never pushed in full unless the user configures it |
Removing data¶
Append-only applies to normal operation. For real mistakes (e.g. a secret slipped through):
cvprism suppress <id>hides a card from merge and compile. The history is kept.cvprism purge <id>is the one deliberate exception to append-only. It rewrites the affected inbox month file on the local outbox and on every reachable transport, rewritescards.jsonlon the hub, and records the ID invault/purged.txt, so lagging transports are filtered at merge. For git it also prints the history-rewrite commands (git filter-repo) for the user to run. cvprism never force-pushes on its own.
๐งฑ Threat model (summary)¶
| Threat | In scope? | Response |
|---|---|---|
| Accidental leak of client or confidential info into a CV or vault | Yes, primary | Reducer allow-list, redactor, project aliases, review mode, honesty gate |
| Fabricated claims on a CV | Yes | Citation-enforced honesty gate (ADR-009) |
| Malicious card injected via a shared transport | Partly | vault_id check, schema validation, ID recomputation, quarantine. No code from cards is ever executed |
| Prompt injection in session transcripts steering the extractor | Yes | The extractor runs with every tool disabled (exact claude -p flag pinned and tested at M2). Output is schema-validated. Content is treated as data inside delimiters |
| Hook used to run arbitrary code | Yes | Hooks call only the installed cvprism entry point with fixed arguments. No shell interpolation of transcript paths |
| Compromised user account or OS | No | Out of scope |