{"id":1885,"date":"2025-01-23T21:10:10","date_gmt":"2025-01-23T21:10:10","guid":{"rendered":"https:\/\/fusionmindlabs.com\/blogs\/2025\/01\/23\/juniper-router-backdoor-exploiting-magic-packet-vulnerability\/"},"modified":"2025-01-23T21:10:12","modified_gmt":"2025-01-23T21:10:12","slug":"juniper-router-backdoor-exploiting-magic-packet-vulnerability","status":"publish","type":"post","link":"https:\/\/fusionmindlabs.com\/blogs\/juniper-router-backdoor-exploiting-magic-packet-vulnerability\/","title":{"rendered":"Juniper Router Backdoor Exploiting Magic Packet Vulnerability"},"content":{"rendered":"\n<\/p>\n<h1>J-Magic Campaign: Custom Backdoor Targets Enterprise-Grade Juniper Networks Routers<\/h1>\n<h2>By Ravie Lakshmanan, January 23, 2025<\/h2>\n<div class=\"p-author\"><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Jan 23, 2025<\/span><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><\/span><span class=\"p-tags\">Malware \/ Enterprise Security<\/span><\/div>\n<p>Enterprise-grade Juniper Networks routers have become the target of a custom backdoor as part of a campaign dubbed <strong>J-magic<\/strong>.<\/p>\n<p>According to the Black Lotus Labs team at Lumen Technologies, the activity is so named for the fact that the backdoor continuously monitors for a &#8220;magic packet&#8221; sent by the threat actor in TCP traffic.<\/p>\n<p>&#8220;J-magic campaign marks the rare occasion of malware designed specifically for JunoOS, which serves a similar market but relies on a different operating system, a variant of FreeBSD,&#8221; the company <a href=\"https:\/\/blog.lumen.com\/the-j-magic-show-magic-packets-and-where-to-find-them\/\" rel=\"noopener nofollow\" target=\"_blank\">said<\/a> in a report shared with The Hacker News.<\/p>\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgzW9_T09YfeuDIdaBgG8cu_4kqv8SaU7b97xIH-ytWTab6AdYDxhFFGLAwaEXlpC5tYXwPO-iiefdUbi246vZV7vUMoRhJXMWY05hW0E0z_K9Q3loIkRAn_uUKJEHN4YAWwdJ24yk613091J7X-dqiuJABdPc9qmffqqYyXFiCNvlC21HP9ryQ7vakU951\/s728-rw-e365\/jon.png\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><\/a><\/div>\n<p>Evidence gathered by the company shows that the earliest sample of the backdoor dates back to September 2023, with the activity ongoing between mid-2023 and mid-2024. Semiconductor, energy, manufacturing, and information technology (IT) sectors were the most targeted.<\/p>\n<p>Infections have been reported across Europe, Asia, and South America, including Argentine, Armenia, Brazil, Chile, Colombia, Indonesia, the Netherlands, Norway, Peru, the U.K., the U.S., and Venezuela.<\/p>\n<p>The campaign is notable for deploying an agent after gaining initial access through an as-yet-undetermined method. The agent, a variant of a publicly available backdoor referred to as <a href=\"https:\/\/packetstormsecurity.com\/files\/22121\/cd00r.c.html\" rel=\"noopener nofollow\" target=\"_blank\">cd00r<\/a>, waits for five different pre-defined parameters before commencing its operations.<\/p>\n<p>On the receipt of these magic packets, the agent is configured to send back a secondary challenge, following which J-magic establishes a reverse shell to the IP address and port specified in the magic packet. This enables the attackers to control the device, steal data, or deploy additional payloads.<\/p>\n<p>Lumen theorized that the inclusion of the challenge is an attempt on part of the adversary to prevent other threat actors from issuing magic packets in an indiscriminate manner and repurpose the J-magic agents to <a href=\"https:\/\/thehackernews.com\/2024\/12\/secret-blizzard-deploys-kazuar-backdoor.html\" rel=\"noopener nofollow\" target=\"_blank\">meet their own objectives<\/a>.<\/p>\n<p>It&#8217;s worth noting that another variant of cd00r, codenamed <a href=\"https:\/\/thehackernews.com\/2023\/06\/chinese-unc4841-group-exploits-zero-day.html\" rel=\"noopener nofollow\" target=\"_blank\">SEASPY<\/a>, was deployed in connection with a campaign aimed at Barracuda Email Security Gateway (ESG) appliances in late 2022.<\/p>\n<p>That said, there is no evidence at this stage to connect the two campaigns, nor does the J-magic campaign demonstrate any signs that it overlaps with other campaigns targeting enterprise-grade routers such as <a href=\"https:\/\/thehackernews.com\/2023\/04\/us-and-uk-warn-of-russian-hackers.html\" rel=\"noopener nofollow\" target=\"_blank\">Jaguar Tooth<\/a> and <a href=\"https:\/\/thehackernews.com\/2023\/09\/chinas-blacktech-hacking-group.html\" rel=\"noopener nofollow\" target=\"_blank\">BlackTech<\/a> (aka Canary Typhoon).<\/p>\n<div class=\"dog_two clear\"><center class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/itdr-guide-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\/AVvXsEi2DhAEcfZPomMkFjg_PBGRtXcqSQWz21i5YgcBHDXAjhJz4KVuiPktjD7s23mDT7Lwg5ksNAz_1NiUuj1W-8eE8etOwr48VJxkeQo0bgmcJs5BOnWwOJg2onaXTzXPrZNlczStGVo4Cya1_B4i3-R_PaYRch5wRxJ9FjH4KKLewchcG72H04aGgIR7jPTK\/s1600\/per-d.png\" width=\"727\" height=\"90\"\/><\/a><\/center><\/div>\n<p>A majority of the potentially impacted IP addresses are said to be Juniper routers acting as VPN gateways, with a second smaller cluster comprising those with an exposed <a href=\"https:\/\/www.juniper.net\/documentation\/us\/en\/software\/junos\/netconf\/index.html\" rel=\"noopener nofollow\" target=\"_blank\">NETCONF port<\/a>. It&#8217;s believed that the network configuration devices may have been targeted for their ability to automate router configuration information and management.<\/p>\n<p>With routers being abused by nation-state actors preparing for follow-on attacks, the latest findings underscore the continued <a href=\"https:\/\/thehackernews.com\/2024\/06\/china-backed-hackers-exploit-fortinet.html\" rel=\"nofollow noopener\" target=\"_blank\">targeting of edge infrastructure<\/a>, largely driven by the long uptime and a lack of endpoint detection and response (EDR) protections in such devices.<\/p>\n<p>&#8220;One of the most notable aspects of the campaign is the focus on Juniper routers,&#8221; Lumen said. &#8220;While we have seen heavy targeting of other networking equipment, this campaign demonstrates that attackers can find success expanding to other device types such as enterprise-grade routers.&#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\/01\/custom-backdoor-exploiting-magic-packet.html\" rel=\"nofollow noopener\" target=\"_blank\">Source Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>J-Magic Campaign: Custom Backdoor Targets Enterprise-Grade Juniper Networks Routers By Ravie Lakshmanan, January 23, 2025 \ue802Jan 23, 2025\ue804Ravie LakshmananMalware \/ Enterprise Security Enterprise-grade Juniper Networks routers have become the target&#8230;<\/p>\n","protected":false},"author":19,"featured_media":1886,"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-1885","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\/01\/jon.png","_links":{"self":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/1885","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=1885"}],"version-history":[{"count":1,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/1885\/revisions"}],"predecessor-version":[{"id":1887,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/1885\/revisions\/1887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media\/1886"}],"wp:attachment":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media?parent=1885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/categories?post=1885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/tags?post=1885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}