Slashdot Mirror


Malware Now Hiding In Graphics Cards

mask.of.sanity writes "Researchers are closing in on a means to detect previously undetectable stealthy malware that resides in peripherals like graphics and network cards. The malware was developed by the same researchers and targeted host runtime memory using direct memory access provided to hardware devices. They said the malware was a 'highly critical threat to system security and integrity' and could not be detected by any operating system."

32 of 125 comments (clear)

  1. Well... by Statharas · · Score: 4, Insightful

    3 years ago I thought of this possibility, but everyone laughed and pointed at me in my local community. Guess who's laughing now.

    1. Re:Well... by slashmydots · · Score: 5, Funny

      You're right. Some of the crappier manufacturer's card firmware flashes basically are malicious attacks on the card that shuts them down instantly, lol.

    2. Re:Well... by BLKMGK · · Score: 2

      Yeah, their software finds the malware they wrote to hide in graphics cards - bravo....

      --
      Build it, Drive it, Improve it! Hybridz.org
    3. Re:Well... by Anonymous Coward · · Score: 5, Informative

      3 years ago I thought of this possibility, but everyone laughed and pointed at me in my local community. Guess who's laughing now.

      Everything old is new again;

          The Virus Writer's Handbook: The Complete Guide
          (c) 1992 Terminator Z (AKA Harry McBungus)
          http://vxheaven.org/lib/static/vdat/tumisc09.htm

          [...]

            6.4 Himem: above TOM

              (TOM stands for Top Of Memory if you didn't know)

              There are plenty of places in the high memory region for viruses to find
              a cosy hidey-hole, but most are not very safe. They exist in video
              memory, shadow RAM areas and so forth. Programs such as QEMM utilize
              such holes to load drivers and shit, but what's the point of devoting 1k
              of code to find a failsafe hole when you can hide somewhere else for
              less?

              Hiding in video ram is utterly stupid, but nevertheless some programmers
              insist on loading them there. Hmm, maybe they could hook int 10h (video)
              to intercept any calls to change modes and move themselves
              accordingly............... hmm that's actually not a bad idea. But
              where to move to? Why not stay somewhere else and save the bother?

              Also, remember that the majority of PCs in the world are (still) shitbox
              XT's -- they don't have RAM in areas which aren't used, unlike 286/386
              machines and above. You might as well try scratching your name into a
              diamond with a steel file.

              Don't bother with this method unless you're adventurous or stupid.

              Viruses which use this technique:
                              MG-3

          [...]

    4. Re:Well... by icebike · · Score: 2

      Back in the day, I heard of malware that would cause your video card to send a signal that would cause your CRT to fail.

      Back int the days of CRTs that didn't take malware. You could kill them easy enough just by setting the video cards to improper refresh rates.
      There were a whole series of Tatung monitors that were particularly prone to this.

      --
      Sig Battery depleted. Reverting to safe mode.
    5. Re:Well... by hairyfeet · · Score: 2

      Well I was talking about this more than 5 years ago when the first 128Mb cards came out and everybody said I was batshit but think about it, even back then we were talking 400MHz cards with 128Mb worth of RAM, this is bigger than most of the Win98 PCs that the first pro malware writers cut their teeth on and since most antivirus can't touch the GPU you have a perfect hiding spot.

      I think the ONLY reason it hasn't taken off before now is that malware writers really had no reason to learn anything but Windows since XP was so damned easy to infect. The moron who made running as admin the default really gave malware writers an easy target and like all criminals they are lazy and go for the low hanging fruit. Now that WinVista/7/8 brought a sane permissions model, even upping it with low rights mode (taken advantage of by IE and any Chromium based but NOT Gecko based sadly) its becoming harder and harder to infect Windows and since they had to learn to code for other platforms thanks to the Android explosion it only makes sense that they would go for the easiest target left on Windows. But I don't think network cards in and of themselves are much of a threat, routers yes, cards no, simply because nearly everybody uses what came in the system and those chips all use system memory which is scanned by AV.

      For those that need a rock solid AV I can't recommend highly enough Comodo Internet Security Free as its free for BOTH home and Small Business, has won several shoot outs, has auto sandboxing by default,memory firewalling and protecting system files from alteration, and while the defaults can be left as is if you want to customize it has incredibly fine grained control of the AV. I have given CAV to some seriously "clicky clicky" customers that would get infected at the drop of a hat, with CAV they have been clean for over a year.

      But the days of safe havens are over, if it has a processor and RAM its a target, be it GPUs or mobile devices, windows, Linux, Mac, doesn't matter as the malware guys make billions off this crap.

      --
      ACs don't waste your time replying, your posts are never seen by me.
  2. Seriously? Did no one see this coming? by erroneus · · Score: 5, Insightful

    This ridiculous push to offload every type of programming into GPUs including bitcoin mining and no one saw this possibility? (Sarcasm, I know people saw the possibility.)

    Measures could have been taken... but then again, what better way for the NSA and other government spies to infiltrate a computer independent of an operating system than this? Seriously. It'll work on Mac, Windows and Linux with or without proprietary drivers.

  3. Re:Seriously? Did no one see this coming? by Jah-Wren+Ryel · · Score: 2

    Measures could have been taken...

    Any system with an IOMMU can be made immune to this sort of attack.

    --
    When information is power, privacy is freedom.
  4. Re:Seriously? Did no one see this coming? by DeadCatX2 · · Score: 2

    The payload might be agnostic to the OS, but what about the dropper? I would imagine that would have to be custom-tailored to each OS. Unless the manufacturers are letting NSA drop the payload in before it gets to the consumer.

    --
    :(){ :|:& };:
  5. Old news and Prior Art. by Anonymous Coward · · Score: 2, Interesting

    Interesting that security researchers are JUST NOW thinking about this. I was on an flight from San Diego to Japan back around 2005, seated next to a gentleman on his way to a computer conference - I believe it was HITB, and either Dubai or Malaysia - and we were chatting about the inevitability of computer virus exploits being used to co-opt hardware instead of operating systems. He had recently developed a way to suborn the Nvidia Geforce bios update process by presenting the card with a working update that contained arbitrary code. Once loaded into the BIOS, the update version number was far beyond any possible build number - so it could not be removed except by either replacing the card or by replacing the BIOS chip. If I remember correctly, the gentleman who I was talking to was rather interested in my mentioning that the most beneficial place to install similar software would be a networking card, as the network card could "listen" for command and control signals without the interference of the operating system or any security software - kind of an "outside the tripwire" situation.

  6. Cook out the bugs by SpaceManFlip · · Score: 5, Funny
    No worries, the malware will all get cooked out while I'm overclocking the GPU. Frequently I get driver crashes while it's OC'd, and sometimes the DX11 game will dump out completely, and other times it even causes artifacts in the game while I'm cooking it up over 85 C

    So yeah, not too worried about the malware. Fever immunity FTW

    1. Re:Cook out the bugs by slashmydots · · Score: 4, Funny

      Just make sure you're doing it correctly. The USDA recommends overclocking by at least 10% for 60 seconds or more to eliminate all strains of viruses.

  7. Re:Seriously? Did no one see this coming? by slashmydots · · Score: 2

    I actually still don't see the possibility. Bitcoin mining uses the GPU cores and a tiny amount of graphics memory. You turn off the computer and all the GPU caches and GDDR5 is wiped. Hiding malware in the video BIOS is unrelated to hashing and bitcoin operations. The BIOS certainly has enough system permission and is big enough though!

  8. create your own payloads by Anonymous Coward · · Score: 5, Interesting

    network cards can create magical endpoints from thin air without having to send or receive any packets

    or they can look for a specific pattern in a packet and ship its contents to a preordained destination

    don't try to think about what they cannot do, think about what they can do, it's frightening

  9. Re:Seriously? Did no one see this coming? by Molochi · · Score: 2

    Bitcoin mining with your own GPU is almost over.

    What if you aren't paying for the hardware or the electricity bill on a thousand machines?.

    --
    "The Adobe Updater must update itself before it can check for updates. Would you like to update the Adobe Updater now?"
  10. Re:Seriously? Did no one see this coming? by Dunbal · · Score: 4, Insightful

    It's just another half-assed job. Computer tech is full of half-ass ideas that sounded pretty good but were never completed. The 640k limit and protected mode. Expanded/Extended memory through A20. Half assed effort by Lotus, IBM and Microsoft. Operating systems - sold as secure, almost as insecure as ever. About the only good thing is they don't usually automatically install malware from the internet without asking you first. Half assed. Trusted Computing - half assed. UEFI, half assed.

    I don't know if it's a lack of budget, or if computer techies (not your regular coders but the guys that come up with this stuff and implement it) really have such short attention spans. Or maybe it's just a marketing thing - give us a new tech word we can market for this generation, it doesn't have to work, we'll just pretend it's something good and make people want it.

    --
    Seven puppies were harmed during the making of this post.
  11. Mine it by dindi · · Score: 2

    That is why I mine crypto currencies with my graphics card 24/7 and liquid cool them.

    The overclocking burns the malware out, then the distilled water flushes it out. My 99.8% pure silver kill coil takes care of any remaining parasites - just in case the UV lighting didn't burn them to death already....

    1. Re:Mine it by ortholattice · · Score: 2

      I flush mine out by giving it a Class-A compulsory directive to compute pi to the last digit. Since the value of pi is a transcendental figure without resolution, this is a task it can never complete.

  12. Re:Seriously? Did no one see this coming? by BLKMGK · · Score: 2

    You are correct, he was talking out of his ass. These programs don't run "on the GPU" but rather utilize the GPU resources to do highly parallel processing that it's suited well for. That has exactly zippy to do with is being reported here.

    And I'd ask - what firmware exactly? NVIDIA? AMD? Intel? Hell, on the new CPUs with video onboard where is the firmware even located? BIOS now there's some fun - even the same manufacturer has different code for different boards for different chipsets. I don't see anyone making anything that's not one off for that anytime soon even with UEFI supposedly making things more uniform. Safeboot and other things already check much of that anyway when enabled properly.

    --
    Build it, Drive it, Improve it! Hybridz.org
  13. Nothing new here by msobkow · · Score: 2, Interesting

    I remember a "dinosaur" telling me about an S/390 "virus" in my youth. It was written to infect the disk, drum, and tape controllers, and to replicate itself to any uninfected devices in the system.

    It was relatively harmless. It would periodically pop up a console message like "I want a cookie.", and lock up the system until the operator typed in "cookie".

    However, apparently the only way to purge the thing was to replace all the hardware controllers at the same time.

    Whether true or not, I do not know. But it's the oldest "virus" story I've ever heard -- it was told to me way back in the 80s.

    --
    I do not fail; I succeed at finding out what does not work.
    1. Re:Nothing new here by Jah-Wren+Ryel · · Score: 2

      Sounds like the Multics Cookie Monster.
      The Wikipedia entry has a slightly different take on the story.

      --
      When information is power, privacy is freedom.
  14. IOMMU by Bruce+Perens · · Score: 4, Informative

    Yes, when I saw this I thought that this was a reason to make motherboard IOMMUs a security feature. Also, the DMA destination memory pages should not have the executable bit turned on. Recent generations of Intel/AMD CPUs have provided the ability to turn that bit off.

    1. Re:IOMMU by Burz · · Score: 2

      Yes, when I saw this I thought that this was a reason to make motherboard IOMMUs a security feature. Also, the DMA destination memory pages should not have the executable bit turned on. Recent generations of Intel/AMD CPUs have provided the ability to turn that bit off.

      Qubes implements this security feature. Pretty much every peripheral is isolated from the core system / hypervisor via the IOMMU, and it even runs X11 and the network stack in separate VMs. It is probably the only Linux (or Linux-ish) system to secure these known vulnerabilities.

      You can also do the same for other hardware devices (assign hardware to certain VMs) using the GUI, along with a lot of other really nice point-and-click features. Security context is reflected in the GUI using window colors.

      A final note: Multi-user is actually deprecated and security is all based on domains. The system is designed to function strictly as a single-user PC (in fact, the focus is more toward laptops), which I find refreshing. If you need multiuser you can always create an HVM to run non-native OSes.

  15. Re:Seriously? Did no one see this coming? by Anonymous Coward · · Score: 4, Insightful

    Welcome to the real world!

    If you open your eyes wide enough,you'll notice that pretty much everything is half-assed in one manner or another. This isn't necessarily a bad thing because doing the job "properly" is either impractical, too expensive, or takes too long. In reality, we don't even know what "properly" is most of the time.

    I'd go as far as to say that humanity's real achievement is the ability to say "fuck it" and go forward with a pragmatic solution that's useful enough to come out ahead and not dangerous enough to kill us all.

  16. Re:You were not alone by Smallpond · · Score: 5, Informative

    The problem is that every card on a PCIe bus can be a master, has access to all of memory, has a processor of some kind, and has insecure firmware. Pick any popular card - network, storage or graphics - and you have a potential attack. Find a bug people are having and post a fix or a tool to fix it. There will always be some sucker who will download it and run it.

  17. Re:Seriously? Did no one see this coming? by drkstr1 · · Score: 2

    Measures could have been taken... but then again, what better way for the NSA and other government spies to infiltrate a computer independent of an operating system than this? Seriously.

    Perhaps this?

    http://www.theregister.co.uk/2013/09/23/intel_stuns_world_with_wakeon3g/

    NSA already have a hidden 3G enabled backdoor straight in to your CPU and can even power up computers remotely and provide power to HDDs and access them remotely.

    It even has it's own OS within the chip so your OS of choice doesn't matter

    You say it as if fact, but you must have missed this line in the article: "No evidence is offered for the assertions detailed above."

    --
    Fanboy Status: Apache Flex, C#, Eclipse, KDE, Pirate Party, Ron Paul, Slackware, Windows 7
  18. Bad summary... by slew · · Score: 4, Informative

    Basically this theorized malware would use the GPU (or other DMA capable device in the system) to bypass page permissions. Since most operating systems depend on virtual addressing and CPU page permissions to protect things, having a DMA capabile device that didn't respect page permission could easily bypass the assumptions made by most OS's and malware detection programs.

    The problem is of course with the limitations of current malware detection programs. They could of course theoretically detect GPU viruses as they need to exist somwhere (even GPUs execute instructions and have page tables for their memory). The problem is that there are so many different types of GPUs and each has a different proprietary driver architecture, current malware detection companies don't have enough information or experience to even attempt to try this even if they had the desire and the resources. Then again maybe the GPU vendors have built in malware in their drivers (kinda like some of the phone-home free-pdf/fax printer drivers). If so, you are just screwed.

    FWIW, there was an attempt a few years ago to impose an IOMMU into the PC architecture that could filter DMA requests from devices. The idea was that if the OS was in control of the IOMMU, like the page tables, it could disallow a DMA request from a rogue device request similar to how it could trap a CPU access. I lost track of this, but I doubt it will go anywhere...

    However, this isn't usually the weak point in the chain, this is merely a theoretical threat kind of like warning people about how installing random program on their PC is a "highly critical threat to system security and integrity" when most folks have a browser setting that allows running just about any browser plugin suggested by a random web-page by merely clicking "OK" when the warning dialog box comes up. It's just scary because you've never heard of it before and it's yet another thing to worry about.

  19. Re:Killing a CRT by icebike · · Score: 3, Insightful

    Simply shutting of was a step up from the early technology. I don't remember the details but I think it had something to do with burning out some capacitor used in conjunction with the fly back transformer. A three cent part that took 100 bucks to get to and repair.

    Not an urban legend I assure you. And the guys getting bit most often were Linux guys trying to figure out X config setting.

    Back in the day I was selling a lot of hardware and had to process many warranty returns through our shop.

    --
    Sig Battery depleted. Reverting to safe mode.
  20. Bigger scope to this solution... by Shoten · · Score: 4, Informative

    The article actually refers to being able to detect the malware; the key here is DMA, or "Direct Memory Access." DMA is in use by a great many things, including FireWire (IEEE 1394), USB 3.0, and Thunderbolt as well as many internal peripherals like graphics cards.

    Why, you ask? Simple...for performance. If you think of memory as being like a big warehouse, other methods are like having a guy at the front of it on the other side of that counter...you know, the one with the fencing and a little slot for you to pass him your invoice so he can go get what you came to pick up? You show up, give him the invoice, he looks at it, goes to get exactly the thing you're allowed to take, and brings it to you. This is secure, but also a bottleneck. DMA, on the other hand, is more like having that guy standing at the front door to the warehouse, just making sure you have an invoice at all...then he waves you on through to go get it yourself. Obviously, that has security ramifications.

    And that's the real key to this threat...if they've come up with a way to detect attacks like that, they've come up with a way to defend against them coming from more than just malware in a graphics or network card. They've come up with a way to help protect against password-reading via USB 3.0 ports and the like as well. It would also, however, provide more methods for counter-forensics...so its a double-edged sword.

    --

    For your security, this post has been encrypted with ROT-13, twice.
  21. Re:Killing a CRT by jones_supa · · Score: 2

    AFAIK it's not a myth at all. We're just talking about really old, crusty monitors. They didn't have enough smarts to do some sanity checking for the signal.

  22. Re:Killing a CRT by symbolset · · Score: 2

    I assure you it is completely legitimate.

    --
    Help stamp out iliturcy.
  23. Re:You were not alone by Anonymous Coward · · Score: 3, Informative

    The problem is that every card on a PCIe bus can be a master, has access to all of memory, has a processor of some kind, and has insecure firmware.

    AMD was ahead of the curve on this, their CPUs have have a low-level IO manager since around the K8 microarchitecture.

    The IO logic block sits between the CPUs interface bus and the memory controller (which is on the CPU, remember) and basically functions like a page-table for direct hardware access so you can actually remap the physical RAM at the hardware level from the perspective of the other devices. [i.e. set it up so that only the parts of the RAM which is being intentionally shared for DMA can be accessed by non-CPU hardware and everything else is unaddressible.

    Intel has added their own manager to their newer CPUs as well so this hole is finally being closed up once the Intel feature becomes common enough for Windows to include drivers and low-level logic to use it.