There's no way of knowing if the NSA's spyware is on your hard drive

Malware intentionally created by the U.S. National Security Agency to infect personal computer hard disk drives (HDDs) and solid-state drives (SSDs) cannot be detected by antivirus programs.

The spyware, which infects a drive's firmware, can also produce a treasure trove of data for any government agency controlling the drives, according to Russian security software maker Kaspersky Lab.

Kaspersky released a report this week saying that it had discovered the spyware on hard drives in personal computers from 30 countries, including the U.S. The company said the malware,  known as Fanny, likely predated other NSA spyware, such as Stuxnet, and has likely been in use for nearly two decades.

Kaspersky does not name the NSA in its report. Instead, it refers to those in charge of the spyware program as "the Equation group," noting that the same group was closely linked to Stuxnet.

Stuxnet, which came to light in 2010, was a computer worm developed by the NSA to sabotage Iran's nuclear program.

According to a report by Reuters, a former NSA employee "confirmed that the NSA had developed the prized technique of concealing spyware in hard drives, but said he did not know which spy efforts relied on it."

Kaspersky said the latest spyware was discovered on hard drives from more than a dozen major manufacturers, including Seagate, Maxtor (now a subsidiary of Seagate), Western Digital (WD), Toshiba, IBM and even SSD makers such as Micron and Samsung.

"There is no way to understand whether your HDD is infected," Igor Soumenkov, principal security researcher at Kaspersky Lab, said in an email reply to Computerworld. "Once the hard drive gets infected with this malicious payload, it's impossible to scan its firmware."

To put it simply: For most hard drives, there are functions to write into the hardware's  firmware area, but there are no functions to read it back.

"It means that we are practically blind, and cannot detect hard drives that have been infected by this malware," Soumenkov said.

The Equation group used a variety of methods to spread its programs, including infecting USB sticks and CDs, as well as the Fanny computer worm.

Fanny was "presumably" compiled in July 2008, Kaspersky's report stated, as it was first observed and blocked by the company in December of that year.

Kaspersky's report stated that it's not known when the Equation group began its ascent into cyberespionage. Some of the earliest malware samples Kaspersky  discovered were compiled in 2002, but some of the command and control (C&C) software was registered in August 2001.

"Other C&Cs used by the Equation group appear to have been registered as early as 1996, which could indicate this group has been active for almost two decades," Kaspersky's report stated.

Hard drive maker WD said that prior to the release of Kaspersky's report, it had no knowledge of the NSA cyberespionage program.

"We take such threats very seriously. The integrity of our products and the security of our customers' data are of paramount importance to us," a WD spokesman wrote in an email reply to Computerworld.

The WD spokesman said the company has not participated in or supported the development or deployment of cyberespionage technology by government entities, adding that "Western Digital has not provided its source code to government agencies."

"We are in the process of reviewing the report from Kaspersky Labs and the technical data set forth within the report," the spokesman said.

Seagate, the largest producers of hard disk drives, did not respond to a request for a comment on the malware or how its drives were infected.

Perhaps the most powerful tool in the Equation group's arsenal, Kaspersky's report states, is a mysterious module known only by a cryptic name: "nls_933w.dll."

The worm allows the Equation group to reprogram the hard drive's firmware.

"This is an astonishing technical accomplishment and is testament to the group's abilities," Kaspersky's report stated.

Kaspersky's report said the company found personal computers in 30 countries  infected with one or more of the spying programs, with the most infections seen in Iran, followed by Russia, Pakistan, Afghanistan, China, Mali, Syria, Yemen and Algeria.  The targets included government and military institutions, telecommunication companies, banks, energy companies, nuclear researchers, media and Islamic activists, Kaspersky said.

"During our research, we've only identified a few victims who were targeted by this module," Soumenkov said. "This indicates that it is probably only kept for the most valuable victims or for some very unusual circumstances."

The spyware module itself is used only to deliver the customized firmware to the victim's hard drive, and someone deploying it would need to know special commands that will let a user communicate with a particular HDD hardware, which is vendor specific, Soumenkov said.

Soumenkov said the most complex and expensive process in deploying the malicious worm is reprogramming an HDD's firmware. To do that, someone would need to first obtain the source code of all the major vendors' firmware, which would require having access to the fully proprietary information and internal documentation kept by drive manufacturers.

Either that, "or to have abnormal skills to reverse engineer the firmware's code," Soumenkov said. "And they did it for more than 12 HDD brands!"

Join the CSO newsletter!

Error: Please check your email address.

Tags Data storageNational Security AgencyReuterssecuritynsaU.S. National Security Agencykaspersky lab

More about KasperskyMaxtorMicronNational Security AgencyNSASamsungSeagateToshibaWestern Digital

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lucas Mearian

Latest Videos

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts