synthetic-data

Fail

Audited by Gen Agent Trust Hub on Nov 5, 2026

Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The generateWithSDV function in references/patterns.md is vulnerable to command injection. It constructs a Python script by interpolating variables like config.synthesizer and inputPath directly into a string template which is then executed via spawn("python3", ["-c", pythonScript]). If these variables are influenced by an attacker, they can break out of the string literal to execute arbitrary code within the Python process.
  • [DYNAMIC_EXECUTION]: The skill implementation patterns include the assembly of executable Python strings at runtime which are subsequently passed to a system shell execution environment (python3 -c). This practice of building and running dynamic code from string segments is a significant security risk when those segments include external inputs.
  • [INDIRECT_PROMPT_INJECTION]: The skill provides patterns for synthetic data generation and augmentation that interpolate untrusted input strings (context, examples) directly into system and user prompts without delimiters or sanitization.
  • Ingestion points: references/patterns.md in functions generateSyntheticData (via the context argument) and augmentTextData (via the examples array).
  • Boundary markers: No boundary markers, delimiters, or isolation instructions are present in the prompt templates.
  • Capability inventory: The skill features capabilities for command execution via child_process.spawn, file system manipulation via fs/promises, and external API communication through AI SDKs.
  • Sanitization: There is no evidence of input validation, escaping, or sanitization applied to user data before it is interpolated into LLM requests.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 5, 2026, 12:50 AM