ag2-mcp
Fail
Audited by Gen Agent Trust Hub on Jul 4, 2026
Risk Level: HIGHDATA_EXFILTRATIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DATA_EXFILTRATION]: The skill's documentation provides a vulnerable example for a
ResourceTemplatethat allows arbitrary file reading from the local filesystem. The provided code snippetread=lambda vars: Path(vars["path"]).read_text()combined with thefile:///{+path}URI template allows any MCP client to read sensitive files (such as/etc/passwdor configuration files) accessible to the server process by providing a relative or absolute path. - [PROMPT_INJECTION]: The conversational
asktool exposes acontextparameter that is directly prepended to the user message, creating a surface for indirect prompt injection where untrusted data can override the agent's instructions. - Ingestion points: The
messageandcontextarguments in theasktool defined inSKILL.md. - Boundary markers: Absent. The documentation states the
contextis prepended without mention of delimiters or instructions for the agent to ignore embedded commands. - Capability inventory: The server process has file system access (as demonstrated in the resource example) and can execute agent logic/tools.
- Sanitization: No validation or sanitization of input variables is described for either the file paths or the conversational context.
- [EXTERNAL_DOWNLOADS]: The skill references the installation of the
ag2package with themcpextra from PyPI. This is a standard installation from a well-known service for the vendor's own library and is considered a safe dependency reference.
Recommendations
- AI detected serious security threats
Audit Metadata