OpenSSH Backdoors
The OpenSSH source code distribution was replaced with a backdoored version on the project's FTP server, causing anyone who downloaded and built it to run attacker-controlled code that connected back to a hardcoded address. The backdoor was discovered when a checksum mismatch occurred during a build on FreeBSD.
blog.isosceles.com
Published on blog.isosceles.com
Imagine this: an OpenSSH backdoor is discovered, maintainers rush to push out a fixed release package, security researchers trade technical details on mailing lists to analyze the backdoor code. Speculation abounds on the attribution and motives of the attacker, and the tech media pounces on the story.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the FTP server hosting the OpenSSH source distribution was compromised, allowing the attacker to replace the release archives with modified versions.
Impact
Anyone who downloaded and built the tampered OpenSSH source would have their machine compromised, with the attacker able to execute commands remotely; the backdoor was detected before it could spread widely.
What the attacker needed
Victim downloads and builds the tampered source
The fix
The tampered distribution files were replaced with correct ones, and the incident highlighted the need for checksum verification and supply-chain security.
How it was found
- The attacker replaced the OpenSSH source archive files on the FTP server with a backdoored version.
- The backdoored build system was hooked so that an attacker-controlled source file would be compiled and executed when the configure command was run.
- The payload connected back to a hardcoded IP address in Australia and waited for commands to execute on the compromised machine.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A backdoor is a hidden way into software that its makers did not intend. Here, someone swapped the official OpenSSH download files for tampered ones, so anyone who built the software from those files would also run the attacker's hidden program. It was caught because a build tool noticed the files did not match their expected checksums.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.