cookbook-audit
Fail
Audited by Gen Agent Trust Hub on Aug 6, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
validate_notebook.pyscript contains a shell in jection vulnerability in thecheck_hardcoded_secretsmethod. It interpolates the user-provided notebook path into an f-string used as a shell com m an d:f"echo '{notebook_abs}' | ...". An attacker can provide a path with a single quote to escape the string an d execute arbitrary com m an ds via thesh -cexecution context. - [REMOTE_CODE_EXECUTION]: The skill's validation script dynam ically downloads an d executes the
detect-secretsan dnbconvertpackages usinguvxan duv run. This remote execution pattern is highly risky when paired with the com m an d in jection vulnerability, as it provides a pathway for execution of arbitrary logic from external sources. - [COMMAND_EXECUTION]: The
convert_to_markdownfunction invokesjupyter nbconvertusingsubprocess.run. This exposes the agent to the potential vulnerabilities of a com plex docum ent conversion tool when processing untrusted user-provided notebook files.
Recommendations
- AI detected serious security threats
Audit Metadata