<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[AttivoTechBlogs - Medium]]></title>
        <description><![CDATA[Attivo Technical Blogs - Medium]]></description>
        <link>https://medium.com/attivotechblogs?source=rss----1ce8927cd7dd---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>AttivoTechBlogs - Medium</title>
            <link>https://medium.com/attivotechblogs?source=rss----1ce8927cd7dd---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 11:30:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/attivotechblogs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Preventing samaccountname spoofing and kdc bamboozing]]></title>
            <link>https://medium.com/attivotechblogs/preventing-samaccountname-spoofing-and-kdc-bamboozing-3cc462de70e2?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/3cc462de70e2</guid>
            <category><![CDATA[lateral-movement]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[identity-security]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <dc:creator><![CDATA[Biju Varghese]]></dc:creator>
            <pubDate>Thu, 23 Dec 2021 22:45:48 GMT</pubDate>
            <atom:updated>2021-12-23T23:03:46.825Z</atom:updated>
            <content:encoded><![CDATA[<p>The year 2021 has been challenging for users of Microsoft Active Directory. From late December 2020, we saw significant vulnerability disclosures like Zerologon or Print Nightmare that attackers could use to take over an entire domain. Two more vulnerability disclosures this month make things worse. The sAMAccountName spoofing and KDC bamboozling vulnerabilities have made an attacker’s life easy as they have publicly available exploit code. Microsoft releases security patches for these vulnerabilities, and we strongly urge everyone to deploy them at the earliest to protect themselves from domain compromise.</p><p>These Active Directory vulnerabilities clearly show that AD security is an unexplored area, and we will see many more in the coming years. For an attacker, compromising AD, the most used identity platform, gives them complete control over an enterprise and motivates them to discover newer vulnerabilities. To truly protect Active Directory, organizations need to employ a multipronged approach.</p><p><strong>Hardening Active Directory</strong> — Discover exposures, misconfigurations, vulnerabilities, and excessive privileges in your Active Directory environment and remediate them at the earliest and reduce your Attack Surface.</p><p><strong>Prevent Active Directory reconnaissance</strong> — Attackers compromise a domain-joined system and use the basic domain privileges that come with it to discover privileged AD objects to perform privilege escalation and lateral movement. Attackers can get significant information about an organization’s privilege accounts, delegated admin accounts (AD ACLs), critical servers and services they run (e.g., databases and others), service accounts. Concealing AD objects from unauthorized access prevents an attacker from performing privilege escalation and lateral movement.</p><p><strong>Prevent Domain Compromise</strong> — Once attackers discover privileged accounts, they steal credentials like passwords, hashes, and Kerberos tickets or perform brute force attacks like password spray. Once an attacker compromises higher privileges or finds a vulnerability in AD, they would use several techniques like Golden Ticket attack, Silver Ticket attack, Domain Replication to take over the AD and compromise all systems it manages, including rapid deployment of ransomware.</p><p>Attivo’s Identity Detection and Response products (IDR) prevent AD reconnaissance, identity theft, attacks on Active Directory, and risky entitlements that create attack paths. The Attivo research team ran the exploit steps described in the article “<a href="https://exploit.ph/cve-2021-42287-cve-2021-42278-weaponisation.html">CVE-2021–42287/CVE-2021–42278 Weaponization</a>” in an environment with the Attivo IDR solutions deployed. As expected, the solutions prevented the attacks, per design.</p><p>In this exploit, the first step is to “Create a Machine account in the domain.” By default, AD allows any standard or regular users to join systems to the AD domain. The ADAssessor product, one of the Attivo IDR solutions, proactively detects when standard or regular users can add systems to the domain as a security exposure.</p><p>Below are the steps an attacker could follow to compromise a domain:</p><p>Step 1: Create a Machine account in the domain</p><p><strong>Command:</strong> New-MachineAccount -MachineAccount TestSPN6 -Domain Acme-labs.local -DomainController acm-rt-dns-01.Acme-Labs.Local -Verbose</p><p>Attivo customers who use the ADAssessor solution and have restricted the privilege to join systems to the domain are safe from this exploit as the first step of the attack will fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*V5gbID8DaHaJoLd58ez7cQ.png" /></figure><p>If attackers cannot leverage Step 1 or want to avoid detection, they can use an existing computer object with “modify” permission, then proceed to Steps 2 and 3 for the next attack stage.</p><p>Most AD assessments Attivo performed found this exposure and helped customers remediate it.</p><p>Step 2: Clearing SPNs</p><p>In this step, attackers with the “modify” privilege would change an existing computer object.</p><p><strong>Command:</strong> Set-DomainObject “CN=TestSPN6,CN=Computers,DC=acme-labs,DC=local” -clear ‘serviceprincipalname’ -Verbose</p><p>Step 3: Change Machine Account sAMAccountName</p><p><strong>Command</strong>: Set-MachineAccountAttribute -MachineAccount TestSPN6 -value “acm-rt-dns-01” -Attribute samaccountname -Verbose</p><p>Yet again, the ADAssessor solution played an essential role in detecting misconfigured permissions on critical containers like “Computers.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SY6NClhP8EJCFmf6EeRn_A.png" /></figure><p>Customers who have taken proactive measures to remediate such misconfigured permissions will protect themselves from the vulnerabilities described in Steps 2 and 3, leaving the exploit unsuccessful.</p><p>If a customer is vulnerable in the previous steps, the attackers will proceed to the next steps. Steps 4 to 6 are crucial because the attackers will impersonate “Administrator,” enabling a complete privilege escalation.</p><p>Step 4: Request TGT</p><p>The attackers request a TGT for the domain controller machine account. The example below uses the application Rubeus.</p><p><strong>Command</strong>: .\Rubeus.exe asktgt /user:IDC1 /password:Password1 /domain:internal.zeroday.lab /dc:idc1.internal.zeroday.lab /nowrap</p><p>Step 5: Change Machine Account sAMAccountName</p><p>The attackers modify the “sAMAccountName” value of the machine account created in Step 1</p><p><strong>Command</strong>: Set-MachineAccountAttribute -MachineAccount TestSPN -Value “TestSPN” -Attribute samaccountname -Verbose</p><p>Step 6: Request S4U2self</p><p>The attackers try to get a TGT impersonating as “Administrator.”</p><p><strong>Command</strong>: .\Rubeus.exe s4u /impersonateuser:Administrator /nowrap /dc:idc1.internal.zeroday.lab /self /altservice:LDAP/IDC1.internal.zeroday.lab /ptt /ticket:[TGT]</p><p>The Attivo IDR solutions include the ADSecure solution and the Credential Protection function. These prevent attackers from stealing credentials like Kerberos Tickets and hashes, eventing them from succeeding and protecting customers.</p><p>The ADSecure solution blocks the attacker from using a stolen Kerberos Ticket and raises a Pass-The-Ticket attack event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_OCovtpP9gN5u5eHW8MobQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*z9CDrvfCnSezb_Ax_bZvFA.png" /></figure><p>Credentials Protection feature prevented the attacker from reading the credentials from the LSASS memory, raising an event for Unauthorized Credential Access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NWQOviJlMcf-O6h-zmZfrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*p1vHo_MnXrn9gH4rlN7fSQ.png" /></figure><p>Finally, we can see the exploit using Mimikatz to perform a DCSync attack failing with the error “ERROR kull_m_rpc_drsr_getDCBind ; RPC Exception 0x00000005 (5)” on the compromised endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*DZSMZYfq2ghixNJB8NO3dA.png" /></figure><p><strong>Conclusion</strong></p><p>Considering the number of attacks on Active Directory by ransomware operators and the volume of disclosed vulnerabilities this year, there is an urgent need to secure Active Directory by investing in the right set of tools.</p><p><strong>Attivo Identity Detection and Response Solutions</strong></p><p>Attivo Networks has leveraged its deep experience in privilege escalation and lateral movement detection to become a significant player in the IDR space. The company has secured its leadership position based on its broad portfolio of IDR solutions in the last year.</p><p>Learn more about Attivo’s identity solutions <a href="https://www.attivonetworks.com/solutions/identity-exposure-visibility/">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cc462de70e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/preventing-samaccountname-spoofing-and-kdc-bamboozing-3cc462de70e2">Preventing samaccountname spoofing and kdc bamboozing</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SeriousSAM aka HiveNightmare vulnerability — Local Privilege Escalation on Windows 10]]></title>
            <link>https://medium.com/attivotechblogs/serioussam-aka-hivenightmare-vulnerability-local-privilege-escalation-on-windows-10-2289fb81c933?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/2289fb81c933</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[credential-stuffing]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Nitin Jyoti]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 07:27:41 GMT</pubDate>
            <atom:updated>2021-07-22T09:43:17.868Z</atom:updated>
            <content:encoded><![CDATA[<h3>SeriousSAM aka HiveNightmare vulnerability — Local Privilege Escalation on Windows 10</h3><p>Microsoft confirmed a new vulnerability that allows any non-admin user to access local user passwords on Windows 10. This vulnerability got exposed on the heels of the <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527">PrintNightmare vulnerability</a> reported a few days ago. While the world grapples with how one could protect or mitigate the risks of this vulnerability, one must wonder if it’s even fair to expect convenience and advancement (in software) without vulnerabilities (software). After all, humans write the code, and they make mistakes.</p><p>This blog discusses the vulnerability, looks at the associated risks, understands what kind of security controls could detect/prevent when attackers leverage it and end with a description of an innovative approach to protect Windows 10 users.</p><h3>What is the SeriousSAM vulnerability?</h3><p>The vulnerability got exposed when <a href="https://twitter.com/jonasLyk/status/1417205166172950531">Jonas Lyk tweeted</a> about non-admin users on Windows 11 Preview builds accessing the SAM file when shadow volumes are enabled. Soon after that, <a href="https://twitter.com/GossiTheDog/status/1417258450049015809">several other</a> <a href="https://twitter.com/gentilkiwi/status/1417467063883476992">researchers confirmed</a> that the vulnerability also impacts Windows 10 versions starting with build 1809. The security researcher fraternity soon named the bug SeriousSAM and HiveNightmare. The security researcher community put together a couple of <a href="https://github.com/GossiTheDog/HiveNightmare">POC exploits</a> for others to validate and verify, followed shortly after by a <a href="https://www.kb.cert.org/vuls/id/506989">CERT announcement</a> and official <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934">acknowledgment from Microsoft</a>.</p><p>The bug opens access to VSS shadow copies of on-disk registry hives for SAM, SECURITY, and SYSTEM to any user belonging to the “BUILTIN\Users” group. Typically, these files are protected, and only users with admin privileges can access them. The following three files exposed due to this bug are important from a security perspective.</p><pre>C:\Windows\System32\config\SAM<br>C:\Windows\System32\config\system<br>C:\Windows\System32\config\security</pre><h3>What can an attacker do with this vulnerability?</h3><p>Once an attacker establishes a foothold on a system, they could easily achieve the following using this vulnerability:</p><ol><li>Escalate privileges to Local admin</li><li>Discover Windows Default Installation Password</li><li>Obtain DPAPI computer keys which can help decrypt all other private keys within the computer</li><li>Obtain a Silver Ticket (<a href="https://medium.com/attivotechblogs/protecting-against-kerberos-golden-silver-and-pass-the-ticket-ptt-attacks-9e5b0e262975">could be a stepping stone to Domain Admin</a>)</li></ol><h3>How can one protect or mitigate this vulnerability?</h3><p>The security community has offered several methods to address the vulnerability, <a href="https://www.kb.cert.org/vuls/id/506989">ranging from changing ACL permissions</a> for the files to <a href="https://community.mcafee.com/t5/Endpoint-Security-ENS/Detection-of-hivenightmare-aka-serioussam/td-p/691906">creating rules in Endpoint products</a> preventing access to the impacted files. However, one should think about how an Active Defense approach could protect against such attacks. <a href="https://attivonetworks.com/product/endpoint-detection-net/">The Attivo EDN solution</a> offers capabilities that protect against access to critical information within the system. This information could be critical files (such as shadow copies of registry hives) or credential stores. Such a capability helps lock down access to all critical information. This specific vulnerability is covered by EDN suite out-of-the-box.</p><p>Here is how a run of <a href="https://github.com/GossiTheDog/HiveNightmare">Kevin Beaumont’s POC exploit</a> looks on a vulnerable Windows 10 endpoint without the Attivo EDN solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*T9krm034n4e3v1C3bcAGTQ.jpeg" /></figure><p>And here is how it looks on the same system after installing the Attivo EDN solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*Ec9TjeyYzPI3k6ll7APvhg.jpeg" /></figure><p>Meanwhile, the Attivo ThreatDefend platform captures the attempt and its prevention in the console as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4jwWCl-gM2HYqdqzmB1XA.jpeg" /></figure><h3>Conclusion</h3><p>An Active Defense approach to protecting against such attacks would be to adopt zero trust model and control access within the system. A world without vulnerabilities might not be possible but an approach that assumes breach and locks down access to resources (devices, files, registry, credential stores, password vaults, …) based on policies could go a long way in future proofing against attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2289fb81c933" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/serioussam-aka-hivenightmare-vulnerability-local-privilege-escalation-on-windows-10-2289fb81c933">SeriousSAM aka HiveNightmare vulnerability — Local Privilege Escalation on Windows 10</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five commands attackers use to find Domain Administrators in Active Directory]]></title>
            <link>https://medium.com/attivotechblogs/five-commands-attackers-use-to-find-domain-administrators-in-active-directory-624a0e903610?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/624a0e903610</guid>
            <category><![CDATA[active-directory-attack]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <dc:creator><![CDATA[Vlado Vajdic]]></dc:creator>
            <pubDate>Sat, 17 Jul 2021 18:50:57 GMT</pubDate>
            <atom:updated>2021-08-02T05:42:38.867Z</atom:updated>
            <content:encoded><![CDATA[<p>The purpose of this blog is to provide examples of commands that attackers would use to retrieve privileged group members in Active Directory Domain Services.</p><p>A common way attackers start an attack is to get control over a domain-joined PC. Then they look for more credentials and use these new accounts to query the domain for more information and continue the attack until they achieve their goals.</p><p>The domain administrator accounts are the accounts with the highest privileges in a domain and therefore of the most value to attackers. Knowing the queries to find these accounts helps defenders detect this kind of discovery activity in their networks.</p><p>It helps that these queries are not commonly observed in the day-to-day operation of enterprise networks. Therefore, detecting them is a strong indicator of malicious behaviour that security teams should investigate further.</p><p><strong>Targeting Domain Administrators</strong></p><p>Domain administrator accounts have full access to all domain-joined computers, servers, and file shares. For example, they can change domain policies, change user permissions and add new users.</p><p>These accounts get their privileges by being members of the built-in Domain Admins security group.</p><p>Once attackers have compromised a domain administrator account, they can encrypt and ransom or exfiltrate data from domain-joined computers and servers.</p><p>The attackers could then gain persistence in the domain by capturing credentials and other information, allowing them to continue their campaign if detected.</p><p>If attackers have compromised a domain administrator account, the recovery would require bringing the domain offline and resetting passwords for every account which would cause a significant business impact.</p><p><strong>Commands to find Domain Administrators</strong></p><p>Objects in Active Directory are accessed using Lightweight Directory Access Protocol (LDAP) or Active Directory Service Interfaces (ADSI) in Windows.</p><p>LDAP is a standard protocol to query for information stored in a directory service. It is vendor-agnostic, supported by Active Directory and by other directory services products. Any authenticated user in an AD domain can run LDAP queries. ADSI is a set of Windows interfaces that enable common directory administrative tasks, such as adding new users, managing printers, and locating resources.</p><p>Here are examples of five Windows CLI commands to retrieve members of the Domain Admins security group.</p><p><strong>net.exe</strong></p><p>net.exe is a native Windows binary used to manage network resources, and a command adversary groups execute most often. The “net group” command adds, displays, or modifies groups in domains.</p><p>net group “domain admins” /domain</p><p><strong>dsquery</strong></p><p>Dsquery is included in the Windows Remote Server Administrations Tools (RSAT) package.</p><p>It is a set of tools used for managing roles and features that run on a Windows Server. In Windows 10 RSAT can be installed as a “Features on Demand” package.</p><p>dsquery * -filter “(&amp;(objectclass=group)(samaccountname=Domain Admins))” -attr name samaccountname member</p><p><strong>adfind</strong></p><p>Adfind is a popular free Active Directory query tool that is also used by adversary groups . This command will show the members of the Domain Admins group.</p><p>adfind -f “&amp;(objectcategory=group)(cn=Domain Admins)” member</p><p><strong>Powershell</strong></p><p>ADSISearcher alias allows access to the .NET ADSI namespace in Powershell. It searches for objects using LDAP filters.</p><p>([ADSISearcher]”(distinguishedname=CN=domain admins,CN=Users,DC=&lt;yourdomain&gt;)”).FindOne().Properties.member</p><p><strong>WMIC</strong></p><p>Windows Management Instrumentation (WMI) manages data and operations in Windows operating systems. WMIC is a command-line interface for WMI and comes pre-installed on Windows. The WMI Directory Services Provider mirrors classes and instances from Active Directory into the WMI Lightweight Directory Access Protocol (LDAP) namespace.</p><p>wmic /NAMESPACE:\\root\directory\ldap PATH ds_group where “ds_samaccountname=’Domain Admins’” Get ds_member /Value</p><p>There are many other ways to perform domain reconnaissance. For example, post-exploitation tools like Cobalt Strike or Metasploit include Active Directory enumeration features.</p><p>Attivo Networks ADSecure solution intercepts these and other queries attempting AD discovery. It hides the real responses and inserts decoy information such as account names. This provides both an opportunity for early detection and misdirects malicious activity to decoy accounts.</p><p>In future blogs we plan to explore methods and tools that attackers use to exploit Active Directory. Your feedback is always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=624a0e903610" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/five-commands-attackers-use-to-find-domain-administrators-in-active-directory-624a0e903610">Five commands attackers use to find Domain Administrators in Active Directory</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protecting against Kerberos Golden Ticket, Silver Ticket, and Pass-The-Ticket (PTT) Attacks]]></title>
            <link>https://medium.com/attivotechblogs/protecting-against-kerberos-golden-silver-and-pass-the-ticket-ptt-attacks-9e5b0e262975?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/9e5b0e262975</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[active-directory-attack]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Nitin Jyoti]]></dc:creator>
            <pubDate>Fri, 16 Jul 2021 16:01:18 GMT</pubDate>
            <atom:updated>2021-07-16T16:03:52.216Z</atom:updated>
            <content:encoded><![CDATA[<p>The Pass-The-Ticket attack is a powerful technique cyber adversaries employ for post-exploitation lateral movements and privilege escalation. Attackers can easily forge tickets because Microsoft Active Directory is an incredible treasure trove for them, and Kerberos’s stateless design makes it easy to abuse. All an attacker needs is a “foothold” within the enterprise, usually accomplished through social engineering. The availability of open-source tools makes Pass-The-Ticket attacks easy to execute and virtually guarantees to yield results without any detections. This blog will look at the top two Pass-The-Ticket attacks nation-state actors have used in several targeted and supply chain attacks.</p><p>A <strong>Golden Ticket attack</strong> attempts to compromise the entire domain by controlling a critical service account called KRBTGT. This account is the Active Directory Key Distribution Service Account. Having gained control over the KRBTGT account, attackers can forge tickets to move laterally to any asset within the enterprise. They will need to grab the KRBTGT hash by using the local administrative account on the Domain Controller or carrying out a DCSync attack using compromised users with specific permissions to Replicate Directory Changes.</p><p>A <strong>Silver Ticket attack</strong> starts by compromising a specific service or application running within an enterprise. Attackers grab the password hash of the Kerberos service account from the local computer SAM database, then crack it offline to obtain the unencrypted password for the service. They can then run code on the compromised machine in the SYSTEM context and forge a Kerberos ticket that can authenticate to targeted service without authenticating with the Domain Controller (in most environments using Privileged Attribute Certificate, PAC is often disabled).</p><p>It is much easier for attackers to target Silver Tickets because they don’t require any privileged accounts. It is also harder to detect a Silver Ticket attack because compromising a silver ticket does not need interaction with the Domain Controller. Once attackers obtain a Silver Ticket, they can use it as a steppingstone to elevating privileges to Domain Administrator. Because attackers can compromise the domain completely with stealthier techniques using Silver Tickets, organizations must find ways to protect them within their infrastructure.</p><p>It is apparent why these advanced techniques commonly occur in large-scale attacks. For example, in Ryuk and Darkside ransomware incidents, attackers used Golden and Silver Ticket attacks to move laterally, deploying ransomware on numerous systems. In another attack, the <a href="https://thedfirreport.com/2020/08/31/netwalker-ransomware-in-1-hour/">Netwalker ransomware</a> compromised a domain controller and deployed ransomware on all domain-joined systems within 60 minutes.</p><p>This <a href="https://www.blackhat.com/docs/us-14/materials/us-14-Duckwall-Abusing-Microsoft-Kerberos-Sorry-You-Guys-Don&#39;t-Get-It.pdf">presentation from Blackhat</a> described these attacks. In his blog on <a href="https://adsecurity.org/?p=1515">Detecting Forged Kerberos Ticket</a>, Sean Metcalf documented several ways to detect and mitigate these attacks. However, most of these methods are manual and don’t scale in the real world.</p><p>Fortunately, there are a few options available to prevent both of them:</p><ol><li>Stop attackers at the reconnaissance stage when they hunt for target accounts<br> (a) Privileged account for Golden Ticket attacks<br> (b) Service account with Service Principal Names for Silver Ticket attacks</li><li>Prevent use of a forged ticket to authenticate or escalate privileges</li></ol><p><a href="https://attivonetworks.com/kerberos-silver-ticket-attack/">A previous blog</a> focused on preventing these attacks using concealment at the reconnaissance stage. This blog demonstrates how one could use the Attivo EDN solution to prevent attackers from using forged tickets by design.</p><p><strong>An example showing Golden Ticket attack:</strong></p><p><em>Step 1</em>: The attacker obtains the hash for the KRBTGT account using <a href="https://adsecurity.org/?p=1729">DCSync attack</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*SmyQ2apaqHVwc_3j3yHZiQ.png" /></figure><p><em>Step 2</em>: The attacker uses Mimikatz to generate the Golden Ticket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tmj7UbAcA2ND0PBY--uwMA.png" /></figure><p><em>Step 3</em>: The attacker then attempts to load the ticket into the current session. The following screenshots are presented for comparison on what happens next, first on the endpoint without Attivo EDN solution and then post installation of the EDN solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*l4QMfeA34l9YyQU2ZfSgeg.png" /><figcaption><em>Pre-installation of EDN solution</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*uIGWuZqsRW_jhgIDMB7pgg.png" /><figcaption><em>Post-installation of EDN solution</em></figcaption></figure><p>The EDN solution denies the attacker from using the Golden Ticket, even though Mimikatz generated and loaded it successfully. The ticket never made it into the user cache (as shown above). The following screenshots show the prevention alerts (accompanied by the insights on the process tree and user context).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ttLnB9AyYPjyJ8VqjdiZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iglPEJEpRtePuapj7EfuLg.png" /></figure><p><strong>Challenges around Pass-The-Ticket Attack prevention:</strong></p><p>A Privileged Account Management (PAM) solution does not protect against Pass-The-Ticket attacks. PAM solutions are great tools to reduce stolen password use by controlling and auditing privileged account logins but cannot stop an attacker from generating and using a forged ticket. Along similar lines, Multi-Factor Authentication (MFA) solutions can’t protect against PTT attacks as they merely enforce additional authentication mechanisms using a different factor. Some security solutions rely on data analysis to identify anomalous traffic or behavior patterns to detect these attacks. However, machine learning at best provides a way to identify a suspicious pattern, and detection comes at the cost of False Positives.</p><p><strong>Conclusion</strong></p><p>The Golden Ticket and Silver Ticket attacks are post-exploitation attack techniques. Since they leverage legitimate means of interaction with Active Directory, they are harder to detect and prevent. The threat landscape continues to evolve with more and more software, techniques, and functions available in the system to perform malicious actions. For an attacker, these guarantee higher success rates and a lower detection rate. Organizations must find new tools, such as the Attivo EDN solution, to counter these new techniques, and add in-network threat detection and identity detection and response to their security strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e5b0e262975" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/protecting-against-kerberos-golden-silver-and-pass-the-ticket-ptt-attacks-9e5b0e262975">Protecting against Kerberos Golden Ticket, Silver Ticket, and Pass-The-Ticket (PTT) Attacks</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protection Against Targeted Active Directory Ransomware]]></title>
            <link>https://medium.com/attivotechblogs/protection-against-targeted-active-directory-ransomware-edf86fbbb389?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/edf86fbbb389</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[lateral-movement]]></category>
            <category><![CDATA[ransomware-attack]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Venu Vissamsetty]]></dc:creator>
            <pubDate>Sat, 18 Jul 2020 01:32:57 GMT</pubDate>
            <atom:updated>2020-07-18T01:32:56.953Z</atom:updated>
            <content:encoded><![CDATA[<p>Targeted ransomware, also known as human-operated ransomware, poses a significant threat to enterprises. In targeted ransomware attacks, adversaries use various MITRE techniques like T1069 — Permission Group Discovery, T1087 — Account Discovery, and others to learn about the permissions associated with accounts, identify misconfigurations, steal credentials, etc., to deploy ransomware across the network.</p><p>Targeted Ransomware is different from auto-propagation ransomware in the following ways:</p><p>1. Auto-propagation:</p><ul><li>Steal credentials, keys, and other authentication tokens from memory, disk, etc. and deploy ransomware on infected systems</li><li>Spread across network mapped drives to drop and execute ransomware using tools such as WMI, PSExec, PowerShell, Net tools, and others</li><li>Propagate by using exploitation methods (Ex: Eternal Blue MS17–010) and deploying ransomware on target systems</li></ul><p>2. Targeted Ransomware:</p><ul><li>Adversaries discover information about the network and domain and identify weakness in the environment</li><li>Use tools like PowerShell, Bloodhound, etc., to perform domain reconnaissance and identify paths to high privilege targets</li><li>Compromise software deployment systems or CI/CD systems and deploy ransomware across the organization</li><li>Deploy ransomware across exposed C$ share using tools like PSExec, WMI, PowerShell scripts, etc.</li><li>Deploy Ransomware using Microsoft Group Policy Objects (GPOs) from the compromised domain controller.</li></ul><p>Ransomware is evolving from encryption-only attacks to data-exfiltration and data leakage attacks. Organizations have typically deployed backup and self-service restore features to recover from data encryption ransomware.</p><p>The below table documents data protection mechanisms that organizations employ to recover data from encryption-only ransomware</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*RPWeIhe6W-vDjH8xbtJ3Bw.png" /><figcaption><a href="https://next.nutanix.com/blog-40/comprehensive-data-protection-with-nutanix-files-31462">https://next.nutanix.com/blog-40/comprehensive-data-protection-with-nutanix-files-31462</a></figcaption></figure><h3><strong>Data Exfiltration Ransomware:</strong></h3><p>Ransomware operators are revising their playbooks from encryption-only ransomware to encryption + exfiltration of sensitive data. This strategy is proving to be profitable for ransomware operators compared to encryption-only attacks as organizations are forced to pay ransom to prevent attackers from leaking their sensitive data. Existing ransomware mitigation strategies like data backup and restore can only recover local files, but not prevent attackers from leaking sensitive data.</p><h3>MITRE <strong>Permission Group Discovery </strong>T1069</h3><p>Ransomware operators use multiple methods to discover weaknesses within the enterprise network, steal credentials, perform lateral movement and deploy ransomware. In most of the incidents, attackers perform MITRE technique T1069 Permission Groups Discovery to determine the user accounts and groups that are available, find group memberships, and identify users and groups that have elevated permissions.</p><p>MITRE has introduced additional sub-techniques within T1069, which documents attackers’ additional discovery methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*JF4YTmo814hCe_C6DWF6Qg.png" /><figcaption><a href="https://attack.mitre.org/techniques/T1069/">https://attack.mitre.org/techniques/T1069/</a></figcaption></figure><p>Attackers typically target user accounts, starting with local administrator accounts and move laterally to target delegated administrators and then domain administrators.</p><p>1. Local administrator accounts have privileged access to domain-joined computers</p><p>2. Delegated Admins users typically are not part of the default domain admin group but have privileges associated with the group and are also referred to as ‘Shadow Admins’. CyberArk’s <a href="https://github.com/cyberark/ACLight">ACLight</a> is a popular tool that discovers Privileged Accounts — including Shadow Admins.</p><p>3. Domain Admins are users with unrestricted privileged access in Active Directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRAHDLE6dS8_pKG12jYX5g.png" /></figure><p>Once attackers gain access to privileged accounts, they can deploy ransomware across the enterprise to domain users, Active Directory connected storage systems, servers, databases, etc.</p><h4><strong>Ransomware Families Performing Permission Group Discovery</strong></h4><p>The following table shows various lateral movement techniques used by ransomware operators to spread across the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*pAzLhZ0DMQ-LKgEDDkahVQ.png" /></figure><h4><strong>TrickBot Ransomware Permission Group Discovery</strong></h4><p>The TrickBot loader uses ADfind tools to query for various Active Directory users, computers, groups, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*eyTLmDZX5vS8aLEKy61k_A.png" /><figcaption><a href="https://www.fireeye.com/blog/threat-research/2019/01/a-nasty-trick-from-credential-theft-malware-to-business-disruption.html">https://www.fireeye.com/blog/threat-research/2019/01/a-nasty-trick-from-credential-theft-malware-to-business-disruption.html</a></figcaption></figure><p>Sample information gathered by ADfind querying domain group permissions and users belonging to each group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*L8lpRV43Ay9sSBFrY9fJUA.png" /></figure><h3>Endpoint Detection Net (EDN)</h3><p><strong>Attivo Networks </strong><a href="https://attivonetworks.com/product/endpoint-detection-net/"><strong>EDN</strong></a><strong> </strong>prevents attackers from breaking out from an infected system by restricting their ability to conduct reconnaissance or move laterally. It denies attackers the ability to discover domain users and elevated group membership while providing real-time alerting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*Wa0hK8u_O8Cf4WoWdhLv7w.png" /></figure><p>Detailed telemetry &amp; forensic information, which shows malicious dropper querying all critical groups in your domain controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*YJMV2t22MZvyxntvnzlTUA.png" /></figure><h3>Conclusion</h3><p>Organizations should deploy defense in depth to protect against both auto-propagated and targeted ransomware methods. Preventing domain reconnaissance using deception, helps detect attackers earlier in the cycle and prevent lateral movement. You can find additional information about Attivo Networks EDN at <a href="https://attivonetworks.com/product/endpoint-detection-net/">https://attivonetworks.com/product/endpoint-detection-net/</a></p><h3><strong>References</strong></h3><ul><li><a href="https://www.fireeye.com/blog/threat-research/2019/01/a-nasty-trick-from-credential-theft-malware-to-business-disruption.html">A Nasty Trick: From Credential Theft Malware to Business Disruption</a></li><li><a href="https://www.fireeye.com/blog/products-and-services/2020/06/sizing-up-how-mandiant-evaluates-ransomware-defense.html">Sizing Up: How Mandiant Evaluates Ransomware Defense</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edf86fbbb389" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/protection-against-targeted-active-directory-ransomware-edf86fbbb389">Protection Against Targeted Active Directory Ransomware</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protecting threat actors from taking advantage of Bloodhound 3.0]]></title>
            <link>https://medium.com/attivotechblogs/protecting-threat-actors-from-taking-advantage-of-bloodhound-3-0-77a702f10be1?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/77a702f10be1</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bloodhound]]></category>
            <category><![CDATA[account-services]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Biju Varghese]]></dc:creator>
            <pubDate>Thu, 09 Jul 2020 19:57:53 GMT</pubDate>
            <atom:updated>2020-07-18T03:00:26.168Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Preventing</strong> threat actors from taking advantage of Bloodhound 3.0</h3><p>Recently SPECTEROPS announced the release of Bloodhound 3.0 with three new attack methods — gMSA Control, OU Control &amp; SID History. This article discusses how one can protect one’s Active Directory from these new attack methods.</p><h3>gMSA or Group Managed Service Accounts:</h3><p>Ask any Active Directory admins, and they would agree that service accounts have always been a problem from all aspects, including Manageability, Accountability, and, most importantly, Security. In every IT audit, Service Accounts are one of the top risks that auditors flag because passwords do not expire, unconstrained delegation happens, the accounts have extended privileges, and many other reasons. Making things worse is a new Kerberos attack method researchers recently discovered called a Silver Ticket attack. In 2012 Microsoft came up with a new concept called gMSA, which addressed most of the problems mentioned above. Domain controllers manage the passwords, which by default, change every 30 days automatically, uses 128-character strong passwords, and eliminates Silver Ticket attacks.</p><p>Recently one of the Bloodhound developers posted a tool (<a href="https://github.com/rvazarkar/GMSAPasswordReader">GMSAPasswordReader</a>) on GitHub, which can read the password blob from a gMSA account. The tool can retrieve the NT hash of the gMSA account, which attackers can reuse. This article does not discuss the attack method, as the authors of Bloodhound have already documented it <a href="https://posts.specterops.io/introducing-bloodhound-3-0-c00e77ff0aa6">here</a>. It instead looks at what measures one can take to protect gMSA accounts.</p><h4>Regularly Audit Who Can Read the gMSA Password Blob</h4><p>gMSA allows a user or computer accounts to read the password blob. The recommendation is to configure for computer accounts only. Sometimes due to application limitations and lack of understanding of how the account works, gMSA accounts have user accounts set with ReadgMSAPassword privilege instead of limiting to specific computer accounts.</p><p>Following command helps to identify the users or groups:</p><blockquote>Get-ADServiceAccount -Identity “gMSA-account” -Properties PrincipalsAllowedToRetrieveManagedPassword</blockquote><p>After reviewing the accounts, remove any unwanted user accounts or groups from the gMSA account.</p><p><strong>Note:</strong> Please review the accounts with the application teams before taking any action to avoid any application downtime.</p><h4>Follow Processes\Guidelines on Who Can Create GMSA accounts</h4><p>Domain Admin members, Account Operators, and delegated accounts with the ability to manage msDS-GroupManagedServiceAccount object can create gMSA accounts. Usually, First Level IT Support or IT Helpdesk members are part of the Account Operators group, and inadvertently helpdesk members end up having permission to manage gMSA accounts.</p><p>The recommendation is that IT Admins who understand how gMSA accounts should be configuring these accounts. Defining clear guidance of who can create these accounts is very important. The admins who configure the gMSA account should understand the registered SPN, DNSHostName &amp; most importantly, what accounts to allow into the attribute “PrincipalsAllowedToRetrieveManagedPassword”.</p><h3>Organization Unit Delegation</h3><p>Everyone is aware of Shadow Admins accounts and how these accounts get overlooked. These accounts are sometimes given direct permissions to objects like Domain, OU, and Group to perform specific tasks. Most of the time, the shadow admin accounts are over-privileged or misconfigured, resulting in a security backdoor. Bloodhound 3.0 adds a new attack method to detect the users who have permissions at an OU level.</p><h4>Identifying the Shadow Admins</h4><p>There is no straightforward way to identify all the accounts that have direct permission assignments. Either one must check manually or use 3rd Party scripts like <a href="https://github.com/cyberark/ACLight">ACLight2</a>, which can discover shadow Admins in the Active Directory. After discovering the Shadow Admins, IT Admins must remove unwanted or stale users or modify the permissions to be more granular than the broad permissions that exist.</p><p>In most organizations, administrators could have set up these direct assignments years ago, and they could have undergone several changes. It may not be evident what privileges can break if modified or removed. The recommendation is to carefully review with all the respective owners before revoking any access.</p><h3>SID history</h3><p>Most organizations, at some point, would have migrated accounts across domains for various business reasons. When migrating these accounts, the AD controller adds Security Identifier (SID) from the source Domain to the SID History attribute in the destination domain to ensure users do not lose out their existing privileges &amp; application access until all the resources are migrated. Attackers find ways to get inside and exploit and abuse the SID History in Golden Ticket and DCSync attack.</p><p>There are two ways to mitigate SID History, as previously discussed in the above two cases. The methods involve cleaning up the SID History or changing the trust configuration to filter the SID history on cross-forest authentication.</p><h4>Cleaning up the SID History Attribute</h4><p>The first step is to determine all the accounts with the SIDHistory attribute. Execute the below command to find all the accounts with SIDHistory:</p><blockquote>Import-Module ActiveDirectory;Get-ADUser -Filter “SIDHistory -Like ‘*’” -Properties SIDHistory</blockquote><p>The next step is to review the accounts with the SIDHistory attribute and remove it. The following TechNet script can work for this purpose.</p><p>Remove SidHistory of a list of users:</p><p><a href="https://gallery.technet.microsoft.com/scriptcenter/Remove-SidHistory-of-a-df7b0b8d">https://gallery.technet.microsoft.com/scriptcenter/Remove-SidHistory-of-a-df7b0b8d</a></p><h4>SID Filtering</h4><p>In simple words, SID Filtering means removing all foreign Security Identifiers from the user’s Access Token while accessing a resource via a trust in a trusting domain. This setting is activated by default when setting up a trust between two domains, but in most cases, administrators deactivate this because of other dependencies. So, the ideal recommendation is to activate this option at migration completion. SID Filtering is a global option, which means it will impact all the users across the domain if configured. Use the below command to activate SID Filtering.</p><p><strong>Activate SID Filter for Domain Trust</strong></p><blockquote>Netdom trust SOURCE /domain:TARGET /quarantine:Yes</blockquote><p><strong>Deactivate SID Filter for Forest Trust</strong></p><blockquote>Netdom trust SOURCE /domain:TARGET /enablesidhistory:No</blockquote><p>Many reading this article may be asking, ”Are there are non-intrusive, non-disruptive, and more secure approaches to protect Active Directory?” The answer is, “Yes.”</p><h3>Preventing Active Directory Attacks with ADsecure</h3><p>Attivo Networks® can play a significant role in protecting one’s Active Directory. Attivo Networks offers the innovative ADSecure solution, a component of its ThreatDefend® platform, which can prevent most of the reconnaissance activity against AD without making any changes to the enterprise Active Directory infrastructure. If an attacker compromises an endpoint and attempts to perform reconnaissance against Active Directory, the ADSecure solution can obfuscate the real data and provide misleading information to the attackers. The ADSecure solution also raises an event to the Threat Analytics platform and provides details of the endpoint process that initiated the attack. The forensic information collected from compromised endpoints helps security teams to identify the tools and methods used by attackers for further investigation and containment.</p><p>In most environments, performing remediation is not an easy task as there could be many dependencies and many undocumented historical configuration changes. Making changes is a risk as it could impact the authentication to the applications and prevent a user from performing an administrative task due to lesser privileges.</p><p>ADSecure provides a non-intrusive and non-disruptive solution to protect one’s Active Directory. ADSecure can easily prevent the above three new attack methods by Bloodhound 3.0 and others. If an attacker runs Bloodhound or any tools or techniques that query Active Directory to gather data about gMSA accounts, Shadow Admins, or accounts with SIDhistory, ADSecure obfuscates them. Customers who deployed ADSecure peacefully can sleep as ADSecure already protects from these three attacks well before the release of Bloodhound 3.0.</p><p>Here is an example of an ADSecure configuration to protect one’s gMSA &amp; Critical User Accounts.</p><p>An unprotected endpoint with Bloodhound reveals the user “James.Kennedy” account which can read the gMSA password of the account SQL_HQ_CONCUR@acme-labs.local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*qt58PIQGvxBZmF-Aj7-ICA.png" /></figure><p>From a protected endpoint, Bloodhound could not find User “James.Kennedy” that can read gMSA password and gMSA account SQL_HQ_CONCUR@acme-labs.local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*BnpIEEzAZ4MeV56TExjdXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*0qZrYKuL4jgiMTig4aLghg.png" /></figure><p>If interested in knowing more about Attivo’s innovative and futuristic solution to protect one’s Active Directory, please visit <a href="https://attivonetworks.com/">https://attivonetworks.com/</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77a702f10be1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/protecting-threat-actors-from-taking-advantage-of-bloodhound-3-0-77a702f10be1">Protecting threat actors from taking advantage of Bloodhound 3.0</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lateral Movement Using SMB Session Enumeration]]></title>
            <link>https://medium.com/attivotechblogs/lateral-movement-using-smb-session-enumeration-f4b1b17b6ee8?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/f4b1b17b6ee8</guid>
            <category><![CDATA[attack-surface]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[lateral-movement]]></category>
            <category><![CDATA[deception]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Biju Varghese]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 03:59:29 GMT</pubDate>
            <atom:updated>2020-03-30T15:04:54.973Z</atom:updated>
            <content:encoded><![CDATA[<p>Many security professionals have heard about the SMB Session Enumeration attack technique. Red teams and attackers frequently use this technique in their engagements to gain domain dominance. Attackers employ this technique in the initial phases of the attack and use the data gathered throughout the rest of the attack cycle.</p><p>So, what makes this technique so popular?</p><p>From the attack perspective, the attacker wants to discover the network, identify the next targets for attack, find the systems from which privileged users log in. Session Enumeration provides answers to many of these questions. Attackers conduct Session Enumeration attacks by invoking a function called <strong>NetSessionEnum</strong> against an identified Target Server. Any authorized user can execute this function, and it provides information such as IP address and device name, the length of a session, and the username that created a session. The MITRE ATT&amp;CK framework categorizes this technique as part of TA007 — Discovery Tactics. Several attack tools like psloggedon, Get-NetSessions, and Bloodhound use this method.</p><p>The following image depicts an attacker’s view once it has completed session enumeration, they use this information to find logged-on systems of the privileged users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*igvOR7jUHfQ03O3L5LRUlg.png" /></figure><p>This article will discuss some typical methods adversaries use for Session Enumeration, the known prevention methods and why they are inadequate, and how deception plays a role in keeping attackers from exploiting the information gathered using this technique.</p><h3>Session Enumeration Methods</h3><p>File servers implementations, whether Windows or SMB/CIFS, has not changed much over the years. SMB1, SMB2 &amp; SMB3 allow one to enumerate sessions and gather user information. One of the attacker’s goals is to identify these servers and use tools to enumerate the session.</p><p>Below are a few of the methods attackers use to conduct session enumeration from a compromised endpoint.</p><h4>Method 1:</h4><p>A widespread tactic used by attackers is to query Domain Controllers (DC) for open sessions. Identifying DCs is very easy using built-in commands like <strong>nltest.exe</strong>. All endpoints that are part of a domain connect to a network share on a DC for Group Policy updates. The Sysvol share stores Group Policy settings, and domain-joined windows systems access this share to download the GPO settings, resulting in a session.</p><p>The attacker can use the built-in command <strong>nltest /dsgetdc:&lt;Domain Name&gt;</strong> to discover the DC and then use tools like <strong>netsess.exe</strong> to enumerate the sessions against the DC’s IP address. SMB session enumeration provides information such as which user is logged-on to from which computer.</p><p>In the example below, attackers can see that “Administrator” is logged on to system 10.16.3.58 and has an SMB session to 10.16.12.2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*MRpHn1PJSAnx6dMeQ3prCw.png" /></figure><p>The Bloodhound tool can also gather this information for the attacker. The following image shows the all sessions for different users in the Domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jgvs8YIAMulKVcGY4iKWzA.png" /></figure><p>An attacker can run these tools against an enterprise DC and enumerate all users who have active sessions with the sysvol folder, using that information to move laterally in the network.</p><h4>Method 2:</h4><p>Another typical method for attackers is to query the User Profile Attribute in Active Directory. Most enterprises have their user profile data stored in a centralized file server. Once attackers identify the server, they can enumerate the session against it to get the session information. Attackers use Session Enumeration to evade various Threat Analytics detection tools as they only monitor DC and would miss the attempt against other servers such as file servers, which they don’t typically watch.</p><p>In the following image, the attacker first queries Active Directory to get the User Attribute, specifically the “profile” attribute, and then uses the same <strong>netsess.exe</strong> tool against the fileserver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*xVrYcmB32Wrc-n5xEjepjQ.png" /></figure><p>There are several other methods available to discover the file servers in the organization, some of which are:</p><p>· Querying for servers registered with the CIFS SPN</p><p>· Examining the mapped file shares on the endpoint</p><p>· <strong>Get-NetFileServer</strong> and <strong>Get-NetShare</strong> commands from Powerview cmdlets</p><p>· Using the Powerview command <strong>Invoke-UserHunter</strong> and Excluding DC’s</p><h3>Known Detection and Prevention Methods</h3><p>Although session enumeration is a very commonly used technique, there are no easy methods to prevent it. Most vendors only have detection capability, such as those listed below.</p><h4>Threat Analytics Platform</h4><p>Threat Analytics products detect SMB Session enumeration and other Active directory-related reconnaissance attacks against DCs and raise events.</p><p>Here is a sample alert from a Threat Analytic platform detecting SMB Session Enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*1VRJdo9e6j1nBX6kRq-XqQ.png" /></figure><p>Most Threat Analytics platforms generate alerts from network activity and they don’t correlate to endpoints. Network behavioral systems raise many events as they cannot accurately differentiate between legitimate and malicious activity and can result in a high number of false positives. Additionally, these platforms limit themselves to DC’s and don’t protect from other methods such as those described above.</p><h4>SIEM Solution</h4><p>Most SIEM solutions use User Behavior Analytics (UBA) to detect SMB Session Enumeration on DC’s. These products raise an alert based on log events forwarded from DC’s. Most of the detection events arise from Windows event logs and don’t have any correlation to endpoint context that generated these events, and are prone to false positives.</p><h4>Net Cease — Hardening Net Session Enumeration</h4><p>Net Cease is an unsupported method that is available to harden DC’s against net session enumeration. This method modifies the Net Session Enumeration default permissions, which prevents Non-Administrator users from enumerating sessions, but requires changes to every DC.</p><p>The example below shows a DC with modified Net Session Enumeration Default Permissions. Enumerating the SMB Sessions against the DC returns an “Access Denied” error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*eliJtXLBJrX_ZVlbd_v9zg.png" /></figure><p>The script must be executed on each domain controller to enable the protection. From an IT &amp; DevOps perspective, there is an associated overhead to manage and deploy these kinds of solutions seamlessly.</p><h3>Deploying deception to prevent session enumeration</h3><p>Deception can play an essential role in preventing SMB Session Enumeration. Attivo Networks® offers the innovative ADSecure solution, a component of its ThreatDefend® platform, which protects against SMB Session Enumeration without making any changes to the enterprise Active Directory infrastructure. If an attacker compromises any endpoint and tries to enumerate SMB Sessions against the DCs or file servers, the ADSecure solution obfuscates the real SMB sessions and replaces them with deceptive SMB sessions. The ADSecure solution would also raise an event similar to a Threat Analytics platform and also provides details of the endpoint process that initiated the session enumeration. The forensic information provided from compromised endpoints helps security teams to identify the tools and methods used by attackers to enumerate the SMB sessions for further investigation and containment.</p><p>The following image is an example of an alert from the Attivo Networks® ADSecure solution in action when an attacker performs SMB Session enumeration from an endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C9dCacijZMYNUbW-DRQQWw.png" /></figure><p>The ADSecure solution also provides a detailed report to understand the attack method and tools the attacker used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yA-Ibk9sZY6Dw-4Xqm4Qw.png" /></figure><p>The Attivo Networks® platform also captures detailed forensic information from decoy systems that attackers have engaged.</p><h3><strong>Conclusion</strong></h3><p>Understanding the different attack methods used by attackers is critical to building good defenses. SMB Session Enumeration is a popular method used by attackers to escalate privileges and move laterally in the network. While there are traditional detection and prevention solutions to address this tactic, they are not sufficient to defend against it. The Attivo Networks® ADSecure solution is a novel approach that protects against SMB session enumeration. It does this without making any changes to the enterprise Active Directory and complements existing security controls. For more information, please visit <a href="https://www.attivonetworks.com/">www.attivonetworks.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4b1b17b6ee8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/lateral-movement-using-smb-session-enumeration-f4b1b17b6ee8">Lateral Movement Using SMB Session Enumeration</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ghost in the shell: Preventing Active Directory Lateral Movement]]></title>
            <link>https://medium.com/attivotechblogs/ghost-in-the-shell-preventing-active-directory-lateral-movement-f1b07faadfd6?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/f1b07faadfd6</guid>
            <category><![CDATA[lateral-movement]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[webshell]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Venu Vissamsetty]]></dc:creator>
            <pubDate>Tue, 11 Feb 2020 23:39:11 GMT</pubDate>
            <atom:updated>2020-02-12T05:45:21.682Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft’s Detection and Response Team (DART) recently published an <a href="https://www.microsoft.com/security/blog/2020/02/04/ghost-in-the-shell-investigating-web-shell-attacks/">article</a> about an internet-facing web server getting infected and an attacker uploading web-shell to perform Active Directory reconnaissance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tmpPKl8IwBjfwx_v.png" /><figcaption><a href="https://www.microsoft.com/security/blog/2020/02/04/ghost-in-the-shell-investigating-web-shell-attacks/">https://www.microsoft.com/security/blog/2020/02/04/ghost-in-the-shell-investigating-web-shell-attacks/</a></figcaption></figure><p>Once uploaded to the web server, web shells, allow attackers to remotely perform various tasks on the compromised system and move laterally in the network.</p><p>When an intruder manages to get a foothold onto a domain-joined system, by default, Active Directory allows users to execute LDAP queries and perform domain reconnaissance. Domain reconnaissance involves gathering information about users, the locations of critical servers (Ex: Exchange servers, IIS Web servers, MSSQL servers, etc.), identifying various groups such as domain admins, users with directory replication permissions, service accounts, and mapping assigned privileges.</p><p>Bloodhound is a tool that can identify attack paths that a non-privileged, domain user can use to escalate their privileges. In the figure below, BloodHound finds the shortest attack path for the user on the left to the Domain Admins group on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7cMd_QYUMiTgY9yr" /><figcaption><a href="https://wald0.com/?p=68">https://wald0.com/?p=68</a></figcaption></figure><p>Attackers can use relationships identified by Bloodhound to navigate inside the enterprise and escalate the privileges that allow them to move laterally inside the network.</p><h4>Compromise of service accounts and domain accounts:</h4><p>According to the Microsoft <a href="https://www.microsoft.com/security/blog/2020/02/04/ghost-in-the-shell-investigating-web-shell-attacks/">blog</a> “DART’s investigation showed that the attackers uploaded a web shell in multiple folders on the web server, leading to the subsequent compromise of <strong>service accounts</strong> and <strong>domain admin</strong> accounts. This allowed the attackers to perform reconnaissance using <em>net.exe,</em> scan for additional target systems using <em>nbtstat.exe</em>, and eventually move laterally using PsExec.”</p><p>Attackers, once they have access to a landing machine, try to find interesting credentials and use them to move around to identify higher-value targets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*MSdVd8YLZQsdYIAZTbGvQw.png" /></figure><p><strong>(T1087 | Account Discovery)</strong></p><p>Attackers attempt to gather information on the local system or domain accounts to compromise.</p><p>In the below example, net user /domain will show all users in the Contoso.Azure domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*s8VScbZwUbIjG16i.png" /><figcaption><a href="https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance">https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance</a></figcaption></figure><p>Attackers can also use Powershell scripts to discover all domain users.</p><p><strong><em>([adsisearcher]”(&amp;(objectClass=user)(objectCategory=person))”).FindAll() | ForEach-Object { “Name: $($_.properties.name)””CN:$($_.properties.cn)””distinguishedname: $($_.properties.distinguishedname)”””}</em></strong></p><p><strong>T1069 | Permission Groups Discovery</strong></p><p>Attackers will attempt to find local or domain-level groups, the members belonging to each group, and the trust relationships between the groups.</p><p><strong><em>net group /domain </em></strong>will return all group accounts in the domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*FFuYAHb0xJBzZ2mr.png" /><figcaption><a href="https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance">https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance</a></figcaption></figure><p>Attackers can query members of various groups using ‘net’ commands. They can also find members of the “Helpdesk” group, which is not the default group.</p><p><strong><em>net group “domain admins” /domain</em></strong><em> </em>to find all domain administrators</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*hJuGayTKbrq4dHp-.png" /><figcaption><a href="https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance">https://docs.microsoft.com/en-us/azure-advanced-threat-protection/atp-playbook-reconnaissance</a></figcaption></figure><h4>Recon using net.exe and nbtstat.exe</h4><p>Attackers can use net.exe commands to perform reconnaissance and discover various systems in the network.</p><p>net group “domain computers” /domain to find all computers in the domain</p><p>Attackers can also use Powershell queries to discover operating systems, types of servers, etc. from Active Directory.</p><p>([adsisearcher]”objectcategory=computer”).findall() | ForEach {([adsi]$_.path).operatingsystem}</p><p><strong>Lateral movement using PsExec</strong></p><p>Once attackers obtain “domain admin” credentials and discover critical servers from domain reconnaissance, they can use tools like PsExec to drop scripts or payloads to target machines and launch them.</p><p>The blog mentions that “<em>attackers installed additional web shells on other systems, as well as a DLL backdoor on an Outlook Web Access (OWA) server. To persist on the server, the backdoor implant registered itself as a service or as an </em><a href="https://docs.microsoft.com/en-us/exchange/transport-agents-exchange-2013-help"><em>Exchange transport agent</em></a><em>, which allowed it to access and intercept all incoming and outgoing emails, exposing sensitive information”</em></p><h4><strong>Protecting Active Directory with Deception</strong></h4><p>Enterprises can also deploy <a href="https://attivonetworks.com/documentation/Attivo_Networks-ADSecure_datasheet.pdf">deception to protect against Active Directory domain reconnaissance</a>. Active Directory deception prevents attackers from enumerating critical assets in Active Directory, finding domain administrators, etc. and prevents attackers from escalating their privileges using “net” commands, Powershell LDAP queries or other mechanism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*zVdg0KDnuNzPJTmlChWrWw.png" /></figure><p>Attivo Networks <a href="https://attivonetworks.com/product/adsecure/">ADSecure</a> module can hide critical assets like “domain admins”, critical systems like “Exchange servers, IIS Web servers”, etc. and prevent domain reconnaissance. The deception platform also leads attackers to decoy systems when they engage.</p><p>ADSecure module provides detailed information on the LDAP queries performed by attackers for threat hunting teams to investigate and take action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycPk-yRCxkikkKItSCmAqA.png" /><figcaption>Detecting domain reconnaissance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*49q7KEm_-b0wZ6u3c_FSSA.png" /><figcaption>Detecting domain enumeration by Powershell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*eCKdtEHALZKY1l7cd68tFA.png" /><figcaption>Detecting domain enumeration of users and admins</figcaption></figure><h4>Conclusion</h4><p>Organizations should take steps to prevent attackers from landing inside the network. They should also adopt a multi-layered security approach of detecting attackers if they bypass perimeter security. Preventing domain reconnaissance using deception, helps detect attackers earlier in the cycle and prevent lateral movement.</p><h4>References</h4><ul><li><a href="https://techcommunity.microsoft.com/t5/enterprise-mobility-security/ldap-reconnaissance-the-foundation-of-active-directory-attacks/ba-p/462973">LDAP Reconnaissance - the foundation of Active Directory attacks</a></li><li><a href="https://www.optiv.com/blog/its-not-always-about-perimeter-look-domain-reconnaissance">It&#39;s Not Always About the Perimeter - A Look at Domain Reconnaissance</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1b07faadfd6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/ghost-in-the-shell-preventing-active-directory-lateral-movement-f1b07faadfd6">Ghost in the shell: Preventing Active Directory Lateral Movement</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Man-in-the-Middle Attacks]]></title>
            <link>https://medium.com/attivotechblogs/detecting-man-in-the-middle-attacks-7615d3e5a08?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/7615d3e5a08</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mitm]]></category>
            <category><![CDATA[credentials]]></category>
            <category><![CDATA[responder]]></category>
            <category><![CDATA[lateral-movement]]></category>
            <dc:creator><![CDATA[Muthukumar Lakshmanan]]></dc:creator>
            <pubDate>Fri, 17 Jan 2020 17:40:33 GMT</pubDate>
            <atom:updated>2020-01-17T17:40:33.816Z</atom:updated>
            <content:encoded><![CDATA[<p>An internal Man-in-the-Middle (MITM ) attack is where attackers insert themselves into the communications path on a network segment to intercept packets from hosts on the network and respond to them either directly or relay the communications after modifying their content. MITM attacks are used by attackers primarily for intercepting network traffic from hosts as well as credential harvesting and information stealing</p><p>A MITM attack typically exploits the inherent lack of security in some of the broadcast/multicast protocols at L2/L3 to launch the attack. The difficulty in detection MITM attacks is that the sensor or detector must be on the same subnet or VLAN as the system conducting the attack activity since it is passive in nature. Deception technology is ideally suited for detecting such attacks.</p><p>Some of the more prevalent MITM attacks are explained below.</p><p><strong>NBNS/LLMNR/mDNS Spoofing Attack</strong></p><p>NetBIOS Name Services (NBNS), Link-Local Multicast Name Resolution (LLMNR) &amp; multicast Domain Name Services (mDNS) are protocols used to conduct name resolution of resources within a network as a fallback mechanism when regular DNS name resolution fails. They operate only within a broadcast domain, meaning they can only resolve domain names within a subnet. While Windows uses NBNS and LLMNR for name resolution, OSX uses mDNS. All these protocols use UDP for name resolution.</p><p>An attacker can easily impersonate servers by sending spoofed responses to the hosts querying for services using name resolution requests. Web Proxy Auto-Discovery (WPAD) poisoning and SMB relay attacks are some of the popular attacks that use MITM for credential harvesting</p><p><strong>WPAD Poisoning Attack</strong></p><p>WPAD is a mechanism used by Windows to auto-discover proxy settings. On an enterprise network, a DNS entry for “WPAD” should point to a proxy server that hosts a “wpad.dat” file. Internet Explorer has a default configuration to auto-discover the proxy settings by looking for a WPAD server. If the DNS lookup for WPAD fails, the client resorts to NBNS/LLMNR to resolve WPAD. When an attacker system on the same broadcast domain sees a request for WPAD, it can send a spoofed response and force all HTTP traffic to pass through it. An attacker can also force authentication when a client tries to fetch the WPAD.dat file to capture the credentials.</p><p>Here is an illustration that describes how an attacker performs WPAD poisoning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*jeElkqMx9DaHGsca.png" /><figcaption>WPAD Poisoning Attack</figcaption></figure><p><strong>SMB Relay Attack</strong></p><p>An SMB relay attack relies on Microsoft NT LAN Manager (NTLM) v2 authentication that is typically used in corporate networks. NTLM uses a challenge/response protocol for authentication. When a client attempts to connect to a server, the server sends a challenge message to the client requesting it to encrypt the challenge with its password hash. The server then decrypts the response using the client’s password hash to validate the challenge message sent. If it is successful, the server authenticates the client. This method of authentication is prone to relay attack, which attackers use to steal credentials for critical servers.</p><p>Here is an illustration of how an attacker performs an SMB relay attack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgDaJq4jsWoOfChW.png" /><figcaption>SMB Relay Attack</figcaption></figure><p>The other attack vector that uses an SMB relay attack is by exploiting automated patch and policy server mechanisms. Corporate networks have management practices that include automated patch updates, policy updates, etc., from dedicated systems using service/administrative accounts. Since these operations execute on every host on the network, they will run on systems infected by an attacker. When one of these automated systems connects to the attacker-controlled system, the attacker relays the authentication attempt to a target server. The target server generates a challenge and sends it back to the attacker. The attacker sends the challenge back to the automated policy management system. The policy management system encrypts the hash with the correct password hash and sends it to the attacker. The attacker passes the correctly encrypted response back to his target, which successfully authenticate it.</p><p><strong>ARP Poisoning Attack</strong></p><p>Address Resolution Protocol (ARP) poisoning is another common technique used by attackers to conduct MITM attacks on unicast protocols. In an ARP poison attack, the attacker system responds to ARP requests for the default gateway with its MAC address. This poisons the ARP cache on endpoint hosts, which sends packets to the attacker instead of the proper gateway. With this, the attacker gains complete control of network connections from endpoints. An attacker system can also take over connection requests by responding to DNS requests with its IP or with the IP of another end host that the attacker controls.</p><p>Apart from responding to ARP requests, an attacker system can send spoofed gratuitous ARP request packets indicating that the gateway MAC address has been changed to its MAC address. Endpoint hosts that have an entry for the default gateway update their ARP table with the attacker system’s MAC address for the default gateway, causing all network traffic to go to the attacker.</p><p>Here is an illustration of how an ARP Poison attack works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qrD_MIswI5Yw8OaJ.png" /><figcaption>ARP Poison Attack</figcaption></figure><p><strong>MITM attack using Rogue DHCP Server</strong></p><p>By deploying a rogue DHCP server in the network, an attacker can control almost the entire network. Attackers can configure the rogue DHCP server with their system as both the default gateway and the DNS server. The attacker forces all traffic from endpoint hosts that obtain IP addresses from the rogue DHCP server to pass through the attacker system and to use the attacker IP for name resolution.</p><p>Here is an illustration of how an attacker launches a MITM attack using a rogue DHCP server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/0*WS9DpZ2X4Q8jchQ7.png" /><figcaption>Rogue DHCP Server</figcaption></figure><p><strong>How to launch MITM attacks</strong></p><p>“Responder” is a popular application that penetration testers and attackers use to conduct NBNS/LLMNR spoofing, WPAD Poisoning, and SMB relay attacks. It is a simple python-based tool that runs on any operating system. It is quite simple to harvest user credentials on the network Using this tool.</p><p>Imagine a user mistyping a non-existent domain name in the browser. The browser would first attempt to resolve the domain name using DNS. Since it is a non-existent domain, DNS resolution would fail, and the system would fall back to NBNS to resolve the domain name. When the attacker system sees an NBNS request is seen for a domain name, it responds to the requestor by giving its IP address for the non-existent domain.</p><p>In the illustration below, a user has typed a domain name “jugnusinha,” and the Responder system has answered the NBNS request for the domain name. When Responder receives the HTTP request, it forces an authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*QbiZ15uop6XZ2Sk_.png" /><figcaption>Responder forcing authentication for non-existing domain</figcaption></figure><p>An unsuspecting user would key in the credentials which the Responder system captures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*50zou5pNaFxwHDz7.png" /><figcaption>Credential stealing using Responder</figcaption></figure><p><strong>MITM Attack detection using the Attivo ThreatDefend Platform™</strong></p><p>The Attivo ThreatDefend Platform™ can detect MITM attacks mentioned above.<strong> </strong>With the Attivo BOTsink® appliance, customers can connect to the network switch trunk port or deploy decoys on every VLAN to gain visibility to all the broadcast and multicast traffic on the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/0*zIBrnGIutYxmuwBD.png" /></figure><p>The ThreatDefend<strong> </strong>platform provides detailed visibility of every host in the network and detects attackers performing MITM activity in real-time by using its machine learning algorithms. The detection includes attackers spoofing existing domains, attackers responding to multiple domain names and attackers responding to non existing domains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V81mr_ZN2EK4-BjltYSdjw.png" /><figcaption>ThreatDefend detecting MITM actors</figcaption></figure><p>For more information on the ThreatDefend Platform™ platform, please visit <a href="http://www.attivonetworks.com/">www.attivonetworks.com</a>.</p><p>Additional reading on using Responder to steal credentials abusing multicast protocols</p><p><a href="https://www.4armed.com/blog/llmnr-nbtns-poisoning-using-responder/">LLMNR and NBT-NS Poisoning Using Responder</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7615d3e5a08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/detecting-man-in-the-middle-attacks-7615d3e5a08">Detecting Man-in-the-Middle Attacks</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Deception with DevOps]]></title>
            <link>https://medium.com/attivotechblogs/integrating-deception-with-devops-651c2c72a988?source=rss----1ce8927cd7dd---4</link>
            <guid isPermaLink="false">https://medium.com/p/651c2c72a988</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[deception-technology]]></category>
            <dc:creator><![CDATA[Venu Vissamsetty]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 00:18:41 GMT</pubDate>
            <atom:updated>2019-12-04T15:12:31.431Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>DevOpsSe</strong>c or <strong>DevSecOps</strong> is the process of integrating security best practices as part of the development and deployment process. Every organization has its own DevOps methods, and this blog focuses on a few ways to integrate deception into the DevOps cycle to provide internal security monitoring</p><p>Jenkins is one of the more widespread continuous integration (CI) and continuous delivery (CD) solutions used by organizations to perform various build and deployment tasks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/0*VsWmoZih__UqObhD" /><figcaption><a href="https://azuremarketplace.microsoft.com/en-us/marketplace/apps/azure-oss.jenkins">https://azuremarketplace.microsoft.com/en-us/marketplace/apps/azure-oss.jenkins</a></figcaption></figure><p>Since Jenkins is such a popular DevOps engine to manage and operate software delivery cycles, it needs access to various credentials, keys, secrets, etc., to authenticate with external systems to deploy and manage applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-g42QxDk7Xkg8pXbtO6og.png" /><figcaption>Jenkins Credential Types</figcaption></figure><p>The Jenkins systems itself could be one of the primary targets for attackers to deploy crypto miners, ransomware, targeted malware, and other malicious applications on remote systems. There have been multiple instances of attackers targeting Jenkins via stolen credentials and exploitation.</p><h4><strong>Targeting Jenkins Servers</strong></h4><p>A recent <a href="https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2019/may/story-of-a-hundred-vulnerable-jenkins-plugins/">post from the NCC group</a> covers hundreds of vulnerabilities that attackers can exploit in Jenkins plugins. Once attackers have access to the Jenkins server, they can steal credentials from Jenkins, create or modify build scripts, decrypt secrets stored in credentials.xml file, or perform other malicious activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*wM8oPocCHcBruR6-4WxO_g.png" /><figcaption>Jenkins credentials accessible from scripts and code</figcaption></figure><p>The credentials.xml file stores both global and system credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*1aMMN_pbjfZ7N_iLS9x9Ow.png" /><figcaption><a href="https://codurance.com/2019/05/30/accessing-and-dumping-jenkins-credentials/">https://codurance.com/2019/05/30/accessing-and-dumping-jenkins-credentials/</a></figcaption></figure><blockquote><em>Passphrases stored inside the </em><em>credentials.xml file can be decrypted using the following script.</em></blockquote><pre><strong>println </strong>hudson.util.Secret.decrypt(<strong>“{AQAAABAAAAAgPT7JbBVgyWiivobt0CJEduLyP0lB3uyTj+</strong><a href="https://codurance.com/2019/05/30/accessing-and-dumping-jenkins-credentials/"><strong>D5WBvVk6jyG6BQFPYGN4Z3VJN2JLDm</strong></a><strong>}”</strong>)</pre><p>Attackers can also modify Jenkins scripts to add users to target systems for persistence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*hyfxshw3g1zfkS-tSH-WrQ.png" /></figure><h4>Integrating deception with the build process</h4><p>DevOps teams should assume the possibility of Jenkins or other CI/CD systems getting compromised and integrate deception into their CI/CD cycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*-_0ttocTeB9o5f6JhGs8Bg.png" /></figure><p>These are a few of the possible areas where DevOps teams can deploy deception:</p><ul><li>Deploy decoy Jenkins systems to lure attackers away from production systems.</li><li>Deploy decoy documents to detect intruders stealing organization intellectual property.</li><li>Add deceptive credentials to the Jenkins credential store and monitor for the use of these credentials.</li><li>Deploy decoy Jenkins pipelines which, when executed, build code from decoy GitHub Repos and deploy tasks on decoy systems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*soDKY6pim4NgzxGL0IxLhA.png" /><figcaption>Jenkins build triggers pointing to decoy servers</figcaption></figure><ul><li>Deploy decoy Github credentials, Office 365 mailboxes, etc., and monitor for the use of these credentials</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*a0_NwZ-M89lUuloQwdPO0w.png" /></figure><ul><li>Integrate deceptive workloads as part of production workloads by deploying decoy databases, containers, file servers, etc., along with production assets.</li><li>Deploy deception as part of their full-stack deployments. DevOps team can package deception as part of Cloud formation stacks, MEAN stack, LAMP stack, ELK stack, etc., and distribute breadcrumbs pointing to deceptive stacks</li></ul><h4>Passing deceptive credentials to applications and lambda functions</h4><p>Developers pass credentials, secrets, keys, and other access tokens in various forms to applications to get access to backend resources like databases, file servers, etc. Similarly, DevOps teams can pass deceptive credentials to production workloads to lure attackers to decoy systems.</p><p><strong>Passing deceptive servers, credentials, or secrets as environmental variables.</strong> Pass deceptive hostnames or credentials as environment variables, parameters, in configuration files, etc. Attackers will target running processes and configuration files to search for database and file server credentials.</p><p><strong>Passing deceptive servers or credentials in docker config files</strong>. Attackers who are in the network can search for parameters passed to docker containers. DevOps teams can plant deception in configuration files and misdirect attackers to decoy systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*hu7ljqbfN93w0JxXxMJ7-Q.png" /><figcaption><a href="http://shudarshon.com/2018-07-21/Docker-Secret-Paramter-Store.html">http://shudarshon.com/2018-07-21/Docker-Secret-Paramter-Store.html</a></figcaption></figure><p><strong>Passing deceptive key-store parameters as command line arguments. . </strong>Applications use key-stores to hold and retrieve secrets and credentials. DevOps teams can deploy deception in key-stores and pass deceptive key-store parameters as command-line arguments or environmental variables and monitor if any attackers are reading and using this deceptive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GgXMmYwiCqH1Gn88LnPEA.png" /></figure><h4>Strengthening Defenses Against API Attacks</h4><p>DevOps teams can deploy API deception to learn and gather intelligence on how adversaries target critical APIs. Most of the APIs are external facing and subject to different types of attacks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*lFc6uc_oE7reIg8CH5EkIQ.png" /></figure><p>The decoy API endpoints can be instrumented with additional detection mechanisms to identify various types of attacks.</p><p>During the deployment of Web apps, developers or security administrators can inject fake website paths accessing deceptive database entries.</p><pre>/backup/backup.php<br>/manage/dbusers.html</pre><p>DevOps teams can monitor for attackers targeting deceptive paths and exploiting vulnerabilities, to learn their attack methods.</p><h4>Deception for Backup &amp; Restore</h4><p>Many organizations are moving to the public cloud for backup services. DevOps teams can deploy deception to detect any attacks originating from inside the network or externally on the organization’s public cloud infrastructure that arise due to misconfigurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7Gr3SFiciHkDXj5a.png" /><figcaption><a href="https://aws.amazon.com/backup-restore/use-cases/">https://aws.amazon.com/backup-restore/use-cases/</a></figcaption></figure><h3>Conclusion</h3><p>As the defacto DevOps engine, Jenkins needs to be secured and configured correctly. Exploitation, stolen credentials, and misconfigurations can result in an exposure of the various secrets stored in Jenkins. Attackers can modify pipelines and deploy malware or add accounts for persistence. DevOps teams must, therefore, look to new security controls such as deception technology to defend Jenkins and other CI/CD solutions from compromise.</p><p>Additional reading on dumping credentials and attacks on Jenkins systems:</p><ul><li><a href="https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2019/may/story-of-a-hundred-vulnerable-jenkins-plugins/">Story of a Hundred Vulnerable Jenkins Plugins</a></li><li><a href="https://www.crowdstrike.com/blog/your-jenkins-belongs-to-us-now-abusing-continuous-integration-systems/">Your Jenkins Belongs to Us Now: Abusing Continuous Integration Systems</a></li><li><a href="https://codurance.com/2019/05/30/accessing-and-dumping-jenkins-credentials/">Accessing and dumping Jenkins credentials</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651c2c72a988" width="1" height="1" alt=""><hr><p><a href="https://medium.com/attivotechblogs/integrating-deception-with-devops-651c2c72a988">Integrating Deception with DevOps</a> was originally published in <a href="https://medium.com/attivotechblogs">AttivoTechBlogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>