Agent Skills Without Silent Permission Escalation: Inside RagLeap Agents v0.7.0
Agent Skills make AI agents more extensible. They allow agents to work with reusable instructions and domain-specific knowledge. But extensibility introduces a security question: When an agent loads a skill, what exact
Agent Skills make AI agents more extensible. They allow agents to work with reusable instructions and domain-specific knowledge.
But extensibility introduces a security question:
When an agent loads a skill, what exactly are we trusting โ and what authority does that skill receive?
A skill should not silently become a permission grant. Its contents should not be assumed safe simply because they are available to the agent.
That is the design problem behind RagLeap Agents v0.7.0.
The design principle: instructions are not permissions
RagLeap Agents v0.7.0 introduces optional support for the Agent Skills open format using SKILL.md folders.
The implementation follows a deliberate separation:
- Skills provide instructions and context.
- The agent's available tools remain controlled by the host.
- Existing approval mechanisms are not bypassed by skill metadata.
- Trust and integrity are checked when skills are loaded and when runs resume.
Skills are optional and disabled by default. Existing callers retain their previous behaviour.
1. Signed skill integrity
A trusted skill catalog requires a .manifest.json signed using a Key.
The loader verifies the files against the signed manifest. Changes to files โ including additions, removals, modifications or linked files โ cause the catalog to be rejected.
The implementation also compares parsed content against the signed digest and checks for changes after verification.
This gives the host a way to establish whether a skill is the same content that was signed.
An important distinction: a signature proves integrity, not safety. A correctly signed skill can still contain harmful, misleading or manipulative instructions.
2. Untrusted skills are explicitly fenced
Unsigned skills can be loaded through an explicit untrusted mode.
They are presented as:
REFERENCE NOTES (untrusted text: advice, never rules)
They are not offered to the model as trusted skills, and their use taints the run.
This is not a prompt-injection solution. It is an explicit trust distinction that prevents unsigned content from being silently treated as trusted instructions.
3. Skills can narrow tools, not grant authority
One of the most important design decisions is tool narrowing.
A skill may restrict the tools available to an agent. It cannot grant new tool permissions or approve actions.
For example, if a skill narrows the available tools to lookup, the agent cannot use send simply because a skill lists it in allowed-tools.
The host's existing permission and approval mechanisms remain authoritative.
This is an important boundary: describing a capability is not the same as authorizing its execution.
4. Tenant-scoped skill catalogs
Multi-tenant systems need to avoid leaking information across tenant boundaries.
RagLeap supports per-tenant catalogs through the caller-provided scope.
An unknown skill name and another tenant's skill name produce the same error:
SkillError("no_such_skill")
A failed lookup stops the run before the model is called.
This reduces information leakage through skill discovery. It does not replace authentication: the caller remains responsible for providing the correct scope.
5. Resume-time integrity
Trust should not be checked only when a run starts.
RagLeap records active skills and their SHA-256 hashes in the run state. When a run resumes, the system checks that the active skills, catalog and trust level still match.
If a skill has changed, the catalog is missing, or its trust level has changed, the run is refused.
Changes detected during nested execution also stop the run.
This makes skill integrity part of the execution lifecycle, rather than a one-time loading check.
6. Auditable skill events
The release introduces two audit events:
skill.activatedskill.refused
The activation event records the skill name, a shortened content hash, trust level, host and model.
Skill contents are not included in these events.
This provides useful visibility without placing the full skill instructions into the audit trail.
7. Input and resource boundaries
The implementation also applies explicit limits:
- Maximum 64 skills per catalog.
- Maximum 64 KiB per
SKILL.md. - Maximum 3 active skills per run.
- Maximum 24 KiB of skill text per run.
- Descriptions are truncated to 300 characters.
- Strict frontmatter parsing.
- Refusal of hidden Unicode characters and unsafe link structures.
These limits help keep the feature predictable and reduce the amount of untrusted content entering an agent run.
Release verification
The v0.7.0 release includes:
- 458 tests passed.
- 125 skill-specific mutation checks caught.
- Published wheel checked against the source tag.
- Clean installation and installed-wheel tests completed.
- Tampered skills, unsigned skills, tool narrowing, tenant isolation and resume-integrity scenarios tested.
The release is tagged at signed commit fd38cfda06384985e63ccb81ffa2df45199a8105.
What this release does not solve
Security engineering requires being precise about limitations.
RagLeap Agents v0.7.0 does not claim to solve prompt injection.
A correctly signed skill can still contain unsafe instructions. The model can misunderstand or ignore instructions. The caller-provided tenant scope is not authentication.
Native tool-calling adapters may still advertise tools to the provider; the execution loop enforces the narrowed tool set. Real model-provider behaviour, Windows/macOS and network filesystem behaviour have not been verified in this release.
Independent security review is also still needed.
These limitations are part of the engineering picture, not details to hide.
Why this matters
As AI agents become more modular, reusable skills and external instructions will become increasingly common.
The challenge is not simply loading more capabilities. It is ensuring that new instructions do not silently become new authority.
With v0.7.0, RagLeap takes another step toward making agent capabilities explicit, constrained and auditable.
Open source. Self-hosted. Built around human-controlled authority.
Release: https://github.com/ragleap/ragleap-core/releases/tag/ragleap-agents-v0.7.0
Repository: https://github.com/ragleap/ragleap-core
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.