klingai-ci-integration
Audited by Socket on Sep 9, 2026
3 alerts found:
SecurityAnomalyx2The workflow is intended for batch video generation and does not show direct malware behavior. It has meaningful command-injection risk from unvalidated workflow and matrix values, possible path manipulation through `matrix.id`, a missing job dependency, and weaker-than-recommended action pinning and permissions. Inputs should be passed through environment variables or safely encoded, paths and matrix fields should be strictly validated, `generate` should declare `needs: load-prompts`, actions should be pinned to commit SHAs, and least-privilege permissions should be set.
The configuration does not itself show clear malicious behavior. It contains moderate supply-chain and security risks: unpinned package and container dependencies, unrestricted use of an artifact-provided URL for outbound requests and downloads, and insufficient validation of downloaded content. Restrict video_url to an allowlisted HTTPS domain, validate redirects and resolved IP addresses, impose size/time limits, pin dependencies and image digests, and quote or validate all CI variable arguments.
No direct malicious behavior is evident in the supplied YAML. The principal risks are supply-chain exposure from mutable action references and unpinned dependencies, possible shell injection through interpolated workflow or API-derived values, and unrestricted network access to video_url. Pin actions and dependencies, pass inputs through environment variables or safely encoded arguments, validate JSON fields and URLs with strict allowlists, minimize secret permissions, and review the referenced Python scripts.