# Notion: Notion: retained Fireworks datasets exposed AI Insights chats for fewer than 1% of workspaces

> **Safety notice:** Uses synthetic placeholder tokens only; safe for local unit testing.

- **Incident date:** Nov 2–9, 2026
- **Disclosed:** Nov 9, 2026
- **Source disclosure:** https://www.notion.com/security/advisories/security-incident-involving-a-third-party-ai-vendor

## Reproduction lab
Tests your outbound AI proxy against fake Notion, Render and AWS tokens to make sure secrets pasted into chat are scrubbed before leaving your network.

```bash
# check exported Notion Security incident review JSON for accidentally pasted secrets
grep -rnE "(rnd_|secret_|AKIA[0-9A-Z]{16}|ghp_|sk-)" ./notion-incident-review-export/ || echo "No tokens matched"
```

## Policies and detection rules

### `prompt-secret-redactor.ts`
Strips Notion, AWS, GitHub, Render and LLM tokens before sending chat text to an external AI classification endpoint.

```ts
const SECRET_PATTERNS = [
  /\bsecret_[A-Za-z0-9]{43}\b/g,      // Notion internal integration token
  /\brnd_[A-Za-z0-9]{24,}\b/g,       // Render API key
  /\bAKIA[0-9A-Z]{16}\b/g,           // AWS static access key
  /\bsk-(?:ant|proj)-[A-Za-z0-9_-]{20,}\b/g,
];

export function redactBeforeVendor(text: string): string {
  return SECRET_PATTERNS.reduce((acc, re) => acc.replace(re, '[REDACTED_TOKEN]'), text);
}
```

## Indicators of compromise
- **log:** `Workspace sidebar, Help menu, Security incident review (Notion admin review tool)` (Official in-product review flow provided to affected workspace owners starting Nov 9, 2026.)
