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
- 97% confidence
- Finding
The file includes hidden-instruction/prompt-injection content within evaluation prompts, which is a real class of vulnerability for agentic systems if not handled correctly. Although the inclusion here appears defensive and test-oriented rather than malicious, the skill context makes it important: translation workflows often ingest arbitrary user text, so embedded instructions could manipulate downstream model behavior unless the implementation strongly separates content from control instructions.
- Content
json { "skill_name": "andrew-translate", "evals": [ { "id": 1, "prompt": "帮我把这段翻成中文:\"Retrieval-augmented generation (RAG) grounds model outputs in external documents, reducing hallucinations but adding latency. Use `top_k` to control how many chunks are retrieved.\"", "expected_output": "流畅的简体中文译文;保留 RAG、`top_k` 等术语与反引号;只输出精稿,无解释。", "files": [] }, { "id": 2, "prompt": "Translate into Traditional Chinese for a Taiwan audience: \"Please update the software and restart your printer before contacting support.\"", "expected_output": "台湾繁体与台湾用语(軟體、印表機),而非仅简繁字形转换。", "f
