{"id":1536,"date":"2025-12-16T09:09:37","date_gmt":"2025-12-16T08:09:37","guid":{"rendered":"https:\/\/cert.cyberoo.com\/?p=1536"},"modified":"2025-12-16T10:20:56","modified_gmt":"2025-12-16T09:20:56","slug":"when-edr-fails-technical-analysis-of-the-deadlock-case","status":"publish","type":"post","link":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/","title":{"rendered":"When EDR Fails: Technical Analysis of the DeadLock Case"},"content":{"rendered":"<p>For years, Endpoint Detection and Response (EDR) has been considered one of the main defense technologies against cyber threats, thanks to its ability to provide near real-time visibility and response on endpoints. However, recent ransomware campaigns reveal a harsh reality: <strong>EDR, when used as the sole line of defense, can be easily neutralized<\/strong>.<\/p>\n<p>The DeadLock ransomware group exploited a structural weakness using a well-established technique known as <em>Bring Your Own Vulnerable Driver<\/em> (BYOVD). This method allows attackers to load legitimate but vulnerable drivers to execute code at the kernel level and disable endpoint protection mechanisms.<\/p>\n<p>This is no longer an approach limited to Red Team exercises or research environments; it has become an operational technique adopted by financially motivated cybercriminals to directly target endpoint defenses.<\/p>\n<h3><\/h3>\n<h3 id=\"whathappenedthekernellevelkillswitch\"><strong>What Happened: The Kernel-Level Kill Switch<\/strong><\/h3>\n<p>A concrete example of this issue is the vulnerability <strong>CVE-2024-51324<\/strong>, found in a legitimate, signed driver from Baidu Antivirus, which does not require the product to be installed on the system. This flaw provided attackers with an effective way to disable EDR and antivirus solutions.<\/p>\n<p>The observed attack chain unfolds as follows:<\/p>\n<ul>\n<li><strong>Exploitation of a Legitimate Driver<\/strong><br \/>\nAttackers introduced a genuine but vulnerable Baidu Antivirus driver, <em>BdApiUtil.sys<\/em>, often renamed to evade detection (e.g., <em>DriverGay.sys<\/em> or <em>googleApiUtil64.sys<\/em>). The GOLD SALEM group has also been observed exploiting the same vulnerability.<\/li>\n<li><strong>Improper Privilege Management<\/strong><br \/>\nCVE-2024-51324, classified as CWE-269 (Improper Privilege Management), resides in the driver\u2019s internal logic. Although installation requires administrative privileges, once loaded, the driver accepts requests from processes run by non-privileged users.<\/li>\n<li><strong>Arbitrary Process Termination<\/strong><br \/>\nThe ransomware loader (e.g., <em>EDRGay.exe<\/em>) sends a request via DeviceIoControl () using IOCTL code 0x800024b4. The driver interprets this as a valid command to terminate a process.<\/li>\n<li><strong>Complete Defense Bypass<\/strong><br \/>\nOperating at the kernel level, the driver calls ZwTerminateProcess()\u00a0without checking the caller\u2019s privileges. This allows attackers to <strong>immediately terminate EDR and antivirus services<\/strong>, bypassing user-mode self-protection mechanisms.<\/li>\n<\/ul>\n<p>Once endpoint defenses are neutralized, attackers\u2014often having gained initial access through compromised legitimate credentials\u2014can act undisturbed. Subsequent steps include using PowerShell scripts to disable Windows Defender, stopping backup services, and deleting shadow volume copies, making recovery extremely difficult before deploying the DeadLock ransomware payload.<\/p>\n<h3><\/h3>\n<h3 id=\"edrsweaknesstheagentsblindspot\"><strong>EDR\u2019s Weakness: The Agent\u2019s Blind Spot<\/strong><\/h3>\n<p>BYOVD attacks highlight an inherent limitation of EDR: its reliance on a software agent residing on the endpoint. If a malicious actor exploits a legitimate, signed component to operate at the kernel level, they can silence that agent and completely remove visibility at the most critical moment of the attack.<\/p>\n<p>In these scenarios, EDR does not fail due to lack of functionality, it is deliberately rendered inoperative. The endpoint is effectively left without detection capabilities.<\/p>\n<h3><\/h3>\n<h3 id=\"whyedraloneisntenoughtheroleofmdr\"><strong>Why EDR Alone Isn\u2019t Enough: The Role of MDR<\/strong><\/h3>\n<p>Countering multi-stage attacks like those attributed to DeadLock requires a shift in approach. Defense cannot rely solely on a product but on an <strong>adversary-oriented, layered operational model<\/strong>. This is where MDR (Managed Detection and Response) comes into play.<\/p>\n<p>EDR remains essential for telemetry collection, but MDR introduces a decisive element: specialized human analysis capable of correlating events and identifying weak signals that precede agent elimination.<\/p>\n<p>Specifically, an MDR service enables:<\/p>\n<ul>\n<li><strong>Detecting and Correlating the Entire Attack Chain<\/strong><br \/>\nMDR doesn\u2019t limit itself to alerts generated by the EDR agent; it correlates events from endpoints, identities, networks, and system logs. In campaigns like DeadLock, this means spotting early indicators such as unusual use of legitimate accounts, registry changes enabling RDP, installation of remote access software, or suspicious PowerShell scripts. Correlating these events allows detection in the initial stages\u2014before the EDR is disabled.<\/li>\n<li><strong>Identifying and Blocking Evasive Techniques Before They Take Effect<\/strong><br \/>\nThrough continuous threat hunting, MDR actively searches for behaviors linked to known techniques, such as loading unauthorized or vulnerable drivers typical of BYOVD attacks. This approach intercepts the abuse of legitimate components before they are used to operate at the kernel level and disable endpoint defenses.<\/li>\n<li><strong>Applying and Maintaining Operational Mitigation Measures<\/strong><br \/>\nMDR supports implementing and maintaining concrete security controls, such as application control policies, driver loading restrictions, and system hardening. These measures are not applied once but verified and adapted over time based on evolving threats.<\/li>\n<li><strong>Managing Incident Response in a Coordinated and Timely Manner<\/strong><br \/>\nWhen an attack is underway or has bypassed detection, MDR provides a specialized team capable of rapid intervention. Activities include containing the compromised endpoint, assessing impact, halting lateral movement, and supporting recovery operations\u2014reducing attacker dwell time within the infrastructure.<\/li>\n<\/ul>\n<h3><\/h3>\n<h3 id=\"inconclusion\"><strong>In Conclusion<\/strong><\/h3>\n<p>EDR remains a critical component of endpoint security, but it is no longer sufficient as a standalone defense. BYOVD techniques demonstrate that attackers can directly target the kernel level and disable endpoint controls before the destructive phase of the attack.<\/p>\n<p>In this scenario, MDR represents the necessary evolution: a model combining technology, processes, extended visibility, and human expertise to detect and counter attacks even when EDR is bypassed. For organizations, this is no longer an optional improvement but a fundamental requirement to face increasingly sophisticated threats.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For years, Endpoint Detection and Response (EDR) has been considered one of the main defense technologies against cyber threats, thanks to its ability to provide near real-time visibility and response on endpoints. However, recent ransomware&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":{"0":"post-1536","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-cert-posts"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>When EDR Fails: Technical Analysis of the DeadLock Case<\/title>\n<meta name=\"description\" content=\"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When EDR Fails: Technical Analysis of the DeadLock Case\" \/>\n<meta property=\"og:description\" content=\"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/\" \/>\n<meta property=\"og:site_name\" content=\"CYBEROO CERT - Tech Updates | Cybersecurity\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-16T08:09:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-16T09:20:56+00:00\" \/>\n<meta name=\"author\" content=\"Fabio\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/\",\"url\":\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/\",\"name\":\"When EDR Fails: Technical Analysis of the DeadLock Case\",\"isPartOf\":{\"@id\":\"https:\/\/cert.cyberoo.com\/en\/#website\"},\"datePublished\":\"2025-12-16T08:09:37+00:00\",\"dateModified\":\"2025-12-16T09:20:56+00:00\",\"author\":{\"@id\":\"https:\/\/cert.cyberoo.com\/en\/#\/schema\/person\/545b2d7fe7bb74e42a69f50937fb59fc\"},\"description\":\"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.\",\"breadcrumb\":{\"@id\":\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cert.cyberoo.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When EDR Fails: Technical Analysis of the DeadLock Case\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cert.cyberoo.com\/en\/#website\",\"url\":\"https:\/\/cert.cyberoo.com\/en\/\",\"name\":\"CYBEROO CERT - Tech Updates | Cybersecurity\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cert.cyberoo.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cert.cyberoo.com\/en\/#\/schema\/person\/545b2d7fe7bb74e42a69f50937fb59fc\",\"name\":\"Fabio\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/fabio-pio-rauzino\/\"],\"url\":\"https:\/\/cert.cyberoo.com\/en\/author\/fabiopio-rauzino\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When EDR Fails: Technical Analysis of the DeadLock Case","description":"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/","og_locale":"en_US","og_type":"article","og_title":"When EDR Fails: Technical Analysis of the DeadLock Case","og_description":"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.","og_url":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/","og_site_name":"CYBEROO CERT - Tech Updates | Cybersecurity","article_published_time":"2025-12-16T08:09:37+00:00","article_modified_time":"2025-12-16T09:20:56+00:00","author":"Fabio","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Fabio","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/","url":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/","name":"When EDR Fails: Technical Analysis of the DeadLock Case","isPartOf":{"@id":"https:\/\/cert.cyberoo.com\/en\/#website"},"datePublished":"2025-12-16T08:09:37+00:00","dateModified":"2025-12-16T09:20:56+00:00","author":{"@id":"https:\/\/cert.cyberoo.com\/en\/#\/schema\/person\/545b2d7fe7bb74e42a69f50937fb59fc"},"description":"Discover why EDR alone fails against BYOVD attacks and how MDR ensures layered defense against ransomware threats.","breadcrumb":{"@id":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cert.cyberoo.com\/en\/when-edr-fails-technical-analysis-of-the-deadlock-case\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cert.cyberoo.com\/en\/"},{"@type":"ListItem","position":2,"name":"When EDR Fails: Technical Analysis of the DeadLock Case"}]},{"@type":"WebSite","@id":"https:\/\/cert.cyberoo.com\/en\/#website","url":"https:\/\/cert.cyberoo.com\/en\/","name":"CYBEROO CERT - Tech Updates | Cybersecurity","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cert.cyberoo.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cert.cyberoo.com\/en\/#\/schema\/person\/545b2d7fe7bb74e42a69f50937fb59fc","name":"Fabio","sameAs":["https:\/\/www.linkedin.com\/in\/fabio-pio-rauzino\/"],"url":"https:\/\/cert.cyberoo.com\/en\/author\/fabiopio-rauzino\/"}]}},"_links":{"self":[{"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/posts\/1536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/comments?post=1536"}],"version-history":[{"count":2,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/posts\/1536\/revisions"}],"predecessor-version":[{"id":1538,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/posts\/1536\/revisions\/1538"}],"wp:attachment":[{"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/media?parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/categories?post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cert.cyberoo.com\/en\/wp-json\/wp\/v2\/tags?post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}