Back to skill

Security audit

context-budget

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent local helper for measuring and safely reducing agent instruction files, with disclosed safeguards and no hidden remote execution or persistence.

Install only if you want an agent to inspect and potentially help edit always-loaded instruction files. Use the tokenizer option only with a trusted local loopback service, and treat --show-content output as sensitive because it can reveal file paths and duplicated instruction text.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Persistent Context Injection

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill injects content designed to persist in agent memory or context across interactions. Persistent injection can alter agent behavior long after the initial interaction.

Content

Scanner excerpt · SKILL.md (reported line 14)May include surrounding context.

md
reduce it without weakening authority, safety, or meaning.

Use this skill when runtime logs report bootstrap truncation, per-turn context
cost is high, policies appear in several files, or a persistent rule is being
added.

## The two units differ

Unbounded Output

Medium
Category
Output Handling
Confidence
60% confidence
Finding

Output size or generation rate is not bounded. Unbounded output enables denial-of-service through resource exhaustion, log flooding, or context-window stuffing.

Content

Scanner excerpt · SKILL.md (reported line 111)May include surrounding context.

md
3. semantic and precedence review finds no weakened or unavailable rule;
4. all six assurance regressions pass;
5. before/after characters and tokens are recorded, with estimates labelled;
6. one fresh session runs without truncation or behaviour regressions;
7. temporary backups are securely removed after the clean-session gate.

Static analysis

No suspicious patterns detected.