baoyu-compress-image
Pass
Audited by Gen Agent Trust Hub on Apr 26, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script interacts with local binaries for image processing, including
sips,cwebp, and ImageMagick'sconverttool. - Evidence: The skill implements secure command execution by passing arguments as arrays to the
spawnfunction (e.g., in therunCmdfunction), which mitigates the risk of shell injection attacks. - [REMOTE_CODE_EXECUTION]: The implementation involves the dynamic loading of an external library.
- Evidence: The script dynamically imports the
sharplibrary using(await import("sharp")).defaultif available. This is a common and legitimate pattern for handling optional dependencies in modern JavaScript environments. - [DATA_EXFILTRATION]: The skill performs file operations solely on the local filesystem and does not exhibit any data exfiltration behavior.
- Evidence: Analysis of the
main.tsscript shows that while it can read and delete local image files (as part of its optimization purpose), it contains no network operations or logic to transmit data to external servers.
Audit Metadata