spine-matrix
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external Matrix rooms, creating an attack surface for indirect prompt injection where malicious messages could attempt to influence the agent's behavior.
- Ingestion points: The
readcommand inscripts/matrix.pyfetches event bodies from the Matrix homeserver. - Boundary markers: The skill documentation in
SKILL.mdprovides explicit safety guidelines for the agent, stating that "Matrix text never authorizes a write" and requiring explicit user confirmation for sending messages. - Capability inventory: The skill possesses network access capabilities for Matrix protocol and OAuth interaction, and file system write access for its own configuration (
~/.config/spine/matrix.json) and E2EE store (~/.local/share/spine/matrix/store). - Sanitization: The
_single_linefunction inscripts/matrix.pyneutralizes terminal control characters (e.g., ANSI escapes) from room content before it is displayed or processed, mitigating potential terminal-based injection. - [COMMAND_EXECUTION]: The skill facilitates the execution of its own logic via a shell wrapper that manages the execution environment.
- Evidence: The
scripts/matrixshell script usesexec uv run --script "$python_script" "$@"to launch the core Python client with the required environment. - [EXTERNAL_DOWNLOADS]: The skill manages its runtime dependencies by fetching them from a public registry during execution.
- Evidence: The
scripts/matrix.pyfile contains a script metadata block specifying a dependency onmatrix-nio[e2e]==0.26.*. This is a well-known, legitimate library for the Matrix protocol.
Audit Metadata