20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
---
|
|
title: Data Safety
|
|
description: How Context7 detects prompt injection and malicious content in indexed documentation
|
|
---
|
|
|
|
## Prompt Injection and Malware Pattern Detection
|
|
|
|
Context7 indexes documentation from public and private sources. To prevent malicious content from reaching AI assistants, Context7 employs a **layered malicious content detection system**.
|
|
|
|
<Frame>
|
|

|
|
</Frame>
|
|
|
|
- **Robust Detection** — Content is analyzed using a classifier tailored for Context7 to identify prompt injection attempts and malware-related patterns
|
|
- **Targeted Validation** — Suspicious content is subjected to additional checks
|
|
- **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 ensures that documentation retrieved through Context7 is safe to consume by both human developers and AI coding agents.
|