> ## Documentation Index
> Fetch the complete documentation index at: https://docs.promptguard.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Compliance & Security

> Security certifications, data handling, and compliance information

> [!NOTE]
>
> PromptGuard is built with enterprise security requirements in mind. This page outlines our security practices, compliance status, and data handling policies.

## At a glance

For security teams evaluating PromptGuard, the three things that usually matter most:

1. **What we do with your data**: we scan prompts and responses in real time and never train on them. By default a security event keeps a masked, truncated preview of the content (at most 500 characters); a project's **zero retention** setting keeps none. Your LLM provider keys stay with you. (See [Data Handling](#data-handling).)
2. **Proof for auditors**: every security decision is recorded in a hash-chained [audit log](https://docs.promptguard.co/platform/audit-logs.md) with event ID, threat type, confidence, and timestamp. Verifying it from the dashboard detects a modified event (see [Tamper-Evident Audit Trail](#tamper-evident-audit-trail)).
3. **Where we stand on frameworks**: summarized in the table below.

> [!NOTE]
>
> **"Compliant" vs "Aligned":** *Compliant* means we meet the requirement (with a DPA or independent attestation where applicable). *Aligned* means PromptGuard provides the technical controls a framework requires, but formal third-party certification has not started or is out of scope. We don't claim certifications we don't hold.

## Security Certifications

| Certification | Status | Details |
| - | - | - |
| **SOC 2** | Type 1 preparation started October 2026; no report held | Not yet certified: there is no SOC 2 report of either type to send. Today we offer a stronger verification path for security teams: source access under NDA, build provenance on published packages, Ed25519-signed offline licences, and, for Air-gapped deployments, a reproducible egress audit. A formal SBOM is not yet generated in CI. [Contact us](mailto:sales@promptguard.co). |
| **GDPR** | Supported | Account and Organization deletion in the dashboard, export on request ([Delete your data](#delete-your-data)); DPA template with counsel, not yet signable ([DPA](https://promptguard.co/dpa)) |
| **CCPA** | Supported | Service-provider terms available in the DPA |
| **EU AI Act** | Aligned | Technical controls map to Articles 9, 11, 12, 13, 14, 15 |
| **ISO/IEC 42001** | Aligned | AI management system controls for risk, logging, transparency, oversight |
| **ISO 27001** | Not started; no audit is scheduled | Not yet certified |
| **HIPAA** | Not offered | PHI-adjacent workloads: deploy Air-gapped inside your environment, with egress denied by your network policy (Hybrid forwards no prompt content by default, and masked previews only if you set `FORWARD_MODE=content`) |

> [!NOTE]
>
> "Aligned" means PromptGuard provides the technical controls that satisfy the framework's requirements. Formal certification (where applicable) requires third-party audit. For enterprise customers requiring specific compliance certifications, contact [sales@promptguard.co](mailto:sales@promptguard.co) to discuss your requirements.

## EU AI Act Alignment

The EU AI Act (Regulation 2024/1689) imposes requirements on high-risk AI systems, enforceable from August 2, 2026. PromptGuard provides technical controls that map to each requirement:

| EU AI Act Article | Requirement | PromptGuard Capability |
| - | - | - |
| **Art. 9**: Risk Management | Systematic risk identification, analysis, and mitigation throughout the AI lifecycle | Policy engine with configurable threat detection (15 detector types, plus 714 community agent-threat patterns in 108 rules), per-request risk scoring, behavioral analysis |
| **Art. 11**: Technical Documentation | Maintain documentation demonstrating risk management and system behavior | OpenAPI spec auto-generated from live API, governance reports with narrative sections, evidence packages for auditors |
| **Art. 12**: Record-Keeping | Automatic recording of events enabling risk identification and post-market monitoring | Tamper-evident audit trail (SHA-256 hash chaining), every security decision logged with event ID, threat type, confidence, and timestamp |
| **Art. 13**: Transparency | Enable deployers to interpret output and use the system appropriately | Per-decision explainability (threat type, confidence, matched detectors), governance reports with incident timelines |
| **Art. 14**: Human Oversight | Mechanisms for human oversight, intervention, and override | Dashboard with real-time visibility, configurable alert thresholds, manual policy overrides, role-based access |
| **Art. 15**: Accuracy, Robustness, Cybersecurity | Meet standards for accuracy, resilience to attacks, and cybersecurity | Evaluated at F1=0.887 on 2,369 samples (1,378 attacks, 991 benign), automated red team testing, behavioral drift detection |

## ISO/IEC 42001 Alignment

ISO/IEC 42001:2023 is the international standard for AI Management Systems. PromptGuard's controls map to its Annex A requirements:

| ISO 42001 Control | Requirement | PromptGuard Capability |
| - | - | - |
| **Risk Assessment (6.1)** | Identify and assess AI-specific risks including security, misuse, and safety | 15 threat detector types covering OWASP LLM Top 10, configurable policy presets, per-request risk scoring |
| **Data Governance (Annex A)** | Ensure data is appropriate, accurate, and free from harmful biases | 46-type PII detection and redaction, masked previews by default and per-project zero retention, content safety classification |
| **Transparency (Annex A)** | Provide transparency about AI system use and decision rationale | Per-decision explainability, governance reports, audit trail with full decision context |
| **Human Oversight (Annex A)** | Allow intervention and override capabilities | Dashboard with real-time monitoring, configurable block/allow/redact policies, manual credential rotation and revocation |
| **Monitoring (Annex A)** | Detect and measure AI system behavior over time | Behavioral drift detection with Jensen-Shannon divergence, anomaly alerting, agent statistics tracking |
| **Incident Response (10)** | Detect, respond to, and learn from AI system failures | Real-time threat alerts, webhook notifications, tamper-evident audit trail for forensic analysis, governance reports with incident timelines |

## Data Handling

### What Data We Process

| Data Type | Processing | Retention |
| - | - | - |
| **Prompts & Messages** | Scanned for threats in memory | Not stored whole. A security event keeps a masked preview of at most 500 characters plus a content hash, unless the project has zero retention on (then no preview at all) |
| **PromptGuard API Keys** | Stored only as a one-way SHA-256 digest; the key is shown once, at creation, and cannot be retrieved afterwards, by you or by us | Until deleted |
| **LLM Provider Keys** (if you store them) | Encrypted at rest with AES-256-GCM under a key derived for your account alone (see [Encryption](#encryption)) | Until deleted |
| **Usage Metrics** | Aggregated counts | Not purged on a schedule |
| **Security Events** | Decision, threat type, confidence and (unless zero retention is on) the masked preview | By plan: Free no guaranteed retention (purged after 24 hours), Developer 30 days, Enterprise 90; Shadow Team 30, Shadow Enterprise 90. Purged daily |
| **Audit Logs** | User actions | Not purged on a schedule |

### Data Flow

One diagram per surface (proxy, [Guard API](https://docs.promptguard.co/api-reference/guard.md) and SDK auto-instrumentation, the Shadow [desktop agent](https://docs.promptguard.co/shadow-ai/desktop-agent.md), hosted inference) and the Hybrid and Air-gapped differences are on [Data flow](https://docs.promptguard.co/security/data-flow.md).

### What a security event keeps

PromptGuard scans prompts and responses in memory and forwards them; it does not keep the whole prompt. What it does keep, for each scan, is a **security event**:

* the decision, threat type, confidence and timestamps;
* by default, a **masked preview** of the content, truncated to 500 characters, plus a content hash. Content from the browser and desktop surfaces is masked before it is stored.

Three switches turn previews off, and any one of them is final:

* **Zero retention**, per project: no preview and no free-text reason is stored.
* **`store_previews: false`**, per organization.
* **`STORE_PREVIEWS=false`**, for a whole self-hosted deployment (off by default in Air-gapped mode).

Security events are deleted when your plan's retention runs out (see the table above).

## Who at PromptGuard can access your data

* **Other customers cannot.** Every dashboard and API request runs as a database role that row-level security applies to, bound to one Organization per transaction. A query that forgets its filter returns nothing rather than another tenant's rows. On in production since 17 September 2026.
* **Platform administrators can read across tenants.** PromptGuard's back office (the `/internal` API) runs on a separate, privileged database connection that row-level security does not restrict. Only accounts flagged as platform administrators can use it; the flag is set by another platform administrator or by the service's configuration. From it an administrator can list and manage customer accounts and plans and see system-wide blocked events: user, threat type, confidence, reason, model and source IP. That view does not include the masked preview. Plan changes made there are written to the audit log.
* **Infrastructure access is held by the founders.** No one else at PromptGuard has access to production. Anyone with database access can read stored events, including masked previews. Infrastructure accounts (Google Cloud, Supabase, GitHub) require MFA. There is no just-in-time elevation or break-glass tooling: access is standing, not requested per incident.
* **We do not train models on your data.**

To keep event content away from us entirely, turn on zero retention for a project, or [self-host](https://docs.promptguard.co/security/data-flow.md#self-hosted-hybrid-and-air-gapped): Air-gapped sends us nothing.

## Delete your data

| What | How | What is deleted |
| - | - | - |
| **Your account** | [**Dashboard → Settings → Danger Zone**](https://app.promptguard.co/dashboard/settings?section=danger-zone) **→ Delete account**, then type `DELETE` (`DELETE /dashboard/auth/account`) | Your user, every Organization you own (with its projects, API keys, Devices and security events), your stored provider keys and your subscription. A paid Stripe subscription is cancelled first. Deletion is immediate and cannot be undone |
| **An Organization** | [**Dashboard → Organization → Team**](https://app.promptguard.co/dashboard/settings/team) **→ Delete team**, then type `DELETE` (owner only; `DELETE /dashboard/organizations/{org_id}`). A personal Organization goes only with its account | Its projects, API keys, Devices and security events |
| **Old security events** | Automatic | Purged daily when your plan's retention runs out (see [What Data We Process](#what-data-we-process)) |
| **A copy of your data** | Email [security@promptguard.co](mailto:security@promptguard.co) from the account's address | There is no self-serve download yet |

What deletion does not remove:

* **The audit log.** Audit events are never purged. When their Organization is deleted they are kept, unlinked from it, so the record of what happened (including the deletion itself) survives.
* **Events in Organizations you don't own.** Deleting your account removes your link to them; the Organization's owner keeps the events.
* **Backups.** The database provider's automated backups keep deleted rows until those backups expire.
* **Billing records** held by Stripe.

## Infrastructure Security

### Cloud Infrastructure

| Component | Provider | Security |
| - | - | - |
| **Compute** | Google Cloud Run, us-east4 | Serverless, auto-scaling |
| **Database** | Supabase (PostgreSQL), AWS us-east-1 | Encrypted at rest, TLS in transit. Tenants share one database, separated by organization and Postgres row-level security |
| **Secrets** | Google Secret Manager | IAM-controlled access |
| **Edge rate limiting** | Google Cloud Armor | Request throttling at the edge. No WAF rule sets |
| **Web, docs and dashboard hosting, DNS** | Vercel | |

### Encryption

| Layer | Standard |
| - | - |
| **In Transit** | TLS (HTTPS only), with HSTS on every response |
| **At Rest** | Encrypted at rest by the database and cloud providers |
| **PromptGuard API Keys** | One-way SHA-256 digest. Not reversible; deliberately unstretched, because the key is 256 bits of randomness rather than a password |
| **Stored provider keys, data-plane instance tokens** | AES-256-GCM, with a key derived per owner (HKDF-SHA256; your user for a provider key, your Organization for an instance token) from a versioned master key that can be rotated. Values stored before October 2026, and self-hosted installs that have not set `ENCRYPTION_MASTER_KEYS`, use the earlier scheme (Fernet: AES-128-CBC with HMAC-SHA256) until they are re-encrypted ([setup guide](https://docs.promptguard.co/production/enterprise-setup.md)) |
| **Secrets** | Google Secret Manager |

### Network Security

* All endpoints require HTTPS
* Cloud Armor anti-abuse rate limiting at the network edge
* No public SSH access to infrastructure (Cloud Run has no hosts to log in to)
* The API reaches the database over TLS through Supabase's connection pooler

## Access Control

### Authentication Methods

| Method | Use Case |
| - | - |
| **API Key** | Server-to-server, SDK integrations |
| **Session (JWT)** | Dashboard access |
| **OAuth** | GitHub/Google SSO |
| **SAML/OIDC** | Enterprise SSO (Enterprise tier) |
| **Second factor** | Authenticator app (TOTP), passkey (WebAuthn) or one-time recovery code, asked on every non-SSO dashboard sign-in once set up; an organization can require it or SSO of every member ([Two-factor authentication](https://docs.promptguard.co/platform/account-security.md)) |

Signing out ends the session at once on every server; a password change ends every other session, and a password reset ends them all.

### API Key Security

* Keys are stored only as a one-way SHA-256 digest
* Only the prefix (`pg_live_xxxxxxxx...`) is stored in plain text
* Full key shown only once at creation
* Keys can be rotated without downtime
* Project-scoped API keys (no per-key permission types; tier gating via subscription)

### Role-Based Access (Enterprise)

| Role | Permissions |
| - | - |
| **Owner** | Full access, billing, delete organization |
| **Admin** | Manage users, projects, settings |
| **Member** | View projects, create API keys |
| **Viewer** | Read-only dashboard access |

## Audit Logging

### What's Logged

| Event | Details Captured |
| - | - |
| **Authentication** | Login, logout, failed attempts |
| **API Key Management** | Create, rotate, delete |
| **Project Changes** | Settings, policies, presets |
| **Security Events** | Blocked requests, threat types |
| **User Management** | Invites, role changes |

### Accessing Audit Logs

1. Go to [**Dashboard → Organization → Audit Log**](https://app.promptguard.co/dashboard/audit-log)
2. Filter by date range, event type, or user
3. Export as CSV or JSON

### Log Export (Enterprise)

Enterprise customers can configure:

* **SIEM Integration**: signed webhook deliveries and pull APIs for Splunk, Microsoft Sentinel, Datadog and others ([SIEM export](https://docs.promptguard.co/integrations/siem-export.md))

## Incident Response

### Security Incident Process

1. **Detection**: Automated monitoring + manual review
2. **Containment**: Isolate affected systems
3. **Investigation**: Root cause analysis
4. **Notification**: Affected customers notified within 72 hours
5. **Remediation**: Fix deployed, post-mortem published

### Reporting Security Issues

Found a vulnerability? Email [security@promptguard.co](mailto:security@promptguard.co). Response times, scope, safe harbour and how we credit researchers are in our [vulnerability disclosure policy](https://promptguard.co/security#reporting-a-vulnerability).

## Where Your Data Is Processed

### Cloud

| What | Region |
| - | - |
| **API and engine** (prompts and responses are scanned in memory) | Google Cloud us-east4 (Northern Virginia) |
| **Database** (accounts, projects, security events, audit log) | Supabase on AWS us-east-1 (Northern Virginia) |

Both are in Northern Virginia, US. [Data flow](https://docs.promptguard.co/security/data-flow.md) lists what
each one stores. There is no hosted EU or APAC region, and we do not
offer a choice of region.

### Self-hosted

To keep data in a particular country or in your own infrastructure, self-host:
run the engine on your servers in **Hybrid** mode, or the whole stack in
**Air-gapped** mode. Where your data is processed is then a property of where
you deployed it. See [Self-Host vs Cloud](https://docs.promptguard.co/production/self-host-vs-cloud.md) for
what each mode sends to us, Hybrid forwards no prompt content by default, and
masked previews only if you set `FORWARD_MODE=content`.

## Vendor Security

### Subprocessors

The list of subprocessors, with what each receives, where it runs and whether it is optional, is kept in one place: **[promptguard.co/subprocessors](https://promptguard.co/subprocessors)**. On Cloud it includes Hugging Face, which runs the machine-learning and LLM detection tiers and receives the text being scanned when a scan reaches those tiers. A self-hosted engine with local inference calls no one.

### LLM Providers

PromptGuard forwards requests to the LLM provider you configure, such as:

* OpenAI
* Anthropic
* Google AI
* Cohere
* AWS Bedrock
* Azure OpenAI

Your data handling agreement is with each LLM provider directly.

## AI Agent Governance

PromptGuard provides three governance capabilities for AI agents operating in production:

### Behavioral Drift Detection

After an agent accumulates sufficient observations, PromptGuard freezes a behavioral baseline capturing the agent's normal tool-usage distribution. Every subsequent request is compared against this baseline using Jensen-Shannon divergence. If the distribution shifts beyond the configured threshold, a `BEHAVIORAL_DRIFT` alert fires.

### Tamper-Evident Audit Trail

Every audit event's SHA-256 hash covers every field the event stores and incorporates the previous event's hash in your organization's chain, which every PromptGuard instance extends in sequence.

`POST /dashboard/audit-log/verify-chain` verifies your organization's events (an admin) or your own (anyone else) over any time range. It recomputes **each event's own hash**, so it detects an event whose fields were modified; the response says so in `detects: "modification"`. It does not walk the links between events, so it cannot show that an event was deleted. The evidence package's Audit Chain Integrity control (CC7.4) reports the same checks.

> [!NOTE]
>
> **If you exported an evidence package before 3 September 2026, re-export it.** Two things changed:
>
> * Audit events written before 27 August 2026 were signed over eight of their fields (hash version 1). Events since then are signed over every stored field (hash version 2). Version-1 events are never re-signed and are reported as *unverifiable*, not intact, not tampered. Every package now states `v1_count`, `v2_count` and `cutover_at` so you can see which rows carry which signature.
> * Earlier packages could show CC7.4 as **compliant** over a period in which no events were verified. A period with nothing to verify now reports `insufficient-data` with the narrative "No events in window; chain not evaluated", and a package is not produced at all if the audit log cannot be read.
> * A row whose category, severity or outcome predates a schema narrowing can no longer be decoded, and is reported rather than treated as a read failure: it is excluded from `verified_count` and counted in `malformed_count`, with the affected event IDs listed (up to 20) in `malformed_events`. It does not make the chain around it look broken.

### Governance Reports

Generate auditor-facing narrative reports covering these governance capabilities:

```bash theme={"system"}
curl -X POST "https://api.promptguard.co/dashboard/compliance/governance-report?framework=soc2&days=30" \
  -b jar.txt -H "X-CSRF-Token: $CSRF"
```

> [!NOTE]
>
> **`/dashboard/*` takes a dashboard sign-in, not an API key.** These endpoints are the API the dashboard at app.promptguard.co calls. They are not part of the public API, and no API key or long-lived token works on them. Everything under `/api/v1` takes your `X-API-Key` instead ([API reference](https://docs.promptguard.co/api-reference/introduction.md)).
>
> To script one anyway, sign in with your email and password. This needs an account that has a password, and an email domain that requires SSO is refused. The access token lasts one hour.
>
> ```bash theme={"system"}
> # 1. Sign in. The response body carries access_token; the jar keeps the cookies.
> curl -c jar.txt https://api.promptguard.co/dashboard/auth/login \
>   -H "Content-Type: application/json" \
>   -d '{"email": "you@example.com", "password": "..."}'
>
> # 2. Any GET under /dashboard sets the csrf_token cookie.
> curl -b jar.txt -c jar.txt https://api.promptguard.co/dashboard/auth/me
> CSRF=$(awk '$6 == "csrf_token" { print $7 }' jar.txt)
>
> # 3. Send the cookies on every call, and X-CSRF-Token on POST, PUT, PATCH and DELETE.
> curl -b jar.txt -H "X-CSRF-Token: $CSRF" -X POST https://api.promptguard.co/dashboard/...
> ```
>
> Where an example shows `YOUR_SESSION_TOKEN` or `YOUR_SESSION_COOKIE`, it means the `access_token` from step 1, sent as `Authorization: Bearer <token>` or as the `access_token` cookie. A request acts on your personal organization unless it sends `X-Organization-Id`.

The report includes sections for behavioral drift alerts, audit chain integrity status, security decision summaries, and a chronological incident timeline.

## Scheduled Compliance Reports

PromptGuard can email a compliance summary to the people you list, every week
or every month. Set one up on [**Dashboard → Compliance Report**](https://app.promptguard.co/dashboard/compliance), in the **Scheduled
Reports** card, with **Schedule Regular Reports**:

* **Frequency**: Weekly or Monthly
* **Frameworks**: one or more of SOC 2, GDPR, HIPAA and ISO 27001
* **Recipients**: comma-separated email addresses, at least one. Your own address is filled in to start.

The card lists each schedule with its frameworks, recipients and the date it
was last sent, and lets you edit, pause, resume or delete it. Schedules are not
limited by plan. Each schedule belongs to the person who created it, and only
they see it in the card.

### What the email contains

The subject is `[PromptGuard] Weekly Compliance Report - <date>` (or
`Monthly`). The email gives:

* **Audit events**, **Threats flagged** and **Critical events** for the period.
  The plain-text version also gives the block rate.
* **Control coverage** for each framework you chose: how many of its controls
  the period produced any evidence for, out of how many, as a percentage. It is
  worked out from the same control table as the
  [Compliance evidence](https://docs.promptguard.co/platform/dashboard.md#compliance-evidence) page. Like that
  page, it says how much evidence exists, not whether a control passed, and it
  is not an attestation.
* A link to the Compliance page.

The figures cover your organization, not only you: your own audit events and
those of every member of each organization you belong to.

### When it is sent

* The first report goes out on the next hourly delivery run after you create
  the schedule.
* After that, a weekly schedule is sent again once 7 days have passed since its
  last send, and a monthly one once 30 days have passed.
* **Every report covers the last 30 days**, whichever frequency you choose, so
  consecutive weekly reports overlap.
* A paused schedule sends nothing until you resume it.
* If the email reached none of the recipients, the schedule is not marked as
  sent, and the next hourly run tries again.

## Enterprise Security Features

Available on the Enterprise tier:

| Feature | Description |
| - | - |
| **Self-Hosted Deployment** | Run PromptGuard in your own infrastructure |
| **Air-Gapped Mode** | Default-deny egress at the network layer; no licence phone-home |
| **SSO (SAML/OIDC)** | Integrate with your IdP |
| **IP Allowlisting** | Restrict API access by IP |
| **Custom Data Retention** | Configure log retention periods |

## Security Questionnaire

Need to complete a vendor security assessment? We answer SIG Lite, CAIQ Lite and your own questionnaire on request, and can send an assurance pack covering tenant isolation, encryption and release evidence. There is no SOC 2 report or penetration-test report to send.

Contact [security@promptguard.co](mailto:security@promptguard.co).

## Next Steps

> [card] [Security Overview](https://docs.promptguard.co/security/overview.md)
>
> Learn about threat detection

> [card] [Audit Logs](https://docs.promptguard.co/platform/audit-logs.md)
>
> Monitor user activity

> [card] [Enterprise](https://docs.promptguard.co/pricing.md)
>
> See Enterprise features

> [card] [Contact Sales](mailto:sales@promptguard.co)
>
> Discuss your requirements


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.