OpenSSH tarballs shipped trojan horse
OpenSSH 3.2.2p1, 3.4p1, and 3.4 source archives on the OpenBSD FTP server were trojanized between July 30 and August 1, 2002, with copies possibly spreading through mirrors.
Story
At the end of July 2002, source archives for OpenSSH were replaced on the OpenBSD FTP server and potentially propagated by the normal mirror network. The affected files were openssh-3.4p1.tar.gz, openssh-3.4.tgz, and openssh-3.2.2p1.tar.gz; the project replaced them with clean originals at 13:00 UTC on August 1.
The attacker changed source distribution, not the SSH protocol. The tainted archives carried bf-test.c, and the build system compiled and executed it during configure. A system could be compromised by building OpenSSH even if it never deployed the resulting daemon.
The payload lived in bf-test.c and executed during the build, not when a running SSH daemon handled traffic. Once compiled, it attempted hourly outbound connections to an IRC-style port and could execute attacker-supplied commands as the build user. CERT's advisory treated any host that built the trojaned source as compromised and told mirrors, redistributors, and administrators to verify signatures and checksums rather than trusting timestamps or file sizes.
The detection path was ordinary package hygiene. Isosceles notes that FreeBSD ports already had expected checksums, so a developer building the tainted archive saw a mismatch. The short exposure window prevented broader compromise, but the attack showed that replacing source archives on trusted infrastructure was enough to reach high-value Unix systems.
Affected Artifacts
- Observed
- 2002-07-30 to 2002-08-01
- Compromised Versions
- Fixed
- Not listed
- Hashes
-
- md5:3ac9bc346d736b4a51d676faa2a08a57
- Observed
- 2002-07-30 to 2002-08-01
- Compromised Versions
- Fixed
- Not listed
- Evidence
- distribution: ftp.openssh.compub/OpenBSD/OpenSSH/openssh-3.4.tgz, distribution: ftp.openbsd.orgpub/OpenBSD/OpenSSH/openssh-3.4.tgz, None, observable: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.4.tgz
- Observed
- 2002-07-30 to 2002-08-01
- Compromised Versions
- Fixed
- Not listed
- Evidence
- distribution: ftp.openssh.compub/OpenBSD/OpenSSH/openssh-3.2.2p1.tar.gz, distribution: ftp.openbsd.orgpub/OpenBSD/OpenSSH/openssh-3.2.2p1.tar.gz, None, observable: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-3.2.2p1.tar.gz
Incident Context
- Motive
- Unauthorized Access Control
- Cause
- Compromised Infrastructure
- Transitive
- No
External References
- OpenSSH Security Advisory adv.trojanopenssh.com
- Bugtraq: OpenSSH Security Advisory - Trojaned Distribution Filesmarc.info
- OpenSSH Backdoorsblog.isosceles.com
- CERT Advisory CA-2002-24 Trojan Horse OpenSSH Distributiongroups.google.com
- Cygwin mailing list: CERT Advisory CA-2002-24 Trojan Horse OpenSSH Distributionsourceware.org
- OpenSSH Security Advisoryundeadly.org
- Trojan horse found in OpenSSHitworldcanada.com
- CERT Advisory CA-2002-24: Trojan Horse OpenSSH Distributioncert.org
- OpenSSH Trojanmavetju.org
- Slashdot comment on OpenSSH trojan detailsslashdot.org
Source record: oss/attacks/openssh/meta.yaml