ie8 fix
madison

Zero Day

Ryan Naraine, Emil Protalinski and Dancho Danchev

Researchers demo BIOS attack that survives hard-disk wipe

By | March 23, 2009, 4:48am PDT

Summary: A pair of Argentinian researchers have found a way to perform a BIOS level malware attack capable of surviving even a hard-disk wipe. The researchers — Alfredo Ortega and Anibal Sacco from Core Security Technologies — used the stage at last week’s CanSecWest conference to demonstrate methods (see slides .pdf) for infecting the BIOS with persistent [...]

A pair of Argentinian researchers have found a way to perform a BIOS level malware attack capable of surviving even a hard-disk wipe.

The researchers — Alfredo Ortega and Anibal Sacco from Core Security Technologies — used the stage at last week’s CanSecWest conference to demonstrate methods (see slides .pdf) for infecting the BIOS with persistent code that will survive reboots and reflashing attempts. The technique includes patching the BIOS with a small bit of code that gave them complete control of the machine. The demo ran smoothly on a Windows machine, a PC running OpenBSD and another running VMware Player.

According to this Dennis Fisher report:

“It was very easy. We can put the code wherever we want,” said Ortega. “We’re not using a vulnerability in any way. I’m not sure if you understand the impact of this. We can reinfect the BIOS every time it reboots.”

Sacco and Ortega stressed that in order to execute the attacks, you need either root privileges or physical access to the machine in question, which limits the scope. But the methods are deadly effective and the pair are currently working on a BIOS rootkit to implement the attack.

“We can patch a driver to drop a fully working rootkit. We even have a little code that can remove or disable anti-virus,” Ortega said.

Rob Lemos at SecurityFocus explains that the attack method requires the use of a machine that’s already compromised but the scary part is that it completely prevents a defender from easily deleting an attacker’s program or rootkit.

“You can remove the hard drive, trash it, and even reinstall the operating system,” Sacco said. “This will still reinstall the rootkit.”

Back in 2006, NGSS researcher John Heasman found a way to use a PCI device to plant an offensive rootkit on Windows machines.  Here’s a link to Heasman’s paper: Implementing and Detecting a PCI Rootkit (.pdf).

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues.

Disclosure

Ryan Naraine

The most important disclosure is of my employment with Kaspersky Lab as a member of the global research and analysis team. Kaspersky Lab is a global company specializing in anti-malware and secure content management technologies. I do not own stocks or other investments in any technology company.

Biography

Ryan Naraine

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues. He is currently security evangelist at Kaspersky Lab, an anti-malware company with operations around the globe. He is taking a leadership role in developing the company's online community initiative around secure content management technologies.

Prior to joining Kaspersky Lab, Ryan was Editor-at-Large/Security at eWEEK, leading the magazine's and Web site's coverage of Internet and computer security issues and managing the popular SecurityWatch blog, covering the daily threats, vulnerabilities and IT security technologies. He also covered IT security, hacker attacks and secure content management topics for Jupiter Media's internetnetnews.com.

Ryan can be reached at naraine SHIFT 2 gmail.com. For daily updates on Ryan's activities, follow him on Twitter.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
75
Comments

Join the conversation!

Just In

RE: Researchers demo BIOS attack that survives hard-disk wipe
birumut Updated - 3rd May 2011
Well done! Thank you very much for professional templates and community edition
seslisohbet seslichat
0 Votes
+ -
This sounds like a pretty nasty problem
let's hope antivirus vendors find a way to defend bios.
The BIOS can be flashed
does that fix it?

A
0 Votes
+ -
@andycher
Axsimulate 23rd Mar 2009
"persistent code that will survive reboots and reflashing attempts."

copied from the story.
0 Votes
+ -
"persistent code that will survive reboots and reflashing attempts. "
0 Votes
+ -
Survive reflashing attempts?
Lerianis 23rd Mar 2009
I DON'T THINK SO! When you are reflashing a BIOS chip... it totally formats and rewrites the BIOS to the chip when you do that.

There is no damn way that it would survive a reflashing. Unless, there is something on the HARD DRIVE that re-installs it!

This is more a two-level attack: 1. The thing that first installs it in the BIOS and 'goes quiet' on your hard drive, and 2. The thing in the BIOS itself.

Knock out the first AND the second (easy fix: format and wipe the hard drive!), and this cannot reinstall on it's own, even if you have two flash chips on your motherboard (which, unknown to most....... after the first successful reboot and restart.... the second BIOS is wiped and overwritten).
0 Votes
+ -
I think you forgot about memory...
duomenox 23rd Mar 2009
How would you pull the memory when you flash the BIOS?

The malicious code could load itself into memory during boot (remember how it does an error check on the memory during POST) then the BIOS gets flashed, the running code in memory sees the flash attempt, and reloads itself in to the BIOS when the flash is completed.

Very, very easy, assuming you have that kind of control over the BIOS... which these guys claim to have.
0 Votes
+ -
I assume its possible
troubled241 24th Mar 2009
My Panda Anti-virus once explained I had a flash virus. Another time my screen flickers, then Video disappears, I test my Hardware and found it not bad. It was in both Notebook Computers. Just to erase the Hard Drive does not remove it. The HP Notebook was fixed after erase Hard Drive several time, then make sure RAM is empty, then reinstall ROM - BIOS. The Toshbia was more difficult to rmove it, maybe its the difference between Panda anti-virus and firewall or Norton Internet Security 2009 that cures it, I erased every thing I could think of, then used a different antivirus and firewall to test for results.
0 Votes
+ -
Re; I DON'T THINK SO! ... Well I do !
hkommedal 25th Mar 2009
When BIOS is corrupted it can also control HOW a reflash is performed ! Deadly stuff. It will seem to the person that does the reflash, that everything went OK, but because BIOS is running before ANYTHING else, BIOS can silently over-ride normal procedure.
The ONLY way to do this without BIOS interference is to physically remove the the chip and flash it in a unit for that purpose.
0 Votes
+ -
amen!
bluescreen_z 28th Mar 2009
or get a new BIOS chip.
For those who have a board with dual BIOS I suppose the question would be whether they are both infected.
I I were a hardware manufacturer I would consider malware like that a gift from God! Will spare BIOS chips be available at Newegg.com soon?
0 Votes
+ -
hmmmmm
jdbukis@... 26th Mar 2009
Dont most motherboards have a cmos battery, removing the battery should reset the motherboard.
0 Votes
+ -
Bios is the first to gain control
bluescreen_z 28th Mar 2009
removing the cmos battery only resets the cmos settings (peripherals config, ram and cpu speed, boot sequence...) to default values, does not flash it.
For those who are surprised the attack can survive flashing: the Bios (and the bug in the Bios) is the first one to get control of the computer, and it could be instructed to "protect" himself from the Bios flash program running from a CD or from a floppy.
Last time I asked a mobo manufacturer for a new Bios chip they wanted about $40, too bad it was a $42 board.
0 Votes
+ -
but Linux is secure
Linux Geek 23rd Mar 2009
They could not infect Linux, unlike windoze.
0 Votes
+ -
Question:
rshores 23rd Mar 2009
Does an operating system have to have the word 'LINUX' in it to be considered Linux?

I would submit to you that OpenBSD is close enough to Linux to be considered 'Linux':

1.1 - What is OpenBSD?

The OpenBSD project produces a freely available, multi-platform 4.4BSD-based UNIX-like operating system. Our goals place emphasis on correctness, security, standardization, and portability. OpenBSD supports binary emulation of most binaries from SVR4 (Solaris), FreeBSD, Linux, BSDI, SunOS, and HPUX.
0 Votes
+ -
So no it is not Linux. However the fact that it works similarly to Linux and it can be infected does demonstrate that Linux could also be infected.
0 Votes
+ -
Thanks:
rshores 23rd Mar 2009
for the clarification.
0 Votes
+ -
Supports Windows & Mac OS
mrgoose Updated - 4th Aug 2009
But not Linux - well not yet anyway. But it could someday. If it's in the BIOS and pulls the right strings then it could be used with any OS. However, my albeit limited research suggests they are targeting predominately Windows users at the moment.

I did stumble upon quite an interesting site detailing how to disable it:-
http://www.freakyacres.com/remove_computrace_lojack

However my main concern living here in the UK is that products such as LoJack give our government even more opportunity to spy on us. GCHQ already monitors all our internet traffic and we have more surveillance cameras per head of population than any other country on the planet.

Whatever OS I was using, I would want permanently to kill LoJack ASAP.

Best wishes, G.
0 Votes
+ -
What part of "BIOS" don't you get?
superbus 23rd Mar 2009
This has nothing to do with what OS is running. It happened on Windows and BSD.

Yes, I know BSD isn't Linux technically, but the point is, it has nothing to do with Windows... really, it has nothing to do with ANY OS.
0 Votes
+ -
Not so sure about that...
masonwheeler 23rd Mar 2009
The BIOS is just where it gets stored, instead of saving it to the HD. It's still got to be executed on a specific operating system.
0 Votes
+ -
re: Not so sure about that....
rtk 23rd Mar 2009
The BIOS is not storage, like a HD. It's the Basic Input/Output System.

It runs before any specific operating system.
0 Votes
+ -
No OS is secure
fcs@... Updated - 24th Mar 2009
The BIOS is firmware - executable machine level code that executes directly on the processor BEFORE and BELOW the OS.

Keylogging, drive corruption, possibly even network access and propogation to other systems could all be achieved with this technique regardless of what OS is running on the machine. No OS is immune, and it may be extremely difficult it's activities from the OS using anti-virus SW though it may be possible to scan for known signatures. It is obviously accessible from the OS level since you can boot a machine and load a new BIOS in the firmware, and many of these applications archive the old firmware.
It is actually BIOS that searces for and starts the OS.
As for executing the flashing:
Many mainboards have a flashing utility embedded that enables you to flash BIOS without any OS running.
You DO get a warning though saying something like " if you flash BIOS with a corrupt file, your computer may become PERMANENTLY damaged !"
0 Votes
+ -
What are you talking about?
msalzberg Updated - 23rd Mar 2009
The BIOS is not part of the Operating System. "Windoze," as you so
cleverly put it, was not 'infected.'

What did you think he meant by this statement: "We're not using a
vulnerability in any way?"


0 Votes
+ -
LOL.
Hallowed are the Ori 23rd Mar 2009
Nice. I love it when a fool has his a$$ handed to him.
0 Votes
+ -
Earth To, oh just forget it.
Erroneous 23rd Mar 2009
What does this have to do with the operating system being used? This is loaded from a chip independent of the operating system. Grow up.
0 Votes
+ -
There's a few possibilities here...
betelgeuse68 23rd Mar 2009
1) You're a troll that revels in delight by stirring things up
2) You're an idiot
3) You're a bit of each
4) You're completely unaware of #2
5) You're not #2 but completely aware of #1

Regardless, none of these reflect well off of you.

Cheers,
-M
0 Votes
+ -
badly informed on this particular subject.
There is actually LOTS of people with pretty good brains that just lacks that specific piece of information that gives them a fair chance to understand how it all hangs together.
0 Votes
+ -
Wrong again...
duomenox 23rd Mar 2009
Linux has the capability to modify the BIOS of the running machine. All that would have to occur is for the code to be compiled to run in a *NIX enviroment.

They needs root access, but how many people are that careful when they su? The reality of the matter is that many people will su, then run something from either their user folder, or something they downloaded to install. At that point, this attack could succeed.
0 Votes
+ -
DOH!
SummermoonUK 24th Mar 2009
Since when does the BIOS differentiate between Linux and Windows!. Does not matter what you have on your PC if the BIOS is infected then basically your up the creek going down the falls!

But why worry about a BIOS infection when Windows and associated badly written drivers messes up more than any virus ever could.

BSOD = 45,000,000,000

Virus infections 32,000,000
0 Votes
+ -
rid of it is to:
A. Use a stand alone flashing unit.
B. Get a new chip from the motherboard vendor.
0 Votes
+ -
BIOS run its start up routines before any OS is running.
To do the flashing normally requires physical access and full permissions. Permissions are only controlled by BIOS (or possibly electronic enable/disable with a jumper) before any OS is started.
@Linux Geek
Uhhh. . . go back and re-read the article. . . The malware gets into the BIOS. The BIOS loads before any operating system. Doean't matter if it is linux, winders, MAC or whatever. The BIOS could simply load code that phones home whenever the computer is turned on, regardless of whether or not it ever loaded an operating system and give a cracker console-level access before the actual user ever even sees an OS load. Sorry my friend, linux in this case is just as vulnerable. However, due to the more secure nature of linux over winders, it would be harder to do unless you are sloppy with your linux systems. Could be done from a flash or Java object in a web page, while you are logged in running the computer as root, which is basically a no-no anyway, but a lot of lazy people do this. Linux immume to this? I think not. Others may have other ideas.DS
0 Votes
+ -
Does that offer protection?
0 Votes
+ -
Imagine - having a dual-BIOS infection. OUCH!
Custard_over_2x_Pie 23rd Mar 2009
nt
0 Votes
+ -
Good question...
duomenox 23rd Mar 2009
That is a good question.
The only reason a company would put this protection on their BIOS is if they thought a virus could do exactly what these guys are claiming to do...

So that begs the question, why would the BIOS manufactures incoporate a write-protect, and virus-protect mode if it was not needed?

Also, would these features really protect against a more sophisticated threat.
on the motherboard to be able to flash BIOS.
That (old) system is safe against theese attacks, as the electronic ability to flash BIOS depends on the jumper to be in "flash position". After flashing you DO put the jumper back to "disable BIOS upgrade".
0 Votes
+ -
After all, if the hypervisor is not 'in use', there would be no tell-tale signs, from a hypervisor that was being used, of anything strange going on.

As I've pointed out last week, BIOS should be dropped in favour of EFI.

Just my 2 cents.
0 Votes
+ -
No, it shouldn't be dropped
Lerianis 23rd Mar 2009
Because you would need physical access to the computer in question here. Root level access would not work, and there are SO many flavors of BIOS for so many motherboards.... this attack isn't really feasible.

More likely, you would reboot..... dead computer. Not infected BIOS.

And uh.... EFI? Just as vulnerable to this! If it's UPDATEABLE (which EFI is!), it's vulnerable to this.
0 Votes
+ -
Don't forget, the traditional 64 bytes for user binaries still exist in most BIOS's out there. That is most likely what the attackers are using for this matter. The only difference could be that they are making code that installs and runs iteself in memory, therefore it can detect any cleansing attempts and re-infect.

The real way to inncoulate yourself from this is to install a benign version of this type of attack that it's sole purpose is to stop another hack from doing the same thing. And that could even be compromised if someone felt up to the task.
0 Votes
+ -
They should remove the BIOS and the OS from computers entirely. They should go back to a system using only string and levers. That should solve the security problem. I just ripped the ROM off my motherboard and replaced it with rubber bands.
0 Votes
+ -
Be careful:
msalzberg 23rd Mar 2009
The heat inside the computer will degrade the rubber bands. Replace
them often.
0 Votes
+ -
I second that
tikigawd 23rd Mar 2009
Get some of those wide rubber bands too. They should last longer
0 Votes
+ -
I third that
bluescreen_z 28th Mar 2009
Cover them with cat pooh, and point a case fan at it: you'll forget about the BIOS infection.
If ZDnet was the "Data Enquirer" the above would have made a better shock headline.

Ug. This is like discovering that you don't need a master key to open most locks cause the left an openning in the back of the lock!
And if this shows up in the WILD you can thank these two! I only wish that parents would have raised these children with the mantra "Just because a thing can be done does not mean a thing should be done."
0 Votes
+ -
It's called research.
duomenox 23rd Mar 2009
They've only stated that they have proof of concept, they have not released anything about it. If they are the first ones to do it, I am happy it was the good guys that found this first.

The bad guys are usually one step ahead of the good guys. If we can get a leg up on the bad guys then we should be happy about it.

Better to find out about this now instead of after 1000s have already been infected.
0 Votes
+ -
This IS Scary!!!!!
chaz15 23rd Mar 2009
Would need new motherboard, new hard drives and presumably trash existing flash drives.

Can ONLY hope there's ways to circumvent this sort of attack!!!!

Suppose it was only a matter of time....
OK, I'm done.
0 Votes
+ -
Or backplane firmware
seanferd 24th Mar 2009
http://techrepublic.com.com/5208-12846-0.html?forumID=102&threadID=304663&messageID=3039486

"Victory!
It was hiding in the backplane firmware. Sheesh."
0 Votes
+ -
Well done! Thank you very much for professional templates and community edition
seslisohbet seslichat

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix