Open Source · · 2 days

tcpdump.org source tarballs trojanized

The tcpdump.org distribution site was compromised in November 2002, and source archives for tcpdump and libpcap were replaced with trojanized versions.

In November 2002, the tcpdump.org HTTP distribution path began serving trojaned source archives for both tcpdump and libpcap. CERT and CIAC identified modified copies of tcpdump-3.6.2.tar.gz, tcpdump-3.7.1.tar.gz, and libpcap-0.7.1.tar.gz; the poisoned downloads appeared around 10:14 GMT on November 11 and were disabled at 15:05:19 GMT on November 13.

The delivery split across related tools. tcpdump carried build-time code that fetched and compiled a payload. libpcap, the packet capture library under it, was changed to hide traffic on the port the payload used.

This compromise was more elaborate than a single hidden shell. The poisoned tcpdump configure script attempted to fetch a shell script named services from mars.raketti.net over HTTP, generate conftes.c, compile it, and run it. The resulting program connected back to the same host, 212.146.0.34, on TCP/1963 and accepted byte-sized commands to exit, sleep, or spawn a shell whose traffic was obfuscated by XORing every byte with the constant 0x89. Libpcap was also changed in gencode.c to hide traffic on port 1963, bending the sniffer's own eyes away from the backdoor.

That pairing is why the incident still stands out. The attacker did not just compromise a network diagnostic tool; they also altered the capture library so the diagnostic stack was less likely to see the backdoor's own traffic. Verification had to cover both archives, not only the obvious tcpdump executable.

Notes

  • No source reports how many people fetched the trojaned archives, so impact users is left unset rather than asserted as zero. The files were served from the main tcpdump.org HTTP path for roughly two days.
  • The start and end dates bound the window CERT documented for tcpdump.org itself, 10:14 GMT on 2002-11-11 to 15:05:19 GMT on 2002-11-13. CIAC N-014 adds that early reports placed modified versions in circulation around 2002-10-30, so total exposure including mirrors may have been longer than the two-day duration recorded here.

Appendix · Affected releases

tcpdump tcpdump.org source release
3.6.2 no sample yet
tcpdump tcpdump.org source release
3.7.1 no sample yet
libpcap tcpdump.org source release
0.7.1 sha256 6dfc70ee…7b9e2dfa download unavailable
Payloads and stagesno published version

References

  1. Latest libpcap and tcpdump sources from tcpdump.org contain a trojanseclists.org
  2. Houston Linux Users Group original tcpdump/libpcap trojan analysisweb.archive.org
  3. Arch Linux forum thread on trojaned tcpdump/libpcap sourcesbbs.archlinux.org
  4. Popular packet sniffing packages contaminated by Trojantheregister.com
  5. libpcap and tcpdump sources trojanedlinuxsecurity.com
  6. Trojaned tcpdump and libpcaplwn.net
  7. CERT Advisory CA-2002-30: Trojan Horse tcpdump and libpcap Distributionsseclists.org
  8. CIAC N-014: Trojan Horse tcpdump and libpcap Distributionsartofhacking.com

Source record: oss/attacks/tcpdump-libpcap/meta.yaml