Is it possible to permanently damage the hardware by software?

iblue picture iblue · Feb 15, 2012 · Viewed 19.4k times · Source

I have just read this question: Could this code damage my processor? and this made me think.

Is it possible to damage hardware just by software? I heard that "in the good old days" (TM), when hard disk actuators were controlled by software, they could be hit against the central spindle, which would damage the drive permanently.

There was also the infamous Chernobyl virus which just killed the BIOS and rendered the machine useless, until someone reflashed it.

And there are microcode updates, which can be flashed to the CPU (and I don't know much about them).

But is this still possible today? Could you damage hardware by software? Execute the hcf (Halt & Catch fire) instruction? Grill the cat by increasing WLAN output power?

Answer

old_timer picture old_timer · Feb 15, 2012

Yes, you sure can in general. Sometimes in practice it is harder than you think, sometimes very easy.

Say for example you have a gpio pin, that is used as an input and tied to Vcc. Make it an output and drive it low, you can usually sink more than you can source so you can absorb a lot but if this is a voltage rail and they didnt put some limiting resistors in there, a power up strap option for example, the smoke will come out.

Even in PC's i2c is bit banged in some places, same deal you have a bug, accidental or intentional, do enough i2c to get the target to think it is its turn to drive the data line, but you drive the data line to, in the opposite direction. you can sink more than source, whoever is sourcing is likely to melt down their output.

I think I heard that one of the (popular family of) graphics processors is no where near capable of handling sustained operations at that clock rate. Think about a machine gun that can fire X bullets per minute, very few can SUSTAIN that for very long without melting the barrel. Thats what they did here, if you do too much with the gpus you will melt the chip without the heat sink being able to do anything no matter how much cooling you attach to the case. this may be a myth, who knows...things like this have happened. Normally you put temp sensors in the chip that cause something in the power system outside to reset the chip/board or turn it off. which is why your pc will go into panic beeping when you try to bring it up without the heat sink on the cpu. You can try this yourself, leave the heat sink fan in to keep the tach up but dont have it touch the cpu. you might destroy the cpu or motherboard so try this at your own risk.

Generally the problems that you might have had inside a chip where you could do a few things and the chip would fail from the inside. We dont normally hand route the whole thing, there are tools that do a lot of that work or check that work to prevent these sorts of things, not fool proof of course, but less likely. board designs though, still very much hand built, and the software drivers normally dont try to do bad things like drive gpio lines against sources and things like that. Not as easy to bang the head of a floppy or hard drive against the inside of the case as it used to be, that sort of thing, although it wouldnt surprise me if you could mess with some settings and gouge a grove in a disk platter or something like that. a Lot harder to catch a monitor on fire.

As already mentioned by other posters, pushing and stressing components, excessive computations, things like that. for computers where there are software controlled cooling fans you can probably go in and turn off the automated, if any, control system and set the fan at a fixed speed, of say...off...turn them all off and see what happens. Some brand of laptop had that problem you upgrade the bios and it slowed the cpu fan down causing hard drive failures and/or other failures in the system. change the bios setting or install the right bios and replace the damaged hardware (if possible/practical) and not dead.

For a while there Linux was excessively parking hard drive heads on laptops or something like that, causing premature disk failure.

Apple is well known for hardware failure, a long lists of class action suits. Some driven by software. Not that other brands dont have bad stuff from time to time, but other brands normally dont control the hardware and software in one package making it harder to isolate one company, or worse a company that should know better than to destroy its own stuff. Apple often likes to get their name in the news anyway, free or cheap advertising.

It has been shown, or at least I read, that you can infect a mac battery, batteries are smart now in laptops, with a virus, such that after a clean wipe and re-install of the operating system the battery will re-infect the system with the virus. (just a matter of time for this to happen on any platform not just the one) I wonder what else you can do to modern laptop batteries firmware, it is very easy to catch modern battery technologies on fire, perhaps you could do that with software.

You can software control the disc tray in desktop computers, you could open and close it until it fails (I saw a thereifixed it where the cdrom tray was used to rock a baby cradle this way).

With fanless handhelds, smartphones, tablets. I bet you could defeat the temperature limits and stress components to create heat, probably causing the battery to go.

blowing speakers is an easy one, just do it.

A lot of stuff uses ftdi chips to interface usb to pretty much anything. some of those can have the pins changed from whatever function they are normally, a serial port perhaps, to software bit-banged control, and it is where i started at the top, take what was supposed to be an input, make it an output and drive the other way until something melts down.