-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
skillsSKILL.md systemSKILL.md system
Description
Context
Audit findings AUDIT-011 and AUDIT-017 from spec conformance review.
Problems
-
Skill body can reference files (e.g. `docs`) without validation that they exist or stay within skill_dir. Path traversal risk if agent code loads these references.
-
Skill body is injected verbatim into prompt without sanitization. Untrusted skills (installed from URLs) could include XML tag injection or prompt injection content.
Fixes
- Add `validate_skill_references()` to check referenced paths exist and are within skill_dir
- For untrusted skills (trust level != trusted), wrap body in CDATA or sanitize XML special characters
References
- Spec: https://agentskills.io/specification.md#file-references
- Files: `crates/zeph-skills/src/prompt.rs`, `crates/zeph-skills/src/loader.rs`
- Parent audit: Align SKILL.md parser with agentskills.io specification #686
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
skillsSKILL.md systemSKILL.md system