Null Sessions: What Can an Anonymous Windows Caller Do?
Windows computers use more than shared folders to communicate. A special resource called IPC$ lets programs exchange messages across the network. Anonymous access through this resource is part of the history behind a security term that still appears in reports: the null session.
A null session is an anonymous session in the Windows Server Message Block, or SMB, context. SMB supplies the communication rules a client computer uses to request shared resources from a server. A null session supplies no named user's identity; it isn't an ordinary user account with an empty password.
The security question is what that anonymous session can do. Establishing it and receiving permission to use a resource are separate parts of the exchange.
Active Directory in Five Minutes
Follow the session to a resource
A client first establishes an SMB session. The server then evaluates requests to connect to particular shares, resources made available through SMB.
That sequence separates the identity used for a connection from the permissions available through it. Authentication checks the identity a caller claims. Authorization determines which resources or actions that identity is allowed to use.
The IPC$ share supports named pipes, communication channels used by running programs and services. Despite the word “share,” IPC$ isn't a folder that automatically opens the server's documents and printers to the caller.
When the relevant settings permit it, anonymous access can allow enumeration: listing information such as account names or available shares. That information can be useful to an outsider trying to understand a system. Whether a particular request succeeds depends on the resource and its security settings.
Microsoft's IPC$ guidance describes the role of these policies. Connecting to IPC$ is a first step; the server can still refuse a later request to list users or access another resource.
The sign-in Windows may already have
A connection can also look anonymous because the person making it never saw a password prompt.
Windows can use credentials it already has, including those of the signed-in user and, in some situations, a computer account. The software can therefore authenticate without asking the person to type anything again.
In a 2020 explanation of misleading null-session findings, Microsoft showed this with Windows 10 and Windows Server 2019. A connection command that appeared to provide no credentials actually authenticated using the existing domain user. A domain lets an organization manage Windows accounts centrally.
The missing prompt was a feature of how the credentials were supplied, not evidence that the server had accepted an anonymous caller.
Guest access is another distinct case. The SMB2 protocol specification defines separate indicators for guest and anonymous sessions. A report needs to distinguish the two rather than treating every connection without a fresh password entry as a null session.
- Keep every photo and file on a box you own, and reach them from anywhere.
- Let backups run on their own so one dead laptop doesn't take your files with it.
- Add two drives and a failed disk no longer means lost files.
The allowed operation is the revealing detail
Consider a hypothetical security check that establishes an anonymous session but receives a refusal when it asks for a protected resource. Compare that with a check that successfully lists account names anonymously. These results demonstrate different access, even if both began with a connection.
The second result reveals information about the server’s users. The first has not shown that access. A report needs to say what the anonymous caller was actually able to do.
Behavior also varies by Windows version, service and policy. Microsoft's server guidance distinguishes older systems from Windows Server 2012 and later. The historical reputation of null sessions doesn't establish the permissions on a particular current server.
The documented policy for restricting anonymous access to named pipes and shares can still permit explicitly listed exceptions. An application that depends on a listed pipe may continue using that allowed anonymous path. The exception, as well as the general restriction, is part of the server's actual access policy.
Unprotected Shares: Who Else Can Open That Folder?

Access Control Lists: The Rules That Let Requests Through

DumpSec: What Its Windows Security Reports Can Tell You

QUOTE:
"Amateurs hack systems, professionals hack people."
