zed-extension-creator
Audited by Socket on Jul 22, 2026
2 alerts found:
SecurityAnomalyNo direct evidence of hidden malware (credential theft, exfiltration, backdoor/persistence, or obvious obfuscation) is present in the excerpt. However, the code implements a high-impact supply-chain “download/install then execute” mechanism for a language server binary (and optionally npm “latest” code). The provided fragment does not demonstrate cryptographic integrity verification or strict pinning before execution, so the primary finding is elevated security risk from potential upstream compromise or mutable artifacts rather than malicious behavior implemented directly in this snippet.
This extension is primarily a legitimate language-server installer, but it materially expands the supply-chain attack surface by downloading an executable from GitHub releases and immediately executing it without any visible checksum/signature verification. Additionally, its pruning logic uses std::fs::read_dir(".") and remove_dir_all based on a filename prefix, which could delete unintended directories depending on the extension’s working directory. User overrides (binary.path) also enable arbitrary executable execution if settings are compromised.