Secure storage

From RedHatProductSecurity/prodsec-skills · View interactive version

Secure storage is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Protect RAG system data against unauthorized access and modification. Use when designing, deploying, or reviewing Retrieval-Augmented Generation systems, vector databases, or knowledge base storage.

How to use this skill

Skill file

Secure Storage for RAG Systems

Security Requirement

Data used by RAG systems (or other plugin systems) MUST be protected against unauthorized access and modification. If RAG data is modified maliciously, the LLM system will provide that malicious information to users as if it were legitimate.

Risks of Unprotected RAG Data

| Risk | Impact |

|---|---|

| Data poisoning | Attacker modifies RAG data to inject false or harmful information |

| Unauthorized access | Sensitive knowledge base data exposed to unauthorized users |

| Integrity compromise | Tampered RAG data causes the LLM to produce incorrect outputs |

| Trust exploitation | Users trust RAG-augmented responses, amplifying the impact of poisoned data |

Required Controls

| Control | Description |

|---|---|

| Access control | Only authorized services and users can read RAG data |

| Write protection | Only authorized data pipelines can modify RAG data |

| Integrity verification | Detect unauthorized modifications to RAG data |

| Encryption at rest | Encrypt RAG data storage (vector databases, document stores) |

| Audit logging | Log all access and modifications to RAG data |

| Input validation | Validate and sanitize data before ingestion into the RAG store |

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.