background-agents

Pass

Audited by Gen Agent Trust Hub on Oct 28, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to call the sops binary for decrypting secrets stored in local files. It also instructs the agent to use standard deployment tools like npx trigger.dev and wrangler. These calls are scoped to the project's operational needs and the Python implementation avoids shell injection by passing arguments as a list.
  • [INDIRECT_PROMPT_INJECTION]: The skill acts as an interface for delegating tasks to background agents. It takes user-provided data (from a payload-file) and forwards it to remote execution backends. This creates a surface for indirect prompt injection where malicious instructions inside the payload could affect the behavior of the remote agent. The skill includes explicit documentation in evidence-review.md advising on the use of boundary markers and validation to mitigate this risk.
  • Ingestion points: payload-file processed by scripts/cloudflare_workflows.py and the event.payload.prompt variable in the Cloudflare Worker template (assets/cloudflare-worker/src/index.ts).
  • Boundary markers: The references/evidence-review.md file advises labeling excerpts and treating source text as untrusted, though the provided worker template relies on the user to implement specific delimiters.
  • Capability inventory: The Cloudflare adapter (scripts/cloudflare_workflows.py) can call the Cloudflare API and execute sops. The worker template (assets/cloudflare-worker/src/pi-agent.ts) explicitly disables external research, filesystem, and shell tools.
  • Sanitization: The worker template performs basic validation of prompt length and type.
  • [SAFE]: The implementation demonstrates high security awareness. The Cloudflare API client uses a custom handler to prevent credential leakage through HTTP redirects, and the profile management scripts include checks to prevent hardcoded secrets from being included in configuration files through blacklisted literal patterns.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 28, 2026, 04:45 AM