YARA rule 'agent_skill_prompt_injection_hidden_instructions': Prompt injection or hidden instructions embedded in AI agent skill text [agent_skills]
High
- Category
- YARA Match
- Content
# RAG Security & Privacy ## PII Detection Before Indexing ### Scan for - Names (NER models, regex patterns) - Emails, phone numbers, addresses - SSNs, ID numbers, credit cards - Health information (PHI for HIPAA) - Financial data ### Options 1. **Redact before embedding** — Replace PII with placeholders 2. **Skip sensitive documents** — Separate index for authorized users 3. **Encrypt sensitive chunks** — Decrypt at retrieval time ## Access Control ### Row-Level Security ```python # Filter by user permissions BEFORE retrieval results = vector_db.query( embedding=query_embedding, filter={ "department": {"$in": user.departments}, "classification- Confidence
- 80% confidence
- Finding
- YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
