create-brand-kit
Audited by Socket on Aug 26, 2026
2 alerts found:
Anomalyx2The code appears to be a local SVG preview renderer rather than malware. As provided, it contains a syntax error that prevents execution. If corrected, it has moderate security concerns: untrusted SVG is rendered by Chrome after incomplete regex sanitization, output paths are not constrained, and CHROME can select an arbitrary executable when the environment is attacker-controlled. Use a robust SVG parser/sanitizer, validate colors and paths, restrict browser execution, and render in an isolated environment.
The code appears to be a legitimate SVG contact-sheet generator, with no clear malicious payload or data-exfiltration behavior. It reads caller-selected SVG files, creates temporary HTML, and launches a caller-selected Chrome executable to produce a screenshot. The regex sanitizer is not a reliable SVG security boundary; untrusted SVG should be sanitized with a dedicated SVG sanitizer or rendered in a more isolated environment. The fragment also appears syntactically malformed at the Chrome invocation. No direct malware indicators are present.