Application Security

6/15/2015
12:10 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
100%
0%

Cyberspies Stole Legit Digital Certificates To Mask Their Malware

Duqu 2.0 nation-state attackers used pilfered Foxconn hardware driver certs to sign spying malware that hit negotiators in Iranian nuclear pact discussions, Kaspersky Lab -- and now, an ICS/SCADA hardware vendor.

The nation-state group behind the new Duqu 2.0 attacks used a legitimate digital certificate pilfered from one of the world's largest electronics manufacturers as a way to maintain a silent and persistent foothold in its victims' networks.

Costin Raiu, director of Kaspersky Lab's global research and analysis team, today revealed that his team had discovered a major piece of the puzzle in a wave of targeted cyber espionage attacks that hit international participants at the Iranian nuclear negotiations and other organizations, as well as Kaspersky's own corporate network, in an apparent attempt to gather intelligence on the firm's latest technologies and research.

The malware used in Duqu 2.0 runs only in memory of a victim's machine, but the attackers also employ a unique method of retaining presence in the victim's network once they gets inside and even after an infected machine is rebooted and cleaned up, according to Raiu. The nation-state attackers install malicious drivers signed by Hon Hai Precision Industry Co. Ltd., aka Foxconn Technology Group, the world's largest electronics manufacturer best known for building Apple iPhones and iPads, but which also boasts Microsoft, Acer, Amazon, BlackBerry, Cisco, Dell, Google, HP, Motorola and Sony as its customers.

The drivers are installed on firewalls, gateways, and other Internet-facing servers, to appear as legitimate firmware updates on those devices. The endgame is for the attackers to remain hidden inside their target and to provide a command-and-control operation, according to Raiu.

"We were able to uncover during our investigation … a 64-bit driver they used for persistence" and hiding command and control connections as well as camouflaging log activity, Raiu says. That's the very same strategy employed in the first-generation of Duqu thought to be a precursor to the Stuxnet attack. The attack back then used stolen Jmicron and Realtek digital certificates to sign the malware so it would appear legit.

Raiu says it's unclear whether Foxconn was a victim of the Duqu malware attack, but his firm has alerted the driver manufacturer as well as Verisign of the abused cert. The Foxconn cert is currently in the process of being revoked by Verisign, he says.

The stolen certificate strategy demonstrates a trend in how the Duqu attackers try to operate under the radar in their targets' networks, he notes.

"In essence, the drivers are redirecting network streams to and from the gateway machine that runs it. To forward connections, the attacker has to pass a network-based 'knocking' mechanism by using a secret keyword," Raiu and his team said today in a new blog post with the technical details. "We have seen two different secret keywords in the samples we have collected so far:  'romanian.antihacker' and 'ugly.gorilla.'"

[Nation-state campaign with previous ties to Stuxnet spies on security firm's research and anti-cyber spying technologies -- plus participants in Iranian nuclear negotiations and their telecommunications, mobile providers. Read Duqu 2.0 Attack On Kaspersky Lab Opens Chilling New Chapter In Cyber Espionage.]

Another intriguing -- and alarming -- tidbit:  the Duqu gang doesn't use the same digital certificate twice, which could mean they have a stockpile of stolen digital legitimate certificates it can use in future attacks, Raiu says.

"As long as the attacker has unlimited certificates, that means digital certificates are no longer an effective way of demanding networks to validate … software," he says.

Meanwhile, Kaspersky also has spotted an ICS/SCADA hardware vendor in the Asia Pacific region that has been infected by Duqu 2.0. "They [the attackers] have a special interest of infecting hardware manufacturers in the APAC region," says Raiu, who declined to name the targeted ICS/SCADA vendor.

He says the stolen certs are not likely related to the mysterious Duqu 2.0 module that appears to have an ICS/SCADA connection. The acronym "HMI" appears in the filename, suggesting its purpose has to do with ICS/SCADA systems, but Raiu says he's still investigating it. "That module appears to target some SCADA hardware," he says.

Nor has Kaspersky been able to get to the bottom of exactly what the attackers are after, or whether Duqu 2.0 is a precursor to a cyber-sabotage attack akin to Stuxnet. "This is why this [mysterious] module is so interesting," Raiu says. "When we figure out the exact purpose of these files we might be able to understand what is the purpose of [infecting] the hardware, where it's used, and to be able to understand if it's used for sabotage or information-gathering."

Security experts say the successful attack of Duqu 2.0 on a security company is a red flag for the types of attacks on the horizon.

"It's fascinating how an AV company [Kaspersky Lab] had identified previous variants of the same malware family yet were still challenged to immediately detect and prevent a variant of it months after the campaign," says Ryan Kazanciyan, chief security architect at Tanium, who previously worked for Mandiant. "The takeaway is not how to stop a zero-day better, but how to better prevent and detain intrusions." 

Kelly Jackson Higgins is Executive Editor at DarkReading.com. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
White House Cybersecurity Strategy at a Crossroads
Kelly Jackson Higgins, Executive Editor at Dark Reading,  7/17/2018
The Fundamental Flaw in Security Awareness Programs
Ira Winkler, CISSP, President, Secure Mentem,  7/19/2018
Number of Retailers Impacted by Breaches Doubles
Ericka Chickowski, Contributing Writer, Dark Reading,  7/19/2018
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2018-14492
PUBLISHED: 2018-07-21
Tenda AC7 through V15.03.06.44_CN, AC9 through V15.03.05.19(6318)_CN, and AC10 through V15.03.06.23_CN devices have a Stack-based Buffer Overflow via a long limitSpeed or limitSpeedup parameter to an unspecified /goform URI.
CVE-2018-3770
PUBLISHED: 2018-07-20
A path traversal exists in markdown-pdf version <9.0.0 that allows a user to insert a malicious html code that can result in reading the local files.
CVE-2018-3771
PUBLISHED: 2018-07-20
An XSS in statics-server <= 0.0.9 can be used via injected iframe in the filename when statics-server displays directory index in the browser.
CVE-2018-5065
PUBLISHED: 2018-07-20
Adobe Acrobat and Reader 2018.011.20040 and earlier, 2017.011.30080 and earlier, and 2015.006.30418 and earlier versions have a Use-after-free vulnerability. Successful exploitation could lead to arbitrary code execution in the context of the current user.
CVE-2018-5066
PUBLISHED: 2018-07-20
Adobe Acrobat and Reader 2018.011.20040 and earlier, 2017.011.30080 and earlier, and 2015.006.30418 and earlier versions have an Out-of-bounds read vulnerability. Successful exploitation could lead to information disclosure.