COMP-222 · Lesson 3 of 12 · 19 min

Authenticated and unauthenticated scans

▶ Video coming soon A video version of this lesson is on the way.

The first internal scan of Prairiefold's head office servers finished at 18:40 on October 15, 2026, and the summary looked reassuring: thirty-one findings across sixty hosts, most of them medium or low. Dario glanced at it before heading home and asked Tobias one question: how many of those hosts did the scanner actually log in to? Tobias checked. The answer was eleven. The credentialed part of the scan had failed on most Windows servers, and the tidy summary was mostly a picture of what an anonymous visitor could see.

Objective 3.1 lists authenticated versus unauthenticated scans as a distinct type, and exam questions often turn on the difference. This lesson explains what each kind of scan sees, how credentialed scanning works on common platforms, how to tell whether it worked, the risks of handing a scanner real credentials, and the directory-focused discovery tools the objective names: BloodHound and PowerSploit.

Two different questions

An unauthenticated scan, also called a non-credentialed scan, examines targets the way an anonymous network client would. It connects to open ports, reads banners, requests well-known paths and sends probes. It answers the question: what can someone with network access but no account learn and exploit? That is the right question for an external test and an important one internally, because many real attacks begin with no credentials at all.

An authenticated scan, also called a credentialed scan, logs in to each target with an account supplied for the purpose and examines it from the inside. It reads installed software and version numbers directly, checks the patch level against the vendor's records, inspects configuration settings and file permissions, and lists local accounts and services. It answers a different question: what weaknesses exist on this system, whether or not they are reachable today? That is the question a defender needs answered to patch and harden, and the one a tester needs answered to understand what an attacker could do after gaining any foothold.

What each type of scan sees and costs.
UnauthenticatedAuthenticated
ViewpointAnonymous network clientLogged-in user, usually with administrative rights
Version detectionInferred from banners and responsesRead directly from installed packages and files
Local issues foundFew or noneMissing patches, weak settings, risky permissions, outdated libraries
False positivesMore common, because versions are guessedFewer, because data comes from the host
Shows real exposureYesNot by itself; must be combined with reachability
Setup and riskLittle setupAccounts, ports and secure credential handling needed

Neither scan is better in general. They answer different questions, and a thorough internal test uses both. The unauthenticated scan shows the attack surface; the authenticated scan shows the depth of weakness behind it. Comparing the two is itself informative: a host that looks clean from outside but has dozens of missing patches inside is one firewall change away from serious exposure.

A grouped bar chart for the 60 head office servers. Unauthenticated scan findings: critical 1, high 6, medium 15, low 9. Authenticated scan findings after the credential fix: critical 9, high 58, medium 141, low 87. The authenticated bars are several times taller in every category.
Findings on the same 60 Prairiefold servers from an unauthenticated scan and from an authenticated scan once credentials worked.

How credentialed scanning works

The mechanics differ by platform, and most credential failures come from not understanding them.

Windows targets are usually scanned over the Server Message Block protocol and Windows remote management services. The scanner connects to administrative shares and the remote registry, or uses Windows Management Instrumentation, to read installed software, update history and settings. This needs an account with local administrator rights on each target, file and printer sharing reachable from the scanner, and services such as remote registry able to start. Host firewalls, disabled administrative shares, and restrictions on how remote local accounts are used are all common causes of failure.

Linux and Unix targets are scanned over SSH. The scanner logs in, often with a key rather than a password, and runs commands to list packages, read configuration files and check kernel versions. Many checks need elevated rights, so policies usually allow the scan account to escalate with sudo for a specific set of commands. A login that succeeds without the ability to escalate produces a partial result that can look complete.

Network devices such as routers, switches and firewalls are scanned over SSH or with SNMP. SNMP version 3 supports authentication and encryption; versions 1 and 2c rely on community strings sent in clear text and should not be used for scanning on an untrusted network. Databases can be audited with a database account to check versions, settings and risky privileges. Cloud environments are assessed through provider APIs with read-only roles, covered in lesson 5. Web applications can be scanned as a logged-in user, covered in lesson 4.

Credentialed scanning by platform.
PlatformProtocolTypical accountCommon failure
Windows server or workstationSMB, remote registry, WMI or WinRMDomain account in the local administrators groupHost firewall blocks the scanner; remote local-account restrictions; service disabled
Linux serverSSHDedicated account with key and limited sudoNo sudo, so privileged checks silently fail
Network deviceSSH or SNMPv3Read-only device accountWrong SNMP version or access list
DatabaseNative database protocolRead-only audit roleListener bound to localhost only

Checking that authentication worked

The most dangerous credentialed scan is one that silently failed. Scanners report authentication outcomes, but the information is easy to overlook. Nessus and Greenbone both record, per host, whether login succeeded, which protocol was used, and whether privileged checks ran. Testers should look at those per-host results before reading a single vulnerability finding. Dario's habit, which Tobias adopted, was to sort the results by authentication status first and treat every failed host as unscanned.

At Prairiefold, the failure had a simple cause. The scan account was a domain account added to a group that the domain's group policy placed in each server's local administrators group, but the policy had not yet applied to most servers when the scan ran. On the remaining hosts a host firewall rule blocked remote management from any address outside the IT subnet. Felix Aberdeen's team forced the policy update and added the scanner address to the firewall rule for the duration of the test. The rescan two days later authenticated to fifty-eight of sixty servers, and the findings rose from thirty-one to nearly three hundred.

A per-host authentication summary. Only the first host was fully assessed.
Host            Auth  Protocol  Local checks  Notes
192.0.2.11      OK    SMB       Yes
192.0.2.12      FAIL  SMB       No            Access denied (not local admin)
192.0.2.15      OK    SSH       Partial       sudo not permitted
192.0.2.21      FAIL  -         No            Port 445 filtered

The two remaining failures were a Linux appliance whose vendor did not allow local accounts, and a server due for decommissioning. Both were recorded in the report's coverage section as not assessed with credentials, with the reason. That record matters: a reader who assumes everything was scanned with credentials will place more confidence in the results than they deserve.

The risks of scanning with credentials

Handing a scanner powerful credentials creates risk, and both tester and client must manage it.

  • Credential exposure. The scanner stores the credentials and presents them to every target. A compromised scanner, or a scan accidentally pointed at a host an attacker controls, could hand over the account's secrets. Scanners should be patched and hardened, and their credential stores protected.
  • Authentication relay and capture. Some Windows authentication methods can be captured or relayed by a malicious host on the network. Scan accounts should use the strongest authentication available, and scans should be aimed only at the agreed targets.
  • Excessive privilege. A domain administrator account makes credentialed scanning easy and is a terrible idea. A dedicated account with administrative rights only on the systems being scanned limits the damage if it is misused.
  • Lifecycle. Scan accounts should be created for the test, logged, monitored and disabled at the end. Prairiefold's rules required both scan accounts to be disabled on November 13, 2026, and Ana confirmed with Felix that this had happened before she closed the evidence log.

Privileged access management tools help. Many scanners can retrieve credentials from a vault at scan time instead of storing them, so that passwords can rotate after each scan. For a short engagement, a simpler control is enough: unique accounts, strong secrets shared through an agreed secure channel, and monitoring for any use of the accounts outside the scan windows.

Directory discovery: BloodHound

In an Active Directory environment, many of the most serious weaknesses are not missing patches. They are relationships: a help desk group with full control over an administrators group, a privileged user who signs in to ordinary workstations, or a group nested inside another group that nobody remembers creating. A credentialed host scan does not reveal these, because they live in the directory, not on any one machine.

BloodHound, developed by SpecterOps, collects directory data and displays it as a graph of users, groups, computers and the permissions that connect them. A collector, SharpHound for Active Directory or AzureHound for Microsoft Entra ID, queries the directory with an ordinary domain account and records group memberships, sessions, access control entries, trust relationships and similar data. BloodHound then answers questions such as: what is the shortest path from this user to the Domain Admins group? Which users can reach a given server? Which accounts have dangerous rights over many objects?

A small attack-path graph. A branch user is a member of the Branch Staff group. Branch Staff has local administrator rights on a Branch 07 workstation. A member of the IT Helpdesk group has a session on that workstation. IT Helpdesk has GenericAll, meaning full control, over the Domain Admins group. An arrow labeled path of four steps runs from the user to Domain Admins.
A simplified BloodHound-style path from a branch user to domain administrator rights through workstation administrator rights, a help desk session and an unintended delegation.

For the tester, a BloodHound path is a discovery result, not yet a finding. It shows that relationships exist which could allow escalation. Validating the path, by showing that each step works under the rules of engagement, belongs to the attack phase in PenTest+: Attacks and Exploits. For the report, the path itself is often the most persuasive evidence a client will see, because it turns an abstract permission problem into a picture of how an attacker would move.

At Prairiefold, Dario ran the collector with the gray-box standard user account the rules of engagement provided. The graph showed a path of four steps from a branch staff account to domain administrator rights, much like the figure. Branch staff were local administrators on their own workstations, a leftover from an old software rollout. Help desk analysts signed in to those workstations to support users, leaving sessions behind. And the IT Helpdesk group held full control, shown in BloodHound as GenericAll, over the Domain Admins group, a delegation nobody could explain. Nobody had intended the combination; each piece had arrived separately, and two of the three had once had a sensible reason.

Defenders use BloodHound too. Running it regularly and fixing the shortest paths is one of the most effective ways to harden a directory. Detection is possible but imperfect: collectors make large numbers of directory queries in a short time and may query session information from many computers, which directory and endpoint monitoring can flag. The lasting fix is structural: tiered administration that keeps privileged accounts off lower-tier systems, removal of unnecessary delegations, and regular review of who can control whom.

PowerSploit and PowerView

PowerSploit is a collection of PowerShell modules written for penetration testers, grouped into areas such as reconnaissance, privilege escalation, code execution and exfiltration. The project's own page states that it is no longer supported, but it remains on the exam objectives and appears in older testing guides. For vulnerability discovery, the relevant part is the reconnaissance module, best known for PowerView, a set of functions for querying Active Directory: listing domain users, groups and computers, finding where users are logged in, enumerating shares and reading access control lists.

Testers use PowerView-style enumeration for the same purpose as BloodHound collection, often to answer a narrower question quickly. Because PowerSploit is old, public and widely abused, endpoint protection products detect most of its modules on sight. On a modern network, running it will usually trigger an alert, which is itself useful information about the client's defenses. Testers should agree in advance whether such tools may be used, and should prefer maintained alternatives where the rules allow.

From the defensive side, PowerShell's own logging features, such as script block logging and module logging, record the commands that ran, and constrained language modes limit what untrusted scripts can do. A client that can see PowerView functions in its logs within minutes has a strong detection capability; one that sees nothing has a gap worth reporting.

Worked problem

Reading a scan summary critically

An internal scan summary reports 210 hosts scanned and 1,420 findings. The authentication report shows 150 hosts with successful credentialed checks, 35 with failed logins and 25 with no credentials attempted because the policy excluded their operating system. What should the tester report about coverage?

Show solution
  1. Calculate coverage: 150 of 210 hosts were fully assessed, about 71 percent.
  2. Treat the 35 failed hosts as assessed only from the network, and find the cause of each failure.
  3. Fix the policy to include the excluded operating system or record why it cannot be scanned.
  4. Rescan where possible and state the final credentialed coverage in the report.

Answer: About 71 percent of hosts were assessed with credentials; the other 60 need fixing or must be reported as not fully assessed.

Common mistakes

  • MistakeReading vulnerability results before checking whether authentication succeeded.

    InsteadReview per-host authentication status first and treat failures as unscanned.

  • MistakeUsing a domain administrator account for credentialed scans.

    InsteadUse a dedicated account with administrative rights only where needed.

  • MistakeTreating an authenticated finding as proof of external exposure.

    InsteadCombine it with reachability before rating exposure.

  • MistakeReporting a BloodHound path as a confirmed compromise.

    InsteadReport it as a discovered path and validate steps under the rules of engagement.

  • MistakeLeaving scan accounts enabled after the test.

    InsteadDisable them at the end of the window and record confirmation.

Summary and key terms

  • Unauthenticated scans show what an anonymous network client can see; authenticated scans show weaknesses inside each host.
  • Credentialed scanning uses SMB, WMI or WinRM on Windows, SSH with sudo on Linux, SSH or SNMPv3 on network devices, and read-only roles elsewhere.
  • Always check per-host authentication results; a silent failure makes a scan look cleaner than reality.
  • Scan accounts need least privilege, protected storage, monitoring and a defined end date.
  • BloodHound graphs directory relationships to show paths to privileged access; SharpHound and AzureHound collect the data.
  • PowerSploit's PowerView module enumerates Active Directory; the project is no longer supported and is widely detected.
Authenticated scan
A scan that logs in to targets to examine software and configuration from inside.
Unauthenticated scan
A scan that examines targets as an anonymous network client.
Scan account
A dedicated account created for credentialed scanning during a test.
BloodHound
A tool that graphs directory relationships to reveal paths to privileged access.
SharpHound
The BloodHound data collector for Active Directory.
PowerView
A PowerSploit reconnaissance module for enumerating Active Directory.
Tiered administration
A design that keeps privileged accounts off less trusted systems.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. A Linux host shows a successful SSH login but very few findings. What should you check?

    Show answer

    Whether the account could escalate with sudo; without it, privileged checks may have silently failed.

  2. Why should an external test use unauthenticated scans?

    Show answer

    It measures what an outsider without credentials can see and exploit.

  3. Give one structural fix for BloodHound attack paths.

    Show answer

    Tiered administration, removing unnecessary delegations, or keeping privileged sessions off lower-tier servers.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz