Slashdot Mirror


CIA Malware Can Switch Clean Files With Malware When You Download Them Via SMB (bleepingcomputer.com)

An anonymous reader quotes a report from Bleeping Computer: "After taking last week off, WikiLeaks came back today and released documentation on another CIA cyber weapon. Codenamed Pandemic, this is a tool that targets computers with shared folders, from where users download files via SMB. The way Pandemic works is quite ingenious and original, and something not seen before in any other malware strain. According to a leaked CIA manual, Pandemic is installed on target machines as a "file system filter driver." This driver's function is to listen to SMB traffic and detect attempts from other users to download shared files from the infected computer. Pandemic will intercept this SMB request and answer on behalf of the infected computer. Instead of the legitimate file, Pandemic will deliver a malware-infected file instead. According to the CIA manual, Pandemic can replace up to 20 legitimate files at a time, with a maximum size of 800MB per file, and only takes 15 seconds to install. Support is included for replacing both 32-bit and 64-bit files. The tool was specifically developed to replace executable files, especially those hosted on enterprise networks via shared folders. The role of this cyber weapon is to infect corporate file sharing servers and deliver a malicious executable to other persons on the network, hence the tool's name of Pandemic.

35 of 62 comments (clear)

  1. That's all well and good. by Anonymous Coward · · Score: 2, Funny

    ...But can it get into Madagascar after they've closed their port?!

    1. Re: That's all well and good. by mspohr · · Score: 1

      More importantly, does it run on Linux?

      --
      I don't read your sig. Why are you reading mine?
  2. Original maybe, ingenious really? by Dr.+Evil · · Score: 3, Insightful

    Not every permutation and combination of malware not seen before is "ingenious".

    File system filter driver dynamically installs malware. Got it. Isn't this the kind of thing a file system filter driver is supposed to do? "filter can mean log, observe, modify...." https://docs.microsoft.com/en-us/windows-hardware/drivers/ifs/what-is-a-file-system-filter-driver-

    Handy tool, but unless I'm missing something, "ingenious" is way overstated. 25 years ago, this might have been novel.

    1. Re:Original maybe, ingenious really? by 110010001000 · · Score: 2

      I'm still trying to figure out how it only supports 20 files max. I am suspecting variable names like "filename1", "filename2", etc.

    2. Re:Original maybe, ingenious really? by PolygamousRanchKid+ · · Score: 5, Funny

      . . . maybe the CIA writes files=20 in their config.sys . . . ?

      --
      Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
    3. Re:Original maybe, ingenious really? by K.+S.+Kyosuke · · Score: 4, Insightful

      "Had God wanted us to infect more files, he would have given us more fingers and toes."

      --
      Ezekiel 23:20
    4. Re:Original maybe, ingenious really? by Dr.+Evil · · Score: 3, Informative

      I bet you're right. The Vault7 leaks all seem like leaks from a competent but certainly not-miracle working security team. They've got access to some remarkable vulnerabilities, and they seem well-funded, otherwise just a bunch of normal guys. The poor soul who wrote this one probably never meant it to be more than a hack for a specific project.

      Some of the Vault7 stuff is funny:

      https://wikileaks.org/ciav7p1/cms/page_14588098.html

      DART: WinXP Pro SP3 English w/ Adobe VM – why you hate my unit tests?
      ....

      2015-01-29 18:29 [User #71473]:

      Ah, but lowly users can't create projects, and I find it silly to go begging an admin when I want to make a silly tasklist in Jira.

      #freejira

      #getoffmylawn

      2015-01-29 07:55 [User #1179925]:

      Some would say there is an Atlassian product to help you track this stuff....

    5. Re:Original maybe, ingenious really? by PPH · · Score: 1

      Perhaps there's some file caching scheme to speed up the file replacement. So your target doesn't get suspicious about a delay. The flip side is that this requires memory. Use too much of that and someone will notice the resource use.

      --
      Have gnu, will travel.
    6. Re:Original maybe, ingenious really? by MMC+Monster · · Score: 3, Funny

      And then pull up your shirt and get to 23.

      --
      Help! I'm a slashdot refugee.
    7. Re:Original maybe, ingenious really? by PPH · · Score: 1

      I suspect that I may have seen this behavior elsewhere.

      A friend of mine has a SOHO LAN. One day, she was complaining that she couldn't reach any shared folders on one of her employees PCs (who was off on vacation). So, I looked at it for her. Logged onto the suspect system and it couldn't see the office network either. Poked around for a few seconds and then said to myself, "Try the universal Windows repair procedure. Reboot." Still nothing. The "Network" browser was empty. Next, test the actual networking. Open a URL out in the world somewhere to see if this system could actually connect to anything. "What browser do you use?" "Chrome", she replied. So I fired that up to enter a URL and within a second or so the network window populated with the local systems and shares.

      I tried it again. Reboot the system, local network is gone. Fire up Chrome and it appears. So Chrome appears to be inserting something between the networking drivers and user space that, when it hasn't been started up yet, interferes with SMB. IMO, if it is spyware, it is pretty crappy. Good spyware shouldn't reveal itself by interfering with normal operations when it isn't running. Just like alligator clips on my phone line shouldn't make popping noises when I make a call.

      --
      Have gnu, will travel.
    8. Re:Original maybe, ingenious really? by 110010001000 · · Score: 1

      That probably explains it, and also the 800MB file limit they mentioned.

    9. Re:Original maybe, ingenious really? by gweihir · · Score: 1

      It is neither. The idea is plain obvious. Anybody competent (no, that does not include the average "programmer") can implement this in a few weeks.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    10. Re:Original maybe, ingenious really? by hattable · · Score: 1

      24 you insensitive clod!

      --
      OMG facts!
    11. Re: Original maybe, ingenious really? by PPH · · Score: 1

      doesn't actually connect to wifi until a program needs network access

      Hard-wired Ethernet.

      And how would a PC on the LAN know when it needed to fire up networking (WiFi) if it was the SMB server? Hence the hard-wire connection, which has worked for many years and many versions of Windows. Until Chrome came along.

      --
      Have gnu, will travel.
    12. Re:Original maybe, ingenious really? by AHuxley · · Score: 1

      CIA teams are not like the NSA who have the time and unlimited freedom to use and alter networks. Often they have to gain access to a site with a good cover story and use an on site method to get deep into a very secure network.
      Staff and workers might be watching the use of a USB stick and if an allowed task takes too long the "20 files max" and set sizes would be a good limit.
      The working cover story of why some person connected to the CIA is on site is protected by not having a computer/network slow down as a huge amount of unexpected files are pushed onto a network.
      The CIA might want more files to collect on all possible network conditions but using fewer files can ensure a mission works without workers and staff thinking why a simple on site computer task took so long.
      The CIA can then collect results later in person and no firewall or network log noticed any external changes.

      --
      Domestic spying is now "Benign Information Gathering"
    13. Re:Original maybe, ingenious really? by AHuxley · · Score: 1

      AC the CIA understands humans and computers. That is what makes the CIA so great. Seeing a GUI try and pump a computer or network full of unexpected files from a slow device like early generations of USB might make staff and workers wonder what is been done.
      Questions like who are you and why is this the first large patch done in this way.
      Getting access to push a few files might be accepted. A slow GUI and a strange conversation about work while a totally unexpected task is been conducted might make some people who would have been ok with the event, report the unexpected time needed.
      The CIA might use US staff in another nation or US connected contractors, language difference might help or slow a task down. Finally getting access for a short time might be just be ok. Waiting around for a longer time in a secure area with a slow device will just allow more questions and unexpected conversations to start.

      --
      Domestic spying is now "Benign Information Gathering"
    14. Re:Original maybe, ingenious really? by yes-but-no · · Score: 1

      I like a file-system (or even the disk-driver) which will provide a modified source file (like a .c file) only to the compiler but not to other applications [like editors, version controlled system etc]. This way you can create an executable which has your exploit/backdoor but a human scanning the source-code can't see it. eg say you insert a special login/password to the login.c file which allows you a back-door. [it's similar to the legend that original C compiler writer had infact put in such a backdoor] [ps got posted as ac]

  3. Re:A Disservice by 110010001000 · · Score: 3, Funny

    It is Windows only for now, but we are working on a Linux version. Don't tell anyone though.

  4. Re:A Disservice by guruevi · · Score: 1

    It's assumed that exploits like these are facilitated by Microsoft. SMB is the protocol, Samba is the daemon. It's talking about SMB on Windows.

    (S//NF) Pandemic registers a minifilter driver using Windows' Flt* functions.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  5. Fallout! by tepples · · Score: 1

    I thought this was about a vulnerability in Super Monkey Ball.

  6. Surprise, surprise! by Freischutz · · Score: 2

    SMB sucks ass? and now it's revealed to be seriously insecure as well?... now there's a couple of newsflashes that will shock the entire tech industry to it's core

    1. Re:Surprise, surprise! by 110010001000 · · Score: 5, Insightful

      If you can install software on a computer it makes that computer instantly insecure. It really has nothing to do with SMB being secure. You could do this with any protocol, but API support for this in SMB makes it easier.

  7. Download with SMB???? by goombah99 · · Score: 1, Insightful

    Who "downloads" with SMB. SMB is a distributed file system like NFS isn't it. transferring files on an intranet is not what we conventionally mean by "download". The latter usually implies the importation of file from the internet not a local net. It's misleading to conflate these as one usually has quite different procedures in the security onion for treating these two cases.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Download with SMB???? by Anonymous Coward · · Score: 1

      First, it's entirely possible never to transfer an executable to the local hard disk, but simply to read and execute it by SMB.
      So does your browser also warn you if the intranet computer is a known dangersous computer when you do that SMB "download". No because it's a different security envelope. Does your operaing system warn you and refuse to execute files newly loaded by SMB.

      Dumbass in deed, indeed.

    2. Re:Download with SMB???? by PPH · · Score: 1

      To be more precise, both SMB and NFS are protocols that support networked file systems. When you open a file on a remote system, you don't necessarily move a copy of the whole thing to your local system an once. Likewise, when you complete your task and close the file, the only remaining copy is on the remote (server) system.

      If your task consists of opening a remote share and explicitly copying the file to a location on your system, then yes, you 'downloaded' the file.

      --
      Have gnu, will travel.
    3. Re:Download with SMB???? by dissy · · Score: 2

      Who "downloads" with SMB.

      Well, they do clearly state this malware is not intended to catch criminals in any way, it's primarily for enterprise networks to be targeted.

      And downloading via SMB is one of many parts of an Active Directory based Windows network used in everything from small business up to full enterprises.

      When a client PC joined to a domain is booted and windows starts, windows will download all of the Group Policy files from your domain controller(s) before applying the "computer" based settings.
      Upon login by a user it will also check for modifications to the group policy files on the domain controller(s) share and possibly downloading those files again before applying the "user" based settings.

      In both of those cases, one typically will have a group policy that specifies a batch file that is also on an SMB or DFS share.
      That batch file can be as simple as just an "exit" command, or full of a listing of other programs to run which will also be hosted on SMB/DFS shares.

      Any executable run via that method is downloaded from the file server(s) to the local PC before being executed.

      SMB is a distributed file system like NFS isn't it.

      Technically no, but only due to how the different components work together.
      SMB is purely how to share files and socket pipes over the network.
      DFS (distributed file share) is the protocols that make SMB be distributed.

      Domain controllers on a windows network will always use DFS for the domain related shares.
      Additional namespaces can be created on top of your SMB share if you wish, but is completely optional. Though it is a very wise idea to do so even if not to use in a distributed fashion, mainly how windows machines stupidly handle hostnames.

      DFS lets you create namespaces under the domain share, which you can then point to SMB shares on one or more file servers.
      Obviously if you have 2 or more SMB shares specified, it becomes distributed.
      But even with only 1 SMB share specified, this lets you add a second SMB share in the future, migrate files from one server to another, then remove the original SMB share.
      Windows gets really really unhappy if you ever reuse a hostname on your servers, so this method lets you migrate from an old/small file server to a newer/larger server, without having to modify SMB paths everywhere around your network.

      transferring files on an intranet is not what we conventionally mean by "download". The latter usually implies the importation of file from the internet not a local net. It's misleading to conflate these as one usually has quite different procedures in the security onion for treating these two cases.

      It's only misleading when you don't understand what "download" and "upload" actually mean.

      Transferring a file from a machine that isn't your local one, onto your local machine, is a download.
      Transferring a file from your local machine to another one that isn't your local machine is an upload.

      There is no requirement for the Internet to be involved, and in fact those terms predate both the Internet and the Arpanet by a decade or more.

      Even a traditional "network" isn't required to be involved, as two machines connected by a serial cable can upload and download between each other, although typically they will still use networking protocols on top of that serial connection to do so.

    4. Re:Download with SMB???? by F.Ultra · · Score: 1

      If so then you download the executable via SMB to your RAM.

    5. Re:Download with SMB???? by AHuxley · · Score: 1

      People who have talked their way into a secure part of a remote office or site with some device to connect direct into a very secure regional or national network.
      A usb stick is connected, the secure remote network then uploads a file to the main office or building a city away on trust.
      Physical security was more trusted than any firewall.

      --
      Domestic spying is now "Benign Information Gathering"
  8. NFS by Cmdln+Daco · · Score: 2

    They are sure making NFS look like a more attractive file sharing protocol than SMB these days.

    (though I have seen some pretty shocking NFS exploits)

    1. Re:NFS by Anonymous Coward · · Score: 1

      and they haven't leaked the tools for non smb yet...

    2. Re:NFS by Anonymous Coward · · Score: 1

      You could write something like this for NFS easily. This is the file in the linux kernel you would have to edit: http://elixir.free-electrons.com/linux/latest/source/fs/nfsd/vfs.c

      Since these functions are not exported it is not very clean to patch them with another module (this patch module would be kernel dependent, or would need some logic for finding the entry points). I would recommend just compiling a custom nfsd module and loading that.

      Alternatively, you can use the VFS api to install something between the nfsd and the filesystem modules, but here you will have less access to metadata about the NFS connection, so some fancy target selection may not be possible (eg, username is available, source ip is not).

    3. Re:NFS by phantomfive · · Score: 1

      This requires admin access on the computer, to install drivers. A more normal (and easier) way to accomplish the same thing would be to infect all the files on the share.

      --
      "First they came for the slanderers and i said nothing."
  9. Re:A Disservice by 0ld_d0g · · Score: 1

    As long as you don't login as root and manually install random drivers, you'll be fine. On all operating systems..

  10. Infantile description by fnj · · Score: 1

    What the hell is a "32 bit file"? What the hell is a "64 bit file"? A file is a sequence of goddam bytes.

    1. Re:Infantile description by Anonymous Coward · · Score: 1

      A 32-bit file is obviously a file four bytes in length. 64-bit files take eight bytes.

      Anyway, I believe they meant s/file/executable/