Sunday, November 17, 2024
HomeCVE/vulnerabilityActive Directory Domain Service Bug Let Attackers To Takeover Windows Domains

Active Directory Domain Service Bug Let Attackers To Takeover Windows Domains

Published on

During the November 2021 Patch Tuesday Two Active Directory domain service privilege escalation security flaws have been detected recently by Andrew Bartlett of Catalyst IT, and these two security flaws allow hackers to take over Windows domains easily when they are united.

Microsoft suggested users to immediately patch these two Active Directory domain service privilege escalation security flaws that are tracked as:-

  • CVE-2021-42287: KDC bamboozling
  • CVE-2021-42278: SAM Name impersonation

Here’s what Microsoft stated:-

- Advertisement - SIEM as a Service

“This escalation attack allows attackers to easily elevate their privilege to that of a Domain Admin once they compromise a regular user in the domain. As always, we strongly advise deploying the latest patches on the domain controllers as soon as possible.”

In default configurations from standard Active Directory user to a Domain Admin can easily use the tool to escalate these privileges. While apart from this, for a given object several naming schemes are used by AD (Active Directory) and they are like:-

  • userPrincipalName (UPN)
  • sAMAccountName (SAM-Account)

How to find the sAMAccountNames?

To find the sAMAccountNames you have to follow some simple steps that we have mentioned below:-

  • First, you have to Click View option.
  • Then select the Advanced Features.
  • After that, you have to open the properties of an object.
  • Then Attribute Editor tab.
  • Lastly, scroll down to sAMAccountName.

Identify Potential Compromised Computers

To identify potentially compromised systems and servers Microsoft has shared detailed guidance, and here we have mentioned them below:-

  • The sAMAccountName change is based on event 4662. Please make sure to enable it on the domain controller to catch such activities.
  • Open Microsoft 365 Defender and navigate to Advanced Hunting.
  • Copy the following query:-

IdentityDirectoryEvents

| where Timestamp > ago(1d)

| where ActionType == “SAM Account Name changed”

| extend FROMSAM = parse_json(AdditionalFields)[‘FROM SAM Account Name’]

| extend TOSAM = parse_json(AdditionalFields)[‘TO SAM Account Name’]

| where (FROMSAM has “$” and TOSAM !has “$”)

        or TOSAM in (“DC1”, “DC2”, “DC3”, “DC4”) // DC Names in the org

| project Timestamp, Application, ActionType, TargetDeviceName, FROMSAM, TOSAM, ReportId, AdditionalFields

  • Replace the marked area with the naming convention of your domain controllers.
  • Run the query and analyze the results which contain the affected devices.
  • Thoroughly examine all the compromised computers and servers to determine whether they have been weaponized or not.

By following the above steps you can easily identify potentially compromised systems and servers to take proper mitigations to avoid such attacks in the future.

You can follow us on Linkedin, Twitter, Facebook for daily Cybersecurity and hacking news updates.

Balaji
Balaji
BALAJI is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Latest articles

Critical TP-Link DHCP Vulnerability Let Attackers Execute Arbitrary Code Remotely

A critical security flaw has been uncovered in certain TP-Link routers, potentially allowing malicious...

Chinese SilkSpecter Hackers Attacking Black Friday Shoppers

SilkSpecter, a Chinese financially motivated threat actor, launched a sophisticated phishing campaign targeting e-commerce...

Cybercriminals Launch SEO Poisoning Attack to Lure Shoppers to Fake Online Stores

The research revealed how threat actors exploit SEO poisoning to redirect unsuspecting users to...

Black Basta Ransomware Leveraging Social Engineering For Malware Deployment

Black Basta, a prominent ransomware group, has rapidly gained notoriety since its emergence in...

Free Webinar

Protect Websites & APIs from Malware Attack

Malware targeting customer-facing websites and API applications poses significant risks, including compliance violations, defacements, and even blacklisting.

Join us for an insightful webinar featuring Vivek Gopalan, VP of Products at Indusface, as he shares effective strategies for safeguarding websites and APIs against malware.

Discussion points

Scan DOM, internal links, and JavaScript libraries for hidden malware.
Detect website defacements in real time.
Protect your brand by monitoring for potential blacklisting.
Prevent malware from infiltrating your server and cloud infrastructure.

More like this

Critical Laravel Vulnerability CVE-2024-52301 Allows Unauthorized Access

CVE-2024-52301 is a critical vulnerability identified in Laravel, a widely used PHP framework for...

4M+ WordPress Websites to Attacks, Following Plugin Vulnerability

A critical vulnerability has been discovered in the popular "Really Simple Security" WordPress plugin,...

CISA Warns of Actors Exploiting Two Palo Alto Networks Vulnerabilities

The Cybersecurity and Infrastructure Security Agency (CISA) has issued an urgent alert and added...