Malware attacks on two banks have links with 2014 Sony Pictures hack

Security researchers have found a long chain of coding coincidences linking ​attempted fraud over the SWIFT network​ to the 2014 Sony Pictures hack

Bangladesh Bank, a commercial bank in Vietnam and ... Sony Pictures are the unlikely bedfellows in a tale of cyber intrigue uncovered by security researchers at BAE Systems.

Researchers Sergei Shevchenko and Adrian Nish have found some links between malware involved in the 2014 attack on Sony Pictures and attacks on two banks involving the theft of credentials for the SWIFT financial transfer network.

The U.S. Federal Bureau of Investigation said North Korea was to blame for the Sony attack (although security experts are divided on the matter).

So is North Korea seeking to boost its foreign currency reserves? Or is someone else conducting a false flag operation -- or just reusing old code?

The link between two pieces of malware used in attacks on Bangalore Bank and on a commercial bank in Vietnam is unambiguous. Shevchenko and Nish decompiled them and found that they used an identical function to wipe a file from an infected computer. The function first fills the file with random characters to ensure nothing can be recovered from the sectors it occupies on the disk, then changes the file's name to a random string before deleting it.

Intrigued by the thoroughness with which the malware pursued its purpose, the two hunted through an online malware database for other examples of the same file-wiping code.

They found one in a file called msoutc.exe, compiled on Oct. 24, 2014 and uploaded to the database by someone in the U.S. on March 4, 2016.

That executable begins its evil work by attempting to create a mutex, or lock flag, with the name "Global\FwtSqmSession106839323_S-1-5-20" to prevent multiple copies of the malware running on the same computer.

If the flag already exists, meaning another copy of the malware is already running, the new copy commits suicide by running a script to delete itself from the system, then quits, leaving the first copy intact.

Otherwise, it carries on, creating a log file and using the key "y@s!11yid60u7f!07ou74n001" to encrypt it.

The BAE researchers dug around, and found that key had already been used in a worm that spread through Windows SMB shares, discovered by PwC in 2015, although its mutex was slightly different. SMB is a Windows protocol used for sharing directories and printers.

The mutex in the worm found by PwC, in turn, was identical to one mentioned in a December 2014 US-CERT report on targeted destructive malware used to attack "a major entertainment company" widely believed to be Sony Pictures. The SMB worm described by US-CERT, however, had a different (although similar) encryption key.

To cap it all, Shevchenko and Nish found that the suicide script used by msoutc.exe was almost identical to scripts reported by analytics company Novetta as being characteristic of malware developed by the Lazarus Group. That's the group Novetta blamed for the Sony attack in its report "Operation Blockbuster."

So that's two banks attacked with malware containing a file deletion function identical to that used in a piece of malware called msoutc.exe. And there are strong similarities between the suicide script, encryption keys and mutex names used by msoutc.exe and those used by malware involved in the Sony attack.

It's still anybody's guess who's behind all these attacks: in Bangladesh, government officials are pointing the finger at SWIFT technicians who worked on the central bank's network last year, while the FBI says that attack was an inside job -- but blames the North Koreans for Sony.

Despite the connections between the attacks highlighted by Shevchenko and Nish, there's still a chance that someone else is as handy with the decompiler as they are, and reused the code -- and chose similar encryption keys -- to leave a false trail.

But the chances of that, the BAE researchers said, are slim.

"The overlaps between these samples provide strong links for the same coder being behind the recent bank heist cases and a wider known campaign stretching back almost a decade," they concluded.

Join the CSO newsletter!

Error: Please check your email address.

Tags sony

More about BlockbusterFBIFederal Bureau of InvestigationSony

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Peter Sayer

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

Market Place