Security Audit
self-managed-context
github.com/muratcankoylan/Agent-Skills-for-Context-EngineeringTrust Assessment
self-managed-context received a trust score of 80/100, placing it in the Mostly Trusted category. This skill has passed most security checks with only minor considerations noted.
SkillShield's automated analysis identified 2 findings: 0 critical, 1 high, 1 medium, and 0 low severity. Key findings include Indirect Prompt Injection via Editable Context File, Insecure Temporary File Path in Shared Directory.
The analysis covered 4 layers: Manifest Analysis, Static Code Analysis, Dependency Graph, LLM Behavioral Safety. All layers scored 70 or above, reflecting consistent security practices.
Last analyzed on November 1, 2026 (commit 9ff0c991). SkillShield performs automated 4-layer security analysis on AI skills and MCP servers.
Layer Breakdown
Behavioral Risk Signals
Security Findings2
| Severity | Finding | Layer | Location | |
|---|---|---|---|---|
| HIGH | Indirect Prompt Injection via Editable Context File The 'self-managed-context' skill allows the model to write directly to its own context file, which is then parsed back into the prompt for subsequent turns. If the model processes untrusted external data (e.g., from web pages, emails, or untrusted files) and writes it to this context file, an attacker can inject malicious instructions (Indirect Prompt Injection). Since the context file acts as a persistence channel, these injected instructions will persist across turns and can manipulate the agent's behavior, leading to unauthorized actions or data exfiltration. Implement strict sanitization and filtering of any content written to the context file. Specifically, scan the edited context for instruction-like patterns, imperative verbs, or system-like directives before parsing it back into the prompt. Alternatively, restrict the model's ability to write arbitrary text from untrusted sources directly into the context file, or use a separate, non-executable metadata store for notes. | LLM | SKILL.md:194 | |
| MEDIUM | Insecure Temporary File Path in Shared Directory The reference implementation in Example 2 uses a hardcoded, predictable temporary file path in a shared directory ('/tmp/.live_ctx/LIVE_CTX_MAIN.txt'). On multi-user Unix-like systems, any local user can write to '/tmp'. An attacker could pre-create this directory or file as a symbolic link pointing to a sensitive file owned by the user running the agent. When the agent writes to this path, it will overwrite the target file (Symlink Attack / CWE-59), potentially leading to local privilege escalation or data corruption. Use a secure temporary file creation mechanism, such as Python's 'tempfile.mkstemp()' or 'tempfile.TemporaryDirectory()', which generates unpredictable file names and ensures secure file permissions (e.g., only readable/writable by the owner). Avoid hardcoding paths in shared directories like '/tmp'. | LLM | SKILL.md:273 |
Scan History
Embed Code
[](https://skillshield.io/report/48ce7df351b0ad25)
Powered by SkillShield