klingai-style-transfer
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied prompts and image file paths for transmission to the Kling AI API, which represents an indirect prompt injection surface.\n
- Ingestion points: User-defined prompts and reference image paths ingested via the
styled_generationandstyle_from_referencefunctions.\n - Boundary markers: The skill concatenates style modifiers with user prompts in the
_build_styled_promptmethod without using specific delimiters or safety instructions to isolate untrusted input.\n - Capability inventory: The skill utilizes
requests.postfor external API communication andopen()for reading local image files.\n - Sanitization: No explicit sanitization or validation of user-provided prompt strings or file paths is implemented in the provided Python scripts.\n- [DATA_EXPOSURE_AND_EXFILTRATION]: The skill retrieves API access keys from environment variables (
KLING_ACCESS_KEY,KLING_SECRET_KEY,KLINGAI_API_KEY), which is a secure method for handling sensitive credentials.\n- [DYNAMIC_EXECUTION]: The skill uses thebase64andjwtlibraries for standard data transformation and authentication required by the Kling AI service.
Audit Metadata