protocolsio-integration

Pass

Audited by Gen Agent Trust Hub on Oct 2, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes remote data from protocols.io (such as protocol text and user comments) which could potentially contain malicious instructions.
  • Ingestion points: Remote content is fetched via REST API calls in scripts/protocols_read.py.
  • Boundary markers: The SKILL.md file and references/discussions.md explicitly instruct the agent to treat remote content as untrusted data and never obey instructions embedded within it.
  • Capability inventory: The skill includes tools for network reading (request_bytes in scripts/_common.py) and private local file writing (write_private_bytes in scripts/_common.py).
  • Sanitization: All remote data is processed through sanitize_untrusted in scripts/_common.py, which redacts secret-like keys, bounds recursion depth, and truncates long strings. Control characters are also removed via clean_text.
  • [SAFE]: The skill implements extensive security best practices to protect the user environment.
  • Credential Safety: The skill strictly manages the PROTOCOLS_IO_ACCESS_TOKEN. It provides a validator (scripts/validate_auth_config.py) that checks for the token's presence without exposing its value, and it enforces redaction of credentials from all JSON outputs and plans.
  • Network Restrictions: The request_bytes function in scripts/_common.py implements an HTTPS-only allowlist for official protocols.io domains. It also uses a custom NoRedirectHandler to prevent bearer tokens from being leaked during HTTP redirects.
  • File System Protection: The _path_inside_cwd function in scripts/_common.py provides robust protection against directory traversal attacks. Output files, such as exported PDFs, are created with restrictive (0600) permissions to ensure they are only readable by the owner.
  • Mutation Planning: Destructive operations (updates, deletions, publications) are routed through scripts/plan_write_request.py, which generates a dry-run plan for user review instead of executing the mutation directly.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 2, 2026, 05:01 PM