{"id":6382,"date":"2025-08-23T10:03:36","date_gmt":"2025-08-23T10:03:36","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/08\/23\/hackers-can-exfiltrate-windows-secrets-and-credentials-silently-by-evading-edr-detection\/"},"modified":"2025-08-23T10:03:36","modified_gmt":"2025-08-23T10:03:36","slug":"hackers-can-exfiltrate-windows-secrets-and-credentials-silently-by-evading-edr-detection","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/08\/23\/hackers-can-exfiltrate-windows-secrets-and-credentials-silently-by-evading-edr-detection\/","title":{"rendered":"Hackers Can Exfiltrate Windows Secrets and Credentials Silently by Evading EDR Detection"},"content":{"rendered":"<p>    Hackers Can Exfiltrate Windows Secrets and Credentials Silently by Evading EDR Detection<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 method to silently exfiltrate Windows secrets and credentials, evading detection from most <a href=\"https:\/\/cybersecuritynews.com\/best-edr-tools\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Endpoint Detection and Response (EDR)<\/a> solutions.<\/p>\n<p>This technique allows attackers who have gained an initial foothold on a Windows machine to harvest credentials for lateral movement across a network without triggering common security alerts.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-how-windows-manages-secrets\"><strong>How Windows Manages Secrets<\/strong><\/h2>\n<p>The Local Security Authority (LSA), running within the <code>lsass.exe<\/code> process, is the core Windows component responsible for managing sensitive information. The LSA uses two in-memory databases that correspond to on-disk registry hives:<\/p>\n<ul class=\"wp-block-list\">\n<li>\n<strong>SAM database:<\/strong> Manages user, group, and alias objects and corresponds to the <code>SAM<\/code> registry hive. It stores user credentials, but there is no direct API to retrieve them in plaintext.<\/li>\n<li>\n<strong>Security database:<\/strong> Manages policy, trusted-domain, account, and secret objects, corresponding to the <code>SECURITY<\/code> registry hive. This database holds LSA secrets, such as cached domain credentials and machine keys.<\/li>\n<\/ul>\n<p>While these databases can be managed through RPC interfaces (<code>MS-SAMR<\/code> and <code>MS-LSAD<\/code>), they do not offer a simple way to decrypt stored secrets. To access the credentials and secrets, direct interaction with the <code>SAM<\/code> and <code>SECURITY<\/code> registry hives is necessary.<\/p>\n<p>These hives are protected by Discretionary <a href=\"https:\/\/cybersecuritynews.com\/access-control\/\" target=\"_blank\" rel=\"noreferrer noopener\">Access Control Lists<\/a> (DACLs) that restrict access to accounts with <code>SYSTEM<\/code> privileges. The sensitive data within them, such as user credentials and machine keys, is encrypted.<\/p>\n<p>Decrypting this information requires additional values from the <code>SYSTEM<\/code> hive to reconstruct the decryption key.<\/p>\n<p>Attackers commonly use various local and remote techniques to harvest credentials, but modern <a href=\"https:\/\/cybersecuritynews.com\/code-security-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">security tools<\/a> detect most well-known methods.<\/p>\n<p>Interacting with the <code>lsass.exe<\/code> process memory, for example, is a high-risk activity that is heavily monitored by EDRs and Windows Defender, often resulting in immediate alerts.<\/p>\n<p>EDR solutions primarily rely on kernel-mode callback routines to monitor system activity. By using functions like <code>CmRegisterCallbackEx<\/code>, an EDR\u2019s driver can register to be notified by the Windows kernel of specific events, such as registry access.<\/p>\n<p>When a process attempts to read a sensitive key, like <code>HKLMSAM<\/code> or <code>HKLMSECURITY<\/code>, the kernel notifies the EDR, which can then block the operation or raise an alert. To manage performance, EDRs typically monitor a select list of high-risk API calls and registry paths, rather than every single system operation.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-a-new-method-for-silent-exfiltration\"><strong>A New Method for Silent Exfiltration<\/strong><\/h2>\n<p>According to researcher Sud0Ru, who uncovered this technique, a new, two-pronged approach allows attackers to bypass these defenses by leveraging lesser-known Windows internals.<\/p>\n<p>This method avoids creating on-disk backups of registry hives and does not require <code>SYSTEM<\/code>-level privileges, operating within the context of a local administrator.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh40EnTpgsqCIIJ-WFy9trRbE2GKZaI-T8BbG5FMQQThHyLDh68BVd3o83AkvBJAnT3kmv1PPNSBaNvTKGs0iimVU2g9fKmR_3J_AoOpAF5r-7n7cO1pyZXuHcBNcJDUti00ssLFOLy5LWpcbEZs2bX3O-a7A0tgdz9L4BscpsFWwITie3SZfjeO198g0Lu\/s16000\/Exfiltrate%2520Windows%2520Secrets%2520and%2520Credentials.webp?ssl=1\" alt=\"Exfiltrate Windows Secrets and Credentials\"><figcaption class=\"wp-element-caption\">secret data Exfiltration (Source : Sud0Ru)<\/figcaption><\/figure>\n<\/div>\n<ol class=\"wp-block-list\">\n<li>\n<strong>Bypassing Access Controls with <code>NtOpenKeyEx<\/code><\/strong>: The first step involves using the undocumented native API <code>NtOpenKeyEx<\/code>. By calling this function with the <code>REG_OPTION_BACKUP_RESTORE<\/code> flag and enabling the <code>SeBackupPrivilege<\/code> (available to administrators), an attacker can bypass the standard ACL checks on protected registry keys. This provides direct read access to the <code>SAM<\/code> and <code>SECURITY<\/code> hives without needing to be the <code>SYSTEM<\/code> user.<\/li>\n<li>\n<strong>Evading Detection with <code>RegQueryMultipleValuesW<\/code><\/strong>: Once access is gained, the next challenge is to read the data without triggering EDR alerts. Most EDRs monitor common API calls used for reading registry values, such as <code>RegQueryValueExW<\/code>. This new technique instead uses <code>RegQueryMultipleValuesW<\/code>, an API that retrieves data for a list of value names associated with a registry key. Because this function is used less frequently, many EDR vendors have not included it in their monitoring rules. By using this API to read a single value at a time, attackers can extract the encrypted secrets from the <code>SAM<\/code> and <code>SECURITY<\/code> hives without being detected.<\/li>\n<\/ol>\n<p>This combined strategy allows the entire operation to occur in memory, leaving no on-disk artifacts and avoiding API calls that would typically flag malicious activity.<\/p>\n<p>The result is a silent and effective method for harvesting credentials. While decrypting the exfiltrated data is a separate process, this collection technique demonstrates that even mature defensive systems can be circumvented by leveraging overlooked, legitimate functionalities within the operating system itself.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 89%,rgb(169,184,195) 100%)\"><strong>Find this Story Interesting! Follow us on\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates<\/strong>.<\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/exfiltrate-windows-secrets-and-credentials\/\">Hackers Can Exfiltrate Windows Secrets and Credentials Silently by Evading EDR Detection<\/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\/exfiltrate-windows-secrets-and-credentials\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Can Exfiltrate Windows Secrets and Credentials Silently by Evading EDR Detection A method to silently exfiltrate Windows secrets and credentials, evading detection from most Endpoint Detection and Response (EDR) solutions. This technique allows attackers who have gained an initial foothold on a Windows machine to harvest credentials for lateral movement across a network without [&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],"tags":[130],"class_list":["post-6382","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/6382"}],"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=6382"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/6382\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=6382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=6382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=6382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}