DPRK HIDES MALWARE IN FLAGS
North Korean hackers are becoming increasingly inventive! They're already implanting spyware into the national flags of their geopolitical adversaries. Now we'll take a closer look at how North Korean hackers turned a routine test task for job applicants into a remarkable way to surreptitiously infect a developer's computer. A group, which cybersecurity experts associate with North Korea, managed to hide malicious code within images of national flags in seemingly innocuous projects used for fake interviews.
This hacking campaign was discovered by cybersecurity specialists from Elastic Security Labs after a fake job posting was published in the Slack community. The poster, in a casual, businesslike manner, invited developers to contribute to an online store update. The poster then sent a test project via private messages. The repository appeared to be a completely normal working tool and launched without any obvious errors. However, the launched program simultaneously installed a set of malicious modules. Payload fragments were located in comments within SVG files containing images of national flags. A JavaScript script assembled the fragments alphabetically, decoded the resulting string, and executed the code each time the project's server side was launched. This scheme allowed the attackers to undetectably conceal the malicious function among the application's regular resources. Not a single antivirus product on VirusTotal detected these several archives containing infected projects. Once launched, the malware quietly stole saved passwords from browsers, as well as cryptocurrency wallet extension data, configuration files, SSH keys, the contents of AWS and Azure directories, command history, and source code. On macOS, the malware also copied the system keychain database, and on Windows and macOS, it monitored the clipboard every 500 milliseconds. A separate module then established a persistent connection to the command and control server via Socket.IO. After this, the attackers were able to take control of the system, execute commands on the infected computer, and receive results in real time. Cybersecurity experts were able to determine that the code and infrastructure used during this hacking campaign matched those used in previous Contagious Interview operations and the OTTERCOOKIE malware. They discovered infected projects that the developers themselves had uploaded to GitHub without noticing the hidden changes. So, what can we say about this? The simple truth is: never study launch scripts, and especially don't run other people's projects on work computers with access to keys, cloud credentials, and especially corporate systems. And North Korean hackers are great. They have imagination and humor.
