Today Active Directory Security is mission-critical to organizational security worldwide and thus mission-critical to Cyber Security worldwide. On this blog, former Microsoft Program Manager for Active Directory Security, and today, CEO of Paramount Defenses, shares valuable technical insights on Active Directory Security.


Showing posts with label Mimikatz DCSync. Show all posts
Showing posts with label Mimikatz DCSync. Show all posts

Monday, October 22, 2018

What are the Minimum Security Permissions Needed in Active Directory to Run Mimikatz DCSync?

Folks,

In days to come, I'll be helping organizations worldwide understand what constitutes a privileged user in Active Directory, how to correctly audit privileged access in Active Directory, and what the world's most important Active Directory security capability is.

Today though, I just wanted to ask a very simple and elemental cyber security multiple-choice question, so here it is -


Q. What are the minimum Active Directory Security Permissions that a perpetrator needs to be able to successfully run Mimikatz DCSync against an organization's foundational Active Directory deployment?

Is it -
A. The "Get Replication Changes" Extended Right 
B. The "Get Replication Changes All" Extended Right 
C. Both A and B above 
D. Something else

I already know the answer to this simple question. I'm only asking because I believe that today every Domain Admin and every CISO at every organization that operates on Active Directory MUST know the answer to this question, and here's why.

You may be surprised if I were to share with you just how many Domain Admins and CISOs (at so many of the world's most prominent organizations) don't know even seem to know what Mimikatz DCSync is, let alone knowing the answer!


If you know the answer to this question, please feel free to share it by leaving a comment below.

Best wishes,
Sanjay.

Tuesday, October 16, 2018

Mimikatz DCSync Detection

Folks,

I trust this finds you doing well. I know so many of you are waiting for me to answer the question - What's the World's Most Important Active Directory Security Capability? but before I did so, I just wanted to address something very simple and vital.


Mimikatz DCSync Detection ?! ;-)

If you're into Cyber Security, unless you live on another planet, by now you know that at the very foundation of cyber security worldwide lies Microsoft Active Directory, you know that little thing within which lie not just everyone's accounts and passwords, or for that matter the computer accounts of every single domain-joined machine, or for that matter every single domain security group that is used to protect the entirety of an organization's IT assets, but also the proverbial "Keys to the Kingdom!" etc. etc.

By the way, this isn't some secret - this is CYBER SECURITY 101 that millions of IT personnel, IT managers, CISOs and just about everyone in IT ought to know by know, considering that Active Directory has been around for almost two decades now!

Alright, fast forward...

A few years ago, a remarkably intelligent and talented Benjamin Delpy introduced a new feature in his hacking tool Mimikatz, and that feature was called Mimikatz DCSync. In essence, if you can run Mimikatz DCSync against an Active Directory, you can instantly obtain access to the credentials of literally everyone who has a domain account in that domain - we're talking the accounts of literally everyone, from Domain Admins to the CISO and from the Enterprise Admin to the CEO, etc. etc.

Now, technically, DCSync leverages the ability of a security principal to be able to request and replicate Active Directory content (including secrets i.e. password hashes) out of Active Directory. It turns out anyone who has sufficient effective permissions to be able to replicate secrets out of Active Directory can run Mimikatz DCSync, and within minutes be proverbial God!

So, what happens? In time, Mimikatz DCSync finds global fame and glory, it becomes a must have tool in the arsenal of these so called kiddish Red Teams and Blue Teams, and in addition today there's no dearth of cyber security experts who will want to blog about Mimikatz DCSync sharing with the world, its usage, how to exploit it etc. etc. and in particular how to detect it!

Here are a few random blogs a Google search seemed to suggest -
  1. Mimikatz DCSync Usage, Exploitation, and Detection
  2. Mimikatz and DCSync and ExtraSids, Oh My
  3. Modern Active Directory Attack Scenarios and How to Detect Them
  4. DCSYNC

Now, please pardon me for expressing serious concern here because if the best an organization can do is DETECT the use of Mimikatz DCSync, that's sort of like, well let me paint you a picture:



A Billion $ Organization or for that matter a Government Agency having to rely on detection of Mimikatz DCSync is akin to ....


... lets assume a SNIPER takes a shot at a target from point blank range, and the best those protecting the target can do is try and detect the bullet in flight milliseconds before it hits its target. Well, I shouldn't have to complete the sentence for you.


Here's the Trillion $ point - if an organization is having to rely on the DETECTION of the use of Mimikatz DCSync, its too late.

From the Domain Admin to the CISO, its time to go home and find another job, because it would already have been too late. You're done. Once a malicious perpetrator has gained administrative access in even a single Active Directory domain, those who know anything about Active Directory Security will tell you that you've lost the entire Active Directory forest. Oh, and if you think you could easily recover that forest from a trusted forest, you've likely been getting some amateur advice ;-)


Mimikatz DCSync Mitigation

I cannot stress this enough - this is not a risk that can be addressed by detection. It needs to be mitigated and today, every single organization that operates on Microsoft Active Directory can easily mitigate the risk posed by Mimikatz DCSync. I've already spent enough time educating the world about this, so I'm not going to waste one more precious minute on this.

For every org that wants to learn how to do so - How to Lockdown Active Directory to Thwart the Use of Mimikatz DCSync


Incidentally, the astute mind will observe, that whether it be mitigating the risk posed by Mimikatz DCSync or securing access to just about anything and everything in Active Directory, all organizations worldwide (including likely the $800 Billion Microsoft) require is 1 single, fundamental cyber security capability - The Most Important Active Directory Security Capability in the World.





A Request to All Experts Out There

To all cyber security experts and cyber security companies (including Microsoft) out there, I have a request - if you truly know Active Directory Security, lets see you go beyond helping the world learning how to use, exploit and detect Mimikatz DC Sync...


...lets see you teach the world how to actually mitigate this risk, perhaps with an example, for when you get there, you'll likely realize that not a single object in any Active Directory domain worldwide can be adequately secured without possessing this.


Alright that's it, I'm not wasting one more minute of my precious time
on this little distraction of a thing called Mimikatz DCSync.


After all this dry stuff, perhaps I should end on a humorous note - Time to Ignite an Intellectual Spark at Microsoft Ignite 2018 ;-)

Best wishes,
Sanjay.

Thursday, June 21, 2018

Can Anyone (i.e. any Cyber Security Company or Expert) Help Thousands of Microsoft's Customers MITIGATE the Risk Posed by Mimikatz DCSync?

Folks,

Over the years, I've asked and answered some of the hardest questions in Active Directory Security, so today I'm only going to ask a question, with the hope that there is someone out there, and I mean anyone, who is the answer to this question!



Here's my Question -
Can Anyone in the World (i.e. any Cyber Security Company or Expert) Out There Help Thousands (1000s) of Microsoft's Organizational Customers Mitigate the Serious Cyber Security Risk Posed by Mimikatz DCSync?

Anyone?

There are 6,000,000,000+ people across 190+ countries worldwide, there are millions of IT personnel employed at 1000s of organizations, there are 1000s of cyber security experts and over a 1000 cyber security companies. I'm looking for just ONE.


By the way, by mitigate, I mean "render Mimikatz DCSync unusable in an AD environment" in that, say in an organization that had 10,000 employees and thus had 10,000 domain user accounts, and say 10 privileged users, even if every single one of these 10,000 accounts had been compromised by a perpetrator, he/she still couldn't use Mimikatz DCSync against their AD.

Also, I'm looking for an answer that's beyond the most obvious answer, which is to not grant anyone the required access. In other words, I'm looking for an answer that will work in every real, production Active Directory domain in the world, you know, wherein various default Active Directory security groups and users are already granted various permissions in Active Directory.


Here's what I've found thus far -
  1. This brilliant, gentle, highly-accomplished cyber security expert developed Mimikatz DCSync
  2. This AD security enthusiast educated the world about its usage, exploitation and detection (but not about its mitigation)
  3. This famous cyber security expert showed an example in action (; Oh my! ;-))
  4. This expert shared some guidance on how to detect it (; if you're detecting it, its likely too late)
  5. These cyber security experts don't seem to know that much about it, or about Active Directory Security
  6. These wonderful folks present an inaccurate script to help detect who can use Mimikatz DCSync
I could go on and on sharing the identities of so many who talk about it, but there isn't a single one who can help mitigate it :-(

Not to mention the 1000+ cyber security companies, including some big names such as (mentioned in no particular order) Palantir, Gemalto, Tanium, Tripwire, CheckPoint, Palo Alto Networks, Symantec, McAfee, Cisco, Kaspersky Labs, CrowdStrike, SentinelOne, BAE Systems, Qualys, Sophos, Gemalto, CyberArk, ZScaler, Preempt, BeyondTrust, Quest, HP, etc. etc.!

Oh, here's the amusing part - in all likelihood, most of these cyber security companies too very likely run on Active Directory, and if I had to guess, I don't think even one of them, know how to, or possess the means to mitigate Mimikatz DCSync!

Funny haan? ;-)


Why Does this Matter?

By now, I shouldn't have to tell anyone involved in Active Directory or cyber security why this matters, but I will nonetheless -


Most simply put, should a perpetrator be able to successfully run Mimikatz DCSync against your foundational Active Directory domain, you're DONE, as it would be tantamount to a massive, systemic cyber security breach. The entirety of your user populace's credentials would have been compromised, and the perpetrator would have obtained control over your entire Active Directory forever. It would be time for everyone, including all Domain Admins, the CISO, the CIO and the CEO to find another job (assuming you can find one, considering your resume would highlight your previous employment, and since your previous employer (i.e. the one that was breached) would likely have been all over the news for quite some time, it may perhaps end up being a little difficult to find suitable employment.)



How about an Illustrative Scenario?

Sure, if you'd like one, here you go -  A Massive Breach at a Company whilst it was Considering the Cloud.


A Request

We often come across Domain Admins, and every now and then CISOs, who have no idea what Mimikatz DCSync is, and that is scary. If you are such a Domain Admin / CISO, my earnest request to you would be to immediately learn about it, or, in the best interest of your employer's foundational cyber security, please let someone else take over your vital responsibilities.



Let Me Know

Very well then. If ANYONE in the world knows ANYONE who can help (and by that I mean  possesses the capability to be able to help) thousands of organizations worldwide (easily and correctly) MITIGATE the serious risk posed by Mimikatz DCSync, please let me know. I'm all ears, and I think, so are thousands of organizations worldwide, including perhaps Microsoft too ;-).

In short, I'm looking for someone/thing that could render the extremely powerful and dangerous Mimikatz DCSync, unusable. With 6 billion people, millions of IT and cyber security pros, and a 1000+ cyber security companies worldwide, I'm hopeful.

So if you know of someone (and I mean, anyone) who can do so, please let me know by leaving a comment below.

If I don't get an answer by July 02, perhaps I'll take a shot at the answer, over at - www.cyber-security-blog.com.

Best wishes,
Sanjay


PS: On an unrelated note, when you use Windows Update
       to update your Windows 10 PC every week, do you
       EVER check to see just what got downloaded?
       Perhaps you SHOULD, and here's why.



July 03 Update. Here's the answer > www.cyber-security-blog.com/2018/07/mimikatz-dcsync-mitigation.html

Monday, October 9, 2017

Some Love For Microsoft + Time to Help Microsoft (and the Entire World)


Folks,

This is a Trillion $ post. I wanted to show some love for Microsoft and help them out, as it appears they could use some help.

BTW, for those wondering who I am to make such a statement, I'm a nobody who knows a thing about a thing that impacts WD.




Trillion $ Background

From the White House to the Fortune 1000, Microsoft Active Directory is the very foundation of cyber security at over 85% of organizations worldwide. In fact, it is also the foundation of cyber security of almost every cyber security company worldwide.


Active Directory is the Foundation of Cyber Security Worldwide

The compromise of an organization's foundational Active Directory deployment could have disastrous consequences for the organization and its stakeholders, and the real extent of damage would be a function of the perpetrators' proficiency and intent.

If you understand the inner workings of Active Directory based networks, then you know that the amount of damage that we've seen in recent breaches such as the Equifax breach, is nothing, compared to the amount of damage that can actually be done.



Thus far, perpetrators have been focused on simple attack vectors such as credential-theft attacks aimed at the compromise of an organization's privileged users (e.g. Domain Admins), and over time Microsoft has made their enactment much harder.

As these attack vectors become harder to enact, perpetrators have started focusing on increasing their knowledge about Active Directory, and exploring ways to try and target and compromise Active Directory itself, as evidenced by the fact that in the last year alone, we've seen the introduction of Mimikatz DCSync, BloodHound and recently the advent of Active Directory Botnets.

Today Active Directory security, and in particular Active Directory access control lists (ACLs) impact organizational security and national security, worldwide. Speaking of which, and just so the world knows, here is Microsoft's take on them, and here is ours.

Perpetrators seem to be learning fast, and building rapidly, so the next big wave of cyber breaches could involve compromise of Active Directory deployments, unless organizations act swiftly to lock-down their foundational Active Directory deployments.

To do so, organizations worldwide need the right insight, guidance and tooling to adequately lock-down their Active Directory deployments. Unfortunately, Microsoft doesn't seem to know much about it (proof: 1, 2, 34), and thus may be unable to help.




Some Love for Microsoft

Today I may be the CEO of Paramount Defenses, but I'm also former Microsoft Program Manager for Active Directory Security, and I for one deeply love Microsoft, and deeply care about the foundational cyber security of all organizations worldwide, so I'm going to help Microsoft and the entire world adequately secure and defend their foundational Active Directory deployments.


To Satya (Nadella) and my former colleagues at Microsoft I say - "Microsoft is one of the greatest companies in the world today, and we care deeply and passionately about not only the role we play in society and the impact we have on billions of people, but also the responsibility that goes along, so we're* going to help the world address this colossal cyber security challenge."

* I may no longer be a Microsoft employee, but I still do care deeply and equally, so I'm happy to help you.
  If I were you, I'd most respectfully embrace this opportunity, be thankful for it, and not squander it.

To my friends at Microsoft, if I may have recently been a tad critical of you, its only because I care deeply about our customers, and I know that Microsoft can do much better at educating its global customer base about a matter of paramount importance.





Er, What Cyber Security Challenge?

Now, there might be billions of people and thousands of organizations worldwide who may have absolutely no idea about what I'm talking about, so perhaps I should succinctly and unequivocally spell it out not just for the entire world, but also for Microsoft.


Stated simply, and as described in The Paramount Brief, here's the #1 cyber security challenge that impacts the world today -


"From Silicon Valley to New York and London to Sydney, at the very foundation of cyber security and IT of 85+% of all business and government organizations across 190+ countries worldwide lies Microsoft's Active Directory.
Within the foundational Active Directory domains of these organization lie the entirety of their building blocks of their cyber security i.e. their user accounts, computer accounts, security groups, security policies etc. each one of which is represented by an Active Directory object & protected by an Active Directory Access Control List (ACL).
Today, in most of these organizations, there exist millions of ACLs in their Active Directory, and within these ACLs exists an ocean of excessive/unauthorized access, that today paves thousands of privilege escalation paths to literally the entirety of all objects in these Active Directory deployments, including to all their privileged users.
This ocean of unauthorized access exists worldwide today because Active Directory lacks and has always lacked the essential ability to help organizations correctly and adequately audit effective access in Active Directory, and consequently even though organizations have been delegating/provisioning all kinds of access in Active Directory to fulfill various business needs, they've never had the opportunity to correctly audit this ocean of access, resulting in a situation caused over time (i.e. over the years) wherein today unauthorized access pervades Active Directory.
In short, today, at most organizations, no one knows exactly who has what access on any of their building blocks of security, and possibly an excessive number of users, computers and service accounts may have substantial unauthorized access on them, and thus be in a position to easily and instantly compromise their security.

  • A Trillion $ Note: Most organizations (and perpetrators, as well as the Bloodhound Tool) audit "Who has what permissions in Active Directory?" Unfortunately, that does not provide the accurate picture. What they need to audit is "Who has what effective permissions/access in Active Directory?" Sadly, Microsoft has NEVER provided this guidance in an entire decade, so no one even seems to know this.

Anyone who possesses the tooling to correctly analyze effective access in Active Directory could instantly identify, and either eliminate or exploit, all such unauthorized access grants and the 1000s of privilege escalation paths they pave, and thus be in a position to either formidably defend or completely compromise these organizations.
The potential impact of this huge cyber security challenge is best illustrated by these 7 examples. Its that simple."


As simple as it is, not a single one* of the 1000+ cyber security companies that exist today has a solution for this challenge.


Let there be no mistake about this - a proficient intruder who possesses tooling that lets him/her correctly analyze effective permissions/access in Active Directory, could easily find, hundreds if not thousands, of unauthorized access grants in most Active Directory domains, and exploit them to compromise and obtain complete command and control over the organization.


If you find this hard to believe, you don't have to take my word for it, as here is Microsoft finally acknowledging it, and doing their best to downplay it. By the way, if they truly understood the depth of this problem, what they should've actually said is here.

Unfortunately, perpetrators can develop their own tooling and they don't even have to be 100% accurate (e.g. Bloodhound.)

Fortunately, organizations that possess the right tooling (e.g. 1, 2) can reliably mitigate all such security risks to Active Directory, from Mimikatz DCSync to Active Directory Privilege Escalation and from Sneaky Persistence to Active Directory Botnets, before perpetrators have the opportunity to exploit them, leaving no unauthorized access in Active Directory for perpetrators to exploit.





Time to Help Microsoft (and the Entire World)

Over the next few days, not only am I going to help reduce the almost total lack of awareness, education and understanding that exists at organizations today concerning Active Directory Security, I am also going to help organizations worldwide learn just how they can adequately and swiftly address this massive cyber security challenge before it becomes a huge problem.


Of course, today we can also uniquely empower organizations worldwide to adequately secure and defend their foundational Active Directory deployments, and we are happy to help organizations that request our help, but we are not going to go to anyone explicitly offering our help, because we're not your ordinary company.


So, in days to come, we'll begin by educating the world about the following -


  1. What Constitutes a Privileged User in Active Directory

  2. How to Correctly Audit Privileged Users/Access in Active Directory

  3. How to Render Mimikatz DCSync Useless in an Active Directory Environment

  4. How to Easily Identify and Thwart Sneaky Persistence in Active Directory

  5. How to Easily Solve The Difficult Problem of Active Directory Botnets

  6. Why the World's Top Active Directory Permissions Analysis Tools Are Mostly Useless

  7. Why is the Need to Lockdown Access Privileges in Active Directory Paramount to its Defense?

  8. How to Attain (Lockdown) and Maintain Least Privileged Access (LPA) in Active Directory

  9. How to Securely Delegate and Correctly Audit Administrative Access in Active Directory

  10. How to Easily Secure Active Directory and Operate a Bulletproof Active Directory Deployment

You see, each one of these Active Directory security focused objectives can actually be easily accomplished today, but and in order to do so, what is required is the ability to be able to accurately and adequately audit effective access in Active Directory.

Each one of these topics is absolutely essential for organizational cyber security worldwide, and if you know of even one other entity (e.g. individual/company) on the planet that can help the world address each one of these objectives today, let me know.

So, within the next 7 days, as a part of this, I'll start penning the above, and you'll be able to read them right here.




In Summary

If you truly understand Active Directory Security, then you know that literally the entire world's wealth is being protected by it, so and thus we just cannot afford for organizations to start having their foundational Active Directory deployments being breached.


Together, we can help adequately secure and defend organizations worldwide and deny perpetrators the opportunities and avenues they seek to compromise our foundational Active Directory deployments, because we must and because we can.


Best wishes,
Sanjay

CEO, Paramount Defenses

Formerly, Program Manager,
Active Directory Security,
Microsoft Corporation


PS: To anyone who believes they know more about Active Directory Security than us, or can help the world more than we can, go ahead and demonstrate that you can - this is your opportunity. If you can, let's see it. If you can't, you'll want to listen to us.

PS2: If you liked this post, you may also like the 20+ posts that are a part of - Helping Microsoft with Active Directory Security.

Monday, June 19, 2017

The Top-5 Cyber Security Risks to Active Directory Deployments (Day-5)

Dear Microsoft,

Today is Day-5 of our advanced Active Directory Security school for you. Since you've been busy trying to address risks posed by credential-theft attacks, and making paradigm shifts, you may likely have forgotten about the top risks to Active Directory.


So, today, I'll educate you about the Top-5 security risks that most Active Directory deployments are likely vulnerable to today.



The Top-5 Security Risks to Active Directory Deployments

The following are the Top 5 security risks that most Active Directory deployments are likely exposed to today -

  1. The complete and instant compromise of the credentials of all domain user accounts, including those of all privileged users, enactable via Mimikatz DCSync, by any intruder/insider that has sufficient effective permissions to replicate secrets from Active Directory.

  2. The complete and instant compromise of all default Active Directory privileged user accounts and groups, enactable via any AD mgmt. tool, by any intruder/insider that has sufficient effective permissions on the AdminSDHolder object.

  3. The complete and instant compromise of most* IT assets stored in Active Directory, enactable via any AD mgmt. tool, by any intruder/insider that has sufficient effective permissions, resulting from wide-scoped insecure inheritable permissions.

  4. The complete and instant compromise of all Domain Controllers in the domain, enactable via any AD mgmt. tool, by any intruder/insider that has sufficient effective permissions to link a malicious GPO to the default Domain Controllers OU.

  5. The complete and instant compromise of specific IT assets stored in Active Directory, such as the CEO's user account, enactable via any AD mgmt. tool, by any intruder/insider that has sufficient effective permissions to do so.

[ Sufficient reasoning for what makes these risks the top 5 risks, as well as technical details, are furnished below. ]


It is vital to understand that a SINGLE occurrence of risks #1, #2 and #4 above (, and depending on the target, also of risks #3 and #5) could result in the compromise of the ENTIRE Active Directory deployment. This fact CANNOT be overstated enough.




But First, 5 Notable Points About These 5 Risks

Organizations that care about their foundational security may find the following points interesting to note -

  1. Not a single one of these risks either requires or involves the use of any credential-theft technique (such as Pass-the-Hash, Kerberos Golden Tickets etc.) and none of these band-aids can prevent an attacker from enacting these risks.

  2. Not a single one of these risks requires the attacker to compromise any computer whatsoever i.e. he/she need not compromise even a single Domain Controller, admin workstation, member server, employee laptop etc.

  3. Not a single one of these risks requires the attacker to have physical or system access to even a single Domain Controller, data center, admin workstation, or for that matter even a single copy of an Active Directory backup.

  4. Not a single one of these risks requires the attacker to possess tooling that is not freely available. Microsoft's native Active Directory management tools, and Mimikatz DCSync, all of which are freely available, are amply sufficient.

  5. Not a single one of these risks requires the attacker to be at a specific location. Each one of these risks can be enacted from anywhere in the world (HQ, branch, offshore) as long as the attacker has network access to your Active Directory.

All that an attacker needs to enact these risks is sufficient effective access i.e. Active Directory Effective Permissions.




Oh and , 2 Other Quick Points

For those who may wonder why these risks are higher than risks posed by the compromise of a Domain Controller or an admin workstation, or the risks posed by credential-theft techniques involving the compromise of Active Directory privileged users -

  1. For those wondering as to why these risks are higher than the risk posed by the compromise of a Domain Controller (DC) or an admin workstation, it is because to compromise a DC or an admin workstation, one typically requires either unrestricted physical access to it, and/or the ability to breach its system security, both of which are almost always more difficult to obtain than mere network access to Active Directory, which (obviously in addition to sufficient effective permissions) is all that a perpetrator needs to successfully enact any or each of these 5 risks to Active Directory.

  2. For those wondering as to why these risks are higher than the risk posed by predominant credential-theft techniques involving the compromise of Active Directory privileged users, we're focused on mature defendable IT environments, wherein organizations have been able to either largely eliminate or minimize the possibility of credential-theft attacks involving the compromise of Active Directory privileged users in their environments, or be in a position to detect their occurrence (via technologies such as Microsoft ATA) and thwart them. Speaking of which, may I suggest reading this.


And now...



An Objective, Formal Risk-Management based Substantiation of these Top-5 Risks -



1. Complete and Instant Compromise of the Credentials of All Domain User Accounts -

  • Asset at Risk – Credentials of all Active Directory domain user accounts (including those of all privileged users)
  • Threat Source – Any sufficiently privileged intruder (hacker, APT etc.) / insider (disgruntled, rogue or coerced user)
  • Attack Surface – Active Directory domain root object
  • Enabler - Anyone who possesses Get-Replication-Changes-All extended right effective permissions on the domain root object is allowed to, and thus can, replicate all data including secrets (i.e. passwords) from Active Directory
  • Exploitation ProcedureDCSync feature of the Mimikatz tool
  • DifficultyMinimal
  • ImpactVery high
  • Likelihood / Probability of OccurrenceHigh
  • Physical / System Level Access to DC Required No
  • Resources Required – Network access to Active Directory + Sufficient Effective Permissions in Active Directory
  • Mitigation / Prevention – Ensure (at all times) that only the smallest number of most highly trustworthy IT personnel have the Get-Replication-Changes-All effective permissions granted on the domain root object in Active Directory
  • Risk Assessment – To find out exactly who can enact this risk, audit Active Directory effective permissions on the domain root object to find out exactly who all effectively have the Get-Replication-Changes-All right granted today
  • Detection – Potentially possible via use of Active Directory auditing. However, detection is hardly useful because by the time an audit event/notification is generated / acted upon, substantial damage will likely already have been done
  • Additional Info - Here



2. Complete and Instant Compromise of All Default Active Directory Privileged Domain User Accounts and Groups -

  • Asset at Risk – All default Active Directory privileged/administrative domain user accounts and security groups (e.g. Administrators, Domain Admins, Enterprise Admins, Server Operators, Print Operators, Account Operators etc.)
  • Threat Source – Any sufficiently privileged intruder (hacker, APT etc.) / insider (disgruntled, rogue or coerced user)
  • Attack SurfaceAdminSDHolder object in Active Directory
  • Enabler - Anyone who possesses any one of various modify (WP, WD, CR, FC) effective permissions on the AdminSDHolder object is allowed to, and thus can, manage all default Active Directory domain accounts and groups
  • Exploitation Procedure – Use native Microsoft Active Directory management tooling (e.g. ADUC etc.) to maliciously enact an authorized administrative task such as a password reset or a group membership change
  • DifficultyMinimal
  • ImpactVery high
  • Likelihood / Probability of OccurrenceHigh
  • Physical / System Level Access to DC Required No
  • Resources Required – Network access to Active Directory + Sufficient Effective Permissions in Active Directory
  • Mitigation / Prevention – Ensure (at all times) that only the smallest number of most highly trustworthy IT personnel have modify (WP, WD, CR, FC) effective permissions granted on the AdminSDHolder object in Active Directory
  • Risk Assessment – To find out exactly who can enact this risk, audit Active Directory effective permissions on the AdminSDHolder object to find out exactly who all effectively have various modify effective permissions granted today
  • Detection – Possible via use of Active Directory auditing. However, detection is hardly useful because by the time an audit event/notification is generated / acted upon, substantial damage will most likely already have been done.
  • Additional Info - Here



3. Complete and Instant Compromise of Most IT Assets Stored in Active Directory -

  • Asset at Risk – Almost all Active Directory content (i.e. all Active Directory objects except those whose ACLs are not marked Protected), such as all domain user accounts, security groups, computer accounts, OUs, SCPs etc. 
  • Threat Source – Any sufficiently privileged intruder (hacker, APT etc.) / insider (disgruntled, rogue or coerced user)
  • Attack Surface – The entire Active Directory
  • Enabler - Anyone who ends up being entitled to any one of various modify (WP, WD, CR, FC) effective permissions on any object in Active Directory is allowed to, and thus can manage that Active Directory object. A single incorrectly specified (whether accidentally or intentionally) inheritable security permission specified at the domain root or at a top-level OU could impact the effective permissions on thousands of Active Directory objects in that domain/OU. 
  • Exploitation Procedure – Use native Microsoft Active Directory management tooling (e.g. ADUC etc.) to maliciously enact an authorized administrative task such as a password reset or a group membership change
  • DifficultyMinimal
  • ImpactHigh to Very high
  • Likelihood / Probability of OccurrenceHigh
  • Physical / System Level Access to DC Required No
  • Resources Required – Network access to Active Directory + Sufficient Effective Permissions in Active Directory
  • Mitigation / Prevention – Ensure (at all times) that all access provisioned in Active Directory adheres to the principle of least privilege, so as to ensure that net resulting effective permissions / effective access on all Active Directory objects only permits authorized personnel to enact administrative tasks on these objects
  • Risk Assessment – To find out exactly who can enact this risk, perform a domain-wide Effective Privileged Access Audit in Active Directory to find out exactly who can enact which privileged/admin tasks where in Active Directory
  • Detection – Possible via use of Active Directory auditing. However, detection is hardly useful because by the time an audit event/notification is generated / acted upon, substantial damage will most likely already have been done.
  • Additional Info - Here



4. Complete and Instant Compromise of All Domain Controllers in the Domain -

  • Asset at Risk – All Domain Controllers in an Active Directory domain 
  • Threat Source – Any sufficiently privileged intruder (hacker, APT etc.) / insider (disgruntled, rogue or coerced user)
  • Attack Surface – The default Domain Controllers organizational-unit (OU) in Active Directory
  • Enabler - Anyone who has sufficient effective permissions to be able to modify the list of Group Policy Objects (GPOs) linked to the default Domain Controllers OU in Active Directory is allowed to, and thus can link a GPO to that OU. The linking of a single weak or malicious GPO to the default Domain Controllers OU could weaken the System security of all DCs in that domain, and be used to easily obtain administrative command and control over all DCs. 
  • Exploitation Procedure – Use native Microsoft Active Directory management tooling (e.g. ADUC etc.) to link a weak or malicious GPO to the default Domain Controllers OU
  • DifficultyMinimal
  • ImpactVery high
  • Likelihood / Probability of OccurrenceHigh
  • Physical / System Level Access to DC Required No
  • Resources Required – Network access to Active Directory + Sufficient Effective Permissions in Active Directory
  • Mitigation / Prevention – Ensure (at all times) that only the smallest number of most highly trustworthy IT personnel have sufficient effective permissions to be able to link GPOs to the default Domain Controllers OU in Active Directory
  • Risk Assessment – To find out exactly who can enact this risk, audit Active Directory effective permissions on the default Domain Controllers organizational unit (OU) object to find out exactly who can link GPOs to this OU
  • Detection – Possible via use of Active Directory auditing. However, detection is hardly useful because by the time an audit event/notification is generated / acted upon, substantial damage will most likely already have been done.
  • Additional Info - Here



5. Complete and Instant Compromise of Specific IT Assets Stored in Active Directory -

  • Asset at Risk – Almost all Active Directory content, such as and including as all domain user accounts (including any executive and non-default privileged user accounts), security groups, computer accounts, OUs, SCPs etc.

  • Asset Examples –  The following are a few simple illustrative examples of such assets:

    1. The domain user account of a non-default highly privileged user, one that is not protected by AdminSDHolder, yet possesses Domain-Admin equivalent privilege in Active Directory based on custom access provisioning
    2. The domain user account of an organizational executive (e.g. Chairman, CEO, CFO, CIO, CISO, VP etc.)
    3. A large membership domain security group such as All Employees, or (all) Domain Computers etc.
    4. The domain computer account of a specific computer, such as a high-value email, app or database server
    5. A top-level Organizational Unit that contains thousands of users, computers, groups and other objects
    6. A service connection point of a mission-critical Active Directory integrated service/app, e.g. this one (; here)

  • Threat Source – Any sufficiently privileged intruder (hacker, APT etc.) / insider (disgruntled, rogue or coerced user)
  • Attack Surface – The entire Active Directory
  • Enabler - Anyone who ends up being entitled to any one of various modify (WP, WD, CR, FC) effective permissions on any object in Active Directory is allowed to, and thus can manage that Active Directory object. A single incorrectly specified security permission (inherited or explicit) in an Active Directory object's ACL could substantially impact the actual resulting effective permissions entitled on that object, resulting in unauthorized effective access on the object.
  • Exploitation Procedure – Use Microsoft's Active Directory management tooling (e.g. ADUC etc.) to enact an (un-)authorized administrative task such as a malicious password reset, a group membership change, a user account creation, a computer account delegation change, an OU deletion, a service connection point keyword change etc.
  • DifficultyMinimal
  • ImpactHigh to Very high
  • Likelihood / Probability of OccurrenceHigh
  • Physical / System Level Access to DC Required No
  • Resources Required – Network access to Active Directory + Sufficient Effective Permissions in Active Directory
  • Mitigation / Prevention – Ensure (at all times) that all access provisioned in Active Directory adheres to the principle of least privilege, so as to ensure that net resulting effective permissions / effective access on all Active Directory objects only permits authorized personnel to enact various administrative tasks on those objects
  • Risk Assessment – To find out exactly who can enact this risk, either audit Active Directory effective access on all vital objects in Active Directory (e.g. all exec accounts, sensitive groups large OUs etc.) one-by-one, or perform a tree-wide effective privileged access audit to find out exactly who all can enact which admin tasks on these objects
  • Detection – Possible via use of Active Directory auditing. However, detection is hardly useful because by the time an audit event/notification is generated / acted upon, substantial damage will most likely already have been done.
  • Additional Info - Here



So Microsoft, there you have it. These are the actual and REAL Top-5 cyber security risks that almost all Active Directory deployments worldwide (including possibly yours) are likely exposed to today. You may want to read this many times over.

BTW, for anyone who needs it, an Executive Summary of the above (in PDF format) can be downloaded from here.



Summary

Today I just wanted to share with Microsoft and the whole world the actual Top-5 cyber security risks that most Active Directory deployments worldwide are substantially exposed to today (; most organizations may not even know that they're exposed.)


In light of the above, I would also encourage folks worldwide to first read the above (with attention to detail, and in its entirety) and then read the following 3 insightful posts, and you'll see why I believe Microsoft doesn't seem to have a clue -
  1. 30 Days of Advanced Active Directory Security School for Microsoft

  2. A Trillion $ Cyber Security Question for Microsoft regarding Defending Active Directory

  3. How Well Does Microsoft Really Understand Cyber Security?

If you still need a hint, I'll give you one - in factually and objectively describing  the Top-5 security risks to Active Directory, how many times did I need to use the term "effective permissions" above? In contrast, when you read the 3 linked posts pointed to above make a note of and compare how many times Microsoft has educated the world about the term "effective permissions."


Microsoft, you'll want to read this (50 times) and absorb it like a sponge absorbs water - Active Directory Effective Permissions.


Alright, Microsoft, this is it for today. Later this week we shall continue with Day-6 of our advanced Active Directory Security school for you, during which I'll cover another fascinating trillion $ topic for you and the world - you likely won't want to miss it.

Best wishes,


PS: I've been meaning to do this on a daily basis, but given my responsibilities (i.e. a global cyber security company to head), time is difficult to take out, thus the delay. That said, if this weren't vital to global security, I wouldn't be wasting my time on it.

Thursday, December 1, 2016

Attack Methods for Gaining Domain Admin Rights in Active Directory

Folks,

Today I'd like to share with you the top-10 ways in which an intruder or a rogue/coerced insider could actually rather easily and quickly gain Domain Admin equivalent administrative access/power/privilege in any Active Directory environment in the world.

Please note that the only reason I'm publishing this simple list is because apparently there is a similarly titled list out there that apparently does not cover even one of the top-10 ways in which an intruder could gain Domain Admin rights in Active Directory.

Original source: http://www.paramountdefenses.com/blog/top-10-ways-to-gain-domain-admin-privileges-in-active-directory



Attack Methods for Gaining Domain Admin Rights in Active Directory -



  1. Use Mimikatz DCSync to obtain credentials of all domain accounts, including those of all privileged user accounts.


  2. Add an inheritable Allow Full Control security permission in the ACL protecting the domain root object to instantly gain domain-wide administrative access on 99% of all objects in the domain i.e. those whose ACL is not marked Protected.


  3. Reset the password of any existing Domain Admin equivalent domain user account, then logon using new password.


  4. Modify the group membership of any Domain Admin equivalent domain security group by adding an account you control to that group, then instantly logon using that account and have that admin group's SID in your Windows access token.


  5. Modify the contents of any one of numerous sensitive objects in the System container and/or in the Configuration or Schema partitions to gain administrative access in Active Directory. Here is one of 100+ examples:  Simply modify the defaultSecurityDescriptor attribute of the User class Schema object in the Schema to grant an account of your choice full control on all newly created domain user accounts, especially one created for an administrative/privileged user.)


  6. Add a Allow Reset Password or Allow Write-Property Member permission in the AdminSDHolder object's ACL to instantly gain the ability to take over any/every administrative account and group protected by AdminSDHolder.


  7. Add Allow Write Property - GPLink and Allow Write Property - GPOptions permissions in the ACL protecting the Domain Controllers OU, then link a compromising group policy to that OU that would allow you to logon interactively on DCs and/or to gain administrative access on DCs. Once you have admin access on a DC, you own the entire kingdom.


  8. Establish a cross forest trust or external trust with a forest controlled by the intruder/perpetrator


  9. Set the Password not required bit on any administrative/privileged domain user account, then instantly perform a logon.


  10. If any form of MFA (multi-factor authentication, e.g. Smart cards etc.) is in use, simply disable its use by modifying the relevant attribute on the target administrative/privileged user's domain account, then instantly perform a password reset and logon to that account using the newly set password. (If you have sufficient rights, a password reset takes 1 second.)



It should be noted that not a single one of these attack methods involves the use of password hashes or Kerberos tickets.

I should also mention that these are merely the top-10 ways to do so. There are many many (100s) more ways in which one could accomplish this objective, simply by modifying appropriate content in Active Directory. In almost every Active Directory deployment, there are 1000s of objects that can be modified to gain all kinds of elevated/privileged access in Active Directory. One's ability to (exploit or) adequately protect Active Directory is a function of one's depth/expertise in Active Directory security.

For those who wish to learn more about Active Directory Security, this deck is a good starting point - Active Directory Security.

It must also be mentioned that each one of these attack vectors can be easily mitigated by possessing a single fundamental cyber security capability, that most organizations do not (even seem to know about, let alone) possess today. Here's a hint.

Stay tuned for MUCH more, in days to come.

Best wishes,
Sanjay


PS: This was a 30-second brain-dump of about 0.01% of our knowledge in Active Directory Security. We generally prefer to let our work do the talking, so here are three simple examples of our work that embody our deep knowledge - one, two and three.


PS2: If you liked this blog post, you may also like the following -
  1. Active Directory Beyond the MCSE for the Black Hat Conference 2016
  2. A Letter to Benjamin Delpy regarding Mimikatz and Active Directory Security
  3. The Paramount Brief - Declassified and Substantiated
  4. Trillion $ Privileged Access Insight on the OPM Breach
  5. A Simple $100B Question and a follow-up Simple Trillion $ Question, both to/for Microsoft

Monday, August 1, 2016

How to Prevent a Perpetrator from Using Mimikatz DCSync feature to perform Credential Theft from Active Directory

Folks,

Today, I'd like to take a few minutes to show you 5 simple steps that you can enact in 5 minutes to prevent a perpetrator from using the DCSync feature of Mimikatz to perform credential theft from Active Directory. This is very important, so please read it.

I'm not going to go into too many details regarding the specific threats posed by this feature of Mimikatz, or its details, use and exploitation. For that kind of stuff, you can check this out. What I will do is provide a quick overview, cover some pertinent aspects, including why its so important to do this, and most importantly show you exactly how to easily do this.

A succinct version of this blog post can be found at - How to Lockdown Active Directory to Thwart the Use of Mimikatz DCSync



I. Quick Overview

As you may know, Mimikatz, is a hacking tool developed by a certain Mr. Benjamin Delpy that can, to put it mildly, gather credential data from Windows systems. It can do a lot more, and you can read all about it's numerous capabilities here.

An Intruder using Mimikatz

The short of it is that any perpetrator who has administrative control over an owned machine can use Mimikatz to easily obtain and reuse the credentials of anyone who may have logged on that machine.

When run on non-domain controllers, the impact is limited to being able to obtain/access/reuse the credentials of only those individuals that may have logged on that machine. In a typical Active Directory environment, you may at most have a few individuals that may have logged on to a specific machine. By few, I mean a very small number compared to the total number of domain user accounts in Active Directory. So, at most, the damage would be restricted to the credential compromise/theft of those individuals that logged on the owned machine. Of course, this could be used to target other domain-joined hosts on the network etc. but in general, one likely couldn't obtain access to the credentials of the entire user population.

In contrast, if a perpetrator could successfully run mimikatz on a Domain Controller, then he/she could easily dump LSASS on the Domain Controller to obtain access to the password hashes of all domain accounts and thus easily obtain access / effectively compromise the credentials of your entire user population!




II. But wait, its Already Game Over

Please note that it is IMPERATIVE to understand that in order to "successfully" run Mimikatz on a Domain Controller, the perpetrator would have to be logged on as an Admin on the Domain Controller, and here's the Trillion $ point - IF THE PERPETRATOR CAN LOGON AS AN ADMIN ON A DOMAIN CONTROLLER, it is already GAME OVER right at that point!

Perpetrator having Admin Creds on on a Domain Controller

He/she need not do anything else to play God! At that point, he/show already effectively owns your entire Kingdom. Incidentally, only those perpetrators who do not know this trivial fact will need to enact many more steps to play God.

In essence, if an unauthorized individual can logon to even one DC as an Admin, please consider your entire Active Directory forest compromised. It's that simple. You're done. Its over. There's nothing more left to defend. (A little more on that here.)

Thus, it is of paramount importance to ensure that only the most trustworthy and authorized individuals are allowed access to and ability to logon to Domain Controllers!




III. A Seemingly Simple Mitigation?

Consequently it follows that if you can ensure that the perpetrator can never logon to your Domain Controller as Admin, (it used to be that) you don't have to worry about his/her ability to essentially access/steal the credentials of your entire user populace (i.e. all domain users in your Active Directory, which could be 1000s or for some companies, a 100,000+ users.)

Logon to Domain Controllers Locked Down
I say used to be, because Mimikatz recently got a new feature called DCSync, as a result of which, if the perpetrator has sufficient privileged access delegated/provisioned to him/her in the Active Directory, then he/she no longer need logon to a Domain Controller as admin to be able to in effect compromise/steal the credentials of your entire user populace, because via the tool, he/she could request that Active Directory replicate out to him/her all Active Directory data including secrets (i.e. password hashes), and once the tool has these secrets, the rest is easy and automated by the tool.

As a result, today denying a perpetrator the ability to logon as Admin on to a Domain Controller is no longer a sufficient mitigating measure for this risk. To reliably mitigate this risk, an additional essential measure, described below, is required.




IV. But First, A Quick Background of the New Vector

Before I can share information on the additional essential measure, I should share some background information on the new vector, so you can understand why this additional step is essential and required.

As a result of this new DCSync feature, Mimikatz can now leverage a capability in Active Directory wherein a user who effectively has sufficient rights to do so, can basically request that Active Directory replicate out to it, the entire Active Directory partition contents, including secrets, which are essentially the password hashes stored in Active Directory.


In effect, instead of having to logon to a Domain Controller, the perpetrator can simply request that Active Directory send over all the password hashes to the perpetrator, thus obviating the need to be able to logon to a Domain Controller, and thus bypassing the protections put in place that would prevent him/her from logging on as an Admin on Domain Controllers!

The ability to enact the administrative task of Replicating all Active Directory data, or more simply put the ability to replicate secrets out from an Active Directory domain is governed by a single system-level access grant, i.e. an Active Directory security permission (strictly speaking, an Extended Right) called Replicating Directory Changes All. Anyone who effectively has this extended right granted to him/her on the domain NC head, i.e. in the access control list (ACL) of the domain root object can replicate secrets out from Active Directory. This ability has existed in Active Directory since 2000. (More on this extended right below.)




V. The Replicating  Directory Changes All Extended Right

As mentioned above, the ability to replicate data, including secrets (i.e. password hashes) from an Active Directory domain is controlled by the Replicating Directory Changes All extended right. Its CN is called DS-Replication-Get-Changes-All -
The Replicating Directory Changes All extended right in the ACL on the Domain Root object

For those who are technically inclined, you can checkout Appendix D of Microsoft's whitepaper on Administrative Delegation in Active Directory which I wrote for Microsoft way back in 2003. Its Rights GUID is 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2.

Only those individuals who effectively have this extended right granted to them in the ACL of the domain root object (also known as the NC head) can replicate all data (including secrets i.e. password hashes) from the Active Directory.




VI. The Second Essential Measure - Lockdown Replicating Directory Changes All Extended Right

If it is this extended right that controls who can replicate all data, including secrets (password hashes) out of Active Directory, then it logically follows that simply locking down who effectively has this right granted to them would be a second essential measure towards mitigating the risk posed by a perpetrator's ability to steal/compromise the credentials of your entire user populace!


Now, the act of locking down this right is fairly simple and straight-forward. However, before you can do so, you'll need to be able to precisely determine/assess exactly who all have this extended right effectively granted to them in the first place, and after you have taken the steps to lock it down, you'll need to verify that the steps you have taken to lock it down have actually achieved the desired lockdown.

It turns out that in order to do both, i.e. precisely determine/assess exactly who all currently have this extended right effectively granted to them, as well as to verify that post lockdown, only the intended individuals have this right effectively granted to them, you require the ability to be able to accurately determine (something known as) effective permissions in Active Directory.

In other words, one can neither accurately figure out who currently has this right effectively granted, nor accurately verify the lockdown measure without being able to (accurately) determine effective permissions in Active Directory.




VII. The Need to Determine Effective Permissions

By default, only the most powerful administrative groups in Active Directory as well the domain's Domain Controllers have this extended right granted to them.

So in environments wherein the security permissions on the domain root have NEVER been changed, it may be safe to assume that only members of the most powerful administrative groups can replicate secrets out of the Active Directory.

However, as you'll agree, most Active Directory deployments have been around for years, and over the years, many IT personnel may have changed permissions all across Active Directory, including on the domain root for various reasons, such as to delegate administration, provision access for/to line-of-business applications or to lockdown access in Active Directory.

As a result, in 99.9% of all Active Directory deployments, the ACL on the domain root objects is no longer the same as the original default ACL when the domain was created. Consequently, it would be unwise and dangerous to assume that this permission grant would not have changed.

Numerous IT personnel may have the Get Replication Changes All right effectively granted to them Active Directory


In fact, for reasons outlined below, it can almost be guaranteed that many more individuals that should ideally have the ability to replicate secrets out of Active Directory, have the ability to do so today -
1. An administrator may have deliberately made access provisioning changes on the domain root object, either to grant or deny additional individuals or groups this specific access i.e. Get Replication Changes All
2. An administrator may have accidentally ended up granting or denying this specific access, such as by granting or denying a specific user or group All Extended Rights or Full Control instead of this specific extended right 
3. A malicious administrator may have deliberately granted an obscure group, containing other nested groups or specific user accounts, this extended right as a backdoor, so that, in the future, were he/she to be terminated, he/she could use that obscure account to replicate secrets out and in effect own the entire domain.
Point 2 in particular is worth reiterating. Any blanket permissions such as All Extended Rights, or Full Control, specified in the ACL of the domain root that may have been deliberately or accidentally specified will undoubtedly cover this extended right, and thus could unknowingly end up granting tremendous power to some individual who is not ideally authorized to possess it.

Finally, as you may know, there are many permission entries, each one of which directly/indirectly allows or denies some access for some security principal. Ultimately what matters is that the system takes into account the appropriate precedence orders and resolves any conflicting rights to arrive at the determination of whether or not to grant a specific security principal the requested access. In other words, what determines the actual access a user has on an Active Directory object are his/her effective permissions.

It is for the above reasons that when trying to audit access in Active Directory, it is grossly insufficient to merely analyze "who has what permissions" and in fact absolutely essential and paramount to analyze "who has what effective permissions".

Thus, to answer the simple yet paramount cyber security question "Who effectively has the Replicating Directory Changes All extended right on the domain root", what is needed is the ability to determine effective permissions on the domain root object.

The concept of effective permissions is very important to understand, yet hardly understood, and as a result, most individuals, including many IT professionals as well as proficient hackers, tend to mistake "who has what permissions" for "who has what effective permissions."

To reiterate, considering all the permissions specified in the ACL of an Active Directory object, the difference between the various permissions specified for a user and the actual effective permissions that a user ends up with, could be NIGHT and DAY, and could be the difference between SECURITY and COMPROMISE.




VIII. Determining Effective Permissions on Active Directory Objects

Given the vital importance of effective permissions, Microsoft provides an Effective Permissions Tab in Active Directory to help organizations determine effective permissions on Active Directory objects.
The Effective Permissions Tab in Active Directory

Unfortunately, Microsoft's Effective Permissions Tab is virtually useless, because of two main reasons, the first one being that it is not always accurate, but/and more importantly, the second one being that it can at best determine effective permissions for one user at one time.

Security Principal Selector

This (second reason) might not readily appear limiting, but if you consider an environment with thousands (or even hundreds) of users, you'll realize that the only way to accurately determine a specific effective permission on an Active Directory object is to enter the identity of each one of these thousands of users one by one to arrive at an accurate picture of who really has what effective permissions on that object, and as you can see, doing so could be very arduous, time-consuming and painstaking.

The same is true of the effective permissions capability of Microsoft's acldiag command-line tool.

Security Warning: In regards to Active Directory Effective Permissions tools, please note that this specific tool is exremely inaccurate, and thus any reliance on it could potentially result in the introduction of dangerously inaccurate changes. The same is true of any script(s) etc. available on Microsoft TechNet.

Ideally, what is required is the ability to be able to quickly (i.e. within minutes, not days) and accurately determine effective permissions on the domain root, such that one could easily determine the list of all individuals to whom this critical extended right is effectively granted, as well as how they have it effectively granted.

For instance, something like this -
Gold Finger Active Directory Effective Permissions Tool

The snapshot above (click to enlarge) is that of the world's only accurate Active Directory Effective Permissions Tool.

Armed with a tool such as the above, IT personnel can now instantly identify exactly who effectively has this (and in fact any) right granted on the domain root (and in fact on any object in any Active Directory partition) within seconds, at a button's touch.






IX. How to Correctly Lockdown the Replicating Directory Changes All Extended Right on the Domain Root

With the background information gained above, your are now in a position to easily lockdown the Replicating Directory Changes All extended right on the domain root in 5 simple steps -
Note: The following steps utilize the following Active Directory Effective Permissions Tool - http://www.paramountdefenses.com/active-directory-effective-permissions-tool.html

1. The first step is to determine effective permissions on the domain root. The really hard way to do so is to use the Effective Permissions Tab in Active Directory, and enter the identity of every user in your domain and make a note of whether or not they have the Replicating Directory Changes All extended right effectively granted to them. As mentioned above, the easy way to do this is to use this Active Directory Effective Permissions Tool.  Simply click a button and you're done.

For instance, in the following domain, using such a tool we have identified that a total of 15 users are effectively granted the Replicating Directory Changes All extended right in the domain root object -

Specifically, we can see that the following 15 users currently have this right effectively granted to them -
  1. Administrator
  2. Alex Simons,  Cloud Active Directory Administrator
  3. Chris Betz,  Cloud Engineer Architect
  4. DC1
  5. Gene Farrell,  DevOps Cloud Engineer
  6. Hayden Hainsworth,  Cyber Security Cloud Engineer
  7. Jeff Bezos,  Cloud DevOps Operator
  8. Ken Malcolmson,  DevOps Cloud Engineer
  9. Marc Benioff,  Cloud DevOps Admin
  10. Michael Brown,  Cloud Product Manager
  11. Mike Neil,  Cloud Software Engineer
  12. Satya Nadella,  Cloud DevOps Engineer
  13. Stephen Schmidt,  Cloud Security Engineer
  14. Steve Ballmer,  IT Analyst
  15. Terry Hanold,  Cloud Operations Engineer

2. The second step is to analyze the results of the effective permissions analyze and identify all users who currently have this critical right assigned to them, and identify how many of these users should NOT have this critical right assigned to them.

For instance, here we have identified that the following individuals should not actually have this critical access right granted to them, but happen to have it granted nonetheless -

Specifically, based on our corporate security policies, we have identified 12 users who should not ideally have this right effectively granted to them -
  1. Alex Simons,  Cloud Active Directory Administrator
  2. Chris Betz,  Cloud Engineer Architect
  3. Gene Farrell,  DevOps Cloud Engineer
  4. Hayden Hainsworth,  Cyber Security Cloud Engineer
  5. Jeff Bezos,  Cloud DevOps Operator
  6. Ken Malcolmson,  DevOps Cloud Engineer
  7. Marc Benioff,  Cloud DevOps Admin
  8. Michael Brown,  Cloud Product Manager
  9. Mike Neil,  Cloud Software Engineer
  10. Satya Nadella,  Cloud DevOps Engineer
  11. Stephen Schmidt,  Cloud Security Engineer
  12. Terry Hanold,  Cloud Operations Engineer

In case it helps, the complete CSV file for this effective permissions audit (pre-hardening) generated using the above tool can be found here.



3. Once you have done so, the third step involves determining HOW these users are currently ending up with these effective permissions, because in order to lockdown access, we will need to know HOW they are ending up with these permissions. Once we know the HOW, we can proceed to make the appropriate changes.

For instance, below, to find out how a user has this extended right effectively granted to them, we simply click on the user's name, and the underlying ACE (/ security permission) is displayed -

Specifically, in the snapshot above, we have been able to determine that Alex Simons, a Cloud Active Directory Administrator effectively has this right granted to him due to the following access control entry in the ACL of the domain root:  Allow root\IT Cloud DevOps Team (All) Extended Right(s).

(It turns out that in this example, the 12 users who should not effectively have this right granted, but do nonetheless, all have this access by virtue of membership in the IT Cloud DevOps Team group.)

We now know which ACE to tweak and/or which security group membership to change to take away this effective right from Alex Simons -




4. The fourth step is to actually make the changes required to lockdown access i.e. to make any necessary ACLing / permissioning changes, and/or changes to any group memberships as required to in effect take away these unintentionally granted (and thus in effect unauthorized) permissions, ultimately resulting in a situation wherein only those who should have this critical right effectively granted, have it granted.

For instance, to lockdown Alex Simon's access, we remove the ACE that was granting this access to the IT Cloud DevOps Team group, and as a result members of that group should no longer have this right granted to them -




5. The last step is to verify that after you have taken the lockdown steps, the resulting effective access is indeed such that only those who should have this critical right granted have it granted, and that no other individuals have this critical right effectively granted to them.

For instance, we simply run the Effective Permissions tool again, and we can see that NOW only those (a very small set of highly trustworthy and authorized) individuals who should be the only ones to have this right effectively granted to them, have it effective granted to them -

In the snapshot above, we can now see and verify/confirm that indeed, only 3 users have this critical right effectively granted to them -
  1. Administrator
  2. DC1
  3. Steve Ballmer,  IT Analyst

In case it helps, the complete CSV file for this effective permissions audit (post-hardening) generated using the above tool can be found here.


In this manner, having enacted these 5 simple steps in just a few minutes, we can easily and reliably lockdown the effective grant of the Replicating Directory Changes All extended right on the domain root, and consequently enact the second essential and necessary measure required to prevent the unauthorized replication of secrets from Active Directory, and to mitigate the risk of the mass credential theft of all domain user accounts in Active Directory.




X. This is VERY Important!

As explained above, it is VERY important that only the absolutely minimum possible number (0/1) of users have this critical right effectively granted to them.


If even one additional user is effectively granted this critical right, and the perpetrators can identify them and compromise their account(s) (credentials), then they will simply be minutes away from being able to steal the credentials of every user in the Active Directory domain, including all privileged users such as all Domain Admins, Enterprise Admins, Built-in Admins etc.

So, in a way, today, the security of an entire Active Directory domain (and thus forest) depends on exactly who effectively has sufficient enough rights to be able to replicate secrets out of Active Directory!

In other words, to put it simply, if this security right grant is not fully locked down, it could be Game Over very quickly.




Summary

To summarize, in this blog post, I wanted to and have shared the following information with you -
  1. How a perpetrator can use the DCSync feature of Mimikatz to steal the credentials of your entire user populace
  2. What makes it possible for the DCSync feature of Mimikatz to work
  3. What mitigation measures we can take to lockdown who can replicate secrets from Active Directory
  4. What are the reasons due to which more people than those allowed by default may effectively have this right granted
  5. Why we need to be able to determine effective permissions precisely to assess and verify who effectively has this right
  6. How to mitigate the risk posed by the DCSync feature of Mimikatz in 5 simple steps (i.e. how to render it useless.)

Organizations worldwide can now use this information to quickly and easily prevent a perpetrator from using Mimikatz' DCSync feature to perform mass credential theft from Active Directory.

Alright, my time's up. I hope you have found this information to be useful and valuable.

Best wishes,
Sanjay



PS: To demonstrate just how deeply we care about cyber security globally, any* organization that wishes to find out exactly how many individuals effectively have this right granted today, can now do so completely free (; via the free Try Now option.)