Security & trust
What we see, what we don't, and why
This page states our data-handling claims precisely enough to be checked against the actual source, not just taken on faith. Every "what we never see" item below is enforced today, and every compliance claim is stated exactly as far as it currently goes — no further.
Architecture & data flow
- 1. Your machine Claude Code / Cowork hooks call the local engine on every tool call.
- 2. Local engine Deterministic rules evaluate the call. Shadow mode logs; enforce mode can block.
- 3. Local storage Findings and settings live in ~/.pinkyai. Nothing here is uploaded automatically.
- 4. Cloud (optional) Only reached when you sign in or refresh your license. Never while a tool call is evaluated.
Step 4 is reached only when you sign in or refresh your license. It is never in the path of evaluating a single tool call: a hook checks your cached license offline.
Every network call the binary makes
A default install talks to the network only when you run one of these commands. This list is checked against the engine source on every build, so it changes when the code does.
- pinkyai license login PinkyAI's Auth0 sign-in tenant Device-code sign-in: the binary asks for a code, you approve it in a browser, and it collects the resulting token.
- pinkyai license login and pinkyai license refresh api.pinkyai.io Fetches your plan's signed entitlement and the public keys that verify it. The result is cached and checked offline for 30 days; no hook waits on it.
- pinkyai mcp scan npm:<package>@<version> registry.npmjs.org Reads two small public registry documents, that package's dist-tags and that version's manifest, to check the version exists, is not deprecated, declares a license and is signed. The package name and version are the only things sent.
- pinkyai mcp scan npm:<package>@<version> api.osv.dev Checks the scanned version against public OSV advisories at api.osv.dev, only when you run pinkyai mcp scan. The package name and version are the only things sent.
Only if you turn them on
- api.npmjs.org, registry.npmjs.org, pypistats.org, pypi.org and hex.pm only with security.package_registry_trust_enabled set (off by default) Looks up the weekly downloads and last publish date of a package an agent is about to install. The package name is the only thing sent.
- api.anthropic.com only if you route Claude Code through the local daemon with your own API key (Mode B) Forwards your own model requests to Anthropic, where they were already going. It never forwards your key anywhere else.
What does not leave your machine
- Telemetry. If you opt in, the engine counts a few events in a local database on your machine. It has no telemetry uploader, so the counts stay there.
- Crash reports. If you opt in, a crash writes a local file you can attach to a GitHub issue yourself. The engine never uploads it.
- Update checks. Rule packs and the binary update when you install a new release; the engine does not fetch updates on its own yet.
What's actively scanning, on your machine
Step 2 above ("Local engine") isn't one check — it's this list, run against every tool call before it executes. All of it is deterministic, versioned rule packs, not a model call: same input, same verdict, every time, and nothing here ever leaves the machine to run.
- Secrets API keys, tokens, and credentials, before they leave your machine in a command or file write.
- PII Emails, phone numbers, national IDs, and payment card numbers — card numbers checked with a real Luhn checksum, not just a digit-count guess.
- Dangerous commands Destructive or irreversible shell commands (recursive deletes, force-pushes, disk operations) flagged before they run.
- Malicious URLs Known-bad and structurally suspicious URLs a tool call is about to fetch or write.
- Package integrity Typosquat and known-malicious-package patterns in dependency additions.
- Prompt injection Content shaped like an attempt to override the running agent's instructions from inside a file or tool result.
- High-entropy strings Random-looking secrets that don't match a known credential format but still shouldn't leave the machine.
- Input anomalies Structurally unusual tool-call input, a lighter-weight signal than the pattern-matched packs above.
Detection quality for each pack is measured, not asserted here — pinkyai security-detection-benchmark
checks whether real rule triggers still get caught in full session context, using the same engine binary
you're running, not a marketing snapshot that can drift out of date.
What we never see
- The content of your files, commands, or Claude Code / Cowork conversations
- Your API keys, secrets, or credentials — catching these before they leak is the product's job, not a place they end up
- Anything at all from a session. Even with telemetry on, the counts stay in a local database on your machine
What the cloud side ever holds
- Account email and name
- Organization membership and role
- Organization name and entitlement
- Legal acceptance records
- Telemetry consent
- Telemetry
- Product events on our own platform
- Device records
- License issuance log
- Invitations
- Audit events
- Referral codes and attributions
- Private-beta allowlist and trial-eligibility records
- Waitlist and newsletter emails
- Content-Security-Policy violation reports your browser sends; we log only the violated directive and the blocked host, never the page URL, query string or user agent
- Request logs
How long each one is kept, and what deletion and Download my data cover, is in the privacy policy’s data table.
What stays on your machine
PinkyAI is local-only: nothing below is uploaded, but the engine does write to your own disk, under ~/.pinkyai on macOS and Linux ($XDG_DATA_HOME/pinkyai if you set XDG_DATA_HOME), %LOCALAPPDATA%\pinkyai on Windows. This is the complete local data map, checked against the engine's storage layout by our test suite:
| Folder | What it holds | Why | How long |
|---|---|---|---|
| config/ | Your settings: mode, which rules are on, allowlists. | So the engine behaves the way you set it up. | Until you change or delete it. |
| db/ | events.sqlite3: each finding's rule id, severity, a masked preview of what matched, the session id and time, the masked shape of recent writes (each letter and digit replaced by its kind, known key prefixes aside, so a secret split across files can still be caught), keyed fingerprints rather than the text of your prompts, subagent task prompts, the lines of a test fixture you read and the fields of an infrastructure file you edit (so a repeat or a change can be spotted; the fixture or file path itself is kept, and the key sits beside the database in events.digest-key), the file or folder you named in a "don't touch" instruction (secrets in it masked), plus the network destinations a command names (a URL or host passed to curl, git or ssh), and each Block, Advise after or Off switch you make on the dashboard's Rules page or with pinkyai rules mode (the rule, its setting before and after, and when), and each exception you add or remove from the dashboard (the rule, the allow line and the file it went in). If you turn on security.verdict_capture_enabled (off by default), also each tool call's redacted inputs (the command or file content up to 64 KiB, secrets and PII masked), for pinkyai replay. If you set a tree_budget cap (none by default), also, per session, each transcript's path and how far it has been read, its per-message token counts and message ids, and its subagent spawn ids, so the cap can be checked without re-reading the session; no message text. While the proxy is on and "Record model timings" in Settings is left on (security.daemon_record_model_health, on by default), also, for each request the proxy relays, the session id, the model name, when it started, the time to the first and last byte of the reply, the HTTP status, whether it repeated the previous request, and the output token count; no prompt or reply text. If you turn on security.daemon_record_request_shape (off by default), also, for each request the proxy relays, when it was sent and a hash of its system text and of its tool list (and of the ones the proxy sent, where its own shaping changed them), so pinkyai cache-report can name what changed at a cache break, and per MCP tool its name and the size in bytes of its definition, so the share of each request spent on tools a session never called can be shown; no text. If you turn on security.daemon_record_model_repetition (off by default), also a watch-only flag when the model's last replies are nearly the same and repeat the same tool call: how alike they were and the tool's name, never the replies. While the proxy is on, also a hash of each MCP tool's description and input schema, by tool name (never the text), so a change can be flagged. | The shadow-mode log, the local dashboard and pinkyai report read it. | The most recent 10,000 checks and flags, and separately the most recent 10,000 other events; older rows are pruned on write. Captured verdicts: the newest 5,000. Tree-budget ledgers: 7 days after the session's last tool call. Model-health rows: the newest 10,000, kept apart from the rest. MCP tool hashes: 90 days after the tool was first seen or last changed. MCP tool sizes: 90 days after written. The repetition figure: 24 hours. |
| logs/ | pinkyai.log: the engine's own diagnostic log. | Troubleshooting a hook that misbehaved. | Rotated by size; the oldest rotated files are deleted. |
| quarantine/ | The full text of tool output a rule quarantined, one file per entry. Raw content is kept here because a person has to be able to read it before releasing it; the only other place is hygiene, below, and only when you run it. The entry body is encrypted with a key held in your OS keychain; when no keychain is available it is not written as plaintext. | Human review: pinkyai quarantine list, show and release. | Until you delete the entry; releasing marks it released rather than deleting it, so the decision stays auditable. |
| hygiene/ | Byte-for-byte backups of Claude Code transcripts that pinkyai hygiene scrub rewrote, including the secrets that were masked, with a manifest of each file's hash. Files are readable only by you. | So pinkyai hygiene rollback can restore them exactly. Only written when you run pinkyai hygiene scrub --yes yourself. | Until you delete them. |
| repo_trust/ | One JSON file per repository you open a session in: its root path and a SHA-256 hash of each part of its agent configuration (instruction files, .claude settings, hook commands, MCP server entries, agent, command, skill and hook files), keyed by relative path or setting name. No file contents and no command text. | So a session can tell what changed in that configuration since you last trusted it, and ask before the first tool call when the change is risky. | Until you delete it; pinkyai trust repo --accept replaces a repository's file. |
| user_rules/ | Your own rule packs: one folder per pack with a pack.json you wrote or copied from a git repository, holding each rule's pattern and its example commands. pinkyai only writes here when you run pinkyai rules new. | So your team's own rules run beside the built-in ones, in shadow until you enable them. | Until you delete it. |
| usage_window/ | Only if you turn on security.daemon_record_usage_window (off by default): for each subscription response the relay passes on, the percent of each usage window used and its reset time, and the projected time the window reaches its limit. No headers, prompts, replies, session ids or credentials. | So pinkyai can show how much of your usage window is left and check how far off its own projections were. The figures are not yet verified against Claude Code's own meter. | 35 days, pruned when the file passes 4 MB; until you delete it if the daemon stops writing. |
| confidential/ | Only if you mark files in security.confidential_paths (empty by default): a random hashing key, the repository folders a session ran in while files were marked, and for each marked file its path, size, modified time and hashes of its word sequences. Never any text of the files. | So a request that carries text from a marked file can be recognised and stopped without keeping a copy of that text. | Rebuilt when the marked files change; until you delete it. |
| vault/ | Placeholder-to-value mappings for PII substitution, AES-256-GCM encrypted with a key held in your OS keychain. | Proxy mode (Mode B) swaps sensitive values for placeholders and back. | Until you delete it. |
| incidents/ | A snapshot of the session timeline, written when a security rule actually denies a call. | So you can see what led up to a block. | Until you delete it. |
| benchmark_corpus/ | Anonymized, scanner-screened session transcripts. | Only written when you run pinkyai benchmark-corpus build --persist yourself. Never automatic. | Until you delete it. |
| task_queue/ | The cross-session task queue: tasks you or your agent queued, and their state. | Handing work between sessions. | Until you delete it. |
What the portal keeps in your browser
The portal at app.pinkyai.io writes nothing to localStorage or sessionStorage. This is the complete list of what it does keep, checked against the portal's source by our test suite:
- Your sign-in tokens (Auth0 access and refresh tokens) The page's memory, never a cookie or browser storage Kept until you close or reload the tab
- A self-hosted gateway's admin token, if you connect one The page's memory, never a cookie or browser storage, and never sent to our servers Gone when you close or reload the tab; you paste it again next time
- A "signed in" marker cookie, pinkyai_signed_in=1, with no identifier in it A first-party cookie, read only to send a signed-in visitor from pinkyai.io straight to the portal 30 days, and cleared when you sign out
Telemetry, in detail
Telemetry is off by default and stays off until you turn it on. Once on, the engine counts a small, fixed set of events in a local database on your machine, never the content that triggered them. Today's engine has no uploader, so nothing is sent to us. Our API can accept these counts from a future release; the schema it would accept is public: pinkyai.io/telemetry.
Who processes data on our behalf
A named, maintained list of every sub-processor we use, what each one does, and what data flows to it: Sub-processors.
Compliance roadmap
SOC 2 aligned, Type I planned. We've mapped our own controls against SOC 2's Trust Services Criteria and use that mapping to guide the engineering work itself — but no formal audit has happened yet, and we won't claim certification until an independent auditor has actually issued a report. A lightweight security questionnaire pack is available on request once you're evaluating us for procurement.
Vulnerability disclosure
Found a security issue? Report it to security@pinkyai.io, or through your account's support channel if you'd rather not use email. Please include enough detail to reproduce it, and avoid testing against other customers' data or accounts. We aim to acknowledge reports within 3 business days.
We won't pursue legal action against good-faith security research that follows this policy, and we'll credit reporters who ask to be (with permission) once a fix ships. There's no bug bounty program yet — an honest gap, not a hidden one.
Machine-readable version: /.well-known/security.txt (RFC 9116).