Science & Tech · Cybersecurity · 7 hrs ago
Portal 2 source code leak includes remnants of canceled Half-Life 2: Episode 3
Portal 2’s source code has leaked online, spreading from a Discord server to file-sharing sites and GitHub.
The code appears to have come from someone with access to it, and online discussion suggests it may have circulated privately for years.
The leak includes code Valve carried over from Half-Life 2: Episode 3, a planned final chapter that the company abandoned around 2008 or 2009.
The material is not enough to make the canceled game playable, and Episode 3 is distinct from Half-Life 3.
The leak has also let modders recreate F-Stop, a planned prequel to Portal.
The leak follows a separate Valve data breach in August that exposed more than 12 terabytes of internal data, including a decade of Steam files.
The leaked code has reached GitHub, but the link may not remain available; Valve had not responded to a request for comment when the story was published.
Valve's Portal 2 source code has leaked online, including code carried over from the canceled Half-Life 2: Episode 3.
The code appears to have originated with a user who had access to it through a Portal research Discord server.
It has spread to file-sharing sites and GitHub, although online discussion suggests it had circulated privately for years.
The newly revealed Episode 3 code does not appear to be enough to make a playable version.
The leak also enabled modders to replicate F-Stop, a canceled Portal prequel.
- Who
- Valve's Portal 2 source code was leaked by a user who already had access to it.
- What
- The leaked code includes remnants carried over from the canceled Half-Life 2: Episode 3.
- When
- The leak was reported on December 1, 2026; when the code first became available online is not stated.
- Where
- The code spread to file-sharing sites and GitHub, after apparently originating from a Portal research Discord server.
- Why
- The reason for the leak is not stated.
This story does not have two clearly opposing sides.
Valve abandoned development of Half-Life 2: Episode 3 sometime during this period.
Valve suffered a data breach that exposed more than 12 terabytes of internal data, according to Mashable.
Mashable reported that Portal 2's source code had leaked online.
- Game
- Portal 2, released in 2011
- Leaked material
- Portal 2 source code, including code carried over from Half-Life 2: Episode 3
- Episode 3 development
- Abandoned by Valve sometime in 2008-2009
- Distribution
- File-sharing sites and GitHub
- Previous data breach
- More than 12 terabytes of internal data exposed in August
Posts on X
The full source code for Portal 2 has just leaked, including some leftovers from Half-Life 2: Episode Three and other games from Source engine.