Bun.exe is the Windows executable for Bun, a tool that runs JavaScript and TypeScript and manages project dependencies. Windows itself does not need it. If you did not install Bun, check which app started it and what appears after bun.exe in its command line. A legitimate app can bring its own copy, and a malicious script can run through a genuine copy.
If a security alert names Bun after an unknown installer ran, or the process returns after a restart, check the whole PC. Quarantining the visible file can leave behind the script or scheduled task that launched it.
Check bun.exe in Task Manager
- Press Ctrl + Shift + Esc, open Details, and find
bun.exe. Right-click it and choose Open file location. Note the full path and the process ID (PID). Leave an unfamiliar file closed. - Right-click a column heading in Details, choose Select columns, and enable Command line. Look at the script, project, or arguments after the executable path. If there are multiple Bun processes, inspect the row with the matching PID.
- Check the launcher. In Microsoft Sysinternals Process Explorer, find the same PID and look at the process one level above it. A known editor can launch a project you recognize. If that editor starts an unfamiliar script, investigate the script even when you trust the editor.


The default location for Bun’s official PowerShell installation is %USERPROFILE%\.bun\bin\bun.exe. Other installation methods and apps can put it elsewhere.1 Use the location, launcher and command line together.
- Bun runs a project you started from the expected folder. Keep it if you use it. If CPU stays high or a console keeps appearing, close the project or app normally and see whether the activity stops. Update or troubleshoot that app if the symptom follows it.
- An app you recognize launches a bundled copy. Check the app’s documentation and whether the script belongs to it. Use the app’s update or uninstall option if you no longer need it.
- An unknown script runs from
%TEMP%or an unfamiliar folder, or an alert follows an untrusted download. If the file was already quarantined, leave it there. If it ran or keeps coming back, scan the PC and investigate what started it.
Compare the file with an official Bun release
To identify a standalone copy without opening it, use PowerShell to calculate its SHA-256 with Get-FileHash -LiteralPath 'C:\path\to\bun.exe'. Replace the example path with the actual one. Compare it with the extracted bun.exe from the same official release, architecture and build. The ZIP archive has its own hash.
For example, we checked the official Bun v1.4.5 Windows x64 archive against its GitHub release digest, then hashed the executable inside without running it. The EXE’s SHA-256 starts with e06ad0864463. Compare all 64 characters of your hash with the hash you calculate from your clean reference copy.2 A match establishes that the two files contain identical bytes. Check the command line separately to establish what that copy ran. See our guide to checking an EXE before opening it for other ways to assess where a file came from.
How genuine Bun can run malware
In one ChainDrop case documented by Unit 42, Visual Studio Code launched a copy of Bun from the user’s temporary folder. Bun ran a malicious JavaScript file from a dependency cache, and the script attempted to collect a GitHub authentication token. The temporary location mattered because of what the process was running.3
What to do if the Bun activity looks suspicious
- On a work PC, report the path, time and detection to IT. On a personal PC, if an untrusted script is still running or you see signs of active compromise, disconnect the affected PC from the network and avoid signing in from it.
- When it is safe to proceed, download Gridinsoft Anti-Malware for Windows from the official page. If you isolated the PC, get the installer on a clean device. Install it, update the detection database, and run a Full Scan. Review the results, quarantine confirmed threats and restart when prompted.
- If the alert returns, note the new path and check what launches automatically at sign-in. A task or another application can start a fresh copy. Scan again after cleanup. If a developer token may have been exposed, revoke it from a clean device and review recent account activity.
FAQ
Can I delete bun.exe if I never installed it?
Identify the app or package that owns it first. An unused, verified Bun installation can be removed with the official uninstall instructions for the method that installed it. For an app’s bundled copy, uninstall or repair the app. If the file is suspicious, leave it quarantined while you investigate the launcher.
What if my antivirus flagged an official Bun download?
Keep the file quarantined while you verify the download source and compare the exact build. Save the detection name and reported path for review. If the alert instead names a script, another file or a behavior, investigate that item before restoring anything.
References
- Bun. Installation. Bun Docs, accessed December 5, 2026.
- Bun. Bun v1.4.5 release and assets. GitHub, November 19, 2026.
- Unit 42. ChainDrop: Inside a Self-Propagating npm Worm. Palo Alto Networks, accessed December 5, 2026. See Figure 8.
- Microsoft. Find the process ID. Microsoft Learn, accessed December 5, 2026. Source of the Windows 11 Details screenshot.
- Ian Xue. Task Manager Command line demonstration. Microsoft Q&A, January 11, 2023.

