An investigation by McAfee researchers into a case of a suspected malware infection uncovered a cyber attack that had been sitting in the victim organizationâs network for years stealing data.
The investigators said the advanced threat actors used a mixture of known and unique malware tools in the attack â which they dubbed Operation Harvest â to compromise the victimâs IT environment, exfiltrate the data and evade detection.
During the two-month investigation, McAfee researchers were able to narrow down the list of suspects to two advanced persistent threat (APT) nation-state groups that have links to China.
âOperation Harvest has been a long-term operation whereby an adversary maintained access for multiple years to exfiltrate data,â Christiaan Beek, lead scientist and senior principal engineer for the Enterprise Office of the CTO at McAfee, wrote in a report. âThe exfiltrated data would have either been part of an intellectual property theft for economic purposes and/or would have provided insights that would be beneficial in case of military interventions. The adversaries made use of techniques very often observed in this kind of attack but also used distinctive new backdoors or variants of existing malware families.â
Chinese-Linked APT Groups Likely Suspects
The investigators looked at forensic artifacts and cross-correlated them with historical and geopolitical data and determined that experienced APT actors were behind the long-term attack. They suspect it was either the APT27 group â which also is known as Bronze Union, LuckyMouse and Emissary Panda â or APT41 (Double Dragon, Barium, Winnti, Wicked Panda and Wicked Spider, among other names), both with ties to China.
âWithin every nation-state cyber-offensive activity, there will be a department/unit responsible for the creation of the tools/malware, etc.,â Beek wrote. âWe strongly believe that is exactly what we observe here as well. PlugX, Winnti and some other custom tools all point to a group that had access to the same tools. Whether we put name âXâ or âYâ on the adversary, we strongly believe that we are dealing with a Chinese actor whose long-term objectives are persistence in their victimsâ networks and the acquisition of the intelligence needed to make political/strategic or manufacturing decisions.â
Further reading: Best Digital Forensics Tools & Software
Access Through Compromised Web Server
The cybercriminals were able to gain initial access into the victimâs IT environment by compromising a web server, installing the software needed to maintain a presence and storage tools â including PSexec, Procdump and Mimikatz â they eventually used to gather information about the network and laterally move and execute files.
âIn this attack, the initial access involved a compromised web server,â McAfee security experts wrote in a blog post. âOver the last year we have seen attackers increasingly use initial access vectors beyond spear-phishing, such as compromising remote access systems or supply chains.â
They also used privilege escalation and persistence techniques. They used Mimikatz to dump credentials and the open-source tool RottenPotato to gain access to a privileged token. Another open-source tool, BadPotato, is used to elevate user rights toward systems rights, Beek wrote. BadPotato code is available on GitHub as a Visual Studio project.
Misuse of Legitimate Open-Source Tools
The availability of open-source tools like BadPotato on legitimate sites like GitHub that can be used in cyberattacks is an issue of debate in the information security world, Beek told eSecurity Planet.
âThese tools were originally designed for red teams to test the security of their companiesâ networks,â he said. âHowever, being public on GitHub, oneâs testing tool can in the hand of [a bad] actor be part of his arsenal to elevate his rights on a compromised system, as we observed happening in this case.â
The APT group also used the PlugX malware as a backdoor. In addition, an analysis of unique routines and processes for using malware led the McAfee investigators to believe the malware was from the Winnti family, Beek wrote. The bad actors also used several data exfiltration techniques, including creating batch scripts to grab data from certain network shares and folders and then using the ârarâ tool to compress the data. There also were variants to this that were performed manually.
Finding the Cyber Suspects
To determine who the perpetrators likely were, McAfee investigators mapped out MITRE ATT&CK Enterprise techniques, added the tools that were used, and compared the information to historical technique data. They determined there were four groups that shared the techniques and sub-techniques and then using a chart narrowed the likely suspects down to APT27 and APT41.
âAfter mapping out all data, TTPâs [tactics, techniques and procedures] etc., we discovered a very strong overlap with a campaign observed in 2019/2020,â Beek wrote. âA lot of the (in-depth) technical indicators and techniques match. Also putting it into perspective, and over time, it demonstrates the adversary is adapting skills and evolving the tools and techniques being used.â
Preventing Long-Term Attacks
Generally, APT groups are known for staying in a victimâs network for long periods of time, with the mission typically being to collect intelligence, Beek said. Itâs not unusual for such bad actors to have access for multiple years. They tend to have multiple options they can draw from to extend their access, he said.
âBy having such long-term access, one knows how to stay below the radar,â he said. âWe do believe that a long term persistence in the victimâs networks was a motive. On the theft of intellectual property, think about the knowledge of certain formulas, designs or information that can be used in the right hands to strengthen the economic position of a nation. From a military point of view, knowing how things work can be applied for defending or attacking purposes.â
In the blog post, McAfee experts mapped out a range of the vendorâs tools that an organization can use to protect itself from such attacks.
âOperation Harvest, like other targeted attack campaigns, leverages multiple techniques to access the network and capture credentials before exfiltrating data,â the authors wrote. âTherefore, as a Network Defender you have multiple opportunities to prevent, disrupt, or detect the malicious activity. Early prevention, identification and response to potentially malicious activity is critical for business resilience.â
Further reading: How to Build & Run a Threat Hunting Program