YARA rule 'agent_skill_prompt_injection_hidden_instructions': Prompt injection or hidden instructions embedded in AI agent skill text [agent_skills]
- Category
- YARA Match
- Confidence
- 80% confidence
- Finding
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
- 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
- Redact before embedding — Replace PII with placeholders
- Skip sensitive documents — Separate index for authorized users
- 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
