cxas-cuj-report-generator
Audited by Socket on Sep 16, 2026
4 alerts found:
Anomalyx3SecurityThe code appears to be a legitimate YAML-to-HTML transcript report generator and contains no clear malware or supply-chain backdoor behavior. The principal security issue is stored HTML/JavaScript injection in the generated report: untrusted YAML transcript fields and several command-line values are inserted into HTML without escaping. This could execute when the generated report is opened in a browser, particularly if transcript files are attacker-controlled. yaml.safe_load materially reduces deserialization risk, and no network exfiltration or system-command execution is present.
The code appears intended to validate transcript files, generate HTML reports, copy deliverables, and package them into a ZIP archive. It does not show clear malicious behavior. However, as written it has a syntax error and cannot run. If the syntax error is corrected, the interpolated `sh -c` copy command permits command injection through the `--transcripts_dir` argument. Replace it with a subprocess list invocation and validate all supplied paths. The overall risk is primarily a command-execution vulnerability rather than evidence of malware.
The code is a polling worker that generates simulated YAML outputs from a JSON batch specification. It shows a meaningful arbitrary-file-write risk if an untrusted party can control /tmp/ingestor/batch_spec.json, because output_file is not validated and existing files are only checked for existence. Filename interpolation can also produce malformed or injected YAML. No clear evidence of intentional malware, data exfiltration, reverse shell behavior, cryptomining, or destructive activity is present. The primary concern is insecure file/path handling and uncontrolled daemon operation.
No clear malware, exfiltration, backdoor, or sabotage behavior is present. The main security risk is arbitrary file overwrite or creation if an attacker can control /tmp/ingestor/batch_spec.json, because output_file is used without path validation. Filename interpolation can also corrupt the generated YAML. Restrict output paths to a trusted directory, validate and normalize them, reject traversal and absolute paths, and escape YAML values.