api-mongo-agg-facet-bypass
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill describes a technique to bypass application-level validation by nesting restricted database operations within allowed stages. This represents an attack surface where an agent might be used to generate or execute malicious injection payloads.
- Ingestion points: User-controlled
pipelineparameter in API requests (SKILL.md). - Boundary markers: The skill specifically details how to evade existing server-side stage allowlists.
- Capability inventory: The skill utilizes
curland Python script execution to interact with remote endpoints. - Sanitization: It highlights the lack of recursive sanitization for nested MongoDB aggregation stages.
- [DATA_EXFILTRATION]: The primary objective of the documented technique is the unauthorized extraction of sensitive information from a database.
- The skill identifies targets such as "invite tokens, password hashes, session docs, API keys" from non-public collections.
- [COMMAND_EXECUTION]: The skill recommends using command-line tools and scripts to automate the exploitation process.
- Evidence includes instructions for using
curlwith--data-urlencodeand Python helpers to deliver injection payloads.
Audit Metadata