Skip to content
Misconfiguration Write-up Intermediate

Anonymised Penetration Test Report

A penetration test of a client's internal, external and Wi-Fi environments found that weak passwords, an MFA trusted-locations exemption and unhardened Active Directory settings let the consultants fully compromise the internal domain. This gave control of all Windows servers, employee personal data, sales data and strategic documents.

Volkis Follow

Published on handbook.volkis.com.au

Overview Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Root cause analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Volkis (@VolkisAU), on handbook.volkis.com.au

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

Context

This is a write-up of an anonymised penetration test that Volkis performed for a client in February 2023, covering the client's external, internal and Wi-Fi infrastructure. The report was released as client version 1.0 on 26 February 2023. The engagement is framed around a threat actor who already has a planted device on the internal network, and the walkthrough shows how that starting position was turned into full control of the client.net.au Active Directory domain.

The external test did not result in a compromise of the external environment within the engagement window. The internal test did: chaining several vulnerabilities gave control of all Windows servers in the domain, access to employee PII, sales data and strategic documents. The Wi-Fi test produced two low-risk findings.

Scope was:

  • External: an x.x.x.x/29 range plus several ISP addresses.
  • Internal: [redacted]/16 and [redacted]/24.
  • Wi-Fi: the Client-Guest and Client-Office networks.

Setup

The consultant started with no access other than physical port access on the internal network. The tools named in the walkthrough are:

  • nslookup for reconnaissance.
  • CrackMapExec, nmap and Wireshark for further enumeration.
  • Responder for name resolution poisoning.
  • A desktop computer with a GPU for offline cracking.
  • certutil for finding the ADCS server.
  • Certipy for the ESC4 attack and certificate-based authentication.
  • Mimikatz for pass-the-hash.
  • RDP for execution on a Domain Controller.

The report does not give versions for any of these tools.

Finding it

The walkthrough begins with reconnaissance. The consultant used nslookup to locate high value targets such as Domain Controllers, and the report states that this command locates all four Domain Controllers on the internal network. Further enumeration with CrackMapExec, nmap and Wireshark identified other sensitive servers.

On an Active Directory network, LLMNR and NBT-NS are enabled by default. The consultant checked whether they were enabled and attacked them with Responder, which listens for incoming LLMNR/NBT-NS requests and answers any requested name with the attacker's IP address. The attack required no user interaction, and Responder captured an NTLMv2 challenge from a client user.

Exploitation

Step 1: Capture and crack an NTLMv2 challenge

Responder captured an NTLMv2 challenge from an AD user. The consultant cracked it offline on a desktop with a GPU and obtained the user's password. That gave a low-privileged account, which was enough to query users, groups, group memberships, permissions, computers, password policy and group policy.

Step 2: Check the machine account quota

The consultant checked the value of the ms-DS-MachineAccountQuota attribute. If it is not set to 0, any Active Directory user can create a computer object in the domain or join a computer to it. The consultant created a Windows VM called VOLKIS01 and joined it to the domain.

Step 3: Find the ADCS server

Using the low-privileged credentials, the consultant found an ADCS server with the built-in Windows tool certutil.

Step 4: Find vulnerable templates

Four templates on the Client Issuing CA1 ADCS server were vulnerable to ESC4. The report describes the condition as the NT Authority\Authenticated Users local group (any user logged into a Windows computer) or the CLIENT\Domain Computers domain group (any user with administrative access over a computer) being able to alter an existing template so that they can request a certificate from the ADCS service for any user.

Step 5: Abuse ESC4 with Certipy

Certipy was used to alter an existing template so that it could be used to request a certificate for one of the Domain Admin users. The resulting .pfx file was then used for certificate-based authentication with Certipy to obtain a Domain Admin's NTLM hash. In Active Directory the password is not needed: the NTLM hash can be used to authenticate as that user with pass-the-hash.

Afterwards the consultant reverted the altered template configuration so as not to leave a vulnerability in the client environment.

Step 6: Pass-the-hash and create a Domain Admin

From the domain-joined VOLKIS01 machine, the consultant used Mimikatz to pass-the-hash and start a terminal process with Domain Admin privileges, then created a Domain Admin account called crem.

Step 7: Dump NTDS

Using the created Domain Admin, the consultant used RDP to execute system commands on one of the Domain Controllers and dumped the contents of the NTDS file, which holds all the NTLM hashes for the client.net.au domain. That gave full access to all user accounts, including other Domain Admin accounts.

Step 8: Crack the domain passwords

The NTDS file was run through password cracking software. 85.6% of current user passwords were cracked within 9 hours on a desktop computer system. The full results:

Passwords Cracked Percentage
Total 2636 2256 85.6%
Unique 1407 1035 73.6%

The report attributes the success to a weak domain password policy, a culture of using one dictionary word in passwords, multiple accounts sharing the same password, and frequently expiring passwords. A 90-day expiry encourages users to reuse the same password with a simple change such as incrementing a number at the end, and the report says multiple examples were found by examining password history. The most used passwords listed are pa$$w0rd, Disabl3d!, P@55w0rd and Welcome1.

Multiple passwords were also stored in cleartext in private files such as Word, Excel and text documents. A large number of employees had a Chrome Passwords.xlsx file in their personal OneDrive, an export of all credentials saved in Google Chrome, covering personal and business use. The screenshot of that spreadsheet is redacted in the report.

Step 9: Use the access against Microsoft 365

The consultant tried to access Microsoft 365 accounts and found that a Trusted Locations policy for MFA was enforced: any user connected to the internal network in a client office is not prompted for MFA. With this access the consultant logged into various Microsoft 365 accounts, including as the Chief Executive Officer, and reached OneDrive, Microsoft Teams and SharePoint, plus services connected through Single Sign-On such as Payroll software and document verification software.

Access to Payroll software allowed viewing and editing PII of all employees: full name, date of birth, address, mobile phone number, email address, emergency contact and direct deposit information. Access to document verification software could allow an attacker to sign documents such as contracts or invoices as the logged-in user.

The consultant also acquired sales data from the TM1 and SAP servers. The TM1 information came from compromising the TM1 server. The SAP server itself was not compromised during the engagement, but data backups and exports of the South African SAP server were found on production servers without any form of encryption.

Root cause

The report groups the causes as follows.

Active Directory hardening. The AD environment had insecure default settings, suggesting ineffective system hardening guidelines. Several issues came from AD not being securely configured, and systems were deployed without being hardened to a minimum security baseline.

Insecure MFA policy. All employees were enrolled in MFA for Microsoft 365, but a trusted locations policy exempts anyone located within any client office. The guest wireless network is also treated as a trusted location because it has the same outgoing IP address as the corporate network, so an attacker with a set of employee credentials could bypass MFA by getting physically close enough to use the guest network.

Password handling. The report lists reuse of passwords between accounts, weak passwords based on dictionary words, weak password requirements and group policy, and plaintext passwords stored in OneDrive/SharePoint.

Patch management. Several operating systems and applications were affected by vulnerable software, suggesting a patch management programme is absent or ineffective.

System hardening. Internet-facing systems used insecure default settings.

On the defensive side, the report notes that the client performed appropriate security logging and monitoring, which identified some of the consultants' activity.

Impact

The report's own framing: an attacker with Domain Admin privileges can execute attacks with the highest possible level of impact, including significant disruption through ransomware against the Windows servers, from which full recovery may be impossible. Domain Admin also allows extracting and cracking the passwords of all user accounts, which can lead to compromise of Microsoft 365 accounts used to authenticate to third-party systems such as Payroll and document verification software. Exfiltration and sale of employee PII, sensitive data or intellectual property may cause financial, legal and reputational damage.

On the external side, the report identifies unpatched systems that could be exploited for unauthorised access to sensitive information or disruption of service, and cryptography issues that could expose sensitive data and compromise confidentiality.

Risk ratings from the report:

Area Finding Risk
External Unpatched systems High
External SSH misconfigurations Low
External TLS misconfigurations Low
Internal ADCS attacks High
Internal DHCPv6 poisoning High
Internal Kerberoasting High
Internal Name resolution poisoning High
Internal Unpatched and unsupported systems High
Internal Weak password policy High
Internal Coerced authentication (authenticated) Medium
Internal Machine account quota Medium
Internal NTLM relay Medium
Internal Password stored in user description Medium
Internal Unconstrained delegation configuration Medium
Internal RDP terminal level authentication Low
Wi-Fi Evil twin attack Low
Wi-Fi MFA bypass through guest wireless network Low

Fix

The report's high-level recommendations are to improve the password policy, harden the Active Directory environment, conduct information security awareness training for all employees, and disallow MFA exceptions for being on a client office network.

Specific remediation given for the findings covered in the walkthrough:

  • ADCS: disable certificate templates with no business requirement; audit all templates for insecure ACEs (Full Control or Write) granted to low-privileged groups such as Authenticated Users or Domain Computers; disable NTLM on all ADCS servers via the group policy Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Network security: Restrict NTLM: Incoming NTLM traffic > Deny all accounts.
  • Name resolution poisoning: disable LLMNR via Computer Configuration > Administrative Templates > Network > DNS Client > Turn Off Multicast Name Resolution set to Enabled. There is no GPO for NBT-NS, so the report recommends a logon script. Create a PowerShell file with:
PowerShell
$regkey = "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"
Get-ChildItem $regkey |foreach { Set-ItemProperty -Path "$regkey\$($_. pschildname)" -Name NetbiosOptions -Value 2 -Verbose}

Place it under Computer Configuration > Policies > Windows Settings > Scripts > Startup > PowerShell Scripts, then confirm on each host with:

PowerShell
Get-ChildItem "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"

Each interface should have NetbiosOptions set to 2.

  • Kerberoasting: set strong service account passwords and only strong encryption. The GPO is Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Network security: Configure encryption types allowed for Kerberos, with AES128_HMAC_SHA1, AES256_HMAC_SHA1 and Future encryption types checked and the rest unchecked. The report warns that in rare cases these settings have been known to cause domain trust errors and recommends testing on a subset of OUs first. Remove all SPNs from Domain Admin accounts, and delete disabled accounts that have no business requirement.
  • DHCPv6 poisoning: disable IPv6 if unused, otherwise use DHCPv6 Guard (available on Cisco devices) or a Layer 2 firewall whitelisting DHCP traffic from known DHCP servers. Do not use high-privilege accounts for day-to-day use.
  • Password policy: the report recommends no complexity requirement, minimum password age 0 days, maximum password age 0 days, account lockout threshold 3 attempts, lockout duration 1 hour and reset counter after 30 minutes. It argues length beats complexity, encourages passphrases, password managers, rotating shared account passwords, never reusing passwords, regular password audits and a password filter against common wordlist passwords.

Variants to test

  • Machine account quota above zero: on any domain where you hold a low-privileged account, check ms-DS-MachineAccountQuota. A positive result is being able to create a computer object or join a machine, which opens paths such as the ADCS abuse above.
  • ESC4 on certificate templates: look for templates where Authenticated Users or Domain Computers have Full Control or Write. A positive result is being able to alter a template and then request a certificate for a higher-privileged user.
  • ESC8 on ADCS web enrolment: check whether the CA's HTTP enrolment endpoint (http://CA/certsrv/certfnsh.asp) is reachable. A positive result is a working enrolment page rather than a 403 - Forbidden: Access Denied response; the report notes AUCA01.client.net.au was configured as vulnerable to ESC8 but returned 403, so web enrolment was not configured there.
  • LLMNR/NBT-NS still enabled: run Responder on an internal segment and watch for challenge captures. A positive result is an NTLMv2 challenge from a real user without any interaction.
  • Kerberoastable service accounts: enumerate accounts with SPNs and request their hashes. A positive result is cracking a hash offline, especially one belonging to a Domain Admin, as happened with SVC_SERVICE.
  • Trusted locations MFA bypass: from a network the identity provider treats as trusted, try authenticating with a valid password only. A positive result is reaching Microsoft 365 services without an MFA prompt.
  • Cleartext credential files in cloud storage: search shared drives and personal OneDrive for exports such as Chrome Passwords.xlsx. A positive result is readable credentials for business systems.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 22 min read.

What happened, in plain words

A security company called Volkis was hired by a client to try to break into their computer systems on purpose, so the client could find out what was weak before a real criminal did. This kind of job is called a penetration test, or pentest for short. Think of it like paying a locksmith to try every door and window of your house and tell you which ones open too easily.

The test happened in February 2023 and covered three areas: the client's systems that are reachable from the internet (external), the systems inside their offices (internal), and their Wi-Fi. The report was released as client version 1.0 on 26 February 2023.

The most important thing to understand before reading on is the starting position. For the internal test, the consultant was told to imagine that a criminal had already managed to plant a small device inside the client's office network, plugged into a network socket. That is the only foothold they were given. Everything else had to be earned. The report follows that journey step by step, and by the end the consultant had full control of the client's main Windows domain, called client.net.au. A domain is simply the name for a group of computers and accounts that are managed together and trust each other, a bit like a company's internal phone directory and rulebook combined.

The external test, by contrast, did not manage to break in during the time allowed. The Wi-Fi test found two issues, both rated low risk.

Here is the scope, meaning the list of things the client gave permission to test:

  • External: an x.x.x.x/29 range plus several ISP addresses. The /29 is a way of writing a small block of internet addresses (eight of them) using shorthand.
  • Internal: [redacted]/16 and [redacted]/24. These are private address ranges, the kind used inside offices rather than on the public internet. The /16 and /24 again describe how big each block is.
  • Wi-Fi: two networks named Client-Guest and Client-Office.

Throughout this article, addresses and hostnames are written with x placeholders or generic names because the real ones were removed to protect the client.

Setup

The consultant began with nothing but physical access to a network port. No username, no password, no special software already running on the client's machines. The report lists the tools used along the way:

  • nslookup, a small program built into most computers for asking questions about names on a network.
  • CrackMapExec, nmap and Wireshark, three tools for exploring a network and watching its traffic.
  • Responder, a tool that pretends to be other computers on the network to trick machines into talking to it.
  • A desktop computer with a graphics card (GPU) for cracking passwords. A GPU is the chip normally used for video games; it is very good at doing many small calculations at once, which is exactly what password cracking needs.
  • certutil, a built-in Windows tool.
  • Certipy, a tool for attacking a Windows certificate service.
  • Mimikatz, a well-known tool for extracting and reusing Windows login secrets.
  • RDP, short for Remote Desktop Protocol, which lets you control another computer's screen over the network as if you were sitting in front of it.

The report does not give version numbers for any of these tools.

Finding it

Looking around first

Before attacking anything, the consultant did reconnaissance, which just means looking around and gathering information. The report says nslookup was used to find high value targets such as Domain Controllers. A Domain Controller is the most important computer in a Windows domain: it holds the master list of every user account and every password check. If you control a Domain Controller, you control the whole domain.

The report states that the command used locates all four Domain Controllers on the internal network.

Further exploration with CrackMapExec, nmap and Wireshark found other sensitive servers. nmap is a tool that probes which machines are alive and which doors (ports) they have open. Wireshark is a tool that records and displays network traffic so you can read what is being sent. CrackMapExec is a tool that talks to many Windows machines at once to gather information about them.

Tricking computers into revealing a login

On a Windows network there are two old helper systems called LLMNR and NBT-NS. Their job is simple: when a computer wants to reach another computer by name and the normal name service (DNS) does not know the answer, these helpers shout out to the whole local network, "does anyone here answer to this name?" DNS is the internet's phone book, translating names like example.com into numeric addresses. LLMNR and NBT-NS are the fallback when the phone book has no entry.

The problem is that anyone on the network can answer that shout. The consultant used Responder, which listens for these shouts and answers every one of them with the attacker's own address. The victim computer then happily sends its login attempt to the attacker instead of the real machine. This is called name resolution poisoning, and the report notes it required no user interaction at all: nobody had to click anything.

Responder captured an NTLMv2 challenge from a client user. NTLMv2 is a Windows login method. Rather than sending the password itself, the computer sends a kind of scrambled proof that it knows the password, called a challenge and response. It is like a bouncer asking a secret question and accepting the answer without ever seeing your ID. The catch is that if an attacker captures that answer, they can take it home and try to work out the password offline, at their own pace, without the real system ever noticing.

Exploitation

Step 1: Capture and crack an NTLMv2 challenge

Responder captured an NTLMv2 challenge from an AD user. AD here means Active Directory, Microsoft's system for managing users, computers and permissions across a Windows network. The consultant took that captured challenge to a desktop computer with a GPU and cracked it offline, which means guessing passwords and checking them against the captured answer until one matches, without touching the client's network.

The result was one ordinary user's password. That gave a low-privileged account, meaning an account with no special powers. Even so, the report says this was enough to ask the domain questions about users, groups, group memberships, permissions, computers, password policy and group policy. In everyday terms, a normal employee badge still lets you walk the corridors and read the noticeboards.

Step 2: Check the machine account quota

The consultant then checked a setting called ms-DS-MachineAccountQuota. This is a number stored in Active Directory that controls how many computers an ordinary user is allowed to add to the domain. If it is not set to 0, any Active Directory user can create a computer object in the domain or join a computer to it. A computer object is simply the domain's record of a machine, the same way a user account is the record of a person.

Because the setting allowed it, the consultant created a Windows virtual machine (a computer running inside software) called VOLKIS01 and joined it to the domain. This matters because once your own machine is a trusted member of the domain, it can ask the domain for things that outsiders cannot.

Step 3: Find the ADCS server

Next the consultant went looking for an ADCS server. ADCS stands for Active Directory Certificate Services. It is the part of a Windows network that issues certificates. A certificate here is a small digital document that proves identity, a bit like a passport issued by the company itself. If you can get the certificate service to issue you a passport in someone else's name, you can walk around as that person.

Using the low-privileged credentials, the consultant found an ADCS server with the built-in Windows tool certutil. certutil is normally used by administrators to inspect and manage certificates; here it was used to discover the service.

Step 4: Find vulnerable templates

A certificate template is a pre-set form that says what kind of certificate can be requested and who is allowed to ask for one. Think of it as a blank application form on a desk: if the form is badly designed, anyone can fill it in and get a passport for anyone else.

The report says four templates on the Client Issuing CA1 ADCS server were vulnerable to a known weakness called ESC4. ESC4 means the template's permissions are too loose. Specifically, the report describes the condition as the NT Authority\Authenticated Users local group (any user logged into a Windows computer) or the CLIENT\Domain Computers domain group (any user with administrative access over a computer) being able to alter an existing template so that they can request a certificate from the ADCS service for any user.

In plain words: ordinary logged-in users, or people who administer a single machine, could edit the form. And once you can edit the form, you can change who the certificate is issued to, including a Domain Admin. A Domain Admin is the most powerful kind of account in a Windows domain, the equivalent of the master key to every door.

Step 5: Abuse ESC4 with Certipy

Certipy is a tool built specifically for attacking ADCS. The consultant used it to alter an existing template so that it could be used to request a certificate for one of the Domain Admin users.

The resulting .pfx file was then used for certificate-based authentication with Certipy to obtain a Domain Admin's NTLM hash. A .pfx file is a container for a certificate and its private key, the digital equivalent of a passport plus the signature that proves it is yours. Certificate-based authentication means logging in by presenting that certificate instead of typing a password.

The NTLM hash is the scrambled form of a password that Windows stores and uses internally. In Active Directory the password is not needed: the NTLM hash can be used to authenticate as that user with a technique called pass-the-hash. Pass-the-hash is exactly what it sounds like: you never learn the password, you just hand over the scrambled proof that the system accepts. It is like copying someone's fingerprint rather than their signature.

Afterwards the consultant reverted the altered template configuration so as not to leave a vulnerability in the client environment. This is good practice in a pentest: put things back as you found them.

Step 6: Pass-the-hash and create a Domain Admin

From the domain-joined VOLKIS01 machine, the consultant used Mimikatz to pass-the-hash and start a terminal process with Domain Admin privileges. A terminal is a text-only window where you type commands. Starting one with Domain Admin privileges means that window could now do anything a Domain Admin can do.

With that power, the consultant created a Domain Admin account called crem. Creating your own master key is the cleanest way to keep access: you no longer depend on the stolen hash.

Step 7: Dump NTDS

NTDS is the file on a Domain Controller that stores every account and every password hash in the domain. It is the master list. Using the created Domain Admin, the consultant used RDP to execute system commands on one of the Domain Controllers and dumped the contents of the NTDS file, which holds all the NTLM hashes for the client.net.au domain.

That gave full access to all user accounts, including other Domain Admin accounts. At this point the consultant effectively owned the domain.

Step 8: Crack the domain passwords

The NTDS file was run through password cracking software. The report states that 85.6% of current user passwords were cracked within 9 hours on a desktop computer system. The full results:

Passwords Cracked Percentage
Total 2636 2256 85.6%
Unique 1407 1035 73.6%

The report lists multiple accounts using the same password as one likely reason for the successful cracking.

The report attributes the success to four things: a weak domain password policy, a culture of using one dictionary word in passwords, multiple accounts sharing the same password, and frequently expiring passwords. A 90-day expiry encourages users to reuse the same password with a simple change such as incrementing a number at the end, and the report says multiple examples were found by examining password history. The most used passwords listed are pa$$w0rd, Disabl3d!, P@55w0rd and Welcome1.

Multiple passwords were also stored in cleartext in private files such as Word, Excel and text documents. Cleartext means not scrambled at all, readable by anyone who opens the file. A large number of employees had a Chrome Passwords.xlsx file in their personal OneDrive, an export of all credentials saved in Google Chrome, covering personal and business use. OneDrive is Microsoft's cloud file storage. The screenshot of that spreadsheet is redacted in the report.

Step 9: Use the access against Microsoft 365

Microsoft 365, usually shortened to M365, is Microsoft's cloud suite: email, file storage, chat and office applications. MFA, or multi-factor authentication, is the practice of asking for a second proof of identity beyond the password, such as a code on your phone. It is the seatbelt that stops a stolen password from being enough on its own.

The consultant tried to access Microsoft 365 accounts and found that a Trusted Locations policy for MFA was enforced: any user connected to the internal network in a client office is not prompted for MFA. In other words, the seatbelt is switched off whenever you are sitting in the office. An attacker who already has a password and is on the office network therefore needs nothing else.

With this access the consultant logged into various Microsoft 365 accounts, including as the Chief Executive Officer, and reached OneDrive, Microsoft Teams and SharePoint, plus services connected through Single Sign-On such as Payroll software and document verification software. Single Sign-On means one login gets you into many separate services, which is convenient but means one stolen login opens many doors.

Access to Payroll software allowed viewing and editing PII of all employees: full name, date of birth, address, mobile phone number, email address, emergency contact and direct deposit information. PII stands for personally identifiable information, the data that identifies a specific person. Direct deposit information means bank account details used to pay salaries.

Access to document verification software could allow an attacker to sign documents such as contracts or invoices as the logged-in user.

The consultant also acquired sales data from the TM1 and SAP servers. TM1 and SAP are business software systems used for planning and running company operations. The TM1 information came from compromising the TM1 server. The SAP server itself was not compromised during the engagement, but data backups and exports of the South African SAP server were found on production servers without any form of encryption. Encryption is scrambling data so only someone with the key can read it; without it, a backup file is just an open book.

Root cause

A root cause is the underlying reason a problem exists, as opposed to the symptom. Fixing the symptom is patching one door; fixing the root cause is changing how doors are chosen and fitted. The report groups the causes as follows.

Active Directory hardening. Hardening means deliberately tightening the default settings of a system before it is used. The AD environment had insecure default settings, suggesting ineffective system hardening guidelines. Several issues came from AD not being securely configured, and systems were deployed without being hardened to a minimum security baseline. A baseline is a checklist of minimum settings every machine must meet.

Insecure MFA policy. All employees were enrolled in MFA for Microsoft 365, but a trusted locations policy exempts anyone located within any client office. The guest wireless network is also treated as a trusted location because it has the same outgoing IP address as the corporate network, so an attacker with a set of employee credentials could bypass MFA by getting physically close enough to use the guest network. An outgoing IP address is the address the network appears to have when it talks to the outside world; if the guest and office networks share it, the outside world cannot tell them apart.

Password handling. The report lists reuse of passwords between accounts, weak passwords based on dictionary words, weak password requirements and group policy, and plaintext passwords stored in OneDrive/SharePoint. Group policy is the central set of rules a Windows domain pushes to all its machines and users.

Patch management. A patch is a software update that fixes a known flaw. Several operating systems and applications were affected by vulnerable software, suggesting a patch management programme is absent or ineffective.

System hardening. Internet-facing systems used insecure default settings.

On the defensive side, the report notes that the client performed appropriate security logging and monitoring, which identified some of the consultants' activity. Logging means keeping records of what happens on a system; monitoring means watching those records. This is a genuine positive: the defenders noticed some of what was going on.

Impact

Impact means what could go wrong if a real attacker did this. The report's own framing: an attacker with Domain Admin privileges can execute attacks with the highest possible level of impact, including significant disruption through ransomware against the Windows servers, from which full recovery may be impossible. Ransomware is malicious software that locks up files and demands payment to unlock them.

Domain Admin also allows extracting and cracking the passwords of all user accounts, which can lead to compromise of Microsoft 365 accounts used to authenticate to third-party systems such as Payroll and document verification software. Exfiltration and sale of employee PII, sensitive data or intellectual property may cause financial, legal and reputational damage. Exfiltration means copying data out of a system without permission.

On the external side, the report identifies unpatched systems that could be exploited for unauthorised access to sensitive information or disruption of service, and cryptography issues that could expose sensitive data and compromise confidentiality. Confidentiality simply means keeping data secret from people who should not see it.

Risk ratings from the report:

Area Finding Risk
External Unpatched systems High
External SSH misconfigurations Low
External TLS misconfigurations Low
Internal ADCS attacks High
Internal DHCPv6 poisoning High
Internal Kerberoasting High
Internal Name resolution poisoning High
Internal Unpatched and unsupported systems High
Internal Weak password policy High
Internal Coerced authentication (authenticated) Medium
Internal Machine account quota Medium
Internal NTLM relay Medium
Internal Password stored in user description Medium
Internal Unconstrained delegation configuration Medium
Internal RDP terminal level authentication Low
Wi-Fi Evil twin attack Low
Wi-Fi MFA bypass through guest wireless network Low

Fix

The report's high-level recommendations are to improve the password policy, harden the Active Directory environment, conduct information security awareness training for all employees, and disallow MFA exceptions for being on a client office network.

Specific remediation given for the findings covered in the walkthrough:

  • ADCS: disable certificate templates with no business requirement; audit all templates for insecure ACEs (Full Control or Write) granted to low-privileged groups such as Authenticated Users or Domain Computers; disable NTLM on all ADCS servers via the group policy Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Network security: Restrict NTLM: Incoming NTLM traffic > Deny all accounts. An ACE is an access control entry, one line in a list saying who is allowed to do what.
  • Name resolution poisoning: disable LLMNR via Computer Configuration > Administrative Templates > Network > DNS Client > Turn Off Multicast Name Resolution set to Enabled. There is no GPO for NBT-NS, so the report recommends a logon script. Create a PowerShell file with:
PowerShell
$regkey = "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"
Get-ChildItem $regkey |foreach { Set-ItemProperty -Path "$regkey\$($_. pschildname)" -Name NetbiosOptions -Value 2 -Verbose}

Line by line: the first line stores the location of a Windows registry key in a variable called $regkey. The registry is Windows' internal settings database. The second line lists every sub-item under that key (each network interface on the machine) and, for each one, sets a value named NetbiosOptions to 2, which turns NBT-NS off for that interface. -Verbose makes it print what it is doing so you can see progress.

Place it under Computer Configuration > Policies > Windows Settings > Scripts > Startup > PowerShell Scripts, then confirm on each host with:

PowerShell
Get-ChildItem "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"

This second command simply lists the same interfaces again so you can check the setting took effect. Each interface should have NetbiosOptions set to 2.

  • Kerberoasting: set strong service account passwords and only strong encryption. The GPO is Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Network security: Configure encryption types allowed for Kerberos, with AES128_HMAC_SHA1, AES256_HMAC_SHA1 and Future encryption types checked and the rest unchecked. The report warns that in rare cases these settings have been known to cause domain trust errors and recommends testing on a subset of OUs first. An OU, or organisational unit, is a folder-like grouping of accounts and computers inside a domain. Remove all SPNs from Domain Admin accounts, and delete disabled accounts that have no business requirement. An SPN, or service principal name, is a label that tells the domain which service an account runs, and it is what makes an account roastable.
  • DHCPv6 poisoning: disable IPv6 if unused, otherwise use DHCPv6 Guard (available on Cisco devices) or a Layer 2 firewall whitelisting DHCP traffic from known DHCP servers. Do not use high-privilege accounts for day-to-day use. IPv6 is the newer version of the internet's addressing system; DHCPv6 is the service that hands out IPv6 addresses automatically.
  • Password policy: the report recommends no complexity requirement, minimum password age 0 days, maximum password age 0 days, account lockout threshold 3 attempts, lockout duration 1 hour and reset counter after 30 minutes. It argues length beats complexity, encourages passphrases, password managers, rotating shared account passwords, never reusing passwords, regular password audits and a password filter against common wordlist passwords. A passphrase is a password made of several words, which is easier to remember and longer than a short jumble of characters.

Variants to test

These are the same ideas generalised, so a tester on another network knows what to look for.

  • Machine account quota above zero: on any domain where you hold a low-privileged account, check ms-DS-MachineAccountQuota. A positive result is being able to create a computer object or join a machine, which opens paths such as the ADCS abuse above.
  • ESC4 on certificate templates: look for templates where Authenticated Users or Domain Computers have Full Control or Write. A positive result is being able to alter a template and then request a certificate for a higher-privileged user.
  • ESC8 on ADCS web enrolment: check whether the CA's HTTP enrolment endpoint (http://CA/certsrv/certfnsh.asp) is reachable. A positive result is a working enrolment page rather than a 403 - Forbidden: Access Denied response; the report notes AUCA01.client.net.au was configured as vulnerable to ESC8 but returned 403, so web enrolment was not configured there. A 403 is the web server's way of saying "I understood you, but you are not allowed."
  • LLMNR/NBT-NS still enabled: run Responder on an internal segment and watch for challenge captures. A positive result is an NTLMv2 challenge from a real user without any interaction.
  • Kerberoastable service accounts: enumerate accounts with SPNs and request their hashes. A positive result is cracking a hash offline, especially one belonging to a Domain Admin, as happened with SVC_SERVICE.
  • Trusted locations MFA bypass: from a network the identity provider treats as trusted, try authenticating with a valid password only. A positive result is reaching Microsoft 365 services without an MFA prompt.
  • Cleartext credential files in cloud storage: search shared drives and personal OneDrive for exports such as Chrome Passwords.xlsx. A positive result is readable credentials for business systems.

Glossary

  • ACE (access control entry): one line in a permissions list saying who is allowed to do what to a resource.
  • Active Directory (AD): Microsoft's system for managing users, computers and permissions across a Windows network.
  • ADCS (Active Directory Certificate Services): the part of a Windows network that issues digital certificates.
  • Baseline: a checklist of minimum security settings every machine must meet before use.
  • Certificate: a small digital document that proves an identity, issued by a trusted authority.
  • Cleartext: data stored or sent without any scrambling, readable by anyone.
  • Confidentiality: keeping data secret from people who should not see it.
  • CrackMapExec: a tool that talks to many Windows machines at once to gather information.
  • DHCPv6: the service that automatically hands out IPv6 addresses to devices on a network.
  • DNS (Domain Name System): the internet's phone book, turning names into numeric addresses.
  • Domain: a group of computers and accounts managed together and trusting each other.
  • Domain Admin: the most powerful account type in a Windows domain, able to control everything.
  • Domain Controller: the computer in a domain that holds the master list of accounts and checks passwords.
  • ESC4: a weakness in a certificate template where permissions are too loose, letting low-privileged users edit it.
  • ESC8: a weakness where a certificate authority's web enrolment can be abused to obtain certificates for other accounts.
  • Exfiltration: copying data out of a system without permission.
  • GPU (graphics processing unit): the chip normally used for video games, very good at many small calculations at once, which suits password cracking.
  • Group policy (GPO): the central set of rules a Windows domain pushes to its machines and users.
  • Hardening: deliberately tightening the default settings of a system before it is used.
  • Impact: what could go wrong if a real attacker exploited a weakness.
  • IPv6: the newer version of the internet's addressing system.
  • Kerberoasting: an attack that requests password hashes for service accounts and cracks them offline.
  • LLMNR: an old Windows fallback for resolving computer names by shouting to the whole local network.
  • Logging: keeping records of what happens on a system.
  • MFA (multi-factor authentication): asking for a second proof of identity beyond the password, such as a code on your phone.
  • Monitoring: watching logs and system activity for signs of trouble.
  • ms-DS-MachineAccountQuota: an Active Directory setting controlling how many computers an ordinary user may add to the domain.
  • NBT-NS: an old Windows fallback for resolving computer names by shouting to the whole local network.
  • nmap: a tool that probes which machines are alive and which ports they have open.
  • nslookup: a small built-in program for asking questions about names on a network.
  • NTDS: the file on a Domain Controller that stores every account and password hash in the domain.
  • NTLM hash: the scrambled form of a password that Windows stores and uses internally.
  • NTLMv2: a Windows login method that sends a scrambled proof of the password rather than the password itself.
  • OneDrive: Microsoft's cloud file storage.
  • OU (organisational unit): a folder-like grouping of accounts and computers inside a domain.
  • Pass-the-hash: logging in by presenting a stolen password hash instead of the password.
  • Passphrase: a password made of several words, easier to remember and longer than a short jumble.
  • Patch: a software update that fixes a known flaw.
  • Penetration test (pentest): a hired, authorised attempt to break into systems to find weaknesses first.
  • PII (personally identifiable information): data that identifies a specific person.
  • Port: a numbered door on a computer through which a particular service is reached.
  • PowerShell: Windows' built-in scripting language for automating tasks.
  • Ransomware: malicious software that locks up files and demands payment to unlock them.
  • RDP (Remote Desktop Protocol): a way to control another computer's screen over the network.
  • Reconnaissance: looking around and gathering information before attacking.
  • Risk: a rating combining how likely a weakness is to be exploited with how bad the impact would be.
  • Single Sign-On (SSO): one login giving access to many separate services.
  • SPN (service principal name): a label telling the domain which service an account runs.
  • TLS: the encryption that protects traffic between a browser and a website.
  • Trusted location: a network the identity provider treats as safe enough to skip MFA.
  • Wireshark: a tool that records and displays network traffic so you can read what is being sent.
  • .pfx file: a container for a certificate and its private key.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.