Article View: comp.virus
Article #3173Re:Prevent hard disk infection? (PC)
From: Carlos Jimenez
Date: Thu, 10 Jan 1991 07:24
Date: Thu, 10 Jan 1991 07:24
51 lines
3190 bytes
3190 bytes
>Is there any way to prevent a virus from infecting a hard disk when
>you cold boot with an infected diskette in drive a: ? (I should have
>written "when you unfortunately have left a diskette in drive a:" or
>"when you leave your computer unattended and someone boots from a
>diskette").
>
>Paul M. Monat Lab Manager Phone: 613-564-6895/6500
> Faculty of Administration Fax: 613-564-6518
> Canada K1N 6N5 Bitnet: Monat @ Uottawa
When you light the computer the ROM BIOS checks the machine and then
searchs for someone disquette in drive A:. If it can read a boot
sector, read it in 0000:7C00 and run it.
(There is someones BIOS for AT's,'386 & '486 that permits configure
which is the drive for start and stores this information in CMOS
memory. I don't know if this is your case).
When a boot sector virus infects a disquette (with or without operating system)
it can make a boot sector that can infect any hard disk using
- direct access to hard disk port
(I don't know any virus that use this method actually),
- BIOS Int 13h Function 03 (Write sector)
(like Stoned)
- DOS Int 26h (Write absolute sector).
(like Bouncing Ball,
I don't know any solution throw software for the two first method of
infection but I can suggest that you change the ROM or add some EPROM
that prevents boot from A:.
The third method of infection has a solution using software. If you
clear the partition table of your hard disk, the DOS can't recognize
the hard disk (like it hasn't low level format), and Int 26h calls
will fail. For a sucessfull boot from hard disk you must change the
original bootstart routine by another, that writes the original
partition table and then reads the boot sector of the active partition
and execute it. You must include a program that clears again the
partition table (I have a driver in CONFIG.SYS)
WARNING: - This method forces two writes in the partition sector (for create
and erase the partition table) in each warm or cold boot. It can
reduce MTBF (Mean Time Between Failures) of this sector, and a write
error can to be dangereus.
- If you don't have the DOS in the active partition, the problem is
more complicated. (I can send you some ideas).
Carlos Jimenez R+D Manager Phone: +34 1 556 92 15
ANYWARE Information Security +34 1 556 92 16
General Peron, 32 Fax: +34 1 556 91 58
28020 Madrid (SPAIN) EUnet: cjimenez@anyware.es
Technical Details
Message-ID:
<0009.9101101857.AA07273@ubu.cert.sei.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!vax1.cc.lehigh.edu!cert.sei.cmu.edu!krvwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!vax1.cc.lehigh.edu!cert.sei.cmu.edu!krvw From: cjimenez@anyware.es (Carlos Jimenez) Newsgroups: comp.virus Subject: Re:Prevent hard disk infection? (PC) Message-ID: <0009.9101101857.AA07273@ubu.cert.sei.cmu.edu> Date: 10 Jan 91 07:24:38 GMT Sender: Virus Discussion List <VIRUS-L@LEHIIBM1> Lines: 51 Approved: krvw@sei.cmu.edu