login-2fa-flow
Pass
Audited by Gen Agent Trust Hub on Sep 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes local commands (via
subprocess.runin Python andexecFileSyncin Node.js examples) to retrieve 2FA codes. This is a core functional requirement. The documentation correctly advises using argument arrays to prevent shell injection vulnerabilities.\n- [EXTERNAL_DOWNLOADS]: Thescripts/preflight.pyscript performs a network request tohttps://www.cloudflare.comusingurllib.request.urlopento retrieve theDateheader. This allows the skill to verify host clock synchronization, which is critical for TOTP code validity. This targets a well-known service for a specific diagnostic purpose.\n- [INDIRECT_PROMPT_INJECTION]: The skill operates on data from external web pages (identifying 2FA prompts). It proactively addresses risks where a malicious page might attempt to exfiltrate a code by instructing the agent to pin and verify the expected page origin before submitting any 2FA credentials.\n- [DYNAMIC_EXECUTION]: Thescripts/preflight.pyutility usessubprocess.runandshlex.splitto dynamically execute and validate the output of user-supplied code commands. This execution is confined to the local environment and intended for pre-login verification.
Audit Metadata