{"id":4919,"date":"2025-02-13T10:10:49","date_gmt":"2025-02-13T10:10:49","guid":{"rendered":"https:\/\/fusionmindlabs.com\/blogs\/malware-hacks-microsoft-graph-api-for-stealth-espionage-on-windows-linux\/"},"modified":"2025-02-13T10:10:50","modified_gmt":"2025-02-13T10:10:50","slug":"malware-hacks-microsoft-graph-api-for-stealth-espionage-on-windows-linux","status":"publish","type":"post","link":"https:\/\/fusionmindlabs.com\/blogs\/malware-hacks-microsoft-graph-api-for-stealth-espionage-on-windows-linux\/","title":{"rendered":"Malware Hacks Microsoft Graph API for Stealth Espionage on Windows &#038; Linux"},"content":{"rendered":"\n<\/p>\n<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Feb 13, 2025<\/span><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><\/span><span class=\"p-tags\">Malware \/ Cyber Espionage<\/span><\/p>\n<\/div>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhenQjv3GBgM3Pgd6Me8TJzUxlT7kfqm6qa8VAdEPRYYHZzGDLJWDd8E-Fqw_HSSXksB2rqQ41HwYYdW5vpX6CAkq08b4-Juq0ltt4GSzKTCQ-XWdwbQHa7URTf2ZrLJpWespjvS1aD8kmc5RunhRZ6UX58ygEShTTT6JMt2Ob9VvWitGBxa_vLduz-fUJq\/s728-rw-e365\/malware.png\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><\/a><\/div>\n<p>Threat hunters have shed light on a new campaign targeting the foreign ministry of an unnamed South American nation with bespoke malware capable of granting remote access to infected hosts.<\/p>\n<p>The activity, detected in November 2024, has been attributed by Elastic Security Labs to a threat cluster it tracks as <strong>REF7707<\/strong>. Some of the other targets include a telecommunications entity and a university, both located in Southeast Asia.<\/p>\n<p>&#8220;While the REF7707 campaign is characterized by a well-engineered, highly capable, novel intrusion set, the campaign owners exhibited poor campaign management and inconsistent evasion practices,&#8221; security researchers Andrew Pease and Seth Goodwin <a href=\"https:\/\/www.elastic.co\/security-labs\/fragile-web-ref7707\" rel=\"noopener nofollow\" target=\"_blank\">said<\/a> in a technical analysis.<\/p>\n<div class=\"dog_two clear\"><center class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/encrypted-attacks-report-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><img fetchpriority=\"high\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh6e4c8i_pkXRCFnrtqVIygOrARiVnU3_KUgU5mhPl5V4uj8R1KcQOxRLdZ0xm1Rf5AX_cviUAeiiRkTJCe8HXzOeB363590NBXAMv92N9e7zr4m7aKtDq-Q_gpP9QFWecL0oxcVtmqSg9qrGEGqlDbzwNNFKGJe2nlup4tuL7AZzTm0U501YxPGodOc2Fq\/s728-rw-e100\/zz-d.jpg\" width=\"727\" height=\"90\"\/><\/a><\/center><\/div>\n<p>The exact initial access vector used in the attacks is currently not clear, although it has been observed that Microsoft&#8217;s <a href=\"https:\/\/thehackernews.com\/2024\/04\/hackers-exploit-fortinet-flaw-deploy.html\" rel=\"noopener nofollow\" target=\"_blank\">certutil application<\/a> is used to download additional payloads from a web server associated with the Foreign Ministry.<\/p>\n<p>The certutil commands used to retrieve the suspicious files have been found to be executed via the Windows Remote Management&#8217;s Remote Shell plugin (<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/winrs\" rel=\"noopener nofollow\" target=\"_blank\">WinrsHost.exe<\/a>) from an unknown source system on a connected network.<\/p>\n<p>&#8220;It indicates that attackers already possessed valid network credentials and were using them for lateral movement from a previously compromised host in the environment,&#8221; the researchers noted.<\/p>\n<p>The first of the files to be executed is a malware named PATHLOADER that allows for the execution of encrypted shellcode received from an external server. The extracted shellcode, dubbed FINALDRAFT, is subsequently injected into the memory of a newly-spawned &#8220;mspaint.exe&#8221; process.<\/p>\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg4uAx-2SdfTCyYukJa1jxjILtRHQWXZOmMUpYmGITEBQbZI2t7V_-qU-f4kA_j-E3Dl9I_vomobg2ALwkQxlpO1_ckWc48QoVFnVWLPYdbHt4zs5mdPWPB7NMW7uPEg-eOy41tOiBjjzwQK1NFRpcRRIQf8utOW5V966FE8v9YQnTMK4qATrX-O_SL73Wz\/s728-rw-e365\/es.png\" style=\"display: block;  text-align: center; clear: left; float: left;\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg4uAx-2SdfTCyYukJa1jxjILtRHQWXZOmMUpYmGITEBQbZI2t7V_-qU-f4kA_j-E3Dl9I_vomobg2ALwkQxlpO1_ckWc48QoVFnVWLPYdbHt4zs5mdPWPB7NMW7uPEg-eOy41tOiBjjzwQK1NFRpcRRIQf8utOW5V966FE8v9YQnTMK4qATrX-O_SL73Wz\/s728-rw-e365\/es.png\" alt=\"\" border=\"0\" data-original-height=\"865\" data-original-width=\"1547\"\/><\/a><\/div>\n<p>Written in C++, <a href=\"https:\/\/www.elastic.co\/security-labs\/finaldraft\" rel=\"noopener nofollow\" target=\"_blank\">FINALDRAFT<\/a> is a full-featured remote administration tool that comes fitted with capabilities to execute additional modules on the fly and abuses the Outlook email service via the Microsoft Graph API for command-and-control (C2) purposes. It&#8217;s worth noting that the abuse of the Graph API has been previously detected in another backdoor named <a href=\"https:\/\/thehackernews.com\/2023\/03\/new-naplistener-malware-used-by-ref2924.html\" rel=\"noopener nofollow\" target=\"_blank\">SIESTAGRAPH<\/a>.<\/p>\n<p>The communication mechanism entails parsing the commands stored in the mailbox&#8217;s drafts folder and writing the results of the execution into new draft emails for each command. FINALDRAFT registers 37 command handlers that are designed around process injection, file manipulation, and network proxy capabilities.<\/p>\n<div class=\"dog_two clear\"><center class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/saas-security-v2-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><img decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhT2OnXk97z-adL5WBKzz6wsA7vAhygg3Px0VPmqpH5hH4AErnYajTCpDN7SLy43ejD_T4Skv8OMOdG9qpzMfihrj8o7qSznLKA8zg7jW8L4hY8-umwTNZSpAj0JvtG3VGMFGw9n7hMyea1NpVSXp6yTaClLUQ3GujxwlEuLmQFSsVH28WQy6vp-cOGG0p_\/s728-rw-e100\/saas-security-v2-d.png\" width=\"727\" height=\"90\"\/><\/a><\/center><\/div>\n<p>It&#8217;s also engineered to start new processes with <a href=\"https:\/\/thehackernews.com\/2024\/11\/russian-hackers-exploit-new-ntlm-flaw.html\" rel=\"noopener nofollow\" target=\"_blank\">stolen NTLM hashes<\/a> and execute PowerShell commands in a manner such that it does not invoke the &#8220;powershell.exe&#8221; binary. Instead, it patches several APIs to evade event tracing for Windows (<a href=\"https:\/\/thehackernews.com\/2023\/04\/ransomware-hackers-using-aukill-tool-to.html\" rel=\"noopener nofollow\" target=\"_blank\">ETW<\/a>) and launches <a href=\"https:\/\/github.com\/PowerShellEmpire\/PowerTools\/tree\/master\" rel=\"noopener nofollow\" target=\"_blank\">PowerPick<\/a>, a <a href=\"https:\/\/medium.com\/@polygonben\/unmasking-defence-evasion-unmanaged-powershell-c-net-process-injection-88d1f1a180d5\" rel=\"noopener nofollow\" target=\"_blank\">legitimate utility<\/a> that&#8217;s part of the Empire post-exploitation toolkit.<\/p>\n<p>ELF binary artifacts uploaded to VirusTotal from Brazil and the United States indicate the presence of a Linux variant of FINALDRAFT that features similar C2 functionality. The Linux version, for its part, can execute shell commands via <a href=\"https:\/\/www.man7.org\/linux\/man-pages\/man3\/popen.3.html\" rel=\"noopener nofollow\" target=\"_blank\">popen<\/a> and delete itself from the system.<\/p>\n<p>&#8220;The completeness of the tools and the level of engineering involved suggest that the developers are well-organized,&#8221; the researchers said. &#8220;The extended time frame of the operation and evidence from our telemetry suggest it&#8217;s likely an espionage-oriented campaign.&#8221;<\/p>\n<p><\/p>\n<div class=\"cf note-b\">Found this article interesting?  Follow us on <a href=\"https:\/\/twitter.com\/thehackersnews\" rel=\"noopener nofollow\" target=\"_blank\">Twitter <i class=\"icon-font icon-twitter\">\uf099<\/i><\/a> and <a href=\"https:\/\/www.linkedin.com\/company\/thehackernews\/\" rel=\"noopener nofollow\" target=\"_blank\">LinkedIn<\/a> to read more exclusive content we post.<\/div>\n\n<br \/><a href=\"https:\/\/thehackernews.com\/2025\/02\/finaldraft-malware-exploits-microsoft.html\" rel=\"nofollow noopener\" target=\"_blank\">Source Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ue802Feb 13, 2025\ue804Ravie LakshmananMalware \/ Cyber Espionage Threat hunters have shed light on a new campaign targeting the foreign ministry of an unnamed South American nation with bespoke malware capable&#8230;<\/p>\n","protected":false},"author":19,"featured_media":4920,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[46,39,32,31,33,34,35,40,36,37,42,44,43,41,38,45],"class_list":["post-4919","post","type-post","status-publish","format-standard","has-post-thumbnail","category-cybersecurity","tag-computer-security","tag-cyber-attacks","tag-cyber-news","tag-cyber-security-news","tag-cyber-security-news-today","tag-cyber-security-updates","tag-cyber-updates","tag-data-breach","tag-hacker-news","tag-hacking-news","tag-how-to-hack","tag-information-security","tag-network-security","tag-ransomware-malware","tag-software-vulnerability","tag-the-hacker-news"],"jetpack_featured_media_url":"https:\/\/fusionmindlabs.com\/blogs\/wp-content\/uploads\/sites\/9\/2025\/02\/1739441450_malware.png","_links":{"self":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/4919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/comments?post=4919"}],"version-history":[{"count":1,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/4919\/revisions"}],"predecessor-version":[{"id":4921,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/4919\/revisions\/4921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media\/4920"}],"wp:attachment":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media?parent=4919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/categories?post=4919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/tags?post=4919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}