Security Audit
filesystem-context
github.com/muratcankoylan/Agent-Skills-for-Context-EngineeringTrust Assessment
filesystem-context received a trust score of 74/100, placing it in the Caution category. This skill has some security considerations that users should review before deployment.
SkillShield's automated analysis identified 2 findings: 0 critical, 2 high, 0 medium, and 0 low severity. Key findings include Path Traversal in ScratchPadManager.offload, Persistent Indirect Prompt Injection via Self-Modification.
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 | Path Traversal in ScratchPadManager.offload The `ScratchPadManager.offload` method constructs a file path by directly concatenating the `source` parameter into the filename without sanitization. If `source` contains directory traversal sequences (e.g., `../../`), an attacker who can control or influence the tool/source name can write arbitrary files outside the intended scratch directory, potentially overwriting critical system or application files. Sanitize the `source` parameter to remove path traversal characters (e.g., using `os.path.basename(source)`) or validate that the resolved target path is strictly within the designated scratch directory using `Path.resolve()` and checking if it starts with the base path. | LLM | scripts/filesystem_context.py:83 | |
| HIGH | Persistent Indirect Prompt Injection via Self-Modification Pattern 6 ('Learning Through Self-Modification') encourages agents to write learned preferences and patterns directly to their own instruction/configuration files (e.g., `agent/user_preferences.yaml`) so they are loaded automatically in subsequent sessions. If the agent processes untrusted external data (such as web search results or emails) and extracts 'preferences' or 'patterns' to save, an attacker can inject malicious instructions. These instructions will persist across sessions and execute with the agent's full privileges in future runs. Avoid allowing agents to dynamically modify their own system prompts, instructions, or configuration files based on untrusted inputs. If preferences must be stored, enforce a strict schema with strongly-typed fields (e.g., booleans or predefined enums) and never evaluate or inject these values directly as instructions or system prompts. | LLM | SKILL.md:135 |
Scan History
Embed Code
[](https://skillshield.io/report/977cdea9b0f21ad2)
Powered by SkillShield