Microsoft has open-sourced the Windows Subsystem for Linux (WSL), making its source code available on GitHub, except for a few components that are part of Windows.
This marks a milestone for a project that started as an experiment almost a decade ago but has grown to become a very popular tool in Windows.
WSL was first introduced at Microsoft BUILD 2016 and was ultimately shipped in the Windows 10 Anniversary Update, allowing you to run Linux distributions directly in Windows.
Its first release, WSL 1, utilized a compatibility layer that translated Linux system calls so they could communicate and work with the Windows NT kernel using a custom driver named lxcore.sys.
In 2019, Microsoft released WSL 2, which included a real Linux kernel running in a virtual machine that offered significant improvements, such as performance enhancements, GPU and systemd support, and the ability to run graphical applications.

Source: Microsoft
Now, at Microsoft Build 2025, the company has made WSL open source, including its command-line tools (wsl.exe and wslg.exe), background services (wslservice.exe), and Linux-side daemons used to start networking, launch other daemons, and set up port forwarding.
“WSL could never have been what it is today without its community. Even without access to WSL’s source code, people have been able to make major contributions that lead to what WSL is now,” Microsoft’s Pierre Boulay shared in an announcement.
“This is why we’re incredibly excited to open-source WSL today. We’ve seen how much the community has contributed to WSL without access to the source code, and we can’t wait to see how WSL will evolve now that the community can make direct code contributions to the project.”
The only components that are not open-sourced, as they are part of Windows, are Lxcore.sys, the kernel driver for WSL 1, and P9rdr.sys and p9np.dll, which are used for the “\\wsl.localhost” filesystem redirection.
The release of this source allows developers to inspect the code, build it themselves, submit improvements, and understand how WSL works under the hood.
By going open source, Microsoft also hopes the developer community will become more involved and submit new features, enhancements, and bug fixes.
For more information about the Windows Subsystem for Linux architecture and components, you can visit https://wsl.dev.
Based on an analysis of 14M malicious actions, discover the top 10 MITRE ATT&CK techniques behind 93% of attacks and how to defend against them.