data-transform
Warn
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
transform.jsscript (and its.cjsequivalent) uses thenew Functionconstructor to evaluate JavaScript expressions provided via the--mapand--filtercommand-line arguments. This allows for dynamic code generation and execution based on inputs constructed at runtime. - [REMOTE_CODE_EXECUTION]: The
safeEvalfunction intransform.jsattempts to restrict the evaluation context by shadowing standard globals likeMathandJSON. However, this is an incomplete sandbox that does not prevent access to the full Node.js environment (e.g., viaprocessor constructor chains), allowing arbitrary code execution within the process. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external files (JSON, CSV, YAML, etc.) and apply transformations. It lacks input validation or sanitization, which could allow maliciously crafted data to exploit the dynamic execution capabilities of the transformation tool.
- Ingestion points: Data is read from files in
convert.js,query.js,transform.js, anddiff.jsusingfs.readFileSyncbased on the provided input path. - Boundary markers: None identified; the instructions do not include delimiters or warnings to ignore instructions embedded within the data.
- Capability inventory: The skill possesses file system read/write capabilities (
fs) and dynamic code execution (new Function). - Sanitization: No validation or filtering is performed on external content before it is processed or used in evaluations.
Audit Metadata