secret-guard
Pass
Audited by Gen Agent Trust Hub on Nov 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
execmode inscripts/keyring_broker.pyusessubprocess.runto execute arbitrary shell commands provided via the command-line arguments. - Evidence:
subprocess.run(args.command, env=child_env, capture_output=True, text=True, timeout=args.timeout)inscripts/keyring_broker.py. - The skill instructions encourage using this as a fallback, which allows the agent to run any local command with environment-injected secrets.
- [DATA_EXFILTRATION]: The
requestmode inscripts/keyring_broker.pyallows making arbitrary network requests to any URL specified by the agent. - Evidence:
urllib.request.urlopen(req, timeout=args.timeout)inscripts/keyring_broker.py. - An attacker could trick the agent into sending a named secret (via the
{secret}placeholder in headers) to a malicious external server. While the broker scrubs the response returned to the agent, the secret is transmitted in the request header to the destination URL. - [INDIRECT_PROMPT_INJECTION]: The skill processes external data that could contain malicious instructions designed to influence the agent's behavior.
- Ingestion points: The agent reads data from network responses (via the
requestcommand) and the output of shell commands (via theexeccommand) processed byscripts/keyring_broker.py. - Boundary markers: The instructions do not define clear boundary markers or instructions for the agent to ignore potentially malicious content within the scrubbed outputs.
- Capability inventory: The skill possesses significant capabilities including arbitrary network requests and shell command execution.
- Sanitization: The broker script implements a
scrubfunction to remove literal secrets from the output, but it does not sanitize or escape the content to prevent indirect prompt injection. Malicious instructions in a retrieved API response or command output would be passed directly to the agent's context.
Audit Metadata