{"id":3391,"date":"2025-04-19T10:05:21","date_gmt":"2025-04-19T10:05:21","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/04\/19\/leaked-keyplug-malware-infrastructure-contains-exploit-scripts-to-hack-fortinet-firewall-and-vpn\/"},"modified":"2025-04-19T10:05:21","modified_gmt":"2025-04-19T10:05:21","slug":"leaked-keyplug-malware-infrastructure-contains-exploit-scripts-to-hack-fortinet-firewall-and-vpn","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/04\/19\/leaked-keyplug-malware-infrastructure-contains-exploit-scripts-to-hack-fortinet-firewall-and-vpn\/","title":{"rendered":"Leaked KeyPlug Malware Infrastructure Contains Exploit Scripts to Hack Fortinet Firewall and VPN"},"content":{"rendered":"<p>    Leaked KeyPlug Malware Infrastructure Contains Exploit Scripts to Hack Fortinet Firewall and VPN<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A server briefly linked to the notorious KeyPlug malware has inadvertently exposed a comprehensive arsenal of exploitation tools specifically designed to target Fortinet firewall and VPN appliances.<\/p>\n<p>The infrastructure, which security researchers have attributed to the RedGolf threat group (overlapping with APT41), was accessible for less than 24 hours before being secured, providing a rare glimpse into advanced persistent threat operations aimed at critical network infrastructure.<\/p>\n<p>The exposed server at IP 45.77.34[.]88 revealed multiple exploit scripts targeting vulnerabilities in Fortinet devices, including what appears to be tools leveraging CVE-2024-23108 and CVE-2024-23109.<\/p>\n<p>These exploits specifically abuse unauthenticated WebSocket endpoints in FortiOS to execute privileged CLI commands, potentially giving attackers complete control over targeted appliances.<\/p>\n<p>The brief exposure underscores the sophisticated capabilities of the threat actor and their focus on high-value network security devices.<\/p>\n<p>Hunt.io researchers <a href=\"https:\/\/hunt.io\/blog\/keyplug-server-exposes-fortinet-exploits-webshells\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">noted<\/a> that the server shared a WolfSSL-issued TLS certificate with five additional servers, all hosted on Vultr, creating a traceable pattern of infrastructure.<\/p>\n<p>Their AttackCapture<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/s.w.org\/images\/core\/emoji\/15.1.0\/72x72\/2122.png?ssl=1\" alt=\"\u2122\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\"> system indexed the server during its brief exposure, preserving critical evidence that might otherwise have been lost when the misconfiguration was corrected.<\/p>\n<p>Among the most concerning findings were <a href=\"https:\/\/cybersecuritynews.com\/new-python-based-discord-rat-attacking-users\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python-based<\/a> reconnaissance scripts designed to scan for and fingerprint Fortinet devices.<\/p>\n<p>One such script, identified as \u201c1.py,\u201d systematically probes potential targets for Fortinet login portals and extracts version-specific JavaScript hash values that can be used to determine exploit compatibility. The script extracts hashes using the logic:-<\/p>\n<pre class=\"wp-block-code\"><code>script_tag = soup.select_one(\"script[src^='\/sslvpn\/js\/login.js']\")\nHash = script_tag['src'].split('=')[1]<\/code><\/pre>\n<p>A more aggressive exploit tool named \u201cws_test.py\u201d demonstrated functionality for bypassing Fortinet <a href=\"https:\/\/cybersecuritynews.com\/teamcity-authentication-bypass-vulnerabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">authentication<\/a> by spoofing local traffic. The script uses a hardcoded header to simulate local access:-<\/p>\n<pre class=\"wp-block-code\"><code>headers = {'Forwarded': 'for=127.0.0.1; by=127.0.0.1;', 'User-Agent': 'Node.js'}<\/code><\/pre>\n<p>This bypass technique, when successful, allows execution of privileged commands such as \u201cshow full-configuration\u201d without any authentication, potentially compromising the entire device.<\/p>\n<p>The leaked infrastructure also contained evidence of targeting focused on a major Japanese company, Shiseido. Reconnaissance output files revealed nearly one hundred domains associated with the company, including login portals, development environments, and identity providers.<\/p>\n<p>This targeting suggests the threat actor may be engaged in corporate espionage or preparing for a significant supply chain compromise.<\/p>\n<p>The analysis revealed a particularly sophisticated PHP-based webshell called \u201cbx.php\u201d that uses encryption to hide command execution.<\/p>\n<p>The webshell reads encrypted payloads directly from HTTP POST bodies, decrypts them in memory, and executes commands dynamically, leaving minimal evidence on disk or in logs.<\/p>\n<p>Security experts recommend immediate patching of all Fortinet devices, <a href=\"https:\/\/cybersecuritynews.com\/best-remote-monitoring-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">monitoring<\/a> for WebSocket handshake requests to suspicious endpoints, and reviewing historical logs for signs of exploitation attempts using these now-exposed techniques.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong><code>Malware Trends Report Based on 15000 SOC Teams Incidents, Q1 2025 out!-&gt;\u00a0<a href=\"https:\/\/any.run\/cybersecurity-blog\/malware-trends-q1-2025\/?utm_source=cyber-threat-intel_linkedin&amp;utm_medium=post&amp;utm_campaign=q1&amp;utm_content=blog&amp;utm_term=150425\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Get Your Free Copy<\/a><\/code><\/strong><\/p>\n<\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/leaked-keyplug-malware-infrastructure-contains-exploit-scripts\/\">Leaked KeyPlug Malware Infrastructure Contains Exploit Scripts to Hack Fortinet Firewall and VPN<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Tushar Subhra Dutta<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/leaked-keyplug-malware-infrastructure-contains-exploit-scripts\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Leaked KeyPlug Malware Infrastructure Contains Exploit Scripts to Hack Fortinet Firewall and VPN A server briefly linked to the notorious KeyPlug malware has inadvertently exposed a comprehensive arsenal of exploitation tools specifically designed to target Fortinet firewall and VPN appliances. The infrastructure, which security researchers have attributed to the RedGolf threat group (overlapping with APT41), [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,649],"tags":[130],"class_list":["post-3391","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-threats","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3391"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=3391"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3391\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=3391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=3391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=3391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}