malicious IDE bit-zeroing worm ?

hi, vi, without an apparent reason, began to segfault on us. rpm -Vf `which vi` showed that the md5sum was incorrect. The timestamp on the file was unchanged. The substance of the problem is that two bytes in the vi binary have spontaneously become zero's. These bytes do not have a significant effect on the code, but do make it stop working: $ diff -u vi.hex vi.oops.hex --- vi.hex Thu Sep 13 08:58:03 2001 +++ vi.oops.hex Thu Sep 13 08:57:56 2001 @@ -9981,7 +9981,7 @@ 26fc0 88 c2 89 95 50 ff ff ff 83 c4 f8 6a 64 a1 3c ca .Â..Pÿÿÿ .Äøjd¡<Ê 26fd0 0d 08 50 e8 28 cf 01 00 83 c4 10 85 c0 0f 95 c0 ..Pè(Ï.. .Ä..À..À 26fe0 31 d2 88 c2 89 95 4c ff ff ff 83 c4 f8 6a 78 a1 1Ò.Â..Lÿ ÿÿ.Äøjx¡ -26ff0 3c ca 0d 08 50 e8 06 cf 01 00 83 c4 10 85 c0 0f <Ê..Pè.Ï ...Ä..À. +26ff0 3c ca 0d 08 50 e8 06 cf 01 00 83 c4 10 85 00 00 <Ê..Pè.Ï ...Ä.... 27000 95 c0 31 d2 88 c2 89 95 48 ff ff ff a1 60 5c 0d .À1Ò.Â.. Hÿÿÿ¡`\. 27010 08 c7 05 a0 57 0d 08 00 00 00 00 83 78 50 00 75 .Ç. W... ....xP.u 27020 43 83 7d 9c 00 75 3d 83 7d 98 00 75 37 83 c4 f8 C.}..u=. }..u7.Äø This machine is running kernel 2.4.4 and reiserfs. The disk is a 20G ST320413A IDE disk (PIIX4 chipset revision 1). interesting problem : could be a file system error in reiserfs but then how did it write to the binary ? and only the one ? wich means it could be a security problem ? obvious things eg. tripwire, snort, other binaries, -- checked, no obvious signs of compromise. running no services with known holes. thanks, doVe

If this was a security incident then it defies logic (breaking vi would typically be noticed quickly, and I can't imagine what flipping two bits accomplishes, especially if vi breaks). Assuming it's not a security incident then that basically leaves hardware failure, software failure and act of god. Could be a bad sector on the HD, you may want to check that (since ide drives are notorious for taking a while to cotton on to bad sectors). As a software failure it seems to me that bit swapping in the kernel/reiserfs would have been noticed by someone else as well. As an act of god, maybe cosmic raditiation, or the phase of the moon caused it? When you consider how complex these things are, and how small the tolerances are I'm surprised we don't see more bizarre incidents like this (for example sometimes emacs refuses to run and core dumps on one of my machines seemingly at random, a reinstall of emacs didn't help either, and this problem hasn't occured on other machines running the same OS/etc). Kurt Seifried, kurt@seifried.org PGP Key ID: 0xAD56E574 Fingerprint: A15B BEE5 B391 B9AD B0EF AEB0 AD63 0B4E AD56 E574 http://www.seifried.org/
participants (2)
-
dove
-
Kurt Seifried