---
title: "Follow the CSAM playbook"
description: "What to do when an upload matches a list of known child sexual abuse material: keep the image from everyone, keep the evidence, report it to the authorities, and never tell the uploader. Not legal advice."
canonical_url: "https://nuxt-backend.dev/docs/ship/compliance/moderation/csam-playbook"
---
# Follow the CSAM playbook

> What to do when an upload matches a list of known child sexual abuse material: keep the image from everyone, keep the evidence, report it to the authorities, and never tell the uploader. Not legal advice.

Version: nuxt-backend 0.6.x · Tab: Ship · Kind: how-to · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- **You get:** a match blocked before any other provider or person sees it, its evidence kept, and the steps to take next.
- **You do:** name a known-abuse match in `setupAi({ moderation })`, and follow the steps below when a match is found.

This page is not legal advice. The duty to report, and to whom, depends on where you and your users are: ask a lawyer before you launch an app that takes uploads.

## Match uploads first

`knownAbuse` runs on every image a check reads, before any other provider sees its bytes ([Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers)):

```ts [backend/ai.ts]
export const ai = setupAi(components, {
  billing,
  moderation: {
    images: [azureContentSafety({ region: 'francecentral' })],
    knownAbuse: arachnidShield(),
  },
})
```

On a match the check:

- **blocks** the content, whatever `block` says, and sends the image to no other provider;
- **escalates** it: the admin console's Moderation tab marks the row "Known abuse", and the backend logs `ai.known_abuse_matched` as an error, which reaches your error monitoring;
- **keeps the evidence**: the image's SHA-256, the provider's answer and the time, never the image itself, for as long as `moderation.log` keeps flags, an account's erasure included (under a pseudonym). `setupAi` refuses `knownAbuse` beside `log: false`;
- **tells the uploader nothing**: `getModerationStatement` answers `null` to them.

A hash list only knows images already reported. A model's output is new, and so is most of what people upload, so the image providers still check every image.

## When a match is found

1. **Do not open, download or forward the image.** Viewing or sharing it can itself be an offence. The record holds its hash, never the image.
2. **Keep the file from everyone.** Delete it from your storage with `storage.release`, or keep it untouched where the law where you operate asks you to preserve it for the authorities. Do not send it to anyone, your own team included.
3. **Report it.** In the EU, report to your national authority, or through the hotline that country's INHOPE member runs. In the US, providers report to NCMEC's CyberTipline. In Canada, report to Cybertip.ca. Give the hash, the time, the account and its IP addresses if you keep them, never the image unless the authority asks for it through its own channel.
4. **Suspend the account** that uploaded it, and keep its records for the investigation. Do not tell the account why: that could warn a suspect.
5. **Record what you did:** who reported, when, to whom, and the reference the authority gave. Your provider's terms may ask you to tell it too: Project Arachnid wants to hear of matches it flagged.

## Know the limits

- **Hash lists miss what is new.** No image provider here judges minors in an image. A classifier that reads images (Llama Guard 4 on the Convex AI Gateway) reads each one for `S4` as well: a flag there is held like a match, through an erasure, and its statement is kept from the uploader too. Without such a classifier, new material is caught only as `sexual`, which `block` must then cover. Treat any flag on an image that could show a minor as urgent.
- **No provider here is a CSAM classifier.** Azure AI Content Safety's terms rule that use out. OpenAI asks that suspected abuse material never be sent to it.
- **Scanning is not something the law asks of a host.** The EU's interim derogation (Regulation 2021/1232) covers interpersonal communications services only. Card processors expect it of apps that host or generate images.

## Related

- [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers): the known-abuse match and the providers beside it.
- [Moderate user content](https://nuxt-backend.dev/docs/ship/compliance/moderation): notices, statements of reasons and appeals.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
