printer
Pass
Audited by Gen Agent Trust Hub on Aug 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill interacts with the CUPS printing system using
subprocess.runwith list-based arguments for commands likelp,lpstat, andlpoptions. This implementation avoids shell execution and is resistant to shell injection attacks. - [COMMAND_EXECUTION]: User-controlled printer names are validated against a strict regex whitelist (
^[\w.\-]+$) in the_validate_printer_namefunction, preventing command injection through crafted printer destination names. - [EXTERNAL_DOWNLOADS]: The skill depends on the official
Pillowlibrary for image processing, which is a well-known and trusted package. - [SAFE]: The
_validate_file_pathfunction implements a secure file access policy. It resolves symlinks to their absolute paths and verifies they reside within designated safe roots (the workspace or/tmp), effectively preventing the agent from being tricked into reading sensitive files like SSH keys or environment variables via symbolic links.
Audit Metadata