klingai-cost-controls
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides a surface for indirect injection by processing untrusted user prompts for cost estimation and logging purposes.
- Ingestion points: The
promptstring is ingested byCostAwareKlingClient.text_to_videoand theUsageTracker.logmethod inSKILL.md. - Boundary markers: While the instructions mandate a redaction policy and aggregate-only logging, the code implementation lacks explicit delimiters or boundary markers to isolate untrusted input.
- Capability inventory: The skill is configured with the
Writetool for local logging and utilizes therequestslibrary for communication with the Kling AI API. - Sanitization: The
UsageTrackerimplementation captures a 100-character preview of the prompt without filtering or sanitization, creating a minor discrepancy with the instruction to never store prompt previews. - [DATA_EXFILTRATION]: The
UsageTrackerclass inSKILL.mdimplementation logs prompt fragments to a local JSONL file (kling_usage.jsonl). Although these logs remain on the local file system, they present a potential data exposure risk for sensitive information contained within user prompts, even though the skill's instructions explicitly warn against storing such data.
Audit Metadata