{"id":10593,"date":"2025-03-18T16:40:06","date_gmt":"2025-03-18T16:40:06","guid":{"rendered":"https:\/\/fusionmindlabs.com\/blogs\/new-attack-lets-hackers-inject-malware-via-ai-editors\/"},"modified":"2025-03-18T16:40:07","modified_gmt":"2025-03-18T16:40:07","slug":"new-attack-lets-hackers-inject-malware-via-ai-editors","status":"publish","type":"post","link":"https:\/\/fusionmindlabs.com\/blogs\/new-attack-lets-hackers-inject-malware-via-ai-editors\/","title":{"rendered":"New Attack Lets Hackers Inject Malware via AI Editors"},"content":{"rendered":"\n<\/p>\n<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Mar 18, 2025<\/span><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><\/span><span class=\"p-tags\">AI Security \/ Software Security<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\">\n<a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiJ4cdKNW98lI9D2y2cHk4tOWGoGUWswwMtIDSzOOucwo6u3gxkFfGdgARMoKaocmCjn7SkFg9r63TI0tdQ51K0abn0_bjanO4HSlBMBpDwYJ6xgqwXYp5hsR-So_33pkzTuWFXdAzYpg00C3Y5WpDtCgSW_L91lRJ5XwZKnafgh1bhS2HOMQ_ZrL1IiszJ\/s728-rw-e365\/hacks.png\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><\/p>\n<p><\/a>\n<\/div>\n<p>Security experts have revealed a new supply chain attack method called Rules File Backdoor, which affects AI-powered code editors like GitHub Copilot and Cursor, enabling them to inject malicious code into otherwise secure systems.<\/p>\n<p>According to Ziv Karliner, Co-Founder and CTO of Pillar Security, &#8220;This technique allows hackers to secretly compromise AI-generated code by embedding malicious instructions in seemingly innocent configuration files used by Cursor and GitHub Copilot,&#8221; as stated in a <a href=\"https:\/\/www.pillar.security\/blog\/new-vulnerability-in-github-copilot-and-cursor-how-hackers-can-weaponize-code-agents\" rel=\"noopener nofollow\" target=\"_blank\">technical report<\/a> shared with The Hacker News.<\/p>\n<div class=\"dog_two clear\">\n<center class=\"cf\"><br \/>\n<a href=\"https:\/\/thehackernews.uk\/cis-securesuite\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><br \/>\n<img fetchpriority=\"high\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhsFQaSLfkFdKcodtNnSya8V2yj1C_ZVcqQImhnHDikdLhrgZ4hoAIdzNPEjMn6tIl2dSBa9PZVJm5Q6CW4Iprd32O0xaNt3UTVX1U9kEK629GDLqpr7Dd6lynygeNXdkuKNi_TlVZ1vRZI_fXFdvFwBm25WNf4tQHZfgpXHiaw1nnd6E5jLX8vrn4fB3mN\/s728-e100\/cis-d.png\" width=\"727\" height=\"90\"\/><br \/>\n<\/a><br \/>\n<\/center>\n<\/div>\n<p>&#8220;By utilizing hidden Unicode characters and advanced evasion techniques, threat actors can manipulate the AI into generating malicious code that bypasses standard code reviews, effectively turning the AI into a conduit for malicious activity.&#8221;<\/p>\n<p>The significance of this attack lies in its ability to propagate malicious code silently across projects, posing a substantial supply chain risk to affected systems.<\/p>\n<div class=\"separator\" style=\"clear: both;\">\n<a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyT7qID-n896UISveLxLOg5g4kN2j3fGss6x-34C9X0dHnFK65ybKqOpY-eSgxBPtpYltjwYlmXjVEDD-vYy2zF38toMMx0Eh49WXhTZIHBZ8Kc3aUAgNsrS9CqI7Y0OHBILU9QVR9JB3r-dH0-S004bdp7bKGp6EP_QUwfSgzm6b4dp97PuCCWTHNotnX\/s728-rw-e365\/cursor.png\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyT7qID-n896UISveLxLOg5g4kN2j3fGss6x-34C9X0dHnFK65ybKqOpY-eSgxBPtpYltjwYlmXjVEDD-vYy2zF38toMMx0Eh49WXhTZIHBZ8Kc3aUAgNsrS9CqI7Y0OHBILU9QVR9JB3r-dH0-S004bdp7bKGp6EP_QUwfSgzm6b4dp97PuCCWTHNotnX\/s728-rw-e365\/cursor.png\" alt=\"Malicious Code via AI Code Editors\" border=\"0\" data-original-height=\"885\" data-original-width=\"1909\" title=\"Malicious Code via AI Code Editors\"\/><br \/>\n<\/a>\n<\/div>\n<p>The core of the attack revolves around the rules files used by AI agents to define their behavior and guide best coding practices, which can be exploited to inject malicious code.<\/p>\n<p>Specifically, it involves crafting carefully designed prompts within seemingly innocuous rule files, causing the AI tool to generate code containing security vulnerabilities or backdoors, effectively manipulating the AI into producing malicious code.<\/p>\n<p>This can be achieved by utilizing zero-width joiners, bidirectional text markers, and other invisible characters to conceal malicious instructions, exploiting the AI&#8217;s interpretation of natural language to generate vulnerable code via semantic patterns that trick the model into overriding safety constraints.<\/p>\n<div class=\"dog_two clear\">\n<center class=\"cf\"><br \/>\n<a href=\"https:\/\/thehackernews.uk\/cloud-secure-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><br \/>\n<img decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhPWsOsc5-XgG7OgLaedicSgtFyWz34mXvDdyCyBN0HSv2LVBMQPs-Ma8uaYGqN19Mvm7puED6vlOFihpguPFfq-e_PQ6pfqHPeMKSX6luNSqXs_m3IHmaA6waPe8qHtxB35qw_CdmXzEDQ30crRU_-UvN9w8cSL1W51CocP1fJXyJIrdUcBNvSaMyhb_cV\/s728-e100\/cloud-secure-d.jpg\" width=\"727\" height=\"90\"\/><br \/>\n<\/a><br \/>\n<\/center>\n<\/div>\n<p>Following responsible disclosure in late February and March 2024, both Cursor and GitHub have emphasized that users are responsible for reviewing and accepting suggestions generated by the tools.<\/p>\n<p>According to Karliner, &#8220;&#8216;Rules File Backdoor&#8217; represents a significant risk, as it effectively turns the developer&#8217;s most trusted assistant into an unwitting accomplice, potentially affecting millions of end users through compromised software.&#8221;<\/p>\n<p>&#8220;Once a poisoned rule file is incorporated into a project repository, it affects all future code-generation sessions by team members, and the malicious instructions often survive project forking, creating a vector for supply chain attacks that can affect downstream dependencies and end users.&#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<\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n<br \/>\n<br \/><a href=\"https:\/\/thehackernews.com\/2025\/03\/new-rules-file-backdoor-attack-lets.html\" rel=\"nofollow noopener\" target=\"_blank\">Source Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ue802Mar 18, 2025\ue804Ravie LakshmananAI Security \/ Software Security Security experts have revealed a new supply chain attack method called Rules File Backdoor, which affects AI-powered code editors like GitHub Copilot&#8230;<\/p>\n","protected":false},"author":19,"featured_media":10594,"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-10593","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\/03\/hacks.png","_links":{"self":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/10593","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=10593"}],"version-history":[{"count":1,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/10593\/revisions"}],"predecessor-version":[{"id":10595,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/10593\/revisions\/10595"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media\/10594"}],"wp:attachment":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media?parent=10593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/categories?post=10593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/tags?post=10593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}