> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/feedback?path=/security/data-safety&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Data Safety

> How Context7 detects prompt injection and malicious content in indexed documentation

## Prompt Injection and Malware Pattern Detection

To prevent malicious content from reaching AI assistants, Context7 screens documentation from public sources before it is indexed.

<Frame>
<img src="/images/security/classifier_pipeline.png" alt="How our detection system works" />
</Frame>

- **Robust Detection** — Each chunk of content is analyzed by a classifier tailored for Context7 to identify prompt injection attempts and malware-related patterns
- **Blocking** — Content that the classifier flags is not indexed
- **Continuous Monitoring** — Flagged content is tracked and reviewed on an ongoing basis
- **Regular Updates** — Detection logic is updated to address evolving attack methods and new injection techniques

This helps keep documentation retrieved through Context7 safe to consume by both human developers and AI coding agents.
