>_SPENCERLABSECURITY · INFRASTRUCTURE SERVING FROM THE HOMELAB|0 INBOUND PORTS
GitHub
Assessed

Authenticated Security Assessment - WinServ

An assumed-breach assessment of WinServ, a Windows Server 2025 file server on LabNet. The department-share RBAC held — but exposed WinRM plus a valid admin credential gave full remote control of the server. 1 Critical, 2 Medium findings.

5 min read
Assessed

Executive Summary

An authorized, authenticated (assumed-breach) security assessment of WinServ (10.x.x.5), a standalone Windows Server 2025 file server on the isolated LabNet segment, to evaluate its configuration, access controls and blast radius using valid credentials the tester already held.

WinServ exposed IIS, RPC, SMB, LDAP (AD LDS) and WinRM. The department file-share RBAC (HR$/IT$/FIN$) was tested and enforces correctly. However, WinRM was exposed and a valid administrator credential granted full remote control of the server, bypassing all RBAC - a Critical finding. Secondary issues: C:\Users is over-shared to authenticated users, and SMB signing is not required. Findings: 1 Critical, 2 Medium, plus 1 confirmed strength.

F-01 (Critical): exposed WinRM plus a valid admin credential yields full remote control, overriding NTFS and every RBAC boundary. F-02 (Medium): the Users share exposes the C:\Users profile layout to any authenticated user. F-03 (Medium): SMB signing is not required, enabling NTLM/SMB relay.

Remediate F-01 first - restrict WinRM to a management subnet and protect the admin credential - then address F-02 and F-03. Segment the network so a workstation foothold cannot reach the server.

Scope

WinServ - 10.x.x.5 (Windows Server 2025, Build 26100, standalone WORKGROUP), across its exposed services. Attacker position: Kali 10.x.x.4.

Any system outside LabNet 10.x.x.0/24, and all external or internet-facing systems.

Authenticated / assumed-breach assessment: performed with valid credentials the tester already held, to evaluate configuration and blast radius. Authentication was not defeated and no credential was cracked or bypassed.

Objectives

Evaluate WinServ's configuration, access controls and blast radius from an assumed-breach position, and determine whether the department file-share RBAC holds under both normal-user and administrator access.

The RBAC is sound only if each department can write only its own share and cross-department and admin-share access is denied; the assessment records both the control that holds and the exposure that defeats it.

Methodology

Followed the repeatable process: scope & recon, scan & enumerate, authenticated access & RBAC validation, impact demonstration, then remediation guidance. Each step was tagged as an authenticated assessment action or an unauthenticated attack; the engagement was almost entirely assessment - no credential was cracked or bypassed.

Least-privilege / RBAC validation, using the mirror-image test (HR01 vs FIN01) to prove cross-department denial. MITRE ATT&CK framing for the initial-access context.

nmap, netexec, smbclient, enum4linux, evil-winrm.

Environment

Standalone Windows Server 2025 (Build 26100) in a WORKGROUP, acting as a departmental file server on the isolated LabNet 10.x.x.0/24 (VirtualBox NAT network). RDP (3389) is not exposed; the host firewall filters all but the listed services.

Exposed services: IIS, RPC, SMB (445), LDAP (AD LDS) and WinRM (5985). Department shares HR$, IT$, FIN$ with per-department RBAC, plus additional Users (maps to C:\Users) and Shares.

Risk Analysis

The file-server RBAC design is sound and was verified - each department writes only its own share, and cross-department and admin-share access is denied (a confirmed strength). That control protects against a normal-user compromise, but it is entirely defeated by the Critical WinRM/admin exposure: an administrator overrides NTFS and reads every share regardless of the RBAC.

A single reused or harvested administrator credential, used over the exposed WinRM service, results in total compromise of the file server and all department data - the RBAC does not contain an admin-level breach.

Assumes the attacker is already on the internal segment (the assumed-breach premise) and can obtain or reuse a valid administrator credential; reaching the LAN in the first place is a separate initial-access phase.

Remediation

1) F-01: restrict WinRM to a management subnet (or disable if unused) and protect the local admin credential (long, unique, rotated; consider LAPS); administer from a dedicated admin host. 2) F-02: remove or restrict the Users and Shares shares to administrators. 3) F-03: require SMB signing via Group Policy and restrict NTLM where possible.

F-01 is a firewall rule plus credential hygiene; F-02 is a share change; F-03 is a Group Policy / registry setting. All are low-effort configuration changes.

F-01: WinRM unreachable from a normal segment and admin logons alerted. F-02: a normal user can no longer connect to \\WINSERV\Users. F-03: netexec reports signing:True.

Recommendations

Segment the network so a workstation foothold cannot reach the server; enforce MFA on all remote access; monitor administrative logons; vault and rotate local admin credentials. (MITRE ATT&CK: Initial Access -> Discovery -> Lateral Movement.)

Restrict or disable WinRM; remove the over-shared Users/Shares shares; require SMB signing.

Conclusion

The file-server RBAC is well designed and verified, but it is defeated by the Critical WinRM/admin exposure (F-01) and weakened by over-sharing (F-02) and missing SMB signing (F-03). Priority: remediate F-01 first (restrict WinRM and protect admin credentials), then F-02 and F-03. Broader: segment the network so a foothold cannot reach the server, enforce MFA on remote access, and monitor administrative logons.

Appendix

Second in the LabNet engagement series (companion to the UbuntuServ engagement report). Initial-access context: the engagement began with the attacker already on LabNet; gaining that position is a separate, harder phase. A normal-user compromise is contained by the RBAC, but a compromised administrator credential over exposed WinRM is total. Primary defense: network segmentation.

Findings

IDFindingSeverityAffected asset
FND-2026-0003Exposed WinRM + Admin Credential = Full Remote CompromiseCriticalWinServ 10.x.x.5 - WinRM (TCP 5985)
FND-2026-0004C:\Users Over-Shared to Authenticated UsersMediumWinServ 10.x.x.5 - SMB share "Users" (TCP 445)
FND-2026-0005SMB Signing Not RequiredMediumWinServ 10.x.x.5 - SMB (TCP 445), signing:False

FND-2026-0003 — Exposed WinRM + Admin Credential = Full Remote Compromise

Severity: Critical · Asset: WinServ 10.x.x.5 - WinRM (TCP 5985)

WinRM is reachable and a valid local Administrator credential authenticates with admin rights, granting an interactive remote shell (Evil-WinRM).

Impact.

Complete control of the server. Admin overrides NTFS and reads/writes every department share regardless of the RBAC, and can create accounts, dump credentials, and persist.

Remediation.

Restrict WinRM with a firewall rule to a management subnet (or disable it if unused); protect the admin credential (long, unique, rotated - consider LAPS for local admin); administer from a dedicated admin host; enable logging and monitoring.

FND-2026-0004 — C:\Users Over-Shared to Authenticated Users

Severity: Medium · Asset: WinServ 10.x.x.5 - SMB share "Users" (TCP 445)

A share named "Users" maps to C:\Users and is readable by any authenticated user (confirmed as HR01).

Impact.

Information disclosure of the user/profile layout and unnecessary attack surface. NTFS still protects the contents of individual profiles.

Remediation.

Remove the Users share (and the empty Shares share) or restrict them to administrators.

FND-2026-0005 — SMB Signing Not Required

Severity: Medium · Asset: WinServ 10.x.x.5 - SMB (TCP 445), signing:False

The server does not require SMB signing.

Impact.

Enables NTLM/SMB relay attacks - a coerced authentication can be relayed to this host.

Remediation.

Enforce "Microsoft network server: Digitally sign communications (always)" via Group Policy / registry, and restrict NTLM where possible.