{"id":7616,"date":"2025-10-12T10:03:28","date_gmt":"2025-10-12T10:03:28","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/10\/12\/hackers-can-inject-malicious-code-into-antivirus-processes-to-create-a-backdoor\/"},"modified":"2025-10-12T10:03:28","modified_gmt":"2025-10-12T10:03:28","slug":"hackers-can-inject-malicious-code-into-antivirus-processes-to-create-a-backdoor","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/10\/12\/hackers-can-inject-malicious-code-into-antivirus-processes-to-create-a-backdoor\/","title":{"rendered":"Hackers Can Inject Malicious Code into Antivirus Processes to Create a Backdoor"},"content":{"rendered":"<p>    Hackers Can Inject Malicious Code into Antivirus Processes to Create a Backdoor<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 new technique enables attackers to exploit antivirus software by injecting harmful code directly into the antivirus processes. This approach makes it easier for them to evade detection and compromise the security that antivirus software is designed to provide.<\/p>\n<p>This method, detailed by cybersecurity researcher Two Seven One Three on X (@TwoSevenOneT), involves cloning protected services and hijacking cryptographic providers to create a backdoor in the antivirus installation folder, bypassing standard defenses.<\/p>\n<p>The approach highlights a vulnerability in how antivirus solutions prioritize their own stability. By injecting code into these \u201cunkillable\u201d processes, researchers gain elevated privileges to perform actions like writing files to restricted directories, all while evading detection. <\/p>\n<p>As antivirus programs evolve to combat sophisticated threats, such techniques underscore the delicate balance between robust security and operational reliability.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-bypassing-antivirus-defenses\"><strong>Bypassing Antivirus Defenses<\/strong><\/h2>\n<p>Antivirus software employs multiple strategies to shield its core processes from interference, ensuring uninterrupted protection for users.<\/p>\n<p>These programs typically run with SYSTEM-level privileges, granting them broad access to monitor and neutralize threats across the system.<\/p>\n<p>Process introspection allows the antivirus to vigilantly scan its own threads for anomalies, such as unauthorized code injections from external sources.<\/p>\n<p>Further safeguards include code integrity checks that verify the authenticity of loaded modules and the use of Windows\u2019 Protected Process Light (PPL) feature.<\/p>\n<p>This isolates user-mode processes, preventing tampering even by administrators. In the kernel, <a href=\"https:\/\/cybersecuritynews.com\/anti-phishing-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">antivirus<\/a> drivers deploy sensors to block alterations to detection mechanisms, while self-protection routines automatically restart compromised components or alert on suspicious activity.<\/p>\n<p>Determining which processes qualify for protection is equally meticulous. Developers avoid simplistic checks like process names, which attackers could spoof by mimicking filenames.<\/p>\n<p>Instead, solutions like Bitdefender combine verification of the process\u2019s ImagePath, ensuring the executable resides in the correct directory, with restrictions on file writes to installation folders.<\/p>\n<p>Digital signatures of loaded DLLs add another layer, though attackers can attempt to bypass these through advanced evasion tactics.<\/p>\n<p>Modifying the Process Environment Block (PEB) or using the CreateProcess API handles proves futile, as kernel drivers monitor initialization from the outset.<\/p>\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\">\n<div class=\"wp-block-embed__wrapper\">\n<div class=\"embed-twitter\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Anything that seems too good to be true for malware developers: executing code within <a href=\"https:\/\/twitter.com\/hashtag\/antimalware?src=hash&amp;ref_src=twsrc%5Etfw\">#antimalware<\/a> processes.<br \/>Github: TwoSevenOneT\/IAmAntimalware<a href=\"https:\/\/twitter.com\/hashtag\/redteam?src=hash&amp;ref_src=twsrc%5Etfw\">#redteam<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/pentest?src=hash&amp;ref_src=twsrc%5Etfw\">#pentest<\/a> <a href=\"https:\/\/t.co\/kii6dpY6yQ\">pic.twitter.com\/kii6dpY6yQ<\/a><\/p>\n<p>\u2014 Two Seven One Three (@TwoSevenOneT) <a href=\"https:\/\/twitter.com\/TwoSevenOneT\/status\/1976946305806352483?ref_src=twsrc%5Etfw\">October 11, 2025<\/a>\n<\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div>\n<\/div>\n<\/figure>\n<h2 class=\"wp-block-heading\" id=\"h-service-cloning-and-injection-methods\"><strong>Service Cloning and Injection Methods<\/strong><\/h2>\n<p>The technique\u2019s ingenuity lies in leveraging the antivirus\u2019s reliance on operating system features while exploiting less-guarded auxiliary components.<\/p>\n<p>Modern antivirus suites bundle extras like firewalls, VPNs, and user interfaces, each running protected processes with installation folder write access. Since direct termination or suspension of these is blocked short of kernel exploits or tools like <a href=\"https:\/\/cybersecuritynews.com\/edr-freeze-tool\/\" target=\"_blank\" rel=\"noreferrer noopener\">EDR-Freeze<\/a>, researchers turn to cloning.<\/p>\n<p>By manually exporting and importing registry keys for an antivirus service, such as Bitdefender\u2019s BDProtSrv, a duplicate service can be created with identical configurations.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgweJZKp_T20YuMXO4-5jDVE3iFvjjFJhaoGSlUJYx138pWeTfag2XCs1lg2ptxYaovTvUTo-lKRCLBp1o0SwwDoOHZaTqZyHdGdaYhpODu9IYFV-ZyXAX5BSIp1DFrMpmIDb_HIY7tff3llubgGjXdaxj8Av-l2_tm3Vpn-wvI_7FWxaprgitbyKrTGFE2\/s16000\/BitDefender%2520service%2520clone%2520running.webp?ssl=1\" alt=\"\"><\/figure>\n<p>A system reboot loads this clone into Services.exe\u2019s cache, spawning a new protected process. Testing with Process Explorer confirms protection via \u201caccess denied\u201d errors when attempting termination.<\/p>\n<p>Injection occurs by hijacking the Windows Cryptography API, which antivirus processes use for encryption and signing. Modifying the registry key HKLMSOFTWAREMicrosoftCryptographyDefaultsProvider to point to a malicious DLL triggers loading during service startup.<\/p>\n<p>To evade signature checks, the DLL is signed using cloned certificates from legitimate Windows programs, a method detailed in SpecterOps research.<\/p>\n<p>Steps include creating the cloned service, altering the provider, trusting the signature, launching the service, verifying execution, and restoring the registry to avoid instability.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-iamantimalware-a-tool-for-testing-and-evasion\"><strong>IAmAntimalware: A Tool for Testing and Evasion<\/strong><\/h2>\n<p>To automate this process, Two Seven One Three developed IAmAntimalware, an open-source tool available on GitHub. It clones services, modifies cryptographic providers or COM objects, imports certificates, and starts the duplication all with command-line parameters specifying the original service, clone name, certificate file, and DLL path.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhPazF7r55opsFlPob4UJfeQNmBFDVrty49dPb2ARKkqiMK7o4raFDp4W71NSSqYR639JVirJurXNFar9rbzy8R39LUqvu8u58TIpi5e5U7yUov5H8q-13JWV364UeXnedy04pRmY6SuKUAN05vKC2Z7PQ4C1DKDRh5f4ClV6hWgtQPqd5hPW-1WePfAhM8\/s16000\/IAmAntimalware%2520running%2520console.webp?ssl=1\" alt=\"\"><\/figure>\n<p>In tests with Bitdefender, the tool signed a sample DLL using CertClone, another GitHub utility that duplicates signatures. The DLL, which outputs debug strings and writes a \u201cmark.txt\u201d file to the installation folder, was successfully injected after execution.<\/p>\n<p>Similar results emerged with Trend Micro and Avast, though Avast required tweaks to target its GUI process for reliability. This method\u2019s implications are profound: malware could embed backdoors in antivirus environments, executing undetected.<\/p>\n<p>Prevention demands vigilant monitoring of module loads from anomalous paths, auditing trusted certificates in the registry, and enforcing PPL alongside behavioral analytics.<\/p>\n<p>As pentesting evolves, such disclosures push antivirus vendors to fortify against their own strengths turning into liabilities.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong>Follow us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>, and <a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a> for daily cybersecurity updates. <a href=\"https:\/\/cybersecuritynews.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Contact us<\/a> to feature your stories.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/malicious-code-into-antivirus\/\">Hackers Can Inject Malicious Code into Antivirus Processes to Create a Backdoor<\/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    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/malicious-code-into-antivirus\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Can Inject Malicious Code into Antivirus Processes to Create a Backdoor A new technique enables attackers to exploit antivirus software by injecting harmful code directly into the antivirus processes. This approach makes it easier for them to evade detection and compromise the security that antivirus software is designed to provide. This method, detailed by [&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,131,648],"tags":[130],"class_list":["post-7616","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7616"}],"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=7616"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7616\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=7616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=7616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=7616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}