Slashdot Mirror


Rootkit In a Network Card Demonstrated

KindMind notes coverage in The Register on a researcher who has developed a firmware-based rootkit that resides in a network card. Here is the developer's blog entry. "Guillaume Delugré, a reverse engineer at French security firm Sogeti ESEC, was able to develop proof-of-concept code after studying the firmware from Broadcom Ethernet NetExtreme PCI Ethernet cards... Using the knowledge gained from this process, Delugré was able to develop custom firmware code and flash the device so that his proof-of-concept code ran on the CPU of the network card."

112 comments

  1. Cool by jaygatsby27 · · Score: 1

    Nicely done.

  2. Dammit by Anonymous Coward · · Score: 0

    That's what I've got in my servers. Now if they're ever rooted I'll have to get entirely new network cards when I reformat and reinstall everything else.

  3. First Post by Wannabe+Code+Monkey · · Score: 2, Funny

    At least it would have been a first post had the rootkit in my network card not delayed my packets.

    --
    We always knew Comcast was corrupt, here's the proof: http://tech.slashdot.org/comments.pl?sid=1909890&cid=34545432
    1. Re:First Post by minvaren · · Score: 1

      Ah, there's your problem. You needed one of these Killer NICs http://www.bigfootnetworks.com/killer-xeno-pro/ to offset the lag of the rootkit.

      --
      Big! Strong! Wow! Tada-O!
    2. Re:First Post by Noughmad · · Score: 1

      Unfortunately, they seem to be incompatible with my file system. Do you know any other FS that might work with that?

      --
      PlusFive Slashdot reader for Android. Can post comments.
    3. Re:First Post by shnull · · Score: 0

      did it say 'opens the possibility of?' i'm as excited as all the nights i lay awake waiting for that mass extinction comet to happen ... did anything happen cos it lost me after that

      --
      beware he who denies you access to information for in his mind, he already deems himself to be your master (SMAC-ish)
  4. Need hardware IOMMU by mysidia · · Score: 5, Interesting

    An attacker would then be able to communicate remotely with the rootkit in the network card and get access to the underlying operating system thanks to DMA."

    Not if the CPU had IOMMU hardware that was configured to only allow the network card to write to the proper memory area.

    However, this still would not protect against the network card forging data, manipulating packets before passing them to the OS, for example manipulating packets to be malformed so to exploit an OS security vulnerability, emitting packets the OS did not generate (such as ICMP pings, or other packets for a hardware-based DDoS emitted without assistance from host OS.. or connecting to a P2P network of compromised NICs to form a spam-sending botnet, without host involvement.

    The possibility also exists of capturing packets crossing the NIC and forwarding samples to an outside address, or manipulating aspects of packets to create an "open proxy" the host does not know about, enabling IP spoofing, cache poisoning, or opening other vulnerabilities that don't require manipulation of the host itself.

    1. Re:Need hardware IOMMU by satuon · · Score: 2, Interesting

      Yes, but wouldn't the network card's limited hardware be a problem? I mean if you want to make a spam bot / P2P, etc., the code+data will have to fit in whatever RAM or EEPROM capacity the network card has.

    2. Re:Need hardware IOMMU by mysidia · · Score: 4, Insightful

      the code+data will have to fit in whatever RAM or EEPROM capacity the network card has.

      Or a downloader/backdoor will have to fit on the card to allow a remote load of any code that can't be stored on the PROM.

      It could be a simple stub, executing exactly instructions carried in magic data packets. Downloaders can pull more code than is stored by using sources found outside the NIC, such as sources on the internet.

      the hacked firmware could remove standard features like Wake on Lan, and use that space to implement features the malware author wants, like "Flood on LAN".

      Most NICs nowadays support things like PXE boot. Either that part of the option ROM could be completely hijacked, OR in fact the PXE boot function could be used as a way of booting the system to a 'boot sector infection' routine next boot after the NIC is infested.

      Think about it... Phase 1, your NIC gets infected, Phase 2, next boot a vulnerability will be opened in your system, thanks to the ability of every PCI card to include an option ROM in the BIOS, or code will run to use blue pill against your OS and introduce malicious code, the hypervisor above your OS downloads code from the attacker.

      Depending on the payload downloaded, the malware could be anything from a keylogger to a spam node

    3. Re:Need hardware IOMMU by hAckz0r · · Score: 1

      That is what the Intel VT-d extension is for, and qubes-os.org is building a secure Hypervisor to operate it from a higher privilege than the normal root privilege, so the DMA can not break out via the normal driver level hacks.

    4. Re:Need hardware IOMMU by MBCook · · Score: 1

      Quite true. But I would be willing to bet that most NICs don't have a very big program in EEPROM, but have at least 8 to 32 megabits of the stuff. After all, flash prices have dropped a ton and it's probably a better idea when building something to go with the 1.0078 cent flash rom that gives you lots of space you probably don't need than the 1.0072 cent one that gives you a constraint and may be hard to source next year due to it's small size.

      I'd be willing to bet that for this reason, most NICs have lots of extra space. Even 256k can hold a LOT of special purpose code.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    5. Re:Need hardware IOMMU by sjames · · Score: 1

      Or perhaps creatively re-routing packets into a GRE tunnel so they can all be watched remotely.

    6. Re:Need hardware IOMMU by sjames · · Score: 1

      If necessary, the spammers could just have the card do NAT so you get blamed for the spam.

    7. Re:Need hardware IOMMU by mysidia · · Score: 1

      If necessary, the spammers could just have the card do NAT so you get blamed for the spam.

      Interestingly.. they wouldn't even have to do that much. Just provide the spammer a 'magic packet' to tell the NIC to start replacing and forwarding either all packets, or packets destined to certain ports to the spammer's destination IP.

      Dumb rewriting is fine as long as the spammer gets the packet otherwise unchanged, as the spammer can implement all the 'NAT logic' in their own software.

      In fact, since nobody really practices BCP38, the compromised NIC doesn't even need to send the spam packets, the spammer can take care of that by sending the spam packets themselves and applying the compromised host's IP address as the source IP on the packets -- all the spammer needs is the return traffic.

      And the only reason the spammer needs the return traffic, is you can't in general use someone else's source IP address to successfully establish TCP connections without it.

    8. Re:Need hardware IOMMU by Anonymous Coward · · Score: 0

      An attacker would then be able to communicate remotely with the rootkit in the network card and get access to the underlying operating system thanks to DMA."

      However, this still would not protect against the network card forging data, manipulating packets before passing them to the OS,

      But wouldn't he first have to sneak into your home and flash your NIC firmware, then sneak out again, and start the electronic attack?

    9. Re:Need hardware IOMMU by drinkypoo · · Score: 1

      the code+data will have to fit in whatever RAM or EEPROM capacity the network card has.

      Or a downloader/backdoor will have to fit on the card to allow a remote load of any code that can't be stored on the PROM.

      This solution is defeated by a proper IOMMU.

      the hacked firmware could remove standard features like Wake on Lan, and use that space to implement features the malware author wants, like "Flood on LAN".

      Yes, that's space in the adapter ROM which you're reusing as was suggested previously.

      Most NICs nowadays support things like PXE boot. Either that part of the option ROM could be completely hijacked, OR in fact the PXE boot function could be used as a way of booting the system to a 'boot sector infection' routine next boot after the NIC is infested.

      Anything with user-upgradeable firmware and enough hardware to insert itself into the boot sequence is a potential threat.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    10. Re:Need hardware IOMMU by sveinungkv · · Score: 1

      But wouldn't he first have to sneak into your home and flash your NIC firmware, then sneak out again, and start the electronic attack?

      There are plenty of people with access to your network card before it reaches you. People at the factory, those doing transportation, people working in customs, people near all the places the card is stored before it reaches you, etc. You may also take the card to repair once you got it. And if your computer already is compromised the malware can flash itself to the network card so it will survive a reinstall of the operating system and boot loader.

      --
      Spelling/grammar nazis welcome (English is not my first language and I am trying to improve my spelling/grammar)
    11. Re:Need hardware IOMMU by mysidia · · Score: 1

      Or a downloader/backdoor will have to fit on the card to allow a remote load of any code that can't be stored on the PROM.

      This solution is defeated by a proper IOMMU.

      My assumption is the 'remote loaded code' would be loaded into NIC RAM managed by the NIC firmware, not host memory managed by the CPU and IOMMU hardware

      Many NICs have some memory space for transmit and receive buffers, and multiple I/O queues, no doubt some of that would be unused and could be repurposed by a hacked firmware, without the host's knowledge or involvement

    12. Re:Need hardware IOMMU by Anonymous Coward · · Score: 0

      I actually can verify this, having a SIL based SATA RAID card. The official update prom images for it (both for raid as well as normal SATA operation) were only like 64kb but the actual flash chip onboard it was 128k or above. It happened to have a soldered down PLCC32 chip, but it wouldn't take a lot of work to socket it, and I'd read that it actually supports higher capacity chips.

  5. how do you hide it? by alen · · Score: 1

    say you're a front for the chinese military making these things. you install the rootkit. broadcom or whoever will do an audit of retail boxes to make sure the cards are being produced to spec. how do you hide what you did?

    1. Re:how do you hide it? by Securityemo · · Score: 1

      They can't possibly audit all the cards.

      --
      Emotions! In your brain!
    2. Re:how do you hide it? by Monkeedude1212 · · Score: 1

      How will they successfully audit them?

    3. Re:how do you hide it? by Anonymous Coward · · Score: 0

      You put it in an OEM machine or coerce Lenovo or Acer to offer that driver on their updates site.

    4. Re:how do you hide it? by alen · · Score: 1

      but then how do you control who gets the virus laptops? with lenovo and acer they also have huge US workforces that can catch on.

      and with all the security appliances that everyone runs these days it's going to be hard to hide the malicious network traffic

    5. Re:how do you hide it? by h4rr4r · · Score: 2, Informative

      By doing what they do now, pull one out of every X and take a look at it.

    6. Re:how do you hide it? by _bug_ · · Score: 2, Insightful

      You're assuming the NIC manufacturer is conducting audits in the first place. If they are, there's probably single person who maintains a list of good hash values for the firmware. Bribe that person and the audits won't matter.

      The easier solution is to simply buy the cards from the OEM, flash them with a malicious firmware, then resell those cards at discount prices. Are NIC manufacturers purchasing off-the-shelf goods and conducting audits on those? Probably not.

      And even then, you could always create a worm that detects your NIC and flashes the firmware then removes itself. You've been rooted and there's no trace at the OS level of it and even if the NIC manufacturer is auditing their products off-the-shelf they're not auditing the one in your computer.

    7. Re:how do you hide it? by alen · · Score: 1

      the companies that make these will have reference boards, software and debugging tools

      buy the retail boxes via CDW
      install in test server or workstation
      run your in house tools to verify that the code on the card is the same as your in house code you developed

      and most of these cards are sold via dell and HP which write their own custom firmware as well just like they do for all the other add on boards.

    8. Re:how do you hide it? by alen · · Score: 1

      but it will be done randomly so to get value from your virus you have to know who to sell the virus cards to. and since the chinese don't control the serial numbers you somehow have to produce and sneak them into the market with the right numbers

    9. Re:how do you hide it? by mysidia · · Score: 5, Insightful

      say you're a front for the chinese military making these things. you install the rootkit. broadcom or whoever will do an audit of retail boxes to make sure the cards are being produced to spec. how do you hide what you did?

      One way is to operate completely within spec. The 'retail box audit' normally includes hardware components, not the actual firmware, so an audit is not likely to detect. It is not like they're going to audit NICs with a $100,000 logic analyzer, and spend thousands of skilled man hours verifying every bit on the programmable chip service matches their master. Hacked firmware can be designed to lie about its own contents when inquired, and these things can be designed to lie dormat for months on average.

      The hacked firmware might open a backdoor only periodically, not every time. Each box will probably be audited once, not 50 times. When an end user gets the thing, they will eventually trigger the malicious code, because they'll use their machine for a long time.

      Isolating the NIC as a cause would be extremely difficult, if the malicious code is sensitive to network activity, and specific kinds of network activity, for example keywords.

      Perhaps the hack is configured only to activate if the computer sends something to an IP address in certain ranges, or containing a certain keyword. There are innumerable criteria that auditing won't detect

    10. Re:how do you hide it? by mlts · · Score: 1

      Don't have to turn it on for all cards, just like one of the prime vectors for malware are ad infected ad rotators where the ads just show to a small percentage -- just one in every several thousand cards with a bongoed ROM can bring in a superb ROI for blackhats.

    11. Re:how do you hide it? by mysidia · · Score: 1

      run your in house tools to verify that the code on the card is the same as your in house code you developed

      And a properly hacked card outputs to the in-house tool the exact code it's supposed to, because the hack contains a bit of code to remove all the patches and return itself to pristine state, when a debug connection is detected

    12. Re:how do you hide it? by sexconker · · Score: 0

      run your in house tools to verify that the code on the card is the same as your in house code you developed

      And a properly hacked card outputs to the in-house tool the exact code it's supposed to,
      because the hack contains a bit of code to remove all the patches and return itself to pristine state, when a debug connection is detected

      Any in-house tool worth running will do physical reads and tests, as well.

    13. Re:how do you hide it? by maxwell+demon · · Score: 1

      Another attack level could be if you already rooted an OS, and want to protect your root kit against reinstall. Someone already mentioned PXE boot, as well as option ROM. In short, as soon as the PC gets rebooted (which is required for a wipe/reinstall), you get complete control.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    14. Re:how do you hide it? by mysidia · · Score: 1

      and with all the security appliances that everyone runs these days it's going to be hard to hide the malicious network traffic

      Security appliances need NICs too

      Perhaps version 1 of the 'hack' is to obscure traffic that would be emitted by version 2

    15. Re:how do you hide it? by Anonymous Coward · · Score: 0

      How about using checksums to verify the PROM code?
      1. When you provide the firmware to the chinese outfit, you compute the checksum and keep it safe with you
      2. when you get the lot of h/w from the chinese outfit, you run a simple cksum of the card's PROM addr space
      3. verify it against the ones you have calculated previously and kept safe.

      Isn't that what's used to verify ISO downloads already?
      The only criterion would be selecting cksum algo having big enough space - like, sha1, sha256, sha512 or even bigger space.

      I believe this can be automated without much efforts?

      I have no idea if this is already implemented (should be) or not.
      Curious to know if anybody can confirm.

      Tx.

  6. Scary by Quato · · Score: 1

    That's pretty frightening. I would think this would be a pain in the ass to discover, and you'd end up replacing motherboards on servers/workstations trying to figure out why they kept crashing. I mean, who would flash their network card as a troubleshooting step?

    1. Re:Scary by jimicus · · Score: 4, Funny

      That's pretty frightening. I would think this would be a pain in the ass to discover, and you'd end up replacing motherboards on servers/workstations trying to figure out why they kept crashing. I mean, who would flash their network card as a troubleshooting step?

      I see you've never contacted Dell technical support.

    2. Re:Scary by alen · · Score: 1

      or HP for that matter

      last week they almost made me upgrade to the latest RAID controller firmware to replace a few drives showing predictive failure. i was one version behind and this new firmware was a week old. but generally if you're a few months behind they will make you upgrade.

      and i've seen a lot of mysterious reboots and other problems thought to be MS's fault fixed by HP firmware/driver upgrades

    3. Re:Scary by Anonymous Coward · · Score: 0

      ROTFLMAO

    4. Re:Scary by Anonymous Coward · · Score: 0

      HP does that. I got sick of it and went with service express for all our maintenance. fantastic company.

    5. Re:Scary by amorsen · · Score: 1

      HP's firmware writers are really crap. At least they DO fix issues eventually, even if they "only" affect Linux.

      The only upside is that all the other vendors seem to be at least as bad, in some cases significantly worse.

      --
      Finally! A year of moderation! Ready for 2019?
    6. Re:Scary by Monkeedude1212 · · Score: 2, Interesting

      Modded funny but should be informative.

      No seriously - Dell Technical support will walk you through the most bizarre troubleshooting tips - and on the odd time it works.

      One time we had a desktop that was bluescreening right after post - and would bluescreen if we tried to re-install Windows. It would bluescreen if we tried to get into the windows repair console.

      After calling Dell, they simply made me go into the Bios, switch it off AHCI to Serial ATA, reboot, go back into the bios, switch it back to AHCI, reboot, and it worked perfectly again, no reinstall needed, no chkdsk even.

      I remember he explained it very very quickly using a lot of hard drive jargon that I'm not familiar with - and I was so flabbergasted that it just went completely over my head anyways.

    7. Re:Scary by Anonymous Coward · · Score: 0

      I see you've never contacted Dell technical support.

      ... Coffee... Nose... Keyboard...

      Thanks for the laugh, try not to hit me right after a sip of coffee next time.

    8. Re:Scary by mysidia · · Score: 1

      and i've seen a lot of mysterious reboots and other problems thought to be MS's fault fixed by HP firmware/driver upgrades

      The real question is... if you didn't upgrade it, would the problem still have gone away?

      How many firmware fixes are genuine hardware issues VS workarounds for buggy Microsoft drivers? :)

    9. Re:Scary by DigiShaman · · Score: 2, Informative

      Windows 7 will require the last know controller mode in BIOS that it was installed under. For example, if you switch it to AHCI or SATA from whatever mode it was installed under will cause a BSOD. That's because the service isn't flagged to be started.

      You can change this post install via registry setting. Here's the KB on how to do that. http://support.microsoft.com/kb/922976

      FYI I ran into this before when a Dell tech replaced the motherboard for a laptop. He had no idea what was going on and left the building saying it was a "software" error and to call back. Well, he was right. Be he should have documented the BIOS settings and re-applied them to the replacement board, or at least contacted internal support for further help on behalf of the client.

      --
      Life is not for the lazy.
    10. Re:Scary by Hatta · · Score: 1

      Why would they crash it? Much better to sit and eavesdrop quietly.

      --
      Give me Classic Slashdot or give me death!
    11. Re:Scary by GaryOlson · · Score: 1

      I see you've never contacted Dell technical support.

      No, but by calling the Dell number I have contacted a collection of semi-autonomous, partially intelligent voice response systems with limited input parameters and limited output responses.

      --
      Every mans' island needs an ocean; choose your ocean carefully.
    12. Re:Scary by Anonymous Coward · · Score: 0

      the latest barrage of hp firmware is kind of important if you give a shit about your data or performance and run a P-series card and in raid 0, 1+0 or 0+1.

      see the now numerous critical firmware updates they have posted this quarter.

      more reasons to say, fuck off and die HP

  7. Do these guys have any driver experience at all? by BadAnalogyGuy · · Score: 1

    I read these security reports and have to wonder how much, if any, driver experience these security specialists have.

    When we talk about patents, we like to drone on and on about prior art and how obvious something is to someone skilled in the art. But these security reports about flashing the EEPROM and running code on the NIC CPU and using DMA to corrupt the OS are all things that are done daily by embedded systems and driver developers.

  8. It's a FEATURE! by Anonymous Coward · · Score: 0

    ...that comes pre-installed on Chinese made NICs.

  9. I wonder about the next gen of attacks... by mlts · · Score: 4, Interesting

    I'm sure people are familar with LoJack for Laptops, where either due to a hook in BIOS (Dells and HPs have an option that will reinstall the LoJack software even if the BIOS is reflashed and all disks are zapped) or other means it gets loaded.

    I can see this happening with malware, especially on a NIC with DMA access. Even if a machine is completely DBAN-ed, the botnet client will silently reinstall itself. As more devices (keyboards and such) have ROMs that can be flashed, we will see more and more devices have this avenue for compromise.

    How to fix? The obvious fix would be signing the flash BIOS, but this completely locks out homebrewers wanting to do something different. Another fix would be having the flash process be offline, such as only though a USB port with a usb flash drive. However, NICs won't have USB ports present. Still another possible avenue would be a slot for a MicroSD card, but that adds complexity to the device. So, this isn't something easy to deal with. The only thing that might come close would be a DIP switch toggle to allow for unsigned images to be flashed (which is shipped off), and all updates signed.

    1. Re:I wonder about the next gen of attacks... by cachimaster · · Score: 4, Informative

      I'm sure people are familar with LoJack for Laptops, where either due to a hook in BIOS (Dells and HPs have an option that will reinstall the LoJack software even if the BIOS is reflashed and all disks are zapped) or other means it gets loaded.

      It's not a hook, LoJack comes with every BIOS. That's why it survives reflashing, you don't have the option of a BIOS without it. I co-wrote some article about this not long ago.

      How to fix? The obvious fix would be signing the flash BIOS, but this completely locks out homebrewers wanting to do something different. Another fix would be having the flash process be offline, such as only though a USB port with a usb flash drive. However, NICs won't have USB ports present. Still another possible avenue would be a slot for a MicroSD card, but that adds complexity to the device. So, this isn't something easy to deal with. The only thing that might come close would be a DIP switch toggle to allow for unsigned images to be flashed (which is shipped off), and all updates signed.

      None of this would work. Maybe it will make it more difficult, but can't protect you against a logical flaw in the firmware that allows you to execute code. Firmware is like any other software, what happens if you sign code that executes any code? then all code is automatically "signed".

      The solution IMHO is complex, expensive and involves signing+software protections in the NIC and in the OS (I.E. iommu, etc.) and WILL fail with a sufficiently resourceful attacker.

      BTW, awesome work.

    2. Re:I wonder about the next gen of attacks... by fuzzyfuzzyfungus · · Score: 1

      One might also go the avenue of adding a system-wide mechanism, designed from the ground up for maximum simplicity(so it doesn't itself need potentially malicious patching), for reading and writing all persistent memory in a system using an external piece of hardware in a special non-operating debug type mode(jtag-esque; but designed for lower complexity and this single purpose).

      Some vendors would, no doubt, cry about the security of their precious binary blobs; but the customer, and security must ultimately come first. If there were such a mechanism, for reading back all the various 'hidden' memory spaces within a system, you wouldn't need to choose between the "security and control" of signed-only firmware or the "freedom and potential risk" of allowing unsigned firmware. The vendor could publish their recommended firmware, and its hash, and anybody who wished to verify their system could do so, and anybody who wished to run their own could calculate their own hash and do likewise.

    3. Re:I wonder about the next gen of attacks... by mlts · · Score: 1

      Perhaps even just having a standard connector and method for accessing the JTAG ports might be the way to go. Plug a connector in, check on a second device if the code stored matches what it should be. If not, copy over a version that does. This could be automated so the NIC maker can make a security tool with a green/yellow/red light about the size of a 1/8 to 1/4" audio jack adapter that plugs into cards, reads a green light if the ROM matches a known good one, red if it doesn't, and yellow to tell the user the device is reflashing the NIC to a known good BIOS load.

    4. Re:I wonder about the next gen of attacks... by fuzzyfuzzyfungus · · Score: 1

      My concern would be that any verification interface that doesn't have raw, independent, access to the persistent storage(doesn't have to be fast, I2C would cut it for all but the biggest blobs, does have to be independent) could theoretically be subverted by a malicious firmware.

      In effect, unless you can take the system offline and scan the raw memory, you are really just asking the (potentially compromised) firmware running on the embedded CPU "Dear sir, are you compromised?" to which the answer will, inevitably be "No, obviously not, here is the checksum of either the firmware that I am, or the firmware I maliciously replaced. Nothing to worry about."

      It's analogous to the challenge of A/V software on a potentially rootkitted system. You can ferret out a lot of the sloppier stuff by asking clever questions, which make it very hard for a rootkit to hid all its traces; but you are very much at a disadvantage. If you take the disk offline, though, and just hash all the files, comparing against known good hashes, nothing can hide, no matter how subtle.

    5. Re:I wonder about the next gen of attacks... by mlts · · Score: 1

      Perhaps a separate, burned ROM (that can't be tampered with) that boots if a button is pressed? This ROM would scan the other BIOS storage and do exactly as you say -- compare everything to known hashes, and if there is an issue, zero out the BIOS and slap a "1.0" image that originally shipped with it, or perhaps have another mechanism for writing a BIOS to the storage. This is similar to booting a Linux machine from a Knoppix CD, running a hash of all files, then permissions and comparing the two to a known good reading.

    6. Re:I wonder about the next gen of attacks... by mysidia · · Score: 1

      The only thing that might come close would be a DIP switch toggle to allow for unsigned images to be flashed (which is shipped off), and all updates signed.

      How about a special cable?

      Have say a USB port with an extra 'notch' at the bottom.

      When a special proprietary flash drive is plugged in that has an extra plastic notch attached to the bottom, the 'button' will be pushed and held down while it is plugged in, enabling a "hardware maintenance" signal line.

      When the system is rebooted with the 'maintenance' button pushed down, the BIOS boots in maintenance mode, IDE/SATA controllers will be disconnected, USB ports except the maintenance port physical disconnect, the system will zero all RAM and load an image from the flash drive into RAM.

      Once the drive is removed, it will jump to code in RAM containing any firmware upgrades. In maintenance mode, flashing is enabled and SATA controllers are disabled. In non-maintenance mode, flashing is disabled and SATA controllers are enabled.

      And the manufacturer can sell proprietary flash drives to make up for the extra expense.

    7. Re:I wonder about the next gen of attacks... by Anthony+Mouse · · Score: 1

      How to fix? The obvious fix would be signing the flash BIOS, but this completely locks out homebrewers wanting to do something different.

      Why not just have the hardware detect an unsigned BIOS and print a message on every boot that says "Modified firmware detected, press F7 for ten seconds to restore to factory default"? Then you can modify it if you like and you just ignore the message.

    8. Re:I wonder about the next gen of attacks... by DigiShaman · · Score: 1

      Simple, no need to make it complicated.

      When a PC or Server is booted for the first time, force the user to create a password to password protect all firmware. The key here is to create a hierarchy of protection starting with the motherboard down to the peripherals installed on it. This could be vendor proprietary and eventually made into an industry standard. Any software that needs to change or update them will require this password in the future.

      In the event the password is lost, physical presence of the machine will be required to clear settings. Generally done with a jumper or toggle switch.

      --
      Life is not for the lazy.
    9. Re:I wonder about the next gen of attacks... by Gerzel · · Score: 1

      I'd say the simple switch or button located on the device, like you propose, would be the best option. Just add couple steps, "Find paperclip." "Find the little hole you wondered about in the plastic." "Stick paperclip into hole to press tiny button." The device is now flashable for x period and will revert back on its own after x or it is flashed."

      Why is that hard?

    10. Re:I wonder about the next gen of attacks... by jeff4747 · · Score: 1

      Not even close to a solution.

      First, passwords are not secure. They were always a kludge that made things 'better', but not secure.

      Second, you are creating your password through the potentially infected system.

      Third, this password would be stored somewhere in the system, since it would have to be checked. Stored data WILL be read by a malicious user.

      Fourth, the password check is performed by software installed on the system that is potentially under attack.

      Here's a good rule for security: If it's not blocked by the laws of physics, it will be used to exploit your system.

      I came out of the closet: I'm a Dittohead!!!

      Oh...that explains it.

    11. Re:I wonder about the next gen of attacks... by DigiShaman · · Score: 1

      BS!

      1st: Passwords are an acceptable form of authentication as long as you provide proper complexity requirements (better that way).

      2nd: What? You can't trust a brand spanking-new PC/Server to be free from rooted firmware? Why buy from vendor X then? Besides, I said that one would be created from the first time it was booted. That means YOU or someone you trust unboxing it first.

      3nd: Passwords, or the information to verify authentication is always stored someplace. Locality isn't all that important. It also provides an option to erase it with physical means. Much in the same way as a router or other networking equipment.

      4th: The point of password protection is to prevent the firmware from being overwritten in the first place.

      Here's a good rule for security: Don't run or admin servers???

      --
      Life is not for the lazy.
    12. Re:I wonder about the next gen of attacks... by jeff4747 · · Score: 1

      1st: Passwords are an acceptable form of authentication as long as you provide proper complexity requirements (better that way).

      Ok, we'll delve back into Security 51 class for you. This is a bit too basic for Security 101.

      Security comes from 3 things:

      • Something you know (username, password, etc)
      • Something you have (atm card, RSA keyfob, etc)
      • Something you are (misc biometrics)

      You must have at least 2 of those components to have actual security. A password alone is not secure. A username and password is not secure, as they are both things you know. However, waaaaay back in the 1960s when remote login first became common, it was not practical to use one of the other methods. So the accepted hack was the username/password. The fact that it's still used widely doesn't mean it's no longer a hack, nor does it mean it's secure.

      2nd: What? You can't trust a brand spanking-new PC/Server to be free from rooted firmware?

      Nope.

      Why buy from vendor X then?

      How do you know you are actually buying from vendor X? Counterfeit parts are not rare and frequently enter 'trusted' supply chains.

      Besides, I said that one would be created from the first time it was booted. That means YOU or someone you trust unboxing it first.

      First, your vendor is going to boot and do burn-in tests on the system. If they do not, they should not be your vendor. Second, you are entering the password into a system with no security until you've entered the password.

      Passwords, or the information to verify authentication is always stored someplace.

      Yes, which is one of the reasons they're not secure. One-way hash is a good idea, but you're assuming functional hash software in a system that, again, has no security at the time you create the password. Not to mention there have been published attacks against hashes and hashing algorithms.

      Locality isn't all that important

      You have to be kidding me. K, I'll store your password on web page. Locality isn't important, right?

      It also provides an option to erase it with physical means

      How, exactly, does this enhance security? This just makes it so that if I get physical access to the box, I can reset it and enter whatever password I'd like. There's a reason you see this feature only on consumer-grade devices. And there's a reason people who understand security are always nice to the janitors.

      The point of password protection is to prevent the firmware from being overwritten in the first place.

      Yes, and there are published software-based attacks used to break passwords via flaws in password-checking algorithms. Note the key part there...software. I don't need to replace the firmware to attack your password. These algorithms also get extremely effective when they're on the target machine instead of operating over a network.

      You might not understand how to defeat your solution. But there's 7 billion other people on this planet, and many of them are better at this than you are.

    13. Re:I wonder about the next gen of attacks... by DigiShaman · · Score: 1

      IMHO, I think you're over analyzing this way to much. At some point, you have to find your link in a chain of trust. How and where I leave up to you and the company you may or may not represent. At that level, it's really a risk assessment.

      As for vendors, I trust Dell, HP, and IBM. At least the major brands would be HIPAA and PCI complaint. Also, some people run entire server farms using thousands of 1U servers from them. Each having a NIC or two.

      This just makes it so that if I get physical access to the box, I can reset it and enter whatever password I'd like. There's a reason you see this feature only on consumer-grade devices. And there's a reason people who understand security are always nice to the janitors.

      SonicWALL is not a consumer grade device. Yet vendors like them all authenticate locally with a password. And I know for a fact SonicWALL specifically will allow for resetting the password. But you will be forced to wipe out the configuration in the process. You would have to be a damn good social engineer to walk a janitor through reprogramming one over the phone. Hats off to you if you can pull that off. Sheesh.

      --
      Life is not for the lazy.
    14. Re:I wonder about the next gen of attacks... by atisss · · Score: 1

      Doesn't anyone remembers that BIOSes in 90s used to have "Virus warning" which activated when you tried to flash BIOS.

  10. Old News by chrisG23 · · Score: 2, Informative

    But still completely and utterly fascinating and relevant, especially since no one seemed to pay to much attention back at CANSECWEST (yet another computer security/tool/hacker/exploit research convention) this year in March when the same group shared their research and did a live demonstration of getting root (or system level, I forget if they hacked a windows or linux box) over the network by taking over the NIC, and not doing anything at all through the host OS.

    See their writeup here www.ssi.gouv.fr/IMG/pdf/csw-trustnetworkcard.pdf or go to their company's website http://www.ssi.gouv.fr/site_article185.html

    1. Re:Old News by Securityemo · · Score: 1

      I think it's utterly fascinating how blind we are about computer security unless we take matters into our own hands and look. It's like being in a series of twisty little passages, all alike. And some people are groping the walls instead of each other.

      --
      Emotions! In your brain!
    2. Re:Old News by chrisG23 · · Score: 1

      I take it back, this is new but related stuff. The old stuff was a hack to gain control of a NIC and then the host computer over the network (only affected 1 model of NIC that they knew of). There new stuff is firmware that would require them to first have root level access on the target system so that they could flash the attached network card. The upside to this is that they could remove all tools on the system itself and traces that they had been there, and be very very stealthy.

    3. Re:Old News by fuzzyfuzzyfungus · · Score: 2, Insightful

      I imagine that the bigger risk would be contamination of the supply chain. Having a box rooted and NIC flashed(especially if said NIC(s) are embedded on a motherboard and the malicious flash includes a mechanism for silently eating all reflashes while reporting success...) is a downer; but learning that 45% of counterfeit Cisco gear, and 20% of the real used stuff, is also loaded with firmware level malice would be a real downer...

    4. Re:Old News by BronsCon · · Score: 1

      So they use the NIC exploit to gain access to the system, then flash the NIC and remove the tools. Seems pretty related, to me; and I'm certain we'll see it happen in the next year.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    5. Re:Old News by Anonymous Coward · · Score: 0

      FYI, the company in question is the french governement (.gouv.fr is the equivalent of .gov for the U.S.)

  11. This is going to get worse when BIOS is gone by Anonymous Coward · · Score: 0

    When scripts can move into the mainboard firmware, all hell will break loose. All persistent memory should have write-protect switches.

    1. Re:This is going to get worse when BIOS is gone by fuzzyfuzzyfungus · · Score: 1

      *Intel spokesweasel, in a plaintive tone*: "We intended EFI to stand for Extensible Firmware Interface; but we didn't mean that extensible. Leave EFI alone!"

  12. Keyboards next by Anonymous Coward · · Score: 0

    Bring on the rootkit Mice with the plague virus

  13. Re:Do these guys have any driver experience at all by Securityemo · · Score: 1

    Then why hasn't someone gotten to it and embedded a firmware rootkit like this before? "Talk is cheap; show me the code" ...

    --
    Emotions! In your brain!
  14. Cragslist pva by pvamarket · · Score: 1

    THis is really good. I'm not sure people are familar with LoJack .

  15. Re:Do these guys have any driver experience at all by BadAnalogyGuy · · Score: 1

    Mainly because the security experts, for the most part, don't know what they are doing and spend most of their time reinventing bugs that developers have already grappled with and overcome.

    It's a lot like how a lot of teachers have a Masters in Education but not in anything specific to the courses they teach. Basically, all they have is a bunch of random ideas without any expertise to show them the right way.

  16. Nothing new, though by Gaygirlie · · Score: 2, Interesting

    Firmware based rootkits aren't anything new, there has been lots of them already before. Like for example, last year there was several demonstrations of someone writing firmware rootkit for certain Apple-branded keyboards; there simply was enough space in the ROM for a complete keylogger and a bit of heuristics there and several kilobytes of space where to store the log. And network card base rootkits? I remember having read about them and seeing a demonstration already 5-6 years ago.

    The thing is, as long as the user has actual physical access to the computer in question he or she can do lots of different kinds of small modifications, and for example the keyboard rootkit is easiest to do, doesn't require admin rights, and is undetectable unless you verify the actual firmware.

  17. Sensationalized by tom229 · · Score: 3, Informative

    "However, the attack presented only applies to a specific network card model (Broadcom NetXtreme) whenever a remote administration functionality (called ASF for Alert Standard Format 2.0) is turned on (it is off by default) and configured. According to vendors, this functionality is far from being widely used. As a consequence, this vulnerability is really likely to have a very limited impact in practice."

    Doesnt seem like theres much to worry about.

    --
    If it ain't broke, don't fix it.
    1. Re:Sensationalized by HomelessInLaJolla · · Score: 0

      From phone phreaking to the present day on every piece of hardware ever deployed has been exploited.

      People are such trusting little suckers...

      --
      the NPG electrode was replaced with carbon blac
  18. Re:Do these guys have any driver experience at all by fuzzyfuzzyfungus · · Score: 4, Insightful

    I suspect that they are (reasonably) well aware that somebody, presumably an embedded system/driver dev had to produce the blobs and loaders and other structures they are monkeying with in the first place. However, from their perspective as security guys, the point isn't "Wow, nobody has ever written an embedded device firmware, burned it to a device, and done some stuff with it" it is "Hey, it is possible for a third party of some(but by no means unique) skill and experience to, wholly without the cooperation of the manufacturer, work out everything that is necessary to get an ill documented or undocumented piece of hardware up and running with a new firmware that is both compatible with the original driver and capable of non-malicious operation and also capable of additional malicious functions".

    Anybody who gives the matter a moment's thought, even pure amateurs, must conclude by simple logic that somebody can do it; what the security people are pointing out is that not only can somebody do it, potentially hostile third parties with reasonably available skills and no manufacturer support or collaboration can do it....

  19. Re:Do these guys have any driver experience at all by Gaygirlie · · Score: 1

    Then why hasn't someone gotten to it and embedded a firmware rootkit like this before?

    How do you know someone hasn't done it already? The whole point of rootkits is that they're undetected for as long as possible. And firmware rootkits are most likely employed by people who really know what they're doing and thus it's not likely the rootkits are found.

  20. Re:Do these guys have any driver experience at all by Securityemo · · Score: 1

    That's a flamebait, but unfortunately it's usually true, at least from my limited experience (as a security person you aren't likely to encounter a lot of colleauges unless you work in the business). However, all "real" "security researchers" I've encountered have been programmers as well - and certainly level enough to consult the technical documentation/research backgrounds of whatever they're trying to break. You also have to remember that a lot of stuff is already known since a decade or more, but since new security researchers generally aren't schooled formally...
    It's a fragmented mess, or at least it looks like a mess from outside the industry, even with the security conference loop.

    --
    Emotions! In your brain!
  21. Re:Do these guys have any driver experience at all by Securityemo · · Score: 1

    Our nameless comrades in the clown car industry presents it better than I ever could: http://encyclopediadramatica.com/Security_Faggots

    --
    Emotions! In your brain!
  22. Re:Do these guys have any driver experience at all by BadAnalogyGuy · · Score: 1

    I suspect that they are (reasonably) well aware that somebody, presumably an embedded system/driver dev had to produce the blobs and loaders and other structures they are monkeying with in the first place.

    I don't suspect they know this at all.

  23. Re:Do these guys have any driver experience at all by Securityemo · · Score: 1

    "Talk is cheap; hide it in my car braking system firmware and have it play 'Korobeiniki' as I plunge to my untimely doom."

    --
    Emotions! In your brain!
  24. or infect NICs in the factory by Chirs · · Score: 1

    If they bribed/coopted someone in the factory they could infect a bunch of NICs before they ever got to the end user, and they'd have backdoors all over.

  25. Re:Do these guys have any driver experience at all by Securityemo · · Score: 1

    Most of so called "hackers" are incompetent, barely script kiddies. I consider myself quite incompetent, and I find it unbelievable that they can get a job anywhere. They're the security worlds mirror of the people who can't pass the FizzBuzz test. But then there's people who actually have half a brain. Thing is, for these people, shutting the fuck up on a semi-permanent basis might be a good idea. I'm sure you can imagine a few reasons why.

    --
    Emotions! In your brain!
  26. He Is A Reverse Engineer by mastershake82 · · Score: 2, Interesting

    When did 'reverse engineer' become something you are and not something you do?

    1. Re:He Is A Reverse Engineer by Securityemo · · Score: 1

      When did bricklayer become something you are and something you do? Or arson, for that matter? There's a crime defined in the penal code in the country where I live called approximately "general devastation", if you happen to cause earthquakes, landslides, train accidents or large explosions. Why aren't the ones penalized under it refered to as "devastators?" That's a big linguistic miss in my opinion.

      --
      Emotions! In your brain!
    2. Re:He Is A Reverse Engineer by TeknoHog · · Score: 1

      I can is reenigne?

      --
      Escher was the first MC and Giger invented the HR department.
    3. Re:He Is A Reverse Engineer by Gaygirlie · · Score: 1

      When did bricklayer become something you are and something you do?

      You don't do "bricklayer", you lay bricks, or perhaps you do a layer of bricks. His point was that you aren't "reverse engineer"; "reverse engineer" is a process someone does, but the person doing it isn't even necessarily an engineer at all.

    4. Re:He Is A Reverse Engineer by Securityemo · · Score: 1

      My point was that the instincts of human language has no regards for the finer points of naming. If reverse engineering is a major activity in your life, you're going to get the title reverse engineer.

      --
      Emotions! In your brain!
    5. Re:He Is A Reverse Engineer by Anonymous Coward · · Score: 0

      Around the same time 'engineer' became something you do and not something you are? Or was it the other way around... I cannot remember.

    6. Re:He Is A Reverse Engineer by jd · · Score: 1

      Well, it depends a bit on taste. I imagine some people would do a bricklayer, but so long as they keep that to themselves it doesn't bother me.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    7. Re:He Is A Reverse Engineer by jgrahn · · Score: 1

      My point was that the instincts of human language has no regards for the finer points of naming. If reverse engineering is a major activity in your life, you're going to get the title reverse engineer.

      Doubtful. It sounds kind of ... wrong to me, so I would avoid the term. I might use it now and then in Slashdot summaries etc for humorous effect.

      Perhaps the actual title should be "reenigne".

  27. Cheap Chinese Manufacturing! by erroneus · · Score: 1

    If we haven't been concerned over all of the cheap manufacturing going on in China, I would say this clearly illustrates what can really be done in a hard-to-detect way.

    I have been repeating how "fear beats facts" lately, but there is one thing that beats fear... that would be greed. Not a lot beats greed and that is what is at the core so much. In this case, greed over the low cost of manufacturing in China to save a few bucks and to boost that bottom line.

  28. BIOS boot process is also vulnerable... by tlhIngan · · Score: 2, Interesting

    I recall this article that hypothetically starts by using the BIOS extension ROM function to hook into GRUB and modify it, then the modified GRUB loads and patches the kernel to host a rootkit, then runs that.

    So instead of a smart peripheral with onboard processor and firmware, the dumb ones are affected as well (which only requires the BIOS extension ROM interface).

    Even though BIOS is on its way out (we can't MBR-boot >2TiB drives anymore, so we have to use GPT) and EFI is on its way in, we're still stuck because EFI has similar features. Apple's video cards for Mac Pros have both BIOS extension ROMs and EFI ROMs.

    1. Re:BIOS boot process is also vulnerable... by Anonymous Coward · · Score: 0

      Personally, I'm more worried about this on "appliance" devices such as DSL modems, firewalls, routers, etc. that are on 24/7 and usually don't have much logging or even binary transparency to the user. How likely do you think it would be for someone to discover that the nic in their router had been rootkitted at some point? The worst part is, such an attack could be carried out remotely using default admin passwords and most people probably wouldn't even notice -- even after it had been discovered and publicized.

      --And going after a single network interface in a router would be much easier, as you' could target the most popular routers and be guaranteed a large windfall.

    2. Re:BIOS boot process is also vulnerable... by Hatta · · Score: 1

      People running consumer routers are already very vulnerable for the most part. Reflashing the NIC is too much work. What you need to worry about is if you are doing everything else right, running full disk encryption, with encrypted swap, and a nice long passphrase. Let your computer out of sight for a bit and it's been flashed with firmware that will tftp your encryption key to hostile intelligence agencies (foreign or domestic, take your pick). Hell, they could even intercept your equipment before you got it. Looks like it's time to start buying components in person with cash at big box retailers.

      --
      Give me Classic Slashdot or give me death!
  29. Re:Do these guys have any driver experience at all by leuk_he · · Score: 1

    Maybe there are, but to see it you need to install a antitivirus product on your firmware.

    wait... there are none..

  30. Re:Do these guys have any driver experience at all by aztracker1 · · Score: 1

    Heh, I managed to fit FizzBuzz in a tweet, written in JS... :)

    --
    Michael J. Ryan - tracker1.info
  31. or buy a cheaper intel pro nic card that does the by Joe+The+Dragon · · Score: 1

    or buy a cheaper intel pro nic card that does the same with out the software bloat.

  32. Re:Do these guys have any driver experience at all by jd · · Score: 1

    You're assuming intelligence. An intelligent person would come to the same conclusions as you have. The same caution has come out for the Intel microcode uploader, flash-based BIOSes of all kinds and intelligent devices that can handle uploadable programs. It's not new, it's not even that dramatic, but it is (sooner or later) going to be highly significant. And all those who failed to take any action now will deny that they were ever told it was a possibility, and all those manufacturers who opted for pointless industrial secrets will point fingers at everyone but themselves. Same old, same old.

    As for what skill it would take - well, anyone with rudimentary coding skill and a copy of FTP can grab hold of OpenBIOS, Tiara, Flashrom, Coreboot, Linux' flash drivers and any number of firmware uploaders. That gives enough information to cover a great many different cases. Most of the hard work has already been done. There may well be Black Hat tools that already use these mechanisms to embed malware into programmable devices.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  33. Firewall for my Firewall? by sh3p · · Score: 1

    So how does one protect their network card? Thoughts?

  34. Demonstrate This by Anonymous Coward · · Score: 0

    http://www.DRIOD.com Demonstrated.........

  35. Terms by atisss · · Score: 1

    Network card does not have CPU, CPU by definition is central processor.

  36. Over 17 Years - subversionhack by not_hylas(+) · · Score: 1
    --
    ~hylas
  37. Re:Do these guys have any driver experience at all by mcgrew · · Score: 1

    This is slashdot. Hackers are people who make a device do things it wasn't designed to do, or who write quick-and-dirty, or exceptionally elegant, code.

    CRACKERS break into computers.

  38. Re:Do these guys have any driver experience at all by fatphil · · Score: 1

    Why do you use such a verbose language? In perl, it's just:

    print map{($_%5?$_%3?$_:Fizz:$_%3?Buzz:FizzBuzz).$/}(1..100)

    --
    Also FatPhil on SoylentNews, id 863