Files
keith-portfolio/docs/homelab-audit.html
Keith Casko 7f81f50da0
ci/woodpecker/push/woodpecker Pipeline was successful
Style project documentation as readable industrial pages
2026-10-23 05:25:43 -04:00

299 lines
11 KiB
HTML

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Windows Server Lab / Audit Log | Keith Casko</title><link rel="stylesheet" href="../css/industrial.css?v=20261023"><link rel="stylesheet" href="../css/doc-pages.css?v=1"></head><body><a class="skip-link" href="#main-content">Skip to main content</a><div class="site-shell"><header class="metal-panel site-header"><a class="wordmark" href="https://casko.dev/#home" aria-label="Keith Casko home">casko.dev</a><span class="brand-meta">// KEITH CASKO / BYTEGEIST</span><button class="nav-toggle" aria-expanded="false" aria-controls="primary-nav">MENU <span aria-hidden="true">☰</span></button><nav class="site-nav" id="primary-nav" aria-label="Primary"><a href="https://casko.dev/#home">HOME</a><a href="https://casko.dev/#projects">PROJECTS</a><a href="https://casko.dev/#about">ABOUT</a><a href="../assets/resume/Keith_Casko_IT_Cloud_Resume.pdf" download>RESUME</a><a href="https://casko.dev/#contact">CONTACT</a></nav><span class="system-status"><i></i> ALWAYS LEARNING</span></header><main id="main-content" tabindex="-1"><article class="metal-panel document-page"><nav class="document-nav" aria-label="Document navigation"><a href="../homelab.html">← WINDOWS SERVER LAB</a><a href="homelab-audit.md" download>DOWNLOAD ORIGINAL MARKDOWN ↓</a></nav><h1>ByteGeist Active Directory Homelab — audit log</h1>
<p><strong>Last run:</strong> 2026-10-03 03:09 ET
<strong>Operator:</strong> Keith Casko
<strong>Host:</strong> <code>BYTEGEIST</code> (Windows 11 Pro for Workstations, 64 GB RAM)
<strong>Hypervisor:</strong> VMware Workstation Pro 17
<strong>Transcripts:</strong> <code>D:\Repos\ad-lab\transcripts\</code></p>
<hr />
<h2>Phase 1 — Discovery</h2>
<table>
<thead>
<tr>
<th>VM</th>
<th>Guest OS</th>
<th>vCPU</th>
<th>RAM</th>
<th>NIC → VMnet</th>
<th>VMX</th>
</tr>
</thead>
<tbody>
<tr>
<td>DC01</td>
<td>Server 2022 Std</td>
<td>2</td>
<td>4 GB</td>
<td>VMnet8 (NAT)</td>
<td><code>D:\Homelab\DC01\Windows Server 2022.vmx</code></td>
</tr>
<tr>
<td>FILE01</td>
<td>Server 2022 Std</td>
<td>4</td>
<td>4 GB</td>
<td>VMnet8 (NAT)</td>
<td><code>D:\Homelab\FILE01\FILE01.vmx</code></td>
</tr>
<tr>
<td>OPNSENSE</td>
<td>FreeBSD</td>
<td>2</td>
<td>4 GB</td>
<td>WAN=VMnet8, LAN=VMnet2</td>
<td><code>D:\Homelab\OPNSENSE\OPNSENSE.vmx</code></td>
</tr>
<tr>
<td>WIN11-01</td>
<td>Windows 11 Edu</td>
<td>4</td>
<td>8 GB</td>
<td>VMnet8 (NAT)</td>
<td><code>D:\Homelab\WIN11-01\WIN11-01.vmx</code> (decrypted 2026-10-03)</td>
</tr>
</tbody>
</table>
<p>Virtual networks (from <code>vmnetdhcp.conf</code> + host <code>ipconfig</code>):</p>
<table>
<thead>
<tr>
<th>Network</th>
<th>Type</th>
<th>Subnet</th>
<th>Host IP</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>VMnet8</td>
<td>NAT</td>
<td>192.168.31.0/24</td>
<td>192.168.31.1</td>
<td>Lab "uplink" — DC01, FILE01, OPNsense WAN</td>
</tr>
<tr>
<td>VMnet2</td>
<td>Host-only</td>
<td>192.168.254.0/24</td>
<td>192.168.254.1</td>
<td>OPNsense LAN segment</td>
</tr>
<tr>
<td>VMnet1</td>
<td>Host-only</td>
<td>192.168.229.0/24</td>
<td>192.168.229.1</td>
<td>Unused</td>
</tr>
</tbody>
</table>
<h2>Phase 3 — DC01 (verified)</h2>
<ul>
<li>Hostname <code>DC01</code>, Server 2022 Std, IPv4 <code>192.168.31.10/24</code>.</li>
<li>Domain <code>ad.bytegeist.lab</code>, NetBIOS <code>BGLAB</code>, Domain/Forest mode <code>Windows2016</code>.</li>
<li>DC01 holds <strong>PDCEmulator, SchemaMaster, DomainNamingMaster, GC</strong>.</li>
<li>Services <code>NTDS, DNS, Netlogon, KDC, W32Time, DFSR</code> — all Running.</li>
<li><code>SYSVOL</code> → <code>C:\Windows\SYSVOL\sysvol</code>, <code>NETLOGON</code> → <code>…\SCRIPTS</code>.</li>
<li>DNS zones (AD-integrated): <code>ad.bytegeist.lab</code>, <code>_msdcs.ad.bytegeist.lab</code>, three default reverse zones.</li>
<li><code>dcdiag /q</code>: silent (clean after Phase 7 fixes).</li>
<li><code>repadmin /replsummary</code>: no deltas, no errors — single DC, expected.</li>
</ul>
<h3>OU structure (verified)</h3>
<pre><code>ad.bytegeist.lab/
├── ByteGeist/
│ ├── Groups
│ ├── Servers
│ ├── Workstations
│ └── Users/{HR, IT, Sales}
└── Domain Controllers
</code></pre>
<h3>Users (verified; lab accounts, no PII)</h3>
<p>Administrator, Guest (disabled), krbtgt (disabled, system), keith — in <code>CN=Users</code>
<code>OU=HR</code>: jwilson, ldavis
<code>OU=IT</code>: bsmith, kcasko, sjohnson
<code>OU=Sales</code>: mbrown, tmiller</p>
<h3>Lab-created groups (all Global/Security, under <code>OU=Groups,OU=ByteGeist</code>)</h3>
<p>Accounting, Help Desk, HR Employees, IT Employees, Management, Sales Employees, VPN Users.</p>
<h3>Computers in AD</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>OS</th>
<th>Last logon</th>
</tr>
</thead>
<tbody>
<tr>
<td>DC01</td>
<td>Server 2022</td>
<td>2026-10-03 02:35</td>
</tr>
<tr>
<td>FILE01</td>
<td>Server 2022</td>
<td>2026-10-03 02:36</td>
</tr>
<tr>
<td>WIN11-01</td>
<td>Windows 11 Education</td>
<td>2026-08-05 14:46</td>
</tr>
</tbody>
</table>
<h2>Phase 4 — FILE01 (verified)</h2>
<ul>
<li>Hostname <code>FILE01</code>, Server 2022 Std, IPv4 <code>192.168.31.20/24</code>.</li>
<li>Domain-joined to <code>ad.bytegeist.lab</code> (<code>DomainRole 3</code> = member server).</li>
<li><code>LanmanServer</code> + <code>LanmanWorkstation</code> Running; <code>Test-ComputerSecureChannel</code> = <strong>True</strong>.</li>
<li>Local Administrators: <code>BGLAB\Domain Admins</code>, <code>FILE01\Administrator</code>, <code>FILE01\keith</code>.</li>
</ul>
<p><strong>Share: <code>IT</code> → <code>C:\Shares\IT</code></strong></p>
<p>Share-level permissions (<code>Get-SmbShareAccess</code>):</p>
<table>
<thead>
<tr>
<th>Account</th>
<th>AccessControlType</th>
<th>Rights</th>
</tr>
</thead>
<tbody>
<tr>
<td>BGLAB\Domain Admins</td>
<td>Allow</td>
<td>Full</td>
</tr>
<tr>
<td>BGLAB\IT Employees</td>
<td>Allow</td>
<td>Change</td>
</tr>
</tbody>
</table>
<p>NTFS ACL on <code>C:\Shares\IT</code> (<code>Get-Acl</code>):</p>
<table>
<thead>
<tr>
<th>Identity</th>
<th>Rights</th>
<th>Inherited</th>
</tr>
</thead>
<tbody>
<tr>
<td>BGLAB\IT Employees</td>
<td>Modify, Synchronize</td>
<td>False (explicit)</td>
</tr>
<tr>
<td>NT AUTHORITY\SYSTEM</td>
<td>FullControl</td>
<td>True</td>
</tr>
<tr>
<td>BUILTIN\Administrators</td>
<td>FullControl</td>
<td>True</td>
</tr>
<tr>
<td>BUILTIN\Users</td>
<td>ReadAndExecute + AppendData + CreateFiles</td>
<td>True</td>
</tr>
<tr>
<td>CREATOR OWNER</td>
<td>Full on child objects</td>
<td>True</td>
</tr>
</tbody>
</table>
<p>Only one share is currently published. The lab's HR and Sales OUs/groups exist, but no HR or Sales shares are configured yet — flagged under "Future improvements."</p>
<h2>Phase 5 — WIN11-01 (restored 2026-10-03)</h2>
<p>Originally blocked by two issues: the vmx was encrypted (blocking <code>vmrun</code> automation) and the NIC was bridged to the physical LAN (<code>192.168.1.132</code>, gateway <code>192.168.1.1</code>), leaving no route to DC01 (<code>192.168.31.10</code> on VMnet8). <code>Test-NetConnection 192.168.31.10 -Port 53</code> timed out and <code>Test-ComputerSecureChannel -Repair</code> returned "The server is not operational."</p>
<p>Resolution, performed in the guest as <code>BGLAB\Administrator</code>:</p>
<ol>
<li>Deleted WIN11-01 snapshots, removed the virtual TPM, removed vmx encryption (VMware GUI).</li>
<li>Changed the network adapter from Bridged to NAT (VMnet8).</li>
<li>In the guest: renewed DHCP, pointed DNS at DC01, repaired the machine-account trust.</li>
</ol>
<p>Verification output (2026-10-03):</p>
<pre><code class="language-powershell">PS C:\Users\keith&gt; Test-ComputerSecureChannel -Verbose
VERBOSE: Performing the operation &quot;Test-ComputerSecureChannel&quot; on target &quot;WIN11-01&quot;.
True
VERBOSE: The secure channel between the local computer and the domain ad.bytegeist.lab is in good condition.
PS C:\Users\keith&gt; nltest /dsgetdc:ad.bytegeist.lab
DC: \\DC01.ad.bytegeist.lab
Address: \\192.168.31.10
Dom Name: ad.bytegeist.lab
Forest Name: ad.bytegeist.lab
Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_DC DNS_DOMAIN DNS_FOREST CLOSE_SITE FULL_SECRET WS DS_8 DS_9 DS_10 KEYLIST
The command completed successfully.
PS C:\Users\keith&gt; whoami
bglab\administrator
</code></pre>
<p><code>Get-ADComputer WIN11-01</code> already showed the account enabled (OS Windows 11 Education); the repair restored live trust without a rejoin.</p>
<h2>Phase 6 — Network validation</h2>
<ul>
<li>DC01 ↔ FILE01: both on VMnet8/192.168.31.0/24. SMB + Kerberos verified by successful <code>Invoke-Command FILE01</code> from DC01.</li>
<li>DC01 → <code>time.windows.com</code>: resolves and syncs (stratum 5, source IP 168.61.215.74).</li>
<li>WIN11-01 → DC01: restored 2026-10-03 (secure channel healthy, DC discovery via DNS, authenticated as <code>bglab\administrator</code>).</li>
</ul>
<h2>Phase 7 — Problems found and fixed</h2>
<table>
<thead>
<tr>
<th>#</th>
<th>Problem</th>
<th>Fix</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>PDC time source <code>Local CMOS Clock</code> (stratum 1 LOCL — would cause Kerberos skew failures as members drift)</td>
<td><code>w32tm /config /manualpeerlist:"time.windows.com,0x9 pool.ntp.org,0x9 time.nist.gov,0x9" /syncfromflags:manual /reliable:yes /update</code> → PDC now stratum 5 syncing from <code>time.windows.com</code> (168.61.215.74)</td>
<td><strong>Fixed</strong></td>
</tr>
<tr>
<td>2</td>
<td>Stale <code>dcdiag</code> SystemLog failure from an unexpected shutdown on 2026-08-07</td>
<td><code>wevtutil cl System</code>; re-ran <code>dcdiag /q</code> — silent</td>
<td><strong>Fixed</strong></td>
</tr>
<tr>
<td>3</td>
<td><code>bglab\keith</code> is a standard Domain User, couldn't WinRM into FILE01 (Access Denied)</td>
<td><code>Add-ADGroupMember 'Domain Admins' keith</code> as <code>BGLAB\Administrator</code> — logged as lab maintenance</td>
<td><strong>Fixed</strong></td>
</tr>
<tr>
<td>4</td>
<td>FILE01 and DC01 on plain NAT (VMnet8), WIN11-01 on different segment — OPNsense doesn't see east-west server traffic</td>
<td>Documented; migration to pure VMnet2 behind OPNsense is a planned improvement</td>
<td><strong>Documented</strong></td>
</tr>
<tr>
<td>5</td>
<td>WIN11-01 NIC bridged to physical LAN, no route to DC01</td>
<td>Snapshots removed, TPM removed, vmx decrypted, adapter switched to NAT, DNS pointed at DC01, <code>Test-ComputerSecureChannel -Repair</code> — verified <code>True</code></td>
<td><strong>Fixed</strong></td>
</tr>
<tr>
<td>6</td>
<td>WIN11-01 vmx encrypted — blocked <code>vmrun</code> and automation</td>
<td>Removed via VMware GUI after snapshot/TPM removal</td>
<td><strong>Fixed</strong></td>
</tr>
</tbody>
</table>
<h2>Security notes</h2>
<ul>
<li>No passwords, DSRM, krbtgt, SIDs, or recovery credentials captured in transcripts or portfolio artifacts.</li>
<li>Lab is behind VMware NAT; no inbound exposure to the host network or the internet.</li>
<li>Transcripts live under <code>D:\Repos\ad-lab\transcripts\</code> on the host, not on the DC.</li>
<li><code>keith</code> was elevated to <code>Domain Admins</code> <strong>in the lab only</strong>; this account has no production use.</li>
</ul></article></main><footer class="metal-panel document-footer"><a href="../index.html#projects">CASKO.DEV / PROJECTS</a><span>KEITH CASKO / BYTEGEIST</span></footer></div><script src="../js/industrial.js" defer></script></body></html>