png2svg

Warn

Audited by Socket on Jul 30, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/measure_template.py

This fragment itself appears to be an image-to-vector processing utility, with no explicit malware behaviors (no network/subprocess/credential theft) visible. The primary risk is supply-chain/code-injection: it dynamically locates a local png2svg “skill” directory (including from an environment variable and broad cwd/home searches), prepends it to sys.path, and then imports multiple executable modules from there—making import-time arbitrary code execution possible if the resolved directory is attacker-controlled or replaced. Treat this as a meaningful security risk and require trusted, pinned, or verified library paths; otherwise malicious code in the imported png2svg package could run with the user’s privileges.

Confidence: 63%Severity: 60%
AnomalyLOW
scripts/build_template.py

No explicit malicious payload is visible in this module (no network/exfiltration, no subprocess execution, no credential theft). However, the code introduces a significant supply-chain/code-execution risk by dynamically modifying sys.path and importing png2svg.model from a directory selected via an unvalidated environment variable and a broad filesystem search. If an attacker can influence PNG2SVG_SKILL or the candidate directory layout, arbitrary code in the resolved png2svg.model could be executed. The remaining logic primarily performs local JSON-driven geometry generation and project file updates.

Confidence: 68%Severity: 64%
Audit Metadata
Analyzed At
Jul 30, 2026, 12:47 PM
Package URL
pkg:socket/skills-sh/iannuttall%2Fskills%2Fpng2svg%2F@d2f7cdbecbc1bfa0c3a7350b18f845b3664e130c02d52bb924cb8c97603fc5ef
Security Audit — socket — png2svg