vue-creater
Audited by Socket on Sep 16, 2026
3 alerts found:
Securityx2AnomalyThe fragment appears intended as a Vue project initializer, not malware. The main concrete risk is destructive path handling: an unvalidated command-line project name flows into shutil.rmtree and can delete an arbitrary directory, including the current directory or an absolute path. Unpinned latest package execution and use of a third-party npm mirror create supply-chain exposure. No visible data exfiltration, credential harvesting, persistence, reverse shell, or intentionally obfuscated payload is present. The supplied code is also syntactically incomplete and would fail before execution.
No clear malware, credential theft, persistence, destructive payload beyond the intended project cleanup, or network exfiltration is present. The primary security issue is unsafe shutil.rmtree use with an unvalidated project name, which can delete unintended directories. npm and Electron downloads rely on third-party mirrors, creating supply-chain trust exposure. The fragment is also malformed and may not execute as shown.
No direct evidence of intentional malware is present in this fragment. The code is a project scaffolding utility, but it has meaningful security weaknesses: unvalidated project paths can cause destructive deletion, and unvalidated ZIP extraction can permit archive path traversal. Running `bun install` also executes potentially untrusted package lifecycle scripts. The archive should be validated before extraction, project names should be restricted to safe relative directory names, and deletion should be limited to explicitly confirmed project directories.