verify-cascade
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The
LocalVerifierinverify_cascade.pyexecutes a shell command specified by theMAGGY_JUDGE_CMDenvironment variable, defaulting todeepseek --flash. - Evidence: The skill uses
subprocess.run(cmd, input=prompt, ...)in the_default_judgefunction to call the local model. - Safety Check: The implementation passes the model prompt via standard input (
stdin) rather than command-line arguments, which mitigates traditional command injection risks from the prompt content itself. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it interpolates external, untrusted source text and extracted values directly into the prompt used by the judge model.
- Ingestion points: The
source_textprovided in thestatedictionary and the values within therecordinverify_cascade.py. - Boundary markers: The prompt uses simple text headers like
SOURCE:andQUESTIONS:to separate data, but lacks robust delimiters (like cryptographic markers) or sanitization to prevent data from being interpreted as instructions by the judge model. - Capability inventory: The result of the verification determines whether the system escalates to a more powerful model. An attacker could provide source text that instructs the judge to always return a low probability of error, effectively bypassing the verification gate.
- Sanitization: No explicit escaping or filtering of the source text or extracted values is performed before prompt interpolation.
- [EXTERNAL_DOWNLOADS]: The skill includes an optional
TypeSafeVerifierthat transmits data to an external service for processing. - Evidence: The
TypeSafeVerifier.verifymethod makes network calls toapi.typesafe.ai. - Context: This is a documented, opt-in feature requiring a
TYPESAFE_API_KEY. When enabled, it sends thesource_text,schema, andextractionto the third-party service, which constitutes a data exposure surface for sensitive content.
Audit Metadata