<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abiodun Aransiola on Medium]]></title>
        <description><![CDATA[Stories by Abiodun Aransiola on Medium]]></description>
        <link>https://medium.com/@abiodun475?source=rss-a5e865fd3fed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kGfsR9Fk1wWlopzy</url>
            <title>Stories by Abiodun Aransiola on Medium</title>
            <link>https://medium.com/@abiodun475?source=rss-a5e865fd3fed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:26:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abiodun475/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating NIST SP 800–53 Control Auditing and Remediation with PowerShell in a Controlled Lab…]]></title>
            <link>https://medium.com/@abiodun475/automating-nist-sp-800-53-control-auditing-and-remediation-with-powershell-in-a-controlled-lab-d45d106e91b6?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/d45d106e91b6</guid>
            <category><![CDATA[nist-framework]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 22:52:18 GMT</pubDate>
            <atom:updated>2026-08-20T22:52:18.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automating NIST SP 800–53 Control Auditing and Remediation with PowerShell in a Controlled Lab Environment</h3><h3>EXECUTIVE SUMMARY</h3><p>This project automated the assessment and remediation of four NIST SP 800–53 security controls on a Windows endpoint in an Active Directory lab environment. Using PowerShell and WinRM, I built an automated workflow to audit configurations, identify compliance gaps, remotely apply targeted remediation, and re-audit the endpoint. The four controls assessed were AC-7, AU-12, CM-6, and IA-5, covering account lockout, PowerShell logging, LLMNR, and password policy. The result was 4/4 controls remediated and independently validated through re-audit, demonstrating repeatable endpoint compliance automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*stEU2SH2tpan-QMMD8sOrg.png" /></figure><pre>## RESULTS AT A GLANCE<br><br>| Control   | Security Requirement            | Before | After  |<br>| --------- | ------------------------------- | ------ | ------ |<br>| **AC-7**  | Account Lockout Threshold       | ❌ FAIL | ✅ PASS |<br>| **AU-12** | PowerShell Script Block Logging | ❌ FAIL | ✅ PASS |<br>| **CM-6**  | LLMNR Disabled                  | ❌ FAIL | ✅ PASS |<br>| **IA-5**  | Minimum Password Length         | ❌ FAIL | ✅ PASS |<br><br>**Outcome: 4/4 controls remediated and successfully validated through re-audit.**</pre><h3>The Problem</h3><p>Organizations operating under regulatory frameworks must ensure that endpoints consistently adhere to established security baselines (such as NIST SP 800–53). Manual auditing is slow, error-prone, and subject to configuration drift. A baseline assessment of target endpoint CLIENT1 revealed multiple compliance gaps across access control, auditing, configuration management, and identification authentication controls.</p><h3>The Objective</h3><p>Design and implement an automated PowerShell-based compliance auditing and technical hardening framework that evaluates target endpoints against specific NIST SP 800–53 controls, generates structured audit reports, applies targeted remediation payloads remotely via WinRM, and verifies compliance post-remediation.</p><h3>MY CONTRIBUTION</h3><p>I designed and implemented the end-to-end compliance automation workflow for this project. My contributions included:</p><ul><li><strong>Audit Logic:</strong> Designed the PowerShell audit engine to evaluate AC-7, AU-12, CM-6, and IA-5 against defined security baselines.</li><li><strong>Remediation Engine:</strong> Developed the PowerShell hardening engine to automatically apply targeted configuration changes to the affected endpoint.</li><li><strong>Troubleshooting &amp; Engineering:</strong> Identified and resolved a parsing/type-conversion failure caused by unconfigured values such as Never, making the audit logic more resilient.</li><li><strong>Remote Execution:</strong> Implemented remote deployment and execution using PowerShell Remoting and WinRM from the Domain Controller to CLIENT1.</li><li><strong>Validation &amp; Reporting:</strong> Built the re-audit workflow to verify remediation and generate structured CSV compliance evidence for GRC tracking.</li></ul><p><strong>End-to-end ownership:</strong> <strong>Design → Audit → Diagnose → Remediate → Remote Execution → Validate → Report.</strong></p><h3>The Investigation &amp; Audit Discovery</h3><ol><li><strong>Audit Execution:</strong> Deployed and executed Audit-NIST.ps1 against target endpoint CLIENT1 from the Domain Controller (DOMAINCON).</li><li><strong>Finding Identification:</strong> The audit engine evaluated local security policies and registry paths, returning immediate FAIL statuses for four critical controls:</li></ol><ul><li><strong>AC-7 (Access Control):</strong> Account lockout threshold misconfigured (originally set to Never).</li><li><strong>AU-12 (Audit &amp; Accountability):</strong> PowerShell Script Block Logging disabled or unconfigured.</li><li><strong>CM-6 (Configuration Management):</strong> LLMNR legacy protocol active, posing potential name resolution risks.</li><li><strong>IA-5 (Identification &amp; Authentication):</strong> Minimum password length set to 7 characters (configured baseline requirement: minimum 14 characters.).</li></ul><h3>The Solution &amp; Automation</h3><ul><li><strong>Targeted Hardening Payload:</strong> Developed Remediate-NIST.ps1 leveraging PowerShell Remoting (Invoke-Command) to programmatically adjust account lockout policies, enable PowerShell Script Block Logging via registry keys, disable LLMNR, and enforce minimum password length requirements.</li><li><strong>CSV Reporting:</strong> Configured the audit script to export structured finding objects into CSV format (Audit_Results_CLIENT1.csv) for Governance, Risk, and Compliance (GRC) tracking.</li></ul><h3>The Validation &amp; Result</h3><p>Re-running Audit-NIST.ps1 against CLIENT1 following hardening execution confirmed that all evaluated controls successfully transitioned from FAIL to PASS, establishing a verified baseline aligned with the selected controls.</p><h3>ENVIRONMENT &amp; ARCHITECTURE</h3><p>ARCHITECTURE DIAGRAM</p><pre> ┌─────────────────────────────────────────────────────────────────┐<br> │                      DOMAINCON (Server 2019)                    │<br> │  • Active Directory Domain Services (mydomain.com)               │<br> │  • Script Staging Directory: C:\NIST_800-53_Lab                   │<br> │  • PowerShell Compliance Auditor: Audit-NIST.ps1                │<br> │  • PowerShell Hardening Engine: Remediate-NIST.ps1              │<br> └──────────────┬───────────────────────────────────┬──────────────┘<br>                │                                   │<br>     WinRM (Port 5985)                   SMB (Port 445)<br>    [Remote Script Execution]           [Compliance Data Transfer]<br>                │                                   │<br>                └─────────────────┬─────────────────┘<br>                                  │<br>                                  ▼<br> ┌─────────────────────────────────────────────────────────────────┐<br> │                      CLIENT1 (Windows 10)                       │<br> │  • Managed Domain Endpoint                                      │<br> │  • Evaluated Controls: AC-7, AU-12, CM-6, IA-5                  │<br> │  • Compliance Artifacts Export Path: C:\NIST_800-53_Lab\        │<br> └─────────────────────────────────────────────────────────────────┘</pre><h3>SECURITY &amp; BUSINESS IMPACT</h3><p>The baseline assessment identified four configuration weaknesses that increased the endpoint’s attack surface:</p><ul><li><strong>AC-7 | Brute-Force Exposure:</strong> No account lockout threshold increased the risk of repeated credential-guessing attempts succeeding against user accounts.</li><li><strong>AU-12 | Reduced Threat Visibility:</strong> Disabled PowerShell Script Block Logging limited the ability to detect and investigate malicious PowerShell activity.</li><li><strong>CM-6 | Name Resolution Risk:</strong> Active LLMNR increased exposure to insecure name-resolution attacks and potential credential interception.</li><li><strong>IA-5 | </strong>(Identification &amp; Authentication): Minimum password length was set to 7 characters against the configured baseline requirement of 14 characters.</li></ul><p><strong>Business Impact:</strong> Left unresolved, these configuration gaps could increase the likelihood of account compromise, reduce security monitoring visibility, expose credentials, and weaken the organization’s overall endpoint security posture.</p><p>Risk Reduction: Automated remediation brought all four selected controls from FAIL → PASS, establishing a stronger and verifiably validated endpoint baseline.</p><h3>Initial Compliance Findings Summary</h3><p>Plaintext</p><pre>+------------------+------------------------------+--------+-------------------------------------------------------------+<br>| Control ID       | Family                       | Status | Finding Description                                         |<br>+------------------+------------------------------+--------+-------------------------------------------------------------+<br>| AC-7             | Access Control               | FAIL   | Account lockout threshold is currently set to (Never).      |<br>| AU-12            | Audit &amp; Accountability       | FAIL   | PowerShell Script Block Logging is disabled or unconfigured.|<br>| CM-6             | Configuration Management     | FAIL   | LLMNR protocol is active (Insecure Name Resolution).        |<br>| IA-5             | Identification &amp; Auth        | FAIL   | Minimum password length is 7 characters (Minimum password length is 7 characters against configured baseline of 14.|<br>+------------------+------------------------------+--------+--------------------------</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*5vYXWdRFciqhywt4oZ4Wuw.png" /><figcaption>Initial execution of Audit-NIST.ps1 against CLIENT1 revealing four failing NIST SP 800–53 security controls.</figcaption></figure><h3>AUDIT METHODOLOGY &amp; SCRIPTING DESIGN</h3><p>To establish a repeatable compliance assessment process, Audit-NIST.ps1 was engineered to evaluate specific system parameters, handle type conversion errors gracefully, format console outputs, and export structured audit records.</p><h3>Diagnostic Script Architecture (Audit-NIST.ps1)</h3><p>PowerShell</p><pre>&lt;#<br>.SYNOPSIS<br>    Automated NIST SP 800-53 Rev. 5 Technical Compliance Auditor.<br>.DESCRIPTION<br>    Evaluates AC-7, AU-12, CM-6, and IA-5 controls against a target system <br>    and exports structured audit results to CSV for GRC tracking.<br>#&gt;<br>[CmdletBinding()]<br>Param(<br>    [Parameter(Mandatory=$true)]<br>    [string]$TargetComputer<br>)<br><br>$AuditReport = @()<br><br># 1. AC-7: Access Control (Lockout Threshold)<br>$LockoutThreshold = (net accounts) | Select-String &quot;Lockout threshold&quot;<br># Handle parsing safely...</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*i_EBgTpYPetpNaP19reSLw.png" /><figcaption>Code snippet of Audit-NIST.ps1 showing custom [PSCustomObject] report generation and CSV export logic.</figcaption></figure><h3>Handling Parsing and Type Conversion Errors</h3><p>During initial test audits, parsing legacy command outputs (such as net accounts returning &quot;Never&quot; for account lockout threshold when unconfigured) caused script runtime exceptions (Cannot convert value &quot;Never&quot; to type &quot;System.Int32&quot;).</p><ul><li><strong>Engineering Fix:</strong> Implemented conditional type-checking and try/catch blocks within the audit script to evaluate string representations gracefully before performing numerical comparisons, ensuring robust audit execution across unconfigured endpoints.</li></ul><h3>REMEDIATION ENGINEERING</h3><p>To correct identified compliance deviations without manual GUI interaction, an automated technical hardening payload (Remediate-NIST.ps1) was developed.</p><h3>Hardening Script Architecture (Remediate-NIST.ps1)</h3><p>PowerShell</p><pre>&lt;#<br>.SYNOPSIS<br>    Automated NIST SP 800-53 Rev. 5 Technical Hardening Payload.<br>.DESCRIPTION<br>    Remedies AC-7, AU-12, CM-6, and IA-5 configurations on target systems.<br>#&gt;<br>[CmdletBinding()]<br>Param(<br>    [Parameter(Mandatory=$true)]<br>    [string]$TargetComputer<br>)<br><br>Write-Host &quot;[*] Applying NIST SP 800-53 Technical Hardening to $TargetComputer...&quot; -ForegroundColor Cyan<br><br>Invoke-Command -ComputerName $TargetComputer -ScriptBlock {<br>    # 1. AC-7: Set Local Account Lockout Threshold to 5 attempts<br>    net accounts /lockoutthreshold:5 | Out-Null<br>    Write-Host &quot;[+] AC-7: Lockout threshold configured to 5 attempts.&quot; -ForegroundColor Green<br><br>    # 2. AU-12: Enable PowerShell Script Block Logging<br>    $RegPathAU = &quot;HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging&quot;<br>    if (-not (Test-Path $RegPathAU)) {<br>        New-Item -Path $RegPathAU -Force | Out-Null<br>    }<br>    Set-ItemProperty -Path $RegPathAU -Name &quot;EnableScriptBlockLogging&quot; -Value 1 -Type DWord<br>    Write-Host &quot;[+] AU-12: Enabled PowerShell Script Block Logging.&quot; -ForegroundColor Green<br><br>    # 3. CM-6: Disable LLMNR (Link-Local Multicast Name Resolution)<br>    $RegPathCM = &quot;HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient&quot;<br>    if (-not (Test-Path $RegPathCM)) {<br>        New-Item -Path $RegPathCM -Force | Out-Null<br>    }<br>    Set-ItemProperty -Path $RegPathCM -Name &quot;EnableLLMNR&quot; -Value 0 -Type DWord<br>    Write-Host &quot;[+] CM-6: Disabled LLMNR legacy protocol.&quot; -ForegroundColor Green<br><br>    # 4. IA-5: Enforce Minimum Password Length of 14 Characters<br>    net accounts /minpwlen:14 | Out-Null<br>    Write-Host &quot;[+] IA-5: Enforced minimum password length of 14 characters.&quot; -ForegroundColor Green<br>}<br><br>Write-Host &quot;[*] Hardening Payload Applied Successfully.&quot; -ForegroundColor Cyan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*sQDGzaCav5e5PvUM9WQWbQ.png" /><figcaption>Code snippet of Remediate-NIST.ps1 showing parameter binding, Invoke-Command block structure, and registry modification logic.</figcaption></figure><h3>REMOTE DEPLOYMENT &amp; EXECUTION</h3><p>All auditing and hardening operations were orchestrated from the Domain Controller (DOMAINCON) using PowerShell staging directories and WinRM remoting.</p><h4>1. Preparing the Staging Environment</h4><p>A dedicated directory (C:\NIST_800-53_Lab) was provisioned on DOMAINCON to store compliance scripts and generated reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*6KmRGA7uGevy3AccvXBZTA.png" /><figcaption>PowerShell terminal on DOMAINCON creating the C:\NIST_800–53_Lab staging directory.</figcaption></figure><h4>2. Executing the Hardening Payload</h4><p>Executing Remediate-NIST.ps1 -TargetComputer &quot;CLIENT1&quot; pushed the security configuration changes over WinRM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*O0hiGgGR_LFGfNauHCn8-g.png" /><figcaption>Terminal output showing successful remote execution of Remediate-NIST.ps1 against CLIENT1 applying controls AC-7, AU-12, CM-6, and IA-5.</figcaption></figure><h3>VALIDATION &amp; COMPLIANCE RESULTS</h3><p>Following hardening execution, Audit-NIST.ps1 was re-run against CLIENT1 to verify the new security posture.</p><h4>Post-Remediation Status Table</h4><p>Plaintext</p><pre>+------------------+------------------------------+--------+-------------------------------------------------------------+<br>| Control ID       | Family                       | Status | Finding Description                                         |<br>+------------------+------------------------------+--------+-------------------------------------------------------------+<br>| AC-7             | Access Control               | PASS   | Account lockout threshold set to 5 attempts.                |<br>| AU-12            | Audit &amp; Accountability       | PASS   | PowerShell Script Block Logging is active.                  |<br>| CM-6             | Configuration Management     | PASS   | LLMNR legacy protocol is disabled.                          |<br>| IA-5             | Identification &amp; Auth        | PASS   | Minimum password length is set to 14 characters.            |<br>+------------------+------------------------------+--------+--------------------------------------</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*-iHZkhziPUVgRPq7jBljZg.png" /><figcaption>Post-remediation audit results displaying all controls passing successfully.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*gqS0YF86uPzZRGdC8UjnQA.png" /><figcaption>Full end-to-end audit-remediate-audit workflow console execution log.</figcaption></figure><h4>GRC Tracking Artifacts</h4><p>The audit script automatically exported machine-readable compliance reports to C:\NIST_800-53_Lab\Audit_Results_CLIENT1.csv, enabling integration with broader Governance, Risk, and Compliance (GRC) dashboards and audit trails.</p><h3>SECURITY &amp; LEAST PRIVILEGE CONSIDERATIONS</h3><ul><li><strong>Administrative Boundary:</strong> Hardening scripts utilize elevated registry paths (HKLM:\SOFTWARE\Policies) and local security APIs (net accounts), requiring domain administrative privileges executed securely over authenticated WinRM sessions.</li><li><strong>Non-Disruptive Hardening:</strong> Settings were chosen to align with standard enterprise hardening baselines (CIS / NIST) without disrupting core user workflows or application compatibility.</li></ul><h3>Proposed Production Enhancements</h3><p>To transition this lab automation framework into an enterprise-scale compliance management solution:</p><ol><li><strong>Group Policy / Intune Baseline Mapping:</strong> Translate script-based registry modifications into formal Group Policy Objects (GPO) or Microsoft Intune Endpoint Security settings for continuous automated enforcement.</li><li><strong>Desired State Configuration (DSC):</strong> Implement PowerShell DSC or machine configuration extensions to prevent configuration drift automatically.</li><li><strong>Centralized Log Aggregation:</strong> Forward compliance audit event logs and script execution telemetry to a SIEM platform (e.g., Microsoft Sentinel or Splunk) for real-time security monitoring.</li></ol><h3>SKILLS DEMONSTRATED</h3><ul><li><strong>PowerShell:</strong> Security scripting, automation, remote execution, structured reporting</li><li><strong>NIST SP 800–53:</strong> Control assessment, control mapping, compliance validation</li><li><strong>Windows Security:</strong> Security baselines, registry configuration, authentication controls, hardening</li><li><strong>Active Directory:</strong> Domain-based Windows administration and endpoint management</li><li><strong>WinRM:</strong> Secure remote PowerShell execution and configuration management</li><li><strong>GRC &amp; Compliance:</strong> Compliance evidence, audit reporting, control tracking, CSV-based artifacts</li><li><strong>Compliance Automation:</strong> Automated audit → remediation → validation workflow</li><li><strong>Vulnerability &amp; Configuration Assessment:</strong> Baseline evaluation and identification of security misconfigurations</li><li><strong>Remediation Engineering:</strong> Targeted security hardening and post-remediation verification</li></ul><h3>CONCLUSION</h3><p>This project demonstrates the practical application of PowerShell to automate Windows endpoint compliance assessment, remediation, and validation against NIST SP 800–53 controls. The final engineering outcome was a repeatable workflow that successfully remediated and verified <strong>4/4 security controls from FAIL → PASS</strong>, with structured compliance evidence available for GRC tracking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d45d106e91b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Endpoint & LOB Application Dependency Engineering: Diagnosing and Remediating Registry and…]]></title>
            <link>https://medium.com/@abiodun475/windows-endpoint-lob-application-dependency-engineering-diagnosing-and-remediating-registry-and-73becaa1685b?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/73becaa1685b</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[endpoint-security]]></category>
            <category><![CDATA[endpoint-management]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[it-support]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 12:56:15 GMT</pubDate>
            <atom:updated>2026-08-11T12:56:15.094Z</atom:updated>
            <content:encoded><![CDATA[<h3>Windows Endpoint &amp; LOB Application Dependency Engineering: Diagnosing and Remediating Registry and DLL Failures</h3><h3>EXECUTIVE SUMMARY</h3><h4>The Problem</h4><p>A standard domain user (mraper) attempting to launch a critical Line-of-Business (LOB) application, CorpFinanceTool, on a managed Windows 10 endpoint (CLIENT1) encountered an immediate initialization failure. The application failed during its bootstrap sequence, returning a configuration access error that prevented standard non-administrative users from launching the software.</p><h4>The Objective</h4><p>Perform a structured endpoint and application troubleshooting engagement: investigate the OS-level execution chain, isolate the underlying system defects, restore application startup under a standard user context adhering to least-privilege principles, and engineer a repeatable PowerShell automation script for remote deployment over Windows Remote Management (WinRM).</p><h4>The Investigation &amp; Sequential Discovery</h4><ol><li><strong>Privilege Context Comparison:</strong> Verified that the application initialized successfully under local administrator credentials but failed consistently under standard domain user credentials. The successful administrator execution narrowed the investigation toward user-context and permission differences.</li><li><strong>System Call Tracing:</strong> Executed <strong>Sysinternals Process Monitor (</strong><strong>ProcMon)</strong> filtered for process activity associated with powershell.exe and CorpFinanceTool. Traces captured ACCESS DENIED on RegOpenKey calls when standard user tokens queried HKLM:\SOFTWARE\CorpFinanceTool. Subsequent registry ACL inspection confirmed that standard users lacked read access.</li><li><strong>Secondary Defect Discovery:</strong> Resolving the initial registry blocker revealed a secondary startup-blocking defect: a missing dynamic link library (CoreNativeEngine.dll) in the local application binary path.</li></ol><h4>The Solution &amp; Automation</h4><ul><li><strong>Registry Permission Remediation:</strong> Updated the Access Control List (ACL) on HKLM:\SOFTWARE\CorpFinanceTool using PowerShell&#39;s System.Security.AccessControl API to grant narrow ReadKey permissions to the standard user context.</li><li><strong>Dependency Restoration:</strong> Restored the missing CoreNativeEngine.dll module into C:\Program Files\CorpFinanceTool\bin\ from the staging location.</li><li><strong>Remote Automation:</strong> Combined the remediation steps into an automated PowerShell script (Fix-CorpFinanceTool.ps1) and executed it remotely from the Domain Controller (DOMAINCON) against CLIENT1 via <strong>WinRM (</strong><strong>Invoke-Command)</strong>.</li></ul><h4>The Validation &amp; Result</h4><p>Application startup and bootstrap validation succeeded directly within the standard user context (mraper), returning Application launched Successfully!. Post-remediation ProcMon traces confirmed clean SUCCESS outcomes for all registry query operations. Startup recovery was achieved without adding the user to the local Administrators group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRvIC1cF3x1YAS8o8nWsIQ.png" /></figure><h3>ENVIRONMENT &amp; ARCHITECTURE</h3><p>ARCHITECTURE DIAGRAM</p><pre> ┌─────────────────────────────────────────────────────────────────┐<br> │                      DOMAINCON (Server 2019)                    │<br> │  • Active Directory Domain Services (mydomain.com)               │<br> │  • Group Policy Management (GPO_ENDPOINT_OPERATIONAL_BASELINE)  │<br> │  • Staging Location (\\DOMAINCON\SoftwareShare)                 │<br> └──────────────┬───────────────────────────────────┬──────────────┘<br>                │                                   │<br>     WinRM (Port 5985)                   SMB (Port 445)<br>    [Remote Script Execution]           [Dependency Retrieval]<br>                │                                   │<br>                └─────────────────┬─────────────────┘<br>                                  │<br>                                  ▼<br> ┌─────────────────────────────────────────────────────────────────┐<br> │                      CLIENT1 (Windows 10)                       │<br> │  • Managed Domain Endpoint                                      │<br> │  • Target Application: CorpFinanceTool                          │<br> │  • Standard User Context: mraper (Domain Users)                 │<br> │  • Target Registry: HKLM:\SOFTWARE\CorpFinanceTool              │<br> │  • Binary Directory: C:\Program Files\CorpFinanceTool\bin\      │<br> └─────────────────────────────────────────────────────────────────┘</pre><h3>System Tools &amp; Role Summary</h3><pre>+-----------------------+------------------------------------------------------------------------------------+<br>| Tool / Technology     | Administrative Purpose                                                             |<br>+-----------------------+------------------------------------------------------------------------------------+<br>| Active Directory (AD) | Centralized identity management and domain user authentication (mydomain\mraper).  |<br>| Group Policy (GPMC)   | Domain-wide enforcement of WinRM service configuration and host firewall rules.    |<br>| WinRM / PS Remoting   | Remote, non-interactive administrative execution (Invoke-Command).                |<br>| Sysinternals ProcMon  | OS-level application call tracing and registry access monitoring.                  |<br>| PowerShell 5.1        | Automation scripting, registry ACL modification, and state checking.               |<br>| icacls.exe / net share| NTFS file-system permission auditing and staging share management.                 |<br>+-----------------------+------------------------------------------------------------------------------------+</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*zvwI9BEAt8lb709OXQ2_2A.png" /><figcaption>Active Directory Domain Infrastructure and Group Policy Management Console showing mydomain.com forest</figcaption></figure><h3>INCIDENT / BUSINESS IMPACT</h3><p>The LOB finance application, CorpFinanceTool, stopped initializing for standard domain users on workstation CLIENT1. Users attempting to open the tool received an immediate terminal error during execution:</p><pre>PS C:\Users\mraper&gt; powershell.exe -ExecutionPolicy Bypass -File &quot;C:\Program Files\CorpFinanceTool\Launch.ps1&quot;<br>C:\Program Files\CorpFinanceTool\Launch.ps1 : CRITICAL: Cannot access configuration key ().<br>    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException<br>    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Launch.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*LYRB1SZezqZ1okSaG9kxJw.png" /><figcaption>Terminal output on CLIENT1 showing application launch failure under standard user mraper context.</figcaption></figure><p><em>Note on Execution Policy:</em> The explicit invocation using -ExecutionPolicy Bypass was used as a convenience in the test environment to execute local diagnostic wrappers. Production deployment models rely on signed scripts and enterprise execution policies.</p><h3>Operational Considerations</h3><ul><li><strong>User Context Boundary:</strong> The application launched normally when executed by a local administrator, but failed consistently when executed by standard user mraper.</li><li><strong>Avoidance of Insecure Workarounds:</strong> Frontline support initially considered adding affected users to the local Administrators group. This was rejected because elevating user rights weakens the endpoint security boundary and violates operational baselines.</li><li><strong>Technical Goal:</strong> Isolate the exact system resources denying access to the standard user context, apply a targeted permission fix, restore missing dependencies, and automate the fix for remote deployment without granting local admin rights.</li></ul><h3>TROUBLESHOOTING METHODOLOGY</h3><p>The investigation followed a structured decision workflow based on hypothesis testing, privilege comparison, and sequential validation.</p><p>TROUBLESHOOTING DECISION PROCESS</p><pre>                       Application Failure Reported<br>                                    │<br>                                    ▼<br>                     Execute as Administrator Account<br>                                    │<br>                  ┌─────────────────┴─────────────────┐<br>                  │                                   │<br>              [ Fails ]                           [ Succeeds ]<br>                  │                                   │<br>                  ▼                                   ▼<br>      Investigate Package / OS             Investigate User Context &amp; <br>      Installation Integrity               Permission Differences<br>                                                      │<br>                                                      ▼<br>                                           Run Sysinternals ProcMon<br>                                           Filter: powershell.exe<br>                                                      │<br>                                                      ▼<br>                                           Identify OS Call Failure<br>                                           Result: ACCESS DENIED on RegOpenKey<br>                                                      │<br>                                                      ▼<br>                                            Inspect Registry ACL<br>                                           Missing ReadKey for User<br>                                                      │<br>                                                      ▼<br>                                           Apply ReadKey Permission<br>                                                      │<br>                                                      ▼<br>                                           Re-test Application<br>                                                      │<br>                                                      ▼<br>                                           Identify Secondary Defect<br>                                           Missing DLL Component<br>                                                      │<br>                                                      ▼<br>                                           Restore Required File<br>                                                      │<br>                                                      ▼<br>                                           Validate Bootstrap<br>                                           Outcome: SUCCESS</pre><h3>Hypotheses Tested</h3><pre>+------------------------------------+------------------------------------+------------------------------------+------------------------------------+<br>| Hypothesis                         | Test Action                        | Result                             | Conclusion                         |<br>+------------------------------------+------------------------------------+------------------------------------+------------------------------------+<br>| 1. App installation is corrupt     | Run Launch.ps1 in elevated session | App passed registry stage cleanly  | Ruled Out: Installation intact     |<br>| 2. User lacks registry read access | Execute Launch.ps1 under ProcMon   | ProcMon captured ACCESS DENIED     | Confirmed (Defect 1): Missing ACL  |<br>| 3. Required binary missing         | Trace app after granting ACL fix   | Failed at CoreNativeEngine.dll check| Confirmed (Defect 2): Missing DLL  |<br>| 4. Full OS/App reinstall required  | Evaluate reinstallation necessity   | Targeted ACL + DLL fix succeeded   | Ruled Out: Reinstallation unnecessary|<br>+------------------------------------+------------------------------------+------------------------------------+------------------------------------+</pre><h3>PROCMON EVIDENCE</h3><h4>Diagnostic Action &amp; Rationale</h4><ul><li><strong>Action:</strong> Downloaded and extracted Sysinternals Suite to staging share, then launched Process Monitor (ProcMon64.exe) on CLIENT1.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*7T5It1EQzSdVACTQNEqF7Q.png" /><figcaption>Downloading Sysinternals Suite utility package.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*kTIssmUWRMp1K-0P6vxuGA.png" /><figcaption>Sysinternals Suite archive extraction and staging.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*fy6qvzZQNaBInAI-k9yu9g.png" /><figcaption>Sysinternals Process Monitor execution and license acceptance on CLIENT1.</figcaption></figure><p><strong>Capture Filters Applied:</strong></p><ol><li>Process Name is powershell.exe -&gt; Include</li><li>Path contains CorpFinanceTool -&gt; Include</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*m74RzAf--TRNu934fbH1Vg.png" /><figcaption>Configuring Sysinternals Process Monitor filter rules for powershell.exe.</figcaption></figure><p><strong>Role of ProcMon:</strong> ProcMon recorded the underlying RegOpenKey system call failure returning ACCESS DENIED. <em>Crucially, ProcMon proved where access was being blocked at runtime, but did not directly prove the complete security descriptor configuration.</em> Direct inspection of the registry ACL via PowerShell (Get-Acl) was required to confirm the missing explicit access rules.</p><h3>Evidence Captured</h3><pre>Time        Process Name    PID   Operation    Path                            Result        Detail<br>──────      ────────────    ────  ─────────    ────                            ──────        ──────<br>07:29:22    powershell.exe  5536  RegOpenKey   HKLM\SOFTWARE\CorpFinanceTool   ACCESS DENIED Desired Access: Read</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*m9eU3S58UR3cYn16JAKC3A.png" /><figcaption>Process Monitor event capture listing repeated ACCESS DENIED results for powershell.exe querying HKLM\SOFTWARE\CorpFinanceTool.</figcaption></figure><h3>Evidence → Interpretation → Action</h3><pre>┌─────────────────────────────────────────────────────────────────────────┐<br> │ EVIDENCE (ProcMon Trace):                                               │<br> │ Process &#39;powershell.exe&#39; returned &#39;ACCESS DENIED&#39; on &#39;RegOpenKey&#39;       │<br> │ target: HKLM\SOFTWARE\CorpFinanceTool (Desired Access: Read)            │<br> └────────────────────────────────────┬────────────────────────────────────┘<br>                                      │<br>                                      ▼<br> ┌─────────────────────────────────────────────────────────────────────────┐<br> │ INTERPRETATION (ACL Inspection via Get-Acl):                            │<br> │ Security descriptor lacks read access for non-administrative tokens.    │<br> └────────────────────────────────────┬────────────────────────────────────┘<br>                                      │<br>                                      ▼<br> ┌─────────────────────────────────────────────────────────────────────────┐<br> │ ACTION:                                                                 │<br> │ Update the registry ACL to grant &#39;ReadKey&#39; permissions to standard      │<br> │ users without granting write access or local administrator rights.      │<br> └─────────────────────────────────────────────────────────────────────────┘</pre><h3>ROOT CAUSE</h3><p>The startup failure was caused by two startup-blocking defects discovered sequentially:</p><pre>+----------------------------------------------------------------------------------------------------+<br>|                                    ROOT CAUSE DETERMINATION                                        |<br>+----------------------------------------------------------------------------------------------------+<br>| 1. Primary Defect: Misconfigured Registry Access Control List (ACL)                                 |<br>|    • Resource: HKLM:\SOFTWARE\CorpFinanceTool                                                      |<br>|    • Condition: Permissions were restricted exclusively to Administrators and SYSTEM.             |<br>|    • Impact: Standard user tokens received ACCESS DENIED during configuration lookups.            |<br>|                                                                                                    |<br>| 2. Secondary Defect: Missing Application Runtime Component                                         |<br>|    • Resource: C:\Program Files\CorpFinanceTool\bin\CoreNativeEngine.dll                           |<br>|    • Condition: Required dynamic library was absent from the installation directory.               |<br>|    • Impact: The bootstrapper detected that the required DLL was absent during pre-flight checks. |<br>+----------------------------------------------------------------------------------------------------+</pre><h3>REMEDIATION ENGINEERING</h3><h4>Infrastructure &amp; Staging Baseline Setup</h4><p>To prepare for remote remediation, the staging deployment folder and Group Policy baseline were established.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*ZCVYAxjQqPv7fIXjpfLmbQ.png" /><figcaption>SoftwareShare folder sharing properties on DOMAINCON (\DOMAINCON\SoftwareShare).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*494e8OvlK0dfI4OgsZcO2Q.png" /><figcaption>Granting deployment share permissions using icacls.exe.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*03mVRqJ3sg-X-k4ZctnMEQ.png" /><figcaption>Verifying net share configuration for SoftwareShare.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*Fel9P2A_k54x-fd62MPhKQ.png" /><figcaption>Verifying client accessibility to SoftwareShare from CLIENT1.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*fPIC31doOplmO2fZ813acA.png" /><figcaption>Creating GPO_ENDPOINT_OPERATIONAL_BASELINE in Group Policy Management Console.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*9QS1-V2aRcr4yviLfLiH8A.png" /><figcaption>Group Policy Management Editor showing Computer Configuration policies.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*wNy8kxgeVamKh0PGksEwCQ.png" /><figcaption>Configuring WinRM Service policies in Group Policy Management Editor.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*Iej_CAn8_aNtlS8ACPc5rA.png" /><figcaption>Group Policy Management Editor showing Windows Defender Firewall overview.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*Ty_DaD__Ih-iABgtgVOeeg.png" /><figcaption>New Inbound Firewall Rule Wizard selecting predefined WinRM rule.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*mRFNBBqGWH3mhwgneKU2mg.png" /><figcaption>Executing gpupdate /force on CLIENT1 to enforce GPO baseline.</figcaption></figure><h3>Script Engineering &amp; Idempotency Logic</h3><p>To ensure production-grade reliability, the remediation script evaluates whether an applicable Allow ACE already provides the required read capability and avoids adding a redundant rule:</p><ul><li><strong>State Evaluation:</strong> Evaluates identity, access rule type (Allow), inheritance, and bitwise/mask rights to ensure ReadKey access is present without making redundant ACL writes.</li><li><strong>Timestamped Non-Overwriting Backup:</strong> Generates an immutable, timestamped ACL backup file (CorpFinanceTool_Acl_Backup_&lt;Timestamp&gt;.xml) only if a backup does not already exist, preserving the true pre-remediation state across repeated executions.</li><li><strong>Complete State Validation:</strong> Evaluates <em>both</em> post-remediation registry ACLs and file presence before returning success.</li><li><strong>Structured Error Handling:</strong> Uses $ErrorActionPreference = &quot;Stop&quot; and try/catch blocks to halt execution immediately on failure.</li></ul><h3>POWERSHELL AUTOMATION</h3><h4>Script Development</h4><p>The initial application registry environment and wrapper script were staged, followed by the authoring of Fix-CorpFinanceTool.ps1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*QgQozoo5xpvPZ5cF7hNndg.png" /><figcaption>Staging application registry entries and creating initial application bootstrapper.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*pSeETrUD6WfYMCp2eWxbBA.png" /><figcaption>Reviewing application bootstrap logic and permissions structure.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*Y913N9iskjSSH662eSPzQA.png" /><figcaption>Authoring and saving Fix-CorpFinanceTool.ps1 in Notepad.</figcaption></figure><h3>Script Source Code (Fix-CorpFinanceTool.ps1)</h3><p>Powershell</p><pre>&lt;#<br>.SYNOPSIS<br>    Automated Endpoint Remediation Script for CorpFinanceTool.<br>.DESCRIPTION<br>    Audits/updates registry ACLs on HKLM:\SOFTWARE\CorpFinanceTool, restores <br>    missing runtime dependencies, and performs post-remediation checks.<br>#&gt;</pre><pre>[CmdletBinding()]<br>Param(<br>    [string]$RegistryPath = &quot;HKLM:\SOFTWARE\CorpFinanceTool&quot;,<br>    [string]$AppBinDir   = &quot;C:\Program Files\CorpFinanceTool\bin&quot;,<br>    [string]$SourceDLL   = &quot;\\DOMAINCON\SoftwareShare\CoreNativeEngine.dll&quot;,<br>    [string]$BackupDir   = &quot;C:\ProgramData\CorpFinanceTool_Backups&quot;<br>)</pre><pre>$ErrorActionPreference = &quot;Stop&quot;</pre><pre>Write-Host &quot;[*] Starting Endpoint Remediation for CorpFinanceTool...&quot; -ForegroundColor Cyan</pre><pre>try {<br>    # 1. Audit and Remediate Registry Access Control List (ACL)<br>    if (Test-Path $RegistryPath) {<br>        Write-Host &quot;[+] Auditing Registry Permissions on $RegistryPath...&quot; -ForegroundColor Yellow<br>        $Acl = Get-Acl -Path $RegistryPath</pre><pre>        # Preserve original pre-modification ACL state (Non-Overwriting Timestamped Backup)<br>        if (-not (Test-Path $BackupDir)) {<br>            New-Item -Path $BackupDir -ItemType Directory -Force | Out-Null<br>        }<br>        <br>        $ExistingBackups = Get-ChildItem -Path $BackupDir -Filter &quot;Acl_Backup_*.xml&quot;<br>        if ($ExistingBackups.Count -eq 0) {<br>            $Timestamp = Get-Date -Format &quot;yyyyMMdd_HHmmss&quot;<br>            $AclBackupPath = Join-Path -Path $BackupDir -ChildPath &quot;Acl_Backup_$Timestamp.xml&quot;<br>            $Acl | Export-Clixml -Path $AclBackupPath -Force<br>            Write-Host &quot;[+] Pre-modification ACL backed up to $AclBackupPath.&quot; -ForegroundColor Gray<br>        } else {<br>            Write-Host &quot;[SKIP] Pre-existing baseline ACL backup preserved.&quot; -ForegroundColor Gray<br>        }</pre><pre>        # Evaluate if an applicable Allow ACE already satisfies the ReadKey requirement<br>        $HasReadKey = $false<br>        foreach ($Rule in $Acl.Access) {<br>            if ($Rule.IdentityReference.Value -match &quot;Domain Users&quot; -and <br>                $Rule.AccessControlType -eq &quot;Allow&quot; -and <br>                (($Rule.RegistryRights -band [System.Security.AccessControl.RegistryRights]::ReadKey) -eq [System.Security.AccessControl.RegistryRights]::ReadKey)) {<br>                $HasReadKey = $true<br>                break<br>            }<br>        }</pre><pre>        if (-not $HasReadKey) {<br>            Write-Host &quot;[+] Applying ReadKey permissions for &#39;Domain Users&#39;...&quot; -ForegroundColor Yellow<br>            $Ar = New-Object System.Security.AccessControl.RegistryAccessRule(<br>                &quot;Domain Users&quot;,<br>                &quot;ReadKey&quot;,<br>                &quot;ContainerInherit, ObjectInherit&quot;,<br>                &quot;None&quot;,<br>                &quot;Allow&quot;<br>            )<br>            $Acl.AddAccessRule($Ar)<br>            Set-Acl -Path $RegistryPath -AclObject $Acl<br>            Write-Host &quot;[SUCCESS] Registry ACL updated successfully.&quot; -ForegroundColor Green<br>        } else {<br>            Write-Host &quot;[SKIP] Required registry read permissions already satisfied.&quot; -ForegroundColor Gray<br>        }<br>    } else {<br>        throw &quot;Target registry path $RegistryPath does not exist.&quot;<br>    }</pre><pre>    # 2. Remediate Missing Binary Component<br>    if (-not (Test-Path $AppBinDir)) {<br>        Write-Host &quot;[+] Creating missing application directory: $AppBinDir...&quot; -ForegroundColor Yellow<br>        New-Item -Path $AppBinDir -ItemType Directory -Force | Out-Null<br>    }</pre><pre>    $TargetDLL = Join-Path -Path $AppBinDir -ChildPath &quot;CoreNativeEngine.dll&quot;<br>    if (-not (Test-Path $TargetDLL)) {<br>        Write-Host &quot;[+] Restoring missing application dependency from $SourceDLL...&quot; -ForegroundColor Yellow<br>        if (Test-Path $SourceDLL) {<br>            Copy-Item -Path $SourceDLL -Destination $TargetDLL -Force<br>            Write-Host &quot;[SUCCESS] Dependency CoreNativeEngine.dll restored.&quot; -ForegroundColor Green<br>        } else {<br>            throw &quot;Source dependency $SourceDLL was not found on staging share.&quot;<br>        }<br>    } else {<br>        Write-Host &quot;[SKIP] Required application dependency is already present.&quot; -ForegroundColor Gray<br>    }</pre><pre>    # 3. Post-Remediation State Verification<br>    Write-Host &quot;[+] Performing Post-Remediation Verification...&quot; -ForegroundColor Yellow<br>    $PostAcl = Get-Acl -Path $RegistryPath<br>    <br>    $ValidAcl = $false<br>    foreach ($Rule in $PostAcl.Access) {<br>        if ($Rule.IdentityReference.Value -match &quot;Domain Users&quot; -and <br>            $Rule.AccessControlType -eq &quot;Allow&quot; -and <br>            (($Rule.RegistryRights -band [System.Security.AccessControl.RegistryRights]::ReadKey) -eq [System.Security.AccessControl.RegistryRights]::ReadKey)) {<br>            $ValidAcl = $true<br>            break<br>        }<br>    }<br>    <br>    $ValidFile = Test-Path -LiteralPath $TargetDLL</pre><pre>    if ($ValidAcl -and $ValidFile) {<br>        Write-Host &quot;[FINAL RESULT] Endpoint remediation completed and verified.&quot; -ForegroundColor Green<br>    } else {<br>        throw &quot;Post-remediation state verification failed. ACL Valid: $ValidAcl | File Valid: $ValidFile&quot;<br>    }</pre><pre>} catch {<br>    Write-Error &quot;[FATAL ERROR] Remediation failed: $($_.Exception.Message)&quot;<br>    exit 1<br>}</pre><h3>REMOTE DEPLOYMENT / WINRM</h3><p>The remediation script was executed remotely from DOMAINCON against CLIENT1 using PowerShell Remoting over WinRM (Invoke-Command):</p><pre>PS C:\Windows\system32&gt; Invoke-Command -ComputerName &quot;CLIENT1&quot; -FilePath &quot;C:\Users\a-aransiola\Desktop\SoftwareShare\Fix-CorpFinanceTool.ps1&quot;</pre><pre>[*] Starting Endpoint Remediation for CorpFinanceTool...<br>[+] Auditing Registry Permissions on HKLM:\SOFTWARE\CorpFinanceTool...<br>[+] Pre-modification ACL backed up to C:\ProgramData\CorpFinanceTool_Backups\Acl_Backup_20260811_044500.xml.<br>[+] Applying ReadKey permissions for &#39;Domain Users&#39;...<br>[SUCCESS] Registry ACL updated successfully.<br>[+] Restoring missing application dependency from \\DOMAINCON\SoftwareShare\CoreNativeEngine.dll...<br>[SUCCESS] Dependency CoreNativeEngine.dll restored.<br>[+] Performing Post-Remediation Verification...<br>[FINAL RESULT] Endpoint remediation completed and verified.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*QQd5ink_P_YxUOmLQA4wdw.png" /><figcaption>Remote execution output from DOMAINCON invoking Fix-CorpFinanceTool.ps1 against CLIENT1 via WinRM.</figcaption></figure><h3>WinRM Transport &amp; Security Context</h3><ul><li><strong>Transport Configuration:</strong> WinRM was enabled over default port 5985 (HTTP transport) via GPO (GPO_ENDPOINT_OPERATIONAL_BASELINE).</li><li><strong>Security Nuance:</strong> Opening port 5985 alone does not constitute a complete security boundary. In a domain environment, WinRM can use Kerberos authentication, while the WS-Man/WinRM protocol provides message-level protection. HTTPS provides an additional TLS transport layer and may be preferred where organizational security requirements call for it.</li></ul><h3>VALIDATION &amp; RESULTS</h3><h4>Validation Matrix</h4><pre>+-----------------------+---------------------------------------------------+------------------------------------+--------+<br>| Verification Step     | Expected Result                                   | Observed Result                    | Status |<br>+-----------------------+---------------------------------------------------+------------------------------------+--------+<br>| Registry Access Check | Standard user can query HKLM:\SOFTWARE\...        | Get-ItemPropertyValue succeeded     | PASS   |<br>| File Presence Check   | CoreNativeEngine.dll present in bin folder        | Test-Path returned $True           | PASS   |<br>| Bootstrap Sequence    | Launch.ps1 completes pre-flight checks            | Returned App launched Successfully!| PASS   |<br>| User Context          | Execution succeeds under mraper token             | Verified under non-admin user      | PASS   |<br>| Privilege Scope       | User remains in standard Domain Users group       | No local admin elevation required  | PASS   |<br>+-----------------------+---------------------------------------------------+------------------------------------+--------+</pre><h3>Functional Re-Testing</h3><p>Resuming the user session on CLIENT1 under standard domain user mraper confirmed successful bootstrap sequence completion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*7CIFZQaPrEdSh5P7q2raTw.png" /><figcaption>Testing application launch failure attempts on CLIENT1 prior to remediation.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*H3OMDzVxbLYLjYUAUMSeDQ.png" /><figcaption>Verifying Hostname is CLIENT1 then Successful application initialization output (“Application launched Successfully!”) under standard user context mraper post-remediation.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*YvVWepqTn-U5TnpbBCTF2g.png" /><figcaption>SUCCESS</figcaption></figure><pre>PS C:\Users\mraper&gt; powershell.exe -ExecutionPolicy Bypass -File &quot;C:\Program Files\CorpFinanceTool\Launch.ps1&quot;<br>Application launched Successfully!</pre><p><em>Scope Note:</em> Evidence proves that application startup and bootstrap validation succeeded under the standard-user context. Functional testing of internal application business workflows would occur during post-remediation User Acceptance Testing (UAT).</p><h3>SECURITY / LEAST PRIVILEGE</h3><pre>+----------------------------------------------------------------------------------------------------+<br>|                                    LEAST-PRIVILEGE ANALYSIS                                        |<br>+----------------------------------------------------------------------------------------------------+<br>| 1. Controlled Scope in Lab Demonstration:                                                          |<br>|    • Granted &#39;ReadKey&#39; to &#39;Domain Users&#39; on HKLM:\SOFTWARE\CorpFinanceTool.                       |<br>|    • Avoided adding standard users to local &#39;Administrators&#39; group.                                |<br>|    • Maintained strict read-only access (preventing registry modification/deletion by users).      |<br>|                                                                                                    |<br>| 2. Production Security Scoping Recommendation:                                                     |<br>|    • While &#39;Domain Users&#39; provided read-only access in this lab demonstration, production scoping  |<br>|      should target a dedicated application security group (e.g., &#39;SG_CorpFinanceTool_Users&#39;).     |<br>|    • Ensures access is restricted exclusively to personnel who require the application.            |<br>+----------------------------------------------------------------------------------------------------+</pre><h3>PRODUCTION IMPROVEMENTS</h3><p>To transition this workflow from a demonstrated administrative fix into a production enterprise baseline, the following enhancements should be implemented:</p><pre>┌──────────────────────────────────────────────────────────────────────────────────────────────────┐<br>│                               PRODUCTION EVOLUTION ROADMAP                                       │<br>├──────────────────────────────────────────────────────────────────────────────────────────────────┤<br>│ 1. Scoped Security Groups                                                                        │<br>│    Assign registry read permissions to a dedicated application security group                     │<br>│    (&#39;SG_CorpFinanceTool_Users&#39;) rather than broad &#39;Domain Users&#39;.                                │<br>│                                                                                                  │<br>│ 2. WinRM Transport Hardening &amp; Endpoint Management                                               │<br>│    Enforce HTTPS (Port 5986) with valid PKI certificates, scope host firewall rules to management│<br>│    subnets, evaluate Just Enough Administration (JEA), or deploy fixes via Intune / MECM.        │<br>│                                                                                                  │<br>│ 3. File Integrity &amp; Package Validation                                                           │<br>│    Validate dependency binaries using SHA-256 hash checks, Authenticode signature verification,  │<br>│    or approved package manifests before copying files to endpoint systems.                       │<br>│                                                                                                  │<br>│ 4. Exact Rollback via Saved Security Descriptors                                                 │<br>│    Execute rollback by importing the exact pre-modification ACL XML backup via Import-Clixml     │<br>│    ($AclBackupPath) rather than attempting manual rule removal.                                  │<br>└───────────────────────────────────────────────────────────────────────</pre><h3>CONCLUSION</h3><p>This case study demonstrates a practical approach to enterprise IT support and endpoint administration: reproduce the failure across privilege contexts, gather OS-level diagnostic evidence using tools like ProcMon, isolate sequential defects, apply least-privilege configuration fixes, automate remediation with PowerShell, execute remotely over WinRM, and validate successful recovery from the standard user context.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73becaa1685b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing a Centralized Windows Logging Pipeline with Windows Event Forwarding and Splunk]]></title>
            <link>https://medium.com/@abiodun475/designing-a-centralized-windows-logging-pipeline-with-windows-event-forwarding-and-splunk-d50198d01707?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/d50198d01707</guid>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[windows-event-logs]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 23:11:16 GMT</pubDate>
            <atom:updated>2026-07-10T23:11:16.252Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern security operations, visibility is the bedrock of defense. For security engineers and penetration testers alike, a defensible network infrastructure demands robust, centralized log aggregation that cannot be easily blinded by an adversary.</p><p>This case study documents the design, deployment, troubleshooting, and validation of a centralized Windows logging pipeline using <strong>Windows Event Forwarding (WEF) </strong>and<strong> Splunk Enterprise</strong>. The architecture centralizes Windows event collection while minimizing endpoint management overhead through native Windows capabilities.</p><p>This implementation was completed in a Windows Active Directory lab consisting of one domain controller, three Windows 11 clients, one Windows Event Collector, and a standalone Splunk Enterprise server.</p><h3>Executive Summary &amp; Business Impact</h3><p>Relying on local endpoint event logs creates a severe security blind spot: if an adversary compromises a machine, they can clear local event logs (wevtutil cl) to erase their tracks. Centralized log aggregation mitigates this risk by streaming event logs off the endpoint in near-real-time.</p><h3>Metrics &amp; Engineering Outcomes</h3><ul><li><strong>Zero-Agent Overhead:</strong> By implementing Windows Event Forwarding (WEF) over WinRM, I eliminated the need to deploy a log collection agent on each Windows endpoint for native event collection. This reduced endpoint management overhead while keeping client resource utilization minimal.</li><li><strong>Tamper-Evident Security Posture:</strong> Using the <strong>Minimize Latency</strong> subscription profile, events were typically forwarded within approximately one second of generation during testing. Even if an attacker cleared the local event log, events already forwarded to the collector remained available for investigation.</li><li><strong>Pipeline Scalability:</strong> Consolidating domain telemetry onto a central Windows Event Collector (WEC) before shipping upstream via a single local Splunk Universal Forwarder optimizes network stream performance and simplifies indexer ingress structures.</li></ul><h3>Architectural Design &amp; Log Pipeline</h3><p>I implemented a three-tier logging pipeline consisting of Windows clients, a Windows Event Collector, and a Splunk Enterprise indexer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_wFFewTzwXusIO4zJPOsA.png" /></figure><h3>My Structural Contributions</h3><ul><li><strong>The Endpoint Tier:</strong> I configured native Windows logs to be monitored locally and pushed upstream via custom Group Policy Object (GPO) triggers.</li><li><strong>The Collector Tier (WEC):</strong> I initialized a centralized Windows Event Collector (DomainCon.mydomain.com) to listen for inbound HTTP/WS-Man log traffic.</li><li><strong>The Forwarder Tier:</strong> I deployed a native Splunk Universal Forwarder to monitor the local forwarded log paths on the collector and stream compressed, encrypted traffic to the SIEM tier on port 9997.</li><li><strong>The SIEM / Indexing Tier:</strong> I deployed Splunk Enterprise on a dedicated Windows Server VM configured as both the Search Head and Indexer.</li></ul><h3>Engineering Implementation Walkthrough</h3><h4>Tier 1: Preparing the SIEM Ingestion Layer</h4><p>I initiated the project by exposing a dedicated receiving port within Splunk Enterprise to ensure the indexing tier could accept inbound forwarder traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*qkipY1U3KH7R7LdV5u0IlQ.png" /><figcaption>Activating the dedicated Splunk network listener on port 9997.</figcaption></figure><p>I verified that the listener status was toggled to <strong>Enabled</strong> to guarantee that data streams targeting this indexer could clear the network pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*ZLty-don11su_DZWVkqW3A.png" /><figcaption>Configured Splunk Enterprise for receiving data forwarded</figcaption></figure><h4>Tier 2: Provisioning the Splunk Universal Forwarder</h4><p>Next, I deployed the lightweight Splunk Universal Forwarder on the central aggregation node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*T9Jgb-V2GZHhrd8lJoHyDQ.png" /><figcaption>Explicitly provisioning distinct administrative credentials for local forwarder daemon management</figcaption></figure><p>Following least-privilege access guidelines, I provisioned a dedicated service account (svc_splunk) to cleanly isolate execution rights and restrict local system privilege abuse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*PtyqI69R23K2-Y7LMXBs3w.png" /><figcaption>Selecting baseline event channels (Security, System, Application, and AD Monitoring) alongside host performance metrics.</figcaption></figure><p>I configured the agent to selectively pull vital operational channels alongside host resource statistics to maintain full infrastructure visibility:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*xn860Cu_rvGX6BMRxErFOw.png" /></figure><p>I bound the forwarder configuration directly to the testing interfaces, ensuring communications locked tightly onto port 8080 (Deployment Server) and port 9997 (Indexer receiving tier):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*2kZk0zHtJ_B2yl1CDToZog.png" /><figcaption>Binding the Universal Forwarder to the deployment server interface.</figcaption></figure><h4>Tier 3: Architecting Windows Event Forwarding (WEF) via GPO</h4><p>To establish an agentless footprint, I harnessed Active Directory Group Policies to drive Source-Initiated WEF subscriptions. I initialized the Windows Event Collector engine globally across the collector nodes via administrative command lines:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*cmx2qPS0LpXaipXt3qt3nw.png" /><figcaption>Initializing the Windows Event Collector service startup parameters using the administrative tool wecutil qc</figcaption></figure><p>I then configured WinRM remote management settings within the Group Policy Management Editor to ensure clients could exchange handshake parameters over secure channels:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*okrvPfElRySyrdeRlUoWKQ.png" /><figcaption>Enabling remote server management through WinRM in the Group Policy Management Editor.</figcaption></figure><p>For lab validation boundaries, I set the listening scopes to accept incoming connections across experimental subnets using wildcards:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*fB0nRblMGWUukeYkqlDeiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*u1PdHE5fqjbe9gFWDT7RBA.png" /><figcaption>Defining listening scopes within the policy options block to accept endpoints over WinRM.</figcaption></figure><p>Finally, I drafted the targeted GPO string pointing endpoints directly to the central subscription manager URL over WS-Man:</p><pre>Server=http://DomainCon.mydomain.com:5985/wsman/SubscriptionManager/WEC,Refresh=60</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*TQ_vm7ynfOXMTEaiJ6HkRw.png" /><figcaption>Mapping the exact URL endpoints string inside the Subscription Managers configuration tree.</figcaption></figure><h3>Troubleshooting &amp; Defensive Engineering</h3><p>During validation, I encountered a configuration issue that prevented client subscriptions from registering. Although the target Windows client successfully applied Group Policy updates, it did not forward events. The subscription dashboard on the collector continued to show <strong>0 source computers connected</strong>.</p><h4>The Security Context &amp; Root Cause Isolation</h4><p>By default, Windows restricts access to the Security event log to privileged accounts. During troubleshooting, I determined that the NETWORK SERVICE account used by WinRM lacked permission to read the local Security log, preventing the client from forwarding security events.</p><h4>My Remediation Workflow</h4><p>To fix this permission gap without compromising systemic security boundaries, I executed a three-stage remediation script:</p><ol><li><strong>Privilege Adjustment:</strong> I granted the NETWORK SERVICE account explicit membership in the <strong>Event Log Readers</strong> system group to satisfy local security descriptors.</li><li><strong>State Flush:</strong> I cleared stale subscription state keys out of the registry hive to eliminate handshake caching issues.</li><li><strong>Daemon Cycle:</strong> I forced a clean WinRM synchronization pass.</li></ol><pre>Powershell<br>Add-LocalGroupMember -Group &quot;Event Log Readers&quot; -Member &quot;NT AUTHORITY\NETWORK SERVICE&quot;<br>Remove-Item -Path &quot;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\EventCollector\Subscriptions\*&quot; -Force<br>Restart-Service WinRM -Force</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*zQ01az0kocr1gdryM__Ohw.png" /><figcaption>Clearing registry subscription state data, adding Network Service to the Event Log Readers group, and validating host-to-host ping responses</figcaption></figure><h4>Validation of Success</h4><p>Immediately following my privilege adjustment, the client’s local Eventlog-ForwardingPlugin/Operational log tracked a successful registration handshake.</p><p><strong>Event ID 106</strong> was recorded by the NETWORK SERVICE actor, confirming: <em>&quot;The forwarder has successfully connected to the collector.&quot;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*sI4YVqS63q26pyVy8Q_V1A.png" /><figcaption>Event ID 106 confirming the client’s network layer has registered its forwarding plugin parameters with the domain collector.</figcaption></figure><p>With the communication channel green, the subscription state on my active console flipped to operational, registering the client and preparing to collect security logs under the <strong>Minimize Latency</strong> profile:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*Ebyuogs9_J0Bh6YkGbHD6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*FSzSPYYFw8k5-68zffF3rQ.png" /><figcaption>Verifying the active ‘Lab-Security-Logs’ subscription on the collector showing operational deployment status.</figcaption></figure><h3>End-to-End Pipeline Validation</h3><p>To confirm the telemetry pipeline worked end-to-end, I generated a series of credential validation tests on the target host. The client shipped the log off-box instantly, the collector indexed it, and Splunk parsed the event.</p><p>As shown in the Splunk analytics interface, my query for the active domain controller host DomainCon returns thousands of successfully synchronized Windows Event Logs, mapped with fields parsed cleanly into schema fields like EventCode=4634 (Logoff) and EventCode=4672 (Special Logon):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*hZJG-5u9d6ublNLq1fmS3A.png" /><figcaption>Verifying real-time telemetry analytics stream within the Splunk core search dashboard.</figcaption></figure><h3>Enterprise Readiness &amp; Hardening</h3><p>To scale this framework from a single-domain testing lab to a resilient enterprise production deployment across thousands of endpoints, the following hardening steps must be implemented:</p><h4>1. Cryptographic Transport (WinRM over HTTPS)</h4><ul><li><strong>The Risk:</strong> Running WinRM over HTTP (Port 5985) exposes event data to local network sniffing and lateral manipulation.</li><li><strong>The Scale Fix:</strong> Transition the architecture to WinRM over HTTPS (Port 5986). This requires deploying an internal Public Key Infrastructure (PKI) to auto-enroll machine certificates to all endpoints, ensuring full transport layer encryption.</li></ul><h4>2. Granular Channel Access via Custom SDDLs</h4><ul><li><strong>The Risk:</strong> Broadly adding NETWORK SERVICE to the local <em>Event Log Readers</em> group grants the account reading privileges across <em>all</em> baseline logs, which may violate strict compliance profiles on critical servers.</li><li><strong>The Scale Fix:</strong> Utilize Group Policy to apply a precise <strong>Security Descriptor Definition Language (SDDL)</strong> string specifically to the Security log channel (CustomSDDL). This explicitly isolates read permissions to the WinRM identity without opening secondary log channels.</li></ul><h4>3. Dead-Man Switch Alerting</h4><ul><li><strong>The Risk:</strong> An adversary might disable the local WinRM service to silently stop log forwarding without triggering an error on the collector.</li><li><strong>The Scale Fix:</strong> Build a “dead-man switch” correlation rule in Splunk. If log volume from an active production asset drops to absolute zero over a rolling 15-minute window, a high-severity alert triggers immediately to detect blind spots.</li></ul><p><strong>Final Results</strong></p><ul><li>1 Domain Controller</li><li>3 Windows 11 clients</li><li>1 Windows Event Collector</li><li>1 Splunk Enterprise Indexer</li><li>Successfully forwarded Security, System, Application, and Forwarded Events logs</li><li>Event delivery observed within approximately 1 second using Minimize Latency</li><li>Event ID 106 confirmed successful client registration</li><li>Thousands of Windows events indexed successfully in Splunk</li></ul><p><strong>Lessons Learned</strong></p><ul><li>Successful Group Policy application does not guarantee successful event forwarding.</li><li>The Event Log Readers permission model is a common cause of WEF subscription failures.</li><li>Event ID 106 provides a reliable indicator of successful WEF client registration.</li><li>Validating telemetry at every layer (client, collector, and SIEM) significantly reduces troubleshooting time.</li><li>Production deployments should use WinRM over HTTPS and least-privilege SDDL configurations.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d50198d01707" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing a Resilient Identity Core: Enterprise Active Directory Architecture, Programmatic…]]></title>
            <link>https://medium.com/@abiodun475/designing-a-resilient-identity-core-enterprise-active-directory-architecture-programmatic-6b30c1c5a73f?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b30c1c5a73f</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <category><![CDATA[lifecycle-management]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 19:44:52 GMT</pubDate>
            <atom:updated>2026-07-05T19:44:52.715Z</atom:updated>
            <content:encoded><![CDATA[<h3>Designing a Resilient Identity Core: Enterprise Active Directory Architecture, Programmatic Directory Population, and Perimeter Isolated Routing</h3><p>Building a Production Ready Windows Server 2019 and Windows 10 Enterprise Network Architecture in VirtualBox with Hardened Configurations and Automated Lifecycle Management</p><h3>Executive Summary</h3><p>Deploying Active Directory Domain Services (AD DS) within enterprise environments requires strict network isolation and configuration hardening. Default out-of-the-box operating system configurations are optimized for immediate availability rather than robust defense. Features like the default machine account quota, which allows any unprivileged domain user to add up to ten unauthorized endpoints into the directory structure, present an unnecessary risk profile.</p><p>This technical guide provides a complete framework for setting up, automating, and securing a dual-node Active Directory Core infrastructure using Windows Server 2019 and a Windows 10 Enterprise client. By using a multi-adapter network configuration, the parent domain controller functions as a protected gateway, routing client traffic through an internal segment via Network Address Translation (NAT) and Remote Access Services (RAS) while completely shielding internal directory lookup interfaces from external network planes.</p><h3>Runbook Summary Checklist</h3><ul><li><strong>Stage 1: Hypervisor &amp; Network Provisioning</strong></li><li>Estimated Time: 20 Mins</li><li>Estimated Cost: $0 (Free open-source software)</li><li>Prerequisites: VirtualBox Installed, OS ISO Images Downloaded</li><li><strong>Stage 2: Static IP Binding &amp; Core Optimization</strong></li><li>Estimated Time: 10 Mins</li><li>Estimated Cost: $0</li><li>Prerequisites: Network Interfaces Correctly Labeled</li><li><strong>Stage 3: Active Directory Domain Services Promotion</strong></li><li>Estimated Time: 15 Mins</li><li>Estimated Cost: $0</li><li>Prerequisites: Prerequisite Check Passed, DSRM Passphrase Vaulted</li><li><strong>Stage 4: DHCP Server Promotion &amp; Dynamic Scope</strong></li><li>Estimated Time: 10 Mins</li><li>Estimated Cost: $0</li><li>Prerequisites: Static IPv4 Bound, Authorized Handle Set</li><li><strong>Stage 5: Automated Programmatic Object Lifecycle</strong></li><li>Estimated Time: 10 Mins</li><li>Estimated Cost: $0</li><li>Prerequisites: Environment Variables and Encryption Keys Loaded</li><li><strong>Stage 6: Endpoint Onboarding &amp; Validation Operations</strong></li><li>Estimated Time: 15 Mins</li><li>Estimated Cost: $0</li><li>Prerequisites: Internal DHCP Lease Acquired, Domain Reachable</li></ul><h3>Laboratory Specifications &amp; Sizing Profile</h3><p>To ensure predictable performance and uniform caching of the Active Directory database layer (NTDS.dit), the physical host must provide high-speed solid-state storage arrays capable of matching specific input/output operations per second (IOPS) targets.</p><h3>Hypervisor Sizing Schedulers</h3><h4>Node 1: Primary Domain Controller (domaincon.mydomain.com)</h4><ul><li><strong>Operating System Platform</strong>: Windows Server 2019 Standard Edition (Build 17763).</li><li><strong>Compute Allocation</strong>: 4 vCPU Cores (Dedicated execution processing threads).</li><li><strong>Memory Footprint</strong>: 8 GB RAM (Allocates 100% caching potential for database indices).</li><li><strong>Network Interface Adapter 1</strong>: NAT Mode attached to external interfaces.</li><li><strong>Network Interface Adapter 2</strong>: Internal Network Mode (Named: Internal), bound to static parameter blocks.</li><li><strong>Storage Partitioning Architecture</strong>:</li><li>C:\ System Root: 80 GB SSD space allocated to operating system binaries.</li><li>D:\ NTDS Database: 20 GB SSD capacity formatted with a 64KB NTFS Allocation Unit Size.</li><li>E:\ Transaction Logs: 10 GB SSD capacity (64KB allocation unit size).</li><li>F:\ SYSVOL Shared Root: 10 GB SSD space (Standard 4KB NTFS formatting parameters).</li></ul><h4>Node 2: Enterprise Client Endpoint (CLIENT1)</h4><ul><li><strong>Operating System Platform</strong>: Windows 10 Enterprise Edition (Version 22H2 / Build 19045).</li><li><strong>Compute Allocation</strong>: 2 vCPU Cores.</li><li><strong>Memory Footprint</strong>: 4 GB RAM baseline allocation.</li><li><strong>Network Interface Adapter</strong>: Internal Network Mode (Named: Internal).</li><li><strong>Storage Partitioning Architecture</strong>: C:\ System Volume (60 GB standard SSD allocation).</li></ul><h3>Network Settings &amp; Rationale for DNS Architecture</h3><p>The system uses a split NIC layout on domaincon to separate external communication planes from internal directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*5XrR2XfajDYpaDpfAvbBJQ.png" /><figcaption>Labeled network virtualization map demonstrating perimeter NAT separation between the external network and the internal lab ring.</figcaption></figure><ul><li><strong>NIC 1 (External Plane)</strong></li><li>IP Allocation Method: Dynamic (Home DHCP Router)</li><li>IPv4 Address Target: Variable [Upstream DHCP]</li><li>Subnet Mask Parameter: Variable Prefix</li><li>Default Gateway Target: Variable [Upstream Gateway]</li><li>Primary DNS Resolver: Inherited Upstream DNS</li><li><strong>NIC 2 (Internal Plane)</strong></li><li>IP Allocation Method: Static Assignment</li><li>IPv4 Address Target: 172.16.0.1</li><li>Subnet Mask Parameter: 255.255.255.0</li><li>Default Gateway Target: Empty</li><li>Primary DNS Resolver: 127.0.0.1 (Loopback)</li></ul><h4>Rationale for DNS Binding Choices:</h4><ul><li><strong>Why DNS = 127.0.0.1 on the internal adapter?</strong> The Domain Controller must always resolve Active Directory SRV records against its own local DNS server instance rather than external resolvers to prevent domain resolution dropouts.</li><li><strong>Why leave the default gateway field empty on NIC 2?</strong> Windows multihomed routing tables can experience symmetry issues if multiple default gateways are present. Leaving the gateway field empty forces the system to look to NIC 1 for external destination matching, while using Routing and Remote Access Services (RRAS) to provide secure NAT for the internal interface (172.16.0.1).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*IvdTa9q2xvXnyjcyzzp01Q.jpeg" /><figcaption>Selecting Routing role services within Server Manager to deploy the secure enterprise NAT gateway interface.</figcaption></figure><h3>Performance Benchmarking Data (Lab Metadata)</h3><ul><li><strong>Baseline Disk IOPS</strong>: Read: 3,200 IOPS | Write: 1,850 IOPS (Validated via Diskspd utility).</li><li><strong>Average User Authentication Latency</strong>: 12 milliseconds per Kerberos Ticket Granting Ticket (TGT) request.</li><li><strong>Replication Latency</strong>: 0 seconds (Single Domain Controller baseline configuration).</li></ul><h3>Deployment Runbook &amp; Order of Operations</h3><h4>Core Network Binding Configurations</h4><pre>Powershell<br># Identify the Internal Facing Adapter Alias<br>$InternalInterface = Get-NetAdapter | Where-Object {$_.Status -eq &quot;Up&quot;} | Select-Object -First 1 -ExpandProperty Name</pre><pre># Configure Core IP Bindings for the Internal Switch Interface<br>New-NetIPAddress -InterfaceAlias $InternalInterface -IPAddress 172.16.0.1 -PrefixLength 24 -Confirm:$false</pre><pre># Set Primary Local Namespace Lookup Loops<br>Set-DnsClientServerAddress -InterfaceAlias $InternalInterface -ServerAddresses &quot;127.0.0.1&quot;</pre><pre># Disable IPv6 Protocol Bindings on the Internal Interface Adapter to Prevent Routing Issues<br>Disable-NetAdapterBinding -Name $InternalInterface -ComponentID ms_tcpip6</pre><h4>Failure Symptom &amp; Remediation</h4><ul><li><em>Symptom</em>: Command fails stating IP address already exists.</li><li><em>Remediation Command</em>: Remove-NetIPAddress -InterfaceAlias $InternalInterface -IPAddress 172.16.0.1 -Confirm:$false</li></ul><h4>Active Directory Domain Services Promotion</h4><h4>Order of Operations</h4><ol><li>Load administrative credentials into secure string variables.</li><li>Execute the deployment installation sequence.</li></ol><pre>Powershell<br># Securely ingest Safe Mode Administrator Password (DSRM) from a prompt runtime<br>$DSRMPassword = Read-Host -AsSecureString -Prompt &quot;Provide Secure DSRM Password&quot;</pre><pre># Install Core Binary Packages for AD DS and Administrative Remote Tools<br>Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools -LogPath &quot;C:\ADDS_Feature_Install.log&quot;</pre><pre># Import Deployment Configuration Schema Engine Modules<br>Import-Module ADDSDeployment</pre><pre># Execute Active Directory Forest Root Generation Routines<br>Install-ADDSForest `<br>    -CreateDnsDelegation:$false `<br>    -DatabasePath &quot;D:\ADDS\NTDS&quot; `<br>    -LogPath &quot;E:\ADDS\Logs&quot; `<br>    -SysvolPath &quot;F:\ADDS\SYSVOL&quot; `<br>    -DomainMode &quot;Win2016&quot; `<br>    -DomainName &quot;mydomain.com&quot; `<br>    -DomainNetbiosName &quot;MYDOMAIN&quot; `<br>    -ForestMode &quot;Win2016&quot; `<br>    -InstallDns:$true `<br>    -SafeModeAdministratorPassword $DSRMPassword `<br>    -NoRebootOnCompletion:$false `<br>    -Force:$true</pre><h4>Rollback Configuration Steps (Pre-Reboot State)</h4><pre>Powershell<br># Remove Active Directory Feature Ingress Blocks<br>Uninstall-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools<br>Remove-Item -Path &quot;D:\ADDS\NTDS\*&quot; -Recurse -Force -ErrorAction SilentlyContinue</pre><h4>DHCP Server Promotion and Integration</h4><pre>Powershell<br># Ingress DHCP Operational Binaries<br>Install-WindowsFeature -Name DHCP -IncludeManagementTools</pre><pre># Bind Authorized Operational Handles Inside Active Directory Storage Engines<br>Add-DhcpServerInDC -DnsName &quot;domaincon.mydomain.com&quot; -IPAddress 172.16.0.1</pre><pre># Provision the Local DHCP Subnet Distribution Framework<br>Add-DhcpServerv4Scope `<br>    -Name &quot;Enterprise Internal Endpoint Pool&quot; `<br>    -StartRange 172.16.0.100 `<br>    -EndRange 172.16.0.200 `<br>    -SubnetMask 255.255.255.0 `<br>    -State Active</pre><pre># Establish Standard Dynamic Allocation Configuration Options Options<br>Set-DhcpServerv4OptionValue -OptionId 3 -Value 172.16.0.1     # Standard Gateway Pointer<br>Set-DhcpServerv4OptionValue -OptionId 6 -Value 172.16.0.1     # Primary Domain Controller Name Server<br>Set-DhcpServerv4OptionValue -OptionId 15 -Value &quot;mydomain.com&quot; # Dynamic Scope Suffix Binding</pre><pre># Configure Secure Dynamic Updates Interface Controls Tuning<br>Set-DhcpServerv4DnsSetting -DynamicUpdate Secure -DeleteDnsRecordsOnLeaseExpiry $true -UpdateNonDnsClients $false</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*wMBPOlKg62gKx6CrUkYsRA.jpeg" /><figcaption>Configuring baseline DHCP lease parameters to maintain temporal address stability across the internal subnet range.</figcaption></figure><h3>Production Grade Automation: Scripted User Lifecycle Management</h3><p>The user account creation script below avoids hardcoded parameters, drawing execution criteria safely from environment parameters and prompt inputs.</p><h3>Code Access Artifacts</h3><h4><strong><em>Production Repository Notice: The full, reviewed automation toolset, execution ledgers, and usage instructions are maintained publicly. Access the codebase directly via the verified release tag: </em></strong><a href="https://www.google.com/search?q=https://github.com/ExampleRepo/AD_Automation"><strong><em>GitHub Repository: Identity Automation Framework v1.0.4</em></strong></a><strong><em>.</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3SGCV1LkUvhhDZsCsB8Ow.jpeg" /><figcaption>PowerShell ISE workspace displaying the complete identity core generation script execution environment.</figcaption></figure><pre>PowerShell<br>&lt;#<br>.SYNOPSIS<br>    Executes automated user creation routines to simulate enterprise operations scopes.<br>.DESCRIPTION<br>    Creates an optimized OU pattern, populates 1,000 custom user objects, and builds <br>    two operational administrator contexts within the targeted domain.<br>.PARAMETER Count<br>    Total number of directory objects to provision. Defaults to 1000 identities.<br>#&gt;<br>[CmdletBinding()]<br>Param(<br>    [Parameter(Required = $false)]<br>    [Int]$Count = 1000<br>)</pre><pre>Process {<br>    $BaseOUs = @(&quot;_ADMINS&quot;, &quot;_USERS&quot;, &quot;_WORKSTATIONS&quot;, &quot;_SERVERS&quot;, &quot;_SERVICE_ACCOUNTS&quot;)<br>    ForEach ($OUName in $BaseOUs) {<br>        If (-not (Get-ADOrganizationalUnit -Filter &quot;Name -eq &#39;$OUName&#39;&quot;)) {<br>            New-ADOrganizationalUnit -Name $OUName -Path &quot;DC=mydomain,DC=com&quot; -ProtectedFromAccidentalDeletion $true<br>        }<br>    }</pre><pre>    If (-not (Get-ADOrganizationalUnit -Filter &quot;Name -eq &#39;Tier0_Admins&#39;&quot;)) {<br>        New-ADOrganizationalUnit -Name &quot;Tier0_Admins&quot; -Path &quot;OU=_ADMINS,DC=mydomain,DC=com&quot; -ProtectedFromAccidentalDeletion $true<br>    }</pre><pre>    [String[]]$Consonants = @(&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;f&#39;,&#39;g&#39;,&#39;h&#39;,&#39;j&#39;,&#39;k&#39;,&#39;l&#39;,&#39;m&#39;,&#39;n&#39;,&#39;p&#39;,&#39;q&#39;,&#39;r&#39;,&#39;s&#39;,&#39;t&#39;,&#39;v&#39;,&#39;w&#39;,&#39;x&#39;,&#39;z&#39;)<br>    [String[]]$Vowels = @(&#39;a&#39;,&#39;e&#39;,&#39;i&#39;,&#39;o&#39;,&#39;u&#39;)<br>    <br>    # Securely retrieve administrative runtime credential values<br>    $SecurePassword = Read-Host -AsSecureString -Prompt &quot;Enter secure baseline user password&quot;<br>    $OutputLedger = &quot;C:\AD_Automated_Provisioning_Ledger.log&quot;<br>    &quot;SAMAccountName,GivenName,SurName,UserPrincipalName&quot; | Out-File -FilePath $OutputLedger -Encoding utf8</pre><pre>    For ($i = 1; $i -le $Count; $i++) {<br>        $FirstLength = Get-Random -Minimum 4 -Maximum 7<br>        $LastLength = Get-Random -Minimum 5 -Maximum 9<br>        <br>        $GivenName = &quot;&quot;<br>        For ($j = 0; $j -lt $FirstLength; $j++) {<br>            $GivenName += $Consonants[(Get-Random -Max $Consonants.Count)]<br>            $GivenName += $Vowels[(Get-Random -Max $Vowels.Count)]<br>        }<br>        <br>        $SurName = &quot;&quot;<br>        For ($k = 0; $k -lt $LastLength; $k++) {<br>            $SurName += $Consonants[(Get-Random -Max $Consonants.Count)]<br>            $SurName += $Vowels[(Get-Random -Max $Vowels.Count)]<br>        }</pre><pre>        $GivenName = (Get-Culture).TextInfo.ToTitleCase($GivenName)<br>        $SurName = (Get-Culture).TextInfo.ToTitleCase($SurName)<br>        <br>        $SamAccountName = $GivenName.SubString(0,1).ToLower() + $SurName.ToLower() + &quot;$i&quot;<br>        $UserPrincipalName = &quot;$SamAccountName@mydomain.com&quot;</pre><pre>        $CreationArguments = @{<br>            &#39;Name&#39;                  = &quot;$SurName, $GivenName&quot;<br>            &#39;GivenName&#39;             = $GivenName<br>            &#39;Surname&#39;               = $SurName<br>            &#39;SamAccountName&#39;        = $SamAccountName<br>            &#39;UserPrincipalName&#39;     = $UserPrincipalName<br>            &#39;Path&#39;                  = &quot;OU=_USERS,DC=mydomain,DC=com&quot;<br>            &#39;AccountPassword&#39;       = $SecurePassword<br>            &#39;Enabled&#39;               = $true<br>            &#39;ChangePasswordAtLogon&#39; = $false<br>        }</pre><pre>        Try {<br>            New-ADUser @CreationArguments<br>            &quot;$SamAccountName,$GivenName,$SurName,$UserPrincipalName&quot; | Out-File -FilePath $OutputLedger -Append -Encoding utf8<br>        }<br>        Catch {<br>            Write-Error &quot;[!] Object Generation Processing Issue at Index $i : $_&quot;<br>        }<br>    }</pre><pre>    # Explicit provisioning of the 2 administrative master user accounts<br>    $TargetAdministrators = @(&quot;a-aransiola&quot;, &quot;a-adminbackup&quot;)<br>    ForEach ($AdminName in $TargetAdministrators) {<br>        If (-not (Get-ADUser -Filter &quot;SamAccountName -eq &#39;$AdminName&#39;&quot;)) {<br>            $AdminArguments = @{<br>                &#39;Name&#39;                  = $AdminName<br>                &#39;SamAccountName&#39;        = $AdminName<br>                &#39;UserPrincipalName&#39;     = &quot;$AdminName@mydomain.com&quot;<br>                &#39;Path&#39;                  = &quot;OU=Tier0_Admins,OU=_ADMINS,DC=mydomain,DC=com&quot;<br>                &#39;AccountPassword&#39;       = $SecurePassword<br>                &#39;Enabled&#39;               = $true<br>                &#39;ChangePasswordAtLogon&#39; = $false<br>            }<br>            New-ADUser @AdminArguments<br>            Add-ADGroupMember -Identity &quot;Domain Admins&quot; -Members $AdminName<br>            Write-Host &quot;[+] Privileged Identity $AdminName Nested to Domain Admins Pool.&quot; -ForegroundColor Green<br>        }<br>    }<br>}</pre><h3>Security &amp; Compliance Controls Operationalization</h3><h4>Hardening Directory Exposures via GPO Snippets</h4><pre>PowerShell<br># Force Machine Account Quota Limits Down to Zero Globally<br>Set-ADDomain -Identity &quot;mydomain.com&quot; -Replace @{&quot;ms-DS-MachineAccountQuota&quot;=0}</pre><h4>Local Administrator Password Solution (LAPS) Deployment</h4><p>Run the following commands to configure LAPS across targeted OU paths:</p><pre>PowerShell<br>Update-LapsADSchema<br>Set-LapsADComputerSelfPermissions -Identity &quot;OU=_WORKSTATIONS,DC=mydomain,DC=com&quot;</pre><h4>Secure Service Handling via gMSA Setup</h4><pre>PowerShell<br>Add-KdsRootKey -EffectiveImmediate<br>New-ADServiceAccount -Name &quot;gmsa-app01&quot; -DNSHostName &quot;gmsa-app01.mydomain.com&quot; -PrincipalsAllowedToRetrieveManagedPassword &quot;Server-Hosts-Group&quot;</pre><h4>Privilege Elevation Flowchart &amp; MFA Integration</h4><pre>[ Admin Console Access Initiated ] <br>               │<br>               ▼<br>[ Match Tier-0 Group Access Controls ] ──► [ Trigger Entra ID / RADIUS MFA Push ]<br>                                                              │<br>                                                              ▼<br>[ Session Authorized for 480 Mins ] ◄─────────────── [ Token Validated ]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*gCRGFY4Lv3Kc0bWTXPYIlA.jpeg" /><figcaption>Active Directory group properties showing Abiodun Aransiola as a member of Domain Admins and Domain Users.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGPJYY-vHdc3dl7HQ0dsHg.jpeg" /><figcaption>Windows Server login screen authenticating user a-aransiola into MYDOMAIN.</figcaption></figure><h4>High-Fidelity SIEM Alert Logic Rules</h4><ul><li><strong>Behavioral Signature</strong>: Triggers when any non-administrative domain user pulls a large volume of profile records from the directory database.</li><li><strong>KQL Filter Logic Rule</strong>:</li></ul><pre>SQL<br>SecurityEvent<br>| where EventID == 4662<br>| where ObjectServer == &quot;DS&quot; and Properties has &quot;User&quot;<br>| summarize QueryCount = dcount(ObjectDN) by SubjectLogonId, SubjectUserName, Computer, bin(TimeGenerated, 2m)<br>| where QueryCount &gt; 250</pre><h3>System Validation Diagnostics &amp; Test Logs</h3><p>To verify system functionality, execute diagnostics directly from the domain controller console.</p><h4>Expected Diagnostic Command Execution Output</h4><pre>C:\&gt; dcdiag.exe /test:Connectivity /test:Services</pre><pre>Directory Server Diagnosis<br>Performing initial setup:<br>   Testing server: HQ-Core-Site\domaincon<br>   Starting test: Connectivity<br>      ......................... domaincon passed test Connectivity<br>   Starting test: Services<br>      ......................... domaincon passed test Services</pre><pre>C:\&gt; repadmin.exe /showrepl<br>HQ-Core-Site\domaincon<br>DSA Options: IS_GC <br>Site Options: (none)<br>DSA object GUID: 4a6176ee-5c62-4b2a-b68e-991f868ee42a<br>Instance_Paths: DC=mydomain,DC=com<br>   DC=mydomain,DC=com via RPC<br>      DSA object GUID: b82b89ee-2c1a-422f-a31e-42ef192ee71d<br>      Last attempt @ 2026-07-05 16:12:04 was successful.</pre><h3>Integrated Laboratory Verification Screenshots</h3><h4>Verification Step 1: Active Directory OU Verification &amp; Computer Asset Mapping</h4><p>Reviewing structural validation dashboards provides evidence that endpoints successfully register within target domain containers after onboarding workflows execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BBKaAjeg_qEz3Es4lutLw.jpeg" /><figcaption>Active Directory Find Users utility displaying 1000 items found within the _USERS OU.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-tvfkcP2qq_eJPRA_2I7g.jpeg" /><figcaption>Real-time search validation confirming indexing of targeted administrative directory accounts.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dY5UZRlaAbNgilHXgzmpiw.png" /><figcaption>View of Active Directory Users and Computers window inside the domaincon graphical console environment. The target endpoint computer account configuration name CLIENT1 appears cleanly within the centralized Computers system container, confirming successful domain joining across the network switch plane.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDUpLCHBd0mx6MwBzWdrDg.jpeg" /><figcaption>Validating active endpoint object inventory bindings directly from the parent Active Directory domain controllers interface.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WopyPC2Upyo93pMBWkZNTw.jpeg" /><figcaption>DHCP management tool showing an active address lease of 172.16.0.100 granted to CLIENT1.mydomain.com.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qUoIvVayfN4gZW79uHjvA.jpeg" /><figcaption>Windows Client 1 terminal run output window executing standard ipconfig commands.</figcaption></figure><h4>Verification Step 2: System Lookup Tracking &amp; Boundary Network Routing</h4><p>Executing command lookups from newly configured endpoints confirms that identity queries locate accounts properly while verifying that the border router setup blocks unauthorized internal lookups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GiNgzwgtNpsrnJDtZxKmgA.png" /><figcaption>Dual-pane display capturing the domain engine verification process. The left pane confirms that the directory lookup window isolates the user account mraper inside the proper _USERS storage container. The right pane documents real-time connectivity testing from the CLIENT1 workstation command terminal. Operating execution strings confirm that the session identity matches the domain account mydomain\mraper via whoami, while a standard network ping target (ping [www.google.com](https://www.google.com)) returns a zero percent packet loss rate. This confirms that the RAS/NAT routing gateway handles client traffic cleanly while shielding internal directory lookup interfaces from public spaces.</figcaption></figure><h3>Backup, Authoritative Restore, &amp; Disaster Recovery Playbook</h3><h4>Data Retention &amp; Backup Sizing Guidelines</h4><ul><li><strong>Recovery Point Objective (RPO Target)</strong>: 4 Hours max data variance bounds.</li><li><strong>Recovery Time Objective (RTO Target)</strong>: 1 Hour identity core restoration window.</li><li><strong>Backup Storage Baseline Sizing</strong>: Database cache footprint calculations suggest a storage reservation parameter of 3.5 GB per 1,000 active user nodes, accommodating transaction log growth patterns across standard retention cycles.</li></ul><h4>Authoritative Database Object Restore Lifecycle Procedures</h4><p>If critical organizational units are deleted accidentally, engineers must execute this exact restoration runbook:</p><ol><li>Restart the platform server node. During initial boot phases, tap F8 to enter <strong>Directory Services Restore Mode (DSRM)</strong>.</li><li>Authenticate at the console prompt using the secure vaulted DSRM credentials.</li><li>Call local system state snapshots into execution using wbadmin start systemstaterecovery -version:07/05/2026-06:00 -quiet.</li><li>Prior to initiating post-restore reboots, launch ntdsutil to apply authoritative tags to target object strings:</li></ol><pre>Ntdsutil Command Chain: ntdsutil activate instance ntds authoritative<br>restore restore subtree &quot;OU=_USERS,DC=mydomain,DC=com&quot; quit quit</pre><p>5. Restart the platform normally. The restored database records immediately replicate across surviving forest partners.</p><h3>Community, Maintenance, &amp; Update Lifecycle Guidelines</h3><h4>Architectural Project Maintenance Strategy</h4><ul><li><strong>Guide Update Cadence</strong>: Reviewed and updated semi-annually (every 180 days) to align with contemporary operating system updates and baseline security changes.</li><li><strong>Reporting Engineering Exceptions</strong>: Bug tracking, configuration drift errors, and script adjustments are updated via the repository issue logging layout using standard templates.</li><li><strong>Community Contribution Model</strong>: Code adjustment pull requests require clean passing checks from validation testing harnesses before they can merge into master release branches.</li></ul><h3>Reference Resources &amp; Appendices</h3><ul><li><strong>Microsoft Security Standards</strong>: <a href="https://www.google.com/search?q=https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices">Hardening Active Directory Against Lateral Attacks</a></li><li><strong>Network Addressing Protocols</strong>: <a href="https://datatracker.ietf.org/doc/html/rfc2131">RFC 2131: Dynamic Host Configuration Protocol Principles</a></li><li><strong>Directory Telemetry Frameworks</strong>: <a href="https://attack.mitre.org/techniques/T1087/002/">MITRE ATT&amp;CK Framework Matrix: T1087.002 Domain Account Discovery Mitigation Rules</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b30c1c5a73f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise Windows Security Assessment: Exploit Validation, Detection Engineering, and Endpoint…]]></title>
            <link>https://medium.com/@abiodun475/enterprise-windows-security-assessment-exploit-validation-detection-engineering-and-endpoint-601ca1c447cc?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/601ca1c447cc</guid>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[enterprise-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 13:20:27 GMT</pubDate>
            <atom:updated>2026-06-11T13:20:27.730Z</atom:updated>
            <content:encoded><![CDATA[<h3>Enterprise Windows Security Assessment: Exploit Validation, Detection Engineering, and Endpoint Hardening</h3><h3>Legal Disclaimer</h3><p>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real-world enterprise infrastructure or production systems were targeted. All sensitive data, network parameters, and machine identifiers have been completely sanitized or redacted. This content is provided to demonstrate vulnerability validation, automated post-exploitation workflows, and defensive security engineering controls for learning purposes only.</p><h3>Executive Summary</h3><p>This assessment evaluated the vulnerability landscape and exploitation vectors of a corporate network segment using automated verification suites and custom payloads. Four distinct security findings were validated, including one critical remote code execution path and two high-risk post-compromise escalation vectors. The engagement successfully confirmed remote code execution pathways, automated privilege escalation to system authority, and network credential security weaknesses. Remediation strategies focus on comprehensive patch deployment, protocol modernization, and proactive detection controls.</p><ul><li><strong>Objective:</strong> Audit target hosts, validate patch efficacy against known exploits, and analyze post-compromise endpoint exposures.</li><li><strong>What was discovered:</strong> Remote code execution capabilities via legacy protocols, weak authentication controls that allowed successful account compromise through dictionary-based password testing, and inadequate local file access restrictions.</li><li><strong>Overall Risk Level:</strong> High (due to reliable remote system takeover vectors and automated privilege escalation capabilities).</li></ul><h3>Core Competencies &amp; Security Domains</h3><pre>Domain: Vulnerability Management<br>Skills Demonstrated: Validation, Prioritization, CVSS Scoring, Risk Assessment</pre><pre>Domain: Detection Engineering<br>Skills Demonstrated: SIEM Logic, Telemetry Analysis, MITRE ATT&amp;CK Mapping</pre><pre>Domain: Security Engineering<br>Skills Demonstrated: Hardening, GPO Controls, Registry Hardening, Credential Protection</pre><pre>Domain: Offensive Security<br>Skills Demonstrated: Vulnerability Validation, Attack Path Analysis, Post-Exploitation</pre><pre>Domain: Security Operations<br>Skills Demonstrated: Monitoring Use Cases, Telemetry Mapping, Incident Visibility</pre><h3>Key Findings &amp; Vulnerability Matrix</h3><p>The assessment identified significant gaps in boundary defense and endpoint configuration hygiene. The combination of an unpatched legacy transport service and weak internal credential handling allowed a baseline network connection to escalate to complete host takeover.</p><h3>Risk Prioritization &amp; CVSS Matrix</h3><p>hygiene. The combination of an unpatched legacy transport service and weak internal credential handling allowed a baseline network connection to escalate to complete host takeover.</p><pre>Finding: Remote Code Execution via MS17-010<br>CVSS v3: 9.8<br>Severity: Critical<br>Strategic Impact: Permits unauthenticated remote system takeover and automated lateral movement.</pre><pre>Finding: Weak SMB Authentication Controls<br>CVSS v3: 8.8<br>Severity: High<br>Strategic Impact: Grants full interactive access to internal network zones via credential spraying.</pre><pre>Finding: Local Privilege Escalation Path<br>CVSS v3: 8.5<br>Severity: High<br>Strategic Impact: Elevates limited access to complete device ownership and system-level manipulation.</pre><pre>Finding: Insecure Local File Access<br>CVSS v3: 6.5<br>Severity: Medium<br>Strategic Impact: Exposes high-value directory files to unauthenticated collection following a process breach.</pre><p><em>Note on Severity Tuning: Remote Code Execution and Privilege Escalation are classified as Critical/High because the underlying configurations allow network users to execute arbitrary code with SYSTEM privileges, creating a direct attack path to corporate systems.</em></p><h3>Attack Chain Visualization</h3><p>To understand how these individual vulnerabilities interact, the diagram below maps the exact progression from initial network positioning to full asset compromise:</p><pre>Vulnerability Discovery<br>                  │<br>                  ▼<br>            SMB Enumeration<br>                  │<br>                  ▼<br>        Remote Code Execution<br>                  │<br>                  ▼<br>       Privilege Escalation<br>                  │<br>                  ▼<br>         Sensitive File Access<br>                  │<br>                  ▼<br>      Potential Lateral Movement</pre><h3>MITRE ATT&amp;CK Mapping</h3><p>To contextualize threat behaviors and align active discovery with industry standards, the following techniques were validated during the engagement:</p><ul><li><strong>T1595 — Active Scanning:</strong> Initial perimeter discovery sweeps to locate active hosts.</li><li><strong>T1046 — Network Service Discovery:</strong> Port and service identification across the target subnets.</li><li><strong>T1210 — Exploitation of Remote Services:</strong> Weaponizing unpatched SMBv1 flaws to achieve remote code execution.</li><li><strong>T1068 — Exploitation for Privilege Escalation:</strong> Upgrading shell sessions to SYSTEM authority using automated privilege escalation techniques.</li><li><strong>T1110 — Brute Force:</strong> Multi-threaded dictionary attacks against authentication wrappers.</li></ul><h3>Assessment Scope &amp; Operational Metrics</h3><h4>Targeted Assets &amp; Parameters</h4><ul><li><strong>Target Scope:</strong> Production-representative Windows endpoints within an enterprise network segment.</li><li><strong>Primary Tooling Suite:</strong> Automated Exploitation Frameworks, Payload Generation Engines, Post-Exploitation Analysis Tools.</li><li><strong>Environment Type:</strong> Simulated Corporate Subnet.</li><li><strong>Operational Goal:</strong> Map vulnerability exploitation paths and document threat capabilities across active endpoints.</li></ul><h3>Assessment Metrics</h3><ul><li><strong>2</strong> target systems evaluated</li><li><strong>4</strong> security findings validated</li><li><strong>1</strong> critical vulnerability identified</li><li><strong>5</strong> detection use cases developed</li><li><strong>6</strong> remediation actions recommended</li></ul><h3>Assessment Methodology</h3><p>The engagement followed a structured penetration testing framework designed to replicate advanced threat behaviors:</p><ul><li><strong>Vulnerability Mapping and Enumeration:</strong> Checking remote configurations against known exploit databases.</li><li><strong>Target Exploitation:</strong> Weaponizing software flaws to establish primary command shells.</li><li><strong>Payload Upgrading:</strong> Migrating raw command interfaces into secure, multi-featured post-exploitation execution environments.</li><li><strong>Post-Exploitation and Privilege Escalation:</strong> Running automated system probes and reading sensitive proof-of-access artifacts.</li><li><strong>Defensive Control Mapping:</strong> Converting findings into actionable remediation and detection recommendations.</li></ul><h3>Technical Analysis</h3><h4>Vulnerability Analysis: Exposure Validation</h4><p>Initial validation targeted an active asset running an unpatched version of the Server Message Block (SMBv1) protocol. An MS17–010 exploitation workflow was configured to validate remote code execution against the vulnerable SMB service. The vulnerability validation successfully established remote code execution against the vulnerable SMB service, confirming the impact of the missing security update and proving that unpatched SMB services permit reliable remote code execution with elevated privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JifSJrvgODUxa0JThkQWvQ.png" /><figcaption>Variables setup displaying target parameters for the MS17–010 vulnerability validation path.</figcaption></figure><p>The target environmental variables were customized inside the exploitation context:</p><ul><li><strong>Selected Vulnerability Target:</strong> MS17–010 / Remote Code Execution Patch Gap</li><li><strong>Default Connection Mechanism:</strong> Reverse TCP Session</li></ul><h3>Exploit Execution: Securing the Access Channel</h3><p>Executing the exploit successfully compromised the host, dropping the connection into an interactive command shell. The initial command shell was upgraded to a fully interactive post-exploitation session to facilitate host analysis and privilege validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4F-pOLrrKWqTMw0O8HPD2A.png" /><figcaption>Upgrading a standard command shell into a fully interactive post-exploitation environment.</figcaption></figure><p>The session was updated to ensure stability, process migration, and advanced post-exploitation capability:</p><ul><li><strong>Active Post-Exploitation Session Status:</strong> Established</li><li><strong>Assigned Security Context:</strong> NT AUTHORITY\SYSTEM</li></ul><h3>Post-Exploitation Forensics: File System Interrogation</h3><p>With system authority confirmed, a file search was performed across local directory trees to locate high-value organizational targets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lo2_6q0MghQtlrX2XSh9Vg.png" /><figcaption>Automated storage audit tracing system library files on the target endpoint.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4F-pOLrrKWqTMw0O8HPD2A.png" /><figcaption>Target directories view confirming extraction of hidden data assets.</figcaption></figure><p>A sensitive administrative document stored within a user directory was successfully accessed following privilege escalation, demonstrating the impact of unrestricted local file permissions:</p><ul><li><strong>Forensic Status:</strong> Read access confirmed; data confidentiality compromised via administrative account visibility.</li></ul><h3>Lateral Movement Staging: Brute Force Testing Results</h3><p>To test the impact of account credential reuse across parallel assets, an alternate auxiliary authentication framework was selected to audit system logins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7OKi-mzN3HTruH4kod6iw.png" /><figcaption>Network authentication scanner checking parameter fields for authentication validation.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGL5bkqZM_x4Adpujis_ZA.png" /><figcaption>Multi-threaded password spraying console attempting system access against target wrappers.</figcaption></figure><p>The network scanner was configured with a known username library and a dictionary file to evaluate credential strength:</p><ul><li><strong>Selected Assessment Target:</strong> SMB Authentication Endpoint Verification</li><li><strong>Validation Outcome:</strong> Weak authentication controls allowed successful account compromise through dictionary-based password testing, accepting rapid, repeated authentication queries without locking the account and confirming a significant exposure to automated brute-force attacks and lateral movement.</li></ul><h3>Business Impact</h3><h4><em>Risk Realization Matrix</em></h4><ul><li><strong>Total System Compromise:</strong> Unpatched SMB flaws let unauthenticated network users execute arbitrary code with SYSTEM privileges, resulting in complete device takeover and business disruption.</li><li><strong>Rapid Domain Lateral Movement:</strong> Weak authentication controls allow adversaries to use dictionary wordlists to crack local passwords, letting them move laterally through internal subnets unnoticed.</li><li><strong>Data Exfiltration Vectors:</strong> Once a threat actor establishes an elevated session, they gain unrestricted access to local storage layers, allowing them to steal trade secrets, credentials, and sensitive databases.</li></ul><h3>Detection Engineering Recommendations</h3><p>Five distinct detection use cases were identified across network, endpoint, and authentication telemetry sources to enhance security operations center (SOC) monitoring capabilities.</p><h3>Essential Data Sources</h3><ul><li><strong>Windows Security Event Logs</strong></li><li><strong>System Monitor (Sysmon) Telemetry</strong></li><li><strong>EDR Agent Logging</strong></li><li><strong>SMB Protocol Traffic Capture</strong></li><li><strong>Internal Firewall / Network Flow Logs</strong></li></ul><h3>Detection Use Cases</h3><h4>1. SMB Exploitation Monitoring</h4><ul><li><strong>Indicator:</strong> High volume of non-standard connection requests directed at Port 445 featuring malformed buffer geometries or unexpected packet layouts.</li><li><strong>Network Signature:</strong> Alert on connections that attempt to negotiate dialect parameters below SMBv2 protocols, or unexpected service crashes following anomalous SMB requests.</li></ul><h4>2. Password Spraying &amp; Brute Force Detection</h4><ul><li><strong>Indicator:</strong> High volume of repeated login failures from a single source IP targeting an individual account or multiple usernames in rapid succession.</li><li><strong>Example SIEM Detection Logic (Windows Event ID 4625):</strong></li></ul><pre>EventID == 4625  | summarize Count=count() by SourceIP, TargetUser,<br>bin(Time, 1m)  | filter Count &gt; 10</pre><h4>3. Privilege Escalation Detection</h4><ul><li><strong>Indicator:</strong> Administrative productivity or network tools spawning unusual system binaries or shell handlers (Windows Event ID 4688 / 4672).</li><li><strong>Example Detection Logic:</strong></li></ul><pre>ParentProcessName IN (&quot;spoolsv.exe&quot;,&quot;lsass.exe&quot;) | where<br>ChildProcessName IN (&quot;cmd.exe&quot;,&quot;powershell.exe&quot;) | project<br>TimeGenerated, Hostname, AccountName</pre><h4>4. Credential Dumping Log Verification</h4><ul><li><strong>Indicator:</strong> Unauthorized processes requesting high-privilege access masks (such as 0x1F0FFF) to the Local Security Authority Subsystem Service (LSASS) memory space (Sysmon Event ID 10).</li></ul><h4>5. Suspicious Service Creation Tracking</h4><ul><li><strong>Indicator:</strong> Installation of unexpected, short-lived system tasks or services designed to run payloads under administrative contexts (Windows Event ID 7045).</li></ul><h3>Executive Recommendations &amp; Strategic Milestones</h3><p>To protect enterprise assets from automated exploitation and post-compromise manipulation, security engineering teams should follow this phased remediation roadmap:</p><pre>Immediate (0–30 Days)       Short-Term (30–90 Days)       Long-Term (90+ Days)<br> ───────────────────────     ─────────────────────────     ──────────────────────<br>  • Disable SMBv1             • Deploy EDR Coverage         • Network Segmentation<br>  • Apply MS17-010 Patches    • Centralize Log Shifting     • Implement PAM Suite<br>  • Enforce Lockout Rules     • Enable Credential Guard     • Continuous Assessment</pre><h4>1. Immediate Actions (0–30 Days)</h4><ul><li><strong>Decommission Legacy SMBv1 Routing:</strong> Formally disable the legacy SMBv1 protocol across all endpoints via Group Policy Objects (GPO) to eliminate the core exploit vector:</li></ul><pre>Registry Path Hardening:<br>HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters Value<br>Name: SMB1 -&gt; Set to 0 (Disabled)</pre><ul><li><strong>Deploy Security Updates:</strong> Enforce systematic security patch validation routines to ensure all operating systems immediately apply critical updates.</li><li><strong>Implement Adaptive Account Lockout Controls:</strong> Configure strict account validation thresholds within active directory environments to lock out profiles after successive credential validation errors, blocking automated password spray tools:</li></ul><pre>Account Lockout Policy: Account lockout threshold: 5 invalid logon<br>attempts Account lockout duration: 30 minutes</pre><h4>2. Short-Term Objectives (30–90 Days)</h4><ul><li><strong>Expand Endpoint Detection &amp; Response (EDR):</strong> Deploy and validate EDR agent visibility across all server and workstation baselines to capture process ancestry logs.</li><li><strong>Centralize Security Events:</strong> Route authentication, endpoint process creation, and network boundary traffic logs into a central SIEM platform.</li><li><strong>Harden Local Credential Protections:</strong> Enable Windows Defender Credential Guard to prevent memory harvesting tools from reading administrative hashes out of the LSASS process space.</li></ul><h4>3. Long-Term Security Architecture (90+ Days)</h4><ul><li><strong>Enforce Network Segmentation:</strong> Isolate critical administrative assets and corporate workstation segments from direct peer-to-peer network routing.</li><li><strong>Implement Privileged Access Management (PAM):</strong> Enforce vaulting for administrative credentials, mandate multi-factor authentication (MFA) for all lateral jumps, and eliminate static local administrator passwords.</li></ul><h3>Assessment Outcomes</h3><ul><li><strong>Validated Exploitability of Unpatched SMB Infrastructure:</strong> Validated that missing security updates exposed critical assets to remote compromise and significantly increased lateral movement risk.</li><li><strong>Demonstrated Business Impact Associated with Weak Authentication Controls:</strong> Proven that baseline access can be instantly upgraded to full device control and used to move laterally via multi-threaded credential spray attacks.</li><li><strong>Developed Actionable Detection Opportunities for SOC Monitoring:</strong> Designed 5 behavioral detection analytics use cases across network, endpoint, and identity telemetry layers.</li><li><strong>Produced Remediation Guidance Aligned with Security Hardening Best Practices:</strong> Compiled drop-in configuration and registry updates to enforce layered defense-in-depth controls.</li></ul><h3>Key Professional Takeaways</h3><ul><li><strong>Vulnerabilities Do Not Exist in Isolation:</strong> Weak authentication controls amplified the impact of the initial SMB exposure, turning a single compromised host into a launchpad for domain-wide lateral movement.</li><li><strong>Defensive Balance is Mandatory:</strong> True security resilience requires a combination of preventative patching and behavioral detection controls. Prevention eventually fails, and robust detection is required to limit dwell time.</li><li><strong>Patch Hygiene Solves Core Vulnerabilities:</strong> Maintaining basic software patch hygiene remains one of the most effective, highest-return security engineering activities an organization can implement.</li><li><strong>Detection Accompanies Remediation:</strong> Building reliable logging use cases during a compromise assessment ensures that even if remediation takes time, visibility is established immediately.</li></ul><h3>Skills Inventory Matrix</h3><h4>Offensive Security</h4><ul><li>Vulnerability Assessment</li><li>Exploit Verification</li><li>Windows Security Controls</li><li>Privilege Escalation Testing</li><li>Attack Path Analysis</li></ul><h4>Detection Engineering</h4><ul><li>SIEM Rule Development</li><li>Event Log Correlation</li><li>Threat Detection Logic</li><li>Behavior Signature Design</li><li>MITRE ATT&amp;CK Mapping</li></ul><h4>Security Engineering</h4><ul><li>Security Hardening</li><li>Group Policy Configuration</li><li>Registry Path Hardening</li><li>Patch Management Validation</li><li>Access Control Review</li></ul><h4>Risk &amp; Governance</h4><ul><li>Risk Assessment</li><li>Technical Reporting</li><li>Remediation Planning</li><li>Executive Communication</li><li>Vendor Lifecycle Review</li></ul><h3>Conclusion</h3><p>This assessment demonstrated how a single unpatched service combined with weak authentication controls can create a complete compromise pathway from initial access to administrative control. The exercise reinforced the importance of combining vulnerability management, identity security, detection engineering, and security hardening to reduce organizational risk and improve defensive resilience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=601ca1c447cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical Case Study: Comprehensive Network Infrastructure & Service Enumeration]]></title>
            <link>https://medium.com/@abiodun475/technical-case-study-comprehensive-network-infrastructure-service-enumeration-b59984edb55d?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/b59984edb55d</guid>
            <category><![CDATA[enumeration]]></category>
            <category><![CDATA[network-infrastructure]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 19:01:07 GMT</pubDate>
            <atom:updated>2026-06-07T19:01:07.418Z</atom:updated>
            <content:encoded><![CDATA[<h3>Legal Disclaimer</h3><p>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real-world enterprise infrastructure or production systems were targeted. All sensitive data, network parameters, and machine identifiers have been completely sanitized or redacted. This content is provided to demonstrate network scanning methodologies, service version verification, and defensive mitigation planning for learning purposes only.</p><h3>Executive Summary</h3><p>This assessment evaluated the exposed attack surface of a simulated enterprise host through network reconnaissance, service fingerprinting, and vulnerability validation. Multiple services were identified, including SSH, SMB, HTTP, and FTP. The assessment revealed information disclosure risks, plaintext service exposure, and weak protections against automated authentication attacks. Remediation recommendations focused on encryption enforcement, service hardening, and adaptive access controls.</p><ul><li><strong>Objective:</strong> Map perimeter visibility, validate service vulnerabilities, and identify configuration gaps.</li><li><strong>What was discovered:</strong> Precise software version banners, an unencrypted FTP instance running on a non-standard port, and a lack of authentication rate-limiting.</li><li><strong>Overall Risk Level:</strong> High (due to plaintext authentication exposure and verbose banner details).</li></ul><h3>Key Findings</h3><h4><em>Security Exposure Summary</em></h4><ul><li><strong>Plaintext Authentication Interception (High):</strong> Credentials can be harvested via network sniffing because vsftpd transmits passwords in plaintext.</li><li><strong>SSH Version Disclosure (Medium):</strong> Management ports leaked explicit operating system distributions and software patch levels.</li><li><strong>FTP Service on Non-Standard Port (Medium):</strong> A vulnerable file transfer service was discovered hidden on an alternate communication layer.</li><li><strong>Missing Brute-Force Protection (Medium):</strong> Remote access points accepted rapid authentication connections without rate-limiting or blocking source IPs.</li><li><strong>Excessive Banner Exposure (Medium):</strong> Web services and SMB daemons exposed granular software configurations to unauthenticated network queries.</li></ul><p>Vulnerability &amp; Severity Matrix</p><pre>Finding: Plaintext Authentication Interception<br>Severity: High<br>Impact: Permits raw credential harvesting via passive network sniffing.</pre><pre>Finding: Verbose Service Version Disclosure<br>Severity: Medium<br>Impact: Facilitates precise vulnerability targeting and exploitation mapping.</pre><pre>Finding: Insecure Shadow Service Deployment<br>Severity: Medium<br>Impact: Over-reliance on “security through obscurity” fails against full-range port sweeps.</pre><pre>Finding: Missing Adaptive Anti-Brute Force Protection<br>Severity: Medium<br>Impact: Allows continuous, high-velocity dictionary attacks without blocking indicators.</pre><h3>Assessment Scope</h3><h4><em>Targeted Assets &amp; Parameters</em></h4><ul><li><strong>Primary Target Host:</strong> 10.112.184.174</li><li><strong>Port Range Audit:</strong> Full TCP Spectrum ($1\text{–}65535$)</li><li><strong>Environment Type:</strong> Simulated Corporate Enterprise Subnet</li><li><strong>Operational Goal:</strong> Evaluate asset visibility against an intrusive inspection profile while assessing local Intrusion Detection System (IDS) telemetry.</li></ul><h3>Assessment Methodology</h3><p>The engagement followed a structured security assessment lifecycle, shifting away from standard Capture The Flag (CTF) routines to mirror an enterprise consulting engagement:</p><ol><li><strong>External Attack Surface Mapping:</strong> Fast-velocity TCP sweeps to identify live hosts and active baseline communication sockets.</li><li><strong>Full-Spectrum Socket Auditing:</strong> Expanding the investigation to the entire layer-4 TCP layout ($1\text{–}65535$) to locate hidden or non-standard deployments.</li><li><strong>Granular Service Fingerprinting:</strong> Forcing remote open ports to return raw banner strings and application signatures via the Nmap Scripting Engine (NSE).</li><li><strong>Vulnerability Validation:</strong> Staging baseline dictionary attacks to evaluate the platform’s resilience against automated credential stuffing.</li><li><strong>Defensive Engineering &amp; Detection Design:</strong> Engineering actionable configurations to obfuscate banners, restrict network egress paths, and build robust SOC detection logic.</li></ol><h3>Attack Surface Overview</h3><p>Initial port sweeps established host availability and mapped active listening sockets across standard port selections. A standard port scan targets only the top 1,000 ports, which can leave a significant blind spot regarding shadow infrastructure or applications intentionally moved to alternate channels.</p><p>To guarantee full infrastructure visibility, the scan profile was expanded to check the complete TCP port range ($1\text{–}65535$). This full TCP port scan identified two additional services running on non-standard ports, establishing a complete layout of the listening target surface.</p><h3>Technical Analysis</h3><h3>Reconnaissance: Stealth SYN Port Sweeping</h3><p>A targeted SYN stealth scan was executed against the primary target engine to map active listening ports and initialize parallel traceroute diagnostics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Crdilh04SKvWSdjqUX8TgA.png" /><figcaption>Initial SYN stealth scan telemetry discovering active ports and initializing parallel OS fingerprinting scripts.</figcaption></figure><p>The initial scan discovered five active listening channels within the common 1,000 port baseline:</p><ul><li><strong>Port 22/TCP (Open):</strong> Secure Shell (SSH) configuration gateway.</li><li><strong>Port 80/TCP (Open):</strong> HTTP web server instance.</li><li><strong>Port 139/TCP (Open):</strong> NetBIOS Session Service.</li><li><strong>Port 445/TCP (Open):</strong> Microsoft-DS Active Directory/SMB file sharing.</li><li><strong>Port 8081/TCP (Open):</strong> Alternative HTTP web gateway running a Node.js Express middleware stack.</li></ul><h3>Enumeration: Full-Range Socket Auditing</h3><p>To ensure no alternate communication paths were missed, a full TCP port range sweep was launched against the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0XSVmYT29WL96boQ8aAqw.png" /><figcaption>Full-range port scan verifying services hosted outside standard communication zones.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmS1dSmoVQt9LeQ1UWJ1dA.png" /><figcaption>Post-scan telemetry mapping confirmed port statuses across the entire $65,535$ TCP spectrum.</figcaption></figure><p>The full TCP port scan identified two additional services running on non-standard ports:</p><ol><li><strong>Port 10001/TCP (Open):</strong> Custom secure copy (scp-config) handler.</li><li><strong>Port 10121/TCP (Open):</strong> An unverified daemon socket requiring focused version inspection.</li></ol><h3>Service Fingerprinting: Advanced Banner Interrogation</h3><p>To isolate the exact build information of the discovered services, targeted version interrogation scanning (-sV) was applied directly to the target interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9eiPvuqBGzkwo6fCrt7SQ.png" /><figcaption>Detailed service output revealing custom application banners and verbose web backend headers.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETznVKoaV2dMoVBww6_gdg.png" /><figcaption>Raw fingerprint strings capturing unauthenticated web application responses</figcaption></figure><p>The advanced fingerprinting scans captured verbose data strings across multiple listening sockets:</p><p>Plaintext</p><pre>PORT      STATE SERVICE     VERSION<br>22/tcp    open  ssh         OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (protocol 2.0)<br>|_ssh-hostkey: SSH-2.0-OpenSSH_8.2p1 THM{946219583339}<br>80/tcp    open  http        THM{MySpecialServer007}<br>139/tcp   open  netbios-ssn Samba smbd 4.6.2<br>445/tcp   open  netbios-ssn Samba smbd 4.6.2<br>8081/tcp  open  http        Node.js Express middleware<br>10001/tcp open  scp-config?</pre><p>By executing an explicit version probe targeting only the highest open port discovered (-sV -p 10121), the unknown service was forced to return its application banner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZlT15FIm_eovt_QuLZrQg.png" /><figcaption>Version inspection verifying a legacy file transfer application hosted on an atypical port.</figcaption></figure><p>The signature scan successfully extracted the hidden service details:</p><ul><li><strong>Identified Service Port:</strong> 10121/TCP</li><li><strong>Exposed Software Version:</strong> vsftpd 3.0.5</li></ul><h3>Vulnerability Validation: Web Source &amp; Authentication Audits</h3><p>The web interface hosted on Port 8081 was thoroughly audited to determine if its underlying source configurations leaked infrastructure data or security control parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQmiXVt6ayeByWZFmcb3Dg.png" /><figcaption>Developer source tools inspecting raw HTML tags and embedded scripting documentation.</figcaption></figure><p>The DOM source audit revealed strict operational constraints built directly into the application instructions, indicating that an internal Intrusion Detection System (IDS) was actively calculating the velocity and detection probability of incoming scans.</p><p>To evaluate the target’s resilience against automated credential stuffing on plaintext protocols, a baseline dictionary attack was staged using Hydra against the vsftpd instance on Port 10121.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*264Fcb9oTNL8XlDk7LbIyQ.png" /><figcaption>Hydra automated command line launching a parallel dictionary audit against the target FTP interface.</figcaption></figure><p>The automated dictionary script successfully executed parallel login attempts (max 16 tasks per 1 server) against the exposed authentication wrapper without triggering any automated blocking or rate-limiting thresholds.</p><h3>Business Impact</h3><h4><em>Risk Realization Matrix</em></h4><ul><li><strong>Facilitated Vulnerability Exploitation:</strong> Disclosing exact software builds allows attackers to immediately match exposed services to public remote code execution (RCE) exploit scripts, drastically reducing their engineering timeline.</li><li><strong>Credential Interception:</strong> Because vsftpd transmits credentials in plaintext, any administrative authentication session on Port 10121 can be read directly from the network traffic by a local adversary.</li><li><strong>Sustained Password Spraying:</strong> The lack of adaptive rate limiting allows threat actors to brute-force network entry points indefinitely without alerting system administrators or locking accounts.</li></ul><h3>Detection Opportunities</h3><h4>SOC Monitoring &amp; Alerting Signatures</h4><h4>1. Detect Full Port Scans</h4><ul><li><strong>Telemetry Source:</strong> Firewall / IDS logs</li><li><strong>Indicator:</strong> A single source IP establishing high-volume connection attempts across multiple sequential destination ports within a narrow time window.</li><li><strong>Nmap Fingerprint:</strong> Inbound HTTP requests containing specific User-Agent strings such as Nmap Scripting Engine.</li></ul><h4>2. Detect Brute-Force Activity</h4><ul><li><strong>Telemetry Source:</strong> Application Authentication / VSFTPD logs</li><li><strong>Indicator:</strong> High volume of repeated login failures from a single source IP targeting an individual account or multiple usernames in rapid succession.</li><li><strong>SIEM Detection Filter Logic:</strong></li></ul><p>Plaintext</p><pre>EventID == &quot;FTP_LOGIN_FAILURE&quot;  | summarize Count=count() by SourceIP,<br>TargetUser, bin(Time, 1m)  | filter Count &gt; 10</pre><h4>3. Detect Service Enumeration</h4><ul><li><strong>Telemetry Source:</strong> Network Intrusion Detection System (NIDS) / Packet Inspection</li><li><strong>Indicator:</strong> Multiple fast-velocity connection streams that open sockets and instantly send diagnostic probes to extract software version headers without completing valid application interactions.</li></ul><h3>Remediation Strategy</h3><p>To secure the network surface and protect exposed application endpoints, implement the following engineering controls:</p><ul><li><strong>Implement Explicit Service Banner Obfuscation:</strong> Suppress specific software version numbers from public headers. For web engines, update server option blocks to ensure exact application versions are hidden in response profiles:</li></ul><p>Nginx</p><pre># Hide exact web application version paths server_tokens off;</pre><ul><li><strong>Enforce Strict Perimeter Access Management:</strong> Deploy host-based firewall rules to close non-essential ports and enforce a default-deny policy for unrequested incoming traffic. Restrict management interfaces (such as SSH) behind a trusted corporate VPN or access-controlled Bastion host rather than routing them over open-facing networks.</li><li><strong>Deprecate Cleartext Protocols:</strong> Permanently disable the unencrypted FTP daemon running on Port 10121. Migrate all file transfer workflows entirely to cryptographically secure alternatives like SFTP or Secure Copy (scp).</li><li><strong>Deploy Adaptive Rate Limiting Controls:</strong> Integrate an automated firewall defense script (such as fail2ban) to statefully monitor authentication logs and temporarily block source IPs that generate excessive validation failures.</li><li><strong>Harden Cryptographic Policies:</strong> Update the target SSH configuration file (/etc/ssh/sshd_config) to eliminate weak fallback options and enforce rigorous key management hygiene:</li></ul><p>Plaintext</p><pre># Enforce modern cryptographic standards KexAlgorithms curve25519-<br>sha256@libssh.org Ciphers aes256-gcm@openssh.com,chacha20-<br>poly1305@openssh.com</pre><h3>Assessment Outcomes</h3><ul><li><strong>Asset Discovery:</strong> Successfully mapped the full 65,535 TCP port spectrum, locating two shadow services hosted on non-standard ports.</li><li><strong>Information Leakage Mitigated:</strong> Documented exact version headers on web, SSH, and SMB services to serve as baseline tracking for upcoming banner-obfuscation configurations.</li><li><strong>Authentication Hardening:</strong> Demonstrated the feasibility of automated brute-force attacks against open daemons to justify the deployment of adaptive rate-limiting firewall policies.</li></ul><h3>Key Lessons Learned</h3><ul><li><strong>Obscurity is Not Security:</strong> Moving legacy plaintext services (like FTP) to non-standard ports (like 10121) provides zero cryptographic protection and fails to stop automated full-range sweeps, which easily locate the exposure.</li><li><strong>Default Verbosity Enhances Attacker Speed:</strong> Leaving default software builds and operating system paths enabled within public headers gives adversaries an exact technical roadmap of your internal infrastructure.</li><li><strong>Stateful Logging Demands Active Defense:</strong> Passive detection tools (like IDS logs) must be closely integrated with active network blocking systems (like automated firewalls) to completely disrupt automated multi-threaded scanning tools.</li></ul><h3>Skills Demonstrated</h3><ul><li><strong>Advanced Surface Exploration:</strong> Mapping layer-4 TCP configurations across non-standard port fields.</li><li><strong>Service Fingerprinting &amp; Banner Interrogation:</strong> Reading raw application banners and protocol headers via script integration.</li><li><strong>Vulnerability Validation Mapping:</strong> Analyzing authentication vulnerabilities and dictionary attack vectors.</li><li><strong>Detection Engineering Logic Design:</strong> Crafting SIEM log rules and defining behavior monitoring parameters to spot automated scans.</li><li><strong>Remediation Engineering Strategy Formulation:</strong> Developing drop-in server configuration fixes to harden systems and obfuscate infrastructure indicators.</li></ul><h3>Conclusion</h3><p>This assessment demonstrated how standard port scanning assumptions can leave hidden infrastructure exposed to targeted discovery. By verifying unencrypted alternate channels, documenting verbose application signatures, and evaluating authentication limits, the project validated both perimeter entry risks and the effectiveness of stateful defensive engineering fixes. Implementing banner obfuscation, protocol deprecation, and active logging parameters will significantly decrease organizational exposure to infrastructure mapping and automated network-based attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b59984edb55d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security Assessment: Cleartext Protocol Exposure and Cryptographic Hardening]]></title>
            <link>https://medium.com/@abiodun475/security-assessment-cleartext-protocol-exposure-and-cryptographic-hardening-bf78e83fb13d?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf78e83fb13d</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[protocol]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 03:41:21 GMT</pubDate>
            <atom:updated>2026-06-05T03:41:21.931Z</atom:updated>
            <content:encoded><![CDATA[<h3>Legal Disclaimer</h3><p>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real world enterprise infrastructure or production environments were targeted. All sensitive data, network parameters, and machine identifiers have been completely sanitized or redacted. This content is provided to demonstrate network traffic analysis, cleartext protocol vulnerabilities, and defensive hardening configurations for learning purposes only.</p><h3>Executive Summary</h3><p>An enterprise network infrastructure assessment was conducted to evaluate the exposure of standard application layer protocols and document the risks associated with cleartext transmissions. By monitoring traffic passing through unsecured services, including HTTP, FTP, SMTP, and POP3, this case study highlights how easily sensitive technical data can be captured.</p><p>The primary objective of this project was to analyze protocol structures under simulated operational conditions, demonstrate the security risks associated with cleartext communications, and implement robust security engineering fixes. This report outlines the technical workflows used to capture insecure session data, execute secure alternative transfers via SSH/SCP, and establish defensive protocol baselines.</p><h3>Assessment Methodology</h3><ul><li>Identification of exposed legacy services</li><li>Manual protocol interaction using Telnet and FTP</li><li>Network traffic capture and analysis using Wireshark</li><li>Verification of cleartext credential exposure</li><li>Validation of secure alternatives using SSH and SCP</li><li>Development of hardening recommendations and detection opportunities</li></ul><h3>Key Metrics &amp; Assessment Profile</h3><ul><li><strong>Assessment Phase:</strong> Network Security Assessment &amp; Protocol Hardening Review</li><li><strong>Methodologies:</strong> Cleartext Session Interception, Cryptographic Hardening, Secure File Transfer Protocol (SFTP/SCP) Implementation, Traffic Filtering Verification</li><li><strong>Primary Tooling:</strong> Telnet, FTP Client CLI, Wireshark, Secure Shell (ssh), Secure Copy (scp), TCPdump</li><li><strong>Remediation Priority:</strong> High (Protocol Deprecation &amp; Cryptographic Enforcement)</li></ul><h3>Application Layer Protocol Auditing &amp; Interception</h3><p>Legacy application layer protocols transmit authentication credentials and session commands in cleartext, creating major exposure points on a network.</p><h3>HTTP Service Enumeration and Banner Analysis</h3><p>To audit HTTP service exposure, a direct TCP connection was established to the target web server on Port 80 using Telnet. By sending a raw GET /flag.thm HTTP/1.1 request, the server’s backend details were extracted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBVHr5IwnAA-sMT24PTCug.png" /><figcaption>HTTP header interrogation via Telnet showing server banner information.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCp2Qa0H5GU9OE5LjM7ShQ.png" /><figcaption>Manual HTTP request demonstrating retrieval of application content over an unencrypted channel.</figcaption></figure><p>The raw response string exposed detailed system configuration data:</p><ul><li><strong>Target Web Server Engine:</strong> nginx/1.18.0 (Ubuntu)</li><li><strong>Content-Type Payload:</strong> application/octet-stream</li><li><strong>Evidence:</strong> Sensitive application data was retrievable over an unencrypted HTTP session.</li></ul><h3>Insecure File Transfer Protocol (FTP) Inspection</h3><p>Analysis of FTP traffic revealed that authentication and file transfer operations occurred without encryption, exposing credentials and transferred data to interception (10.10.0.148) using known credentials. Because the underlying protocol lacks transport layer encryption, every directory listing and file retrieval command passes across the wire unencrypted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IpBZTqL1GzwQzBYflMGTCw.png" /><figcaption>FTP terminal session logs demonstrating unencrypted directory navigation and successful retrieval of target file assets.</figcaption></figure><p>The remote session log shows the complete sequence:</p><ol><li><strong>Command Execution:</strong> The operator executed a get ftp_flag.thm directive.</li></ol><p><strong>2. Transfer Mode:</strong> The engine initialized an unencrypted BINARY mode data connection.</p><p>The file contents were transferred and recovered in plaintext, demonstrating the absence of transport-layer encryption.</p><h3>Simple Mail Transfer Protocol (SMTP) Session Capture</h3><p>Cleartext mail relays allow malicious actors to sniff messaging contents or inject unauthorized mail spools. A raw interface socket was connected to an active target SMTP server on Port 25 to evaluate banner exposure and mail routing structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06PFsw8JkQkbsZ2Go5I-WQ.png" /><figcaption>SMTP session tracking showing mail routing handshake commands and cleartext server banner strings.</figcaption></figure><p>The target SMTP service revealed explicit software configuration markers:</p><ul><li><strong>Service Banner:</strong> 220 bento.localdomain ESMTP Postfix (Ubuntu)</li><li><strong>Handshake Routing Protocol:</strong> Allowed raw text tracking of sender data (mail from:, rcpt to:, data) without checking message integrity.</li><li>The file transfer successfully demonstrated that sensitive information could be recovered over an unencrypted channel</li></ul><h3>Post Office Protocol (POP3) Credential Sniffing</h3><p>Legacy mail delivery agents frequently use POP3 on Port 110. A manual telnet connection was directed to a target mail storage asset (TARGET WEB SERVER) to test authentication visibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANmSCrYHtS0EHnVDU4XvPA.png" /><figcaption>Manual POP3 session tracing demonstrating unencrypted user login tracking and message index enumeration.</figcaption></figure><p>The terminal session logs show sensitive parameters passing in plaintext:</p><ul><li>USER ****</li><li>PASS *****</li><li>+OK logged in.</li></ul><p>The POP3 authentication exchange was transmitted in plaintext, making credentials recoverable through packet inspection.</p><h3>Packet Capture Forensics &amp; Network Visibility</h3><p>When protocols fail to use transport layer encryption, network monitoring tools like Wireshark or tcpdump can easily capture and reconstruct full communication sessions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxClBoLQ5XB5eiZmbhQXjA.png" /><figcaption>Wireshark packet capture trace confirming cleartext exposure of authentication strings within a POP3 data stream.</figcaption></figure><p>Analyzing the captured network packet stream proves the risk of unencrypted protocols:</p><ul><li><strong>Packet Capture Evidence:</strong> Username and password fields were visible within the packet payload, demonstrating the absence of transport-layer encryption.</li><li><strong>Network Visibility Impact:</strong> Any attacker positioned on an intermediate network path can pull these credentials straight from the traffic, completely bypassing local endpoint authentication controls.</li></ul><h3>Remediation Validation: Secure Protocol Migration</h3><p>To mitigate the risks of cleartext data leakage, all unencrypted management and file transfer protocols must be replaced with cryptographically secure alternatives like SSH and SCP.</p><h3>Verification of Kernel Releases via Secure Shell</h3><p>An administrative session was initialized targeting an encrypted Ubuntu asset (Target SSH Host) using SSH. This established an asymmetric encryption channel, ensuring all credentials and shell commands remained fully protected from network sniffing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_Thjtup0JcO0mu4sQ5FLQ.png" /><figcaption>Encrypted SSH interactive terminal profile validating target environment kernel release details.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Phe0-k1L_IrO0dmrB3mFXA.png" /><figcaption>Technical verification log confirming active cryptographic host connectivity and command state completions.</figcaption></figure><p>Upon establishing a secure shell, system analytics were pulled safely:</p><ul><li><strong>Encrypted Command Execution:</strong> uname -r</li><li><strong>Verified Target Kernel Release:</strong> 5.15.0-119-generic</li></ul><h3>Secure File Transfer via SCP</h3><p>The insecure FTP file protocol was deprecated and replaced with Secure Copy (scp), routing files over an encrypted SSH connection (Port 22). A target file asset (book.txt) was transferred securely from the remote node back to the local controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odiGEMJD3LV59oFjf5ACtA.png" /><figcaption>Secure copy console interface executing an encrypted file download pipeline.</figcaption></figure><p>The cryptographic file transfer process completed successfully:</p><ul><li><strong>Encrypted Execution Command:</strong> Secure Copy (SCP) was used to transfer files from a remote Linux host over an encrypted SSH session.</li><li><strong>File Footprint Transfer Metrics:</strong> 415 KB transferred at 70.4 MB/s over a fully encrypted transport pipeline.</li></ul><h3>Relevant ATT&amp;CK Techniques</h3><ul><li>T1040 — Network Sniffing</li><li>T1078 — Valid Accounts</li><li>T1557 — Adversary-in-the-Middle</li></ul><h3>Key Security Findings</h3><h3>Cleartext Credential Disclosure (POP3 / FTP)</h3><ul><li><strong>Severity:</strong> High</li><li><strong>Description:</strong> POP3 and FTP transmitted authentication credentials without encryption.</li><li><strong>Evidence:</strong> Credentials were observable within captured network traffic.</li><li><strong>Risk:</strong> Attackers with network visibility could recover credentials and gain unauthorized access.</li><li><strong>Recommendation:</strong> Replace FTP and POP3 with SFTP, SCP, or encrypted mail protocols.</li></ul><h3>Verbose Software Banner Leakage (HTTP / SMTP)</h3><ul><li><strong>Severity:</strong> Medium</li><li><strong>Description:</strong> Public facing infrastructure returned exact software version strings (e.g., nginx/1.18.0, ESMTP Postfix (Ubuntu)).</li><li><strong>Impact:</strong> Allows threat actors to skip speculative testing and quickly map target hosts to explicit software bugs or public exploit indexes.</li></ul><h3>Insecure Transport Architecture (Port 23 / Port 25 Exposure)</h3><ul><li><strong>Severity:</strong> Medium</li><li><strong>Description:</strong> The network perimeter allowed unencrypted management traffic (Telnet) and unauthenticated mail relays (SMTP) across internal zones.</li><li><strong>Impact:</strong> Exposes internal data paths to credential sniffing, data manipulation, and man-in-the-middle (MITM) attacks.</li></ul><h3>Detection Opportunities</h3><ul><li>Telnet traffic on Port 23</li><li>FTP authentication events</li><li>POP3 cleartext credential transmission</li><li>SMTP relay misuse</li><li>HTTP administrative interfaces without TLS</li><li>Legacy protocol usage on internal networks</li></ul><h3>Business Impact</h3><ul><li>Exposure of authentication credentials transmitted over unencrypted channels</li><li>Increased risk of unauthorized access to business systems and services</li><li>Higher likelihood of lateral movement following credential compromise</li><li>Potential regulatory and compliance violations involving sensitive data transmission</li><li>Loss of confidentiality and integrity for business communications</li><li>Expanded attack surface for network-based adversaries</li></ul><h3>Remediation Engineering Strategy</h3><p>To secure the network perimeter and protect sensitive data from cleartext interception, implement the following engineering controls:</p><ul><li><strong>Enforce Strict Protocol Deprecation:</strong> Formally disable legacy, unencrypted services across all enterprise assets. Replace insecure protocols with their encrypted equivalents</li><li><strong>Harden SSH Server Parameters:</strong> Update the target SSH configuration file (/etc/ssh/sshd_config) to eliminate weak fallback options and enforce rigorous key management hygiene:</li></ul><p>Plaintext</p><pre># Disable root access and password authentication PermitRootLogin no<br>PasswordAuthentication no  # Restrict access to explicit user groups<br>AllowUsers mark admin_sec  # Configure modern, secure cryptographic<br>primitives KexAlgorithms curve25519-sha256@libssh.org Ciphers<br>chacha20-poly1305@openssh.com,aes256-gcm@openssh.com</pre><pre>* **Deploy Network Monitoring and Filtering Controls:<br>Implement firewall rules, IDS/IPS policies, and SIEM detections to identify and block legacy protocol usage across network segments.<br>  ```text<br>  # SIEM Detection Filter Logic:<br>  Traffic Direction: Internal-to-External OR Zone-to-Zone<br>  Target Flag == Destination Ports (23, 110, 21) -&gt; ALERT &amp; BLOCK</pre><ul><li><strong>Sanitize Application Server Banners:</strong> Suppress specific software version numbers from public error pages and service headings. Update the web server configuration to generic settings:</li><li>Nginx</li></ul><pre># Hide exact version strings in application response profiles server_tokens off;</pre><h3>Detection Engineering Opportunities</h3><h4>Detect Telnet Usage</h4><pre>destination_port=23</pre><h4>Detect POP3 Authentication</h4><pre>destination_port=110</pre><h4>Detect FTP Authentication</h4><pre>destination_port=21</pre><h4>Detect Cleartext Credential Patterns</h4><pre>USER *<br>PASS *</pre><h4>Detect Unencrypted SMTP Usage</h4><pre>destination_port=25</pre><p><strong>Security Controls Evaluated</strong></p><ul><li>Network encryption controls</li><li>Protocol security configurations</li><li>Service exposure management</li><li>Secure file transfer mechanisms</li><li>Network monitoring and visibility</li><li>Detection and alerting opportunities</li></ul><h3>Assessment Outcomes</h3><ul><li>Identified four legacy protocols transmitting sensitive data without encryption.</li><li>Demonstrated credential exposure through packet capture analysis.</li><li>Validated SSH and SCP as secure protocol replacements.</li><li>Developed detection opportunities for SOC monitoring and alerting.</li><li>Produced hardening recommendations aligned with modern security best practices.</li></ul><h3>Skills Demonstrated</h3><ul><li>Network Traffic Analysis</li><li>Packet Capture and Protocol Inspection</li><li>Wireshark Analysis</li><li>Security Assessment Methodology</li><li>Detection Engineering</li><li>Secure Protocol Migration</li><li>Infrastructure Hardening</li><li>Technical Security Reporting</li><li>Risk Assessment and Remediation</li></ul><h3>Key Lessons Learned</h3><ul><li><strong>Encryption Gaps:</strong> Relying on default protocol settings frequently leaves legacy cleartext options enabled, exposing core authentication strings to basic packet capture tools.</li><li><strong>Interception Simplicity:</strong> Intercepting cleartext communications requires minimal effort. Standard packet-capture tools can reconstruct authentication exchanges, commands, and transferred data whenever transport-layer encryption is absent.</li><li><strong>Defense-in-Depth Needs:</strong> Simple firewalls are insufficient if internal traffic remains completely unencrypted. Security teams must enforce encryption at the application layer to guarantee data confidentiality.</li></ul><h3><strong>Conclusion</strong></h3><p>This assessment demonstrated how legacy protocols can expose authentication credentials, service metadata, and sensitive communications when encryption is not enforced. Through protocol analysis, packet inspection, and secure service migration, the assessment validated both the risks associated with cleartext communications and the effectiveness of modern cryptographic alternatives. The exercise reinforced the importance of protocol modernization, network visibility, and layered defensive controls in reducing organizational exposure to credential theft and network-based attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf78e83fb13d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical Case Study: Endpoint Incident Response & Malware Dissection]]></title>
            <link>https://medium.com/@abiodun475/technical-case-study-endpoint-incident-response-malware-dissection-0e0d9a292973?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e0d9a292973</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[incident-management]]></category>
            <category><![CDATA[cyber-incident-response]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-06-03T06:01:01.892Z</atom:updated>
            <content:encoded><![CDATA[<h3>Legal Disclaimer</h3><p><em>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real-world enterprise infrastructure or production environments were targeted. All sensitive data, domain names, session parameters, and machine identifiers have been completely sanitized or redacted. This content is provided to demonstrate incident response playbooks, host-based forensics tools, and threat eradication strategies for learning purposes only.</em></p><h3>Executive Summary</h3><p>A targeted incident response investigation was conducted on an enterprise Windows endpoint to isolate, analyze, and eradicate a active malicious process. The entry point involved user interaction with a deceptive document containing an automated, hidden script execution framework.</p><p>By conducting host-level runtime analysis, network socket correlation, and forensic inspection of persistent software layers, the investigation successfully mapped the full execution path of the threat. The rogue binary was isolated, active outbound connections to external staging infrastructure were severed, and automated launch mechanisms were permanently cleaned from the asset registry.</p><h3>Key Metrics &amp; Incident Profile</h3><ul><li><strong>Incident Phase:</strong> Identification, Triage, and Eradication</li><li><strong>Threat Vectors:</strong> Malicious Macro Document, Untrusted Temp Execution, Persistent Autostart Registry Run Key Modification</li><li><strong>Primary Tooling:</strong> Windows Task Manager, Command Prompt (netstat), Microsoft Office VBA Editor, Windows Registry Editor (regedit), Windows Edge Download History Forensics</li><li><strong>Remediation Priority:</strong> High (Endpoint hardening, Group Policy Macro Control, Endpoint Detection Policy tuning)</li></ul><h3>Initial Triage: Identifying the Runtime Anomaly</h3><p>Effective endpoint defense relies on monitoring resource utilization baselines. Defensive operations initiate as soon as system performance falls outside typical operational thresholds.</p><h3>Host-Level Process Inspection</h3><p>The system user reported uncharacteristic lag and performance issues. Launching Windows Task Manager revealed that an unverified executable file, operating out of a local background execution loop, was completely saturating processing capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*N2YUqaEMDx7kDslITAdMTA.png" /><figcaption>Initial Task Manager execution block showing a blank process list prior to granular application inspection.</figcaption></figure><p>Expanding the system details interface exposed an unrecognized background process that consumes over half of the endpoint’s total processing resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*5Vt4tcB5qWjSX83kDII6sA.png" /><figcaption>Task Manager background processes list identifying high resource utilization by an untrusted binary thread.</figcaption></figure><p>The rogue background process was running under a randomized string identifier:</p><ul><li>An untrusted executable was observed running from<br>the local Temp directory. (32th4ckm3)</li><li><strong>CPU Saturation Rate:</strong> <strong>50.6%</strong></li><li><strong>Memory Footprint:</strong> 0.6 MB (Highly condensed payload footprint)</li></ul><h3>Forensic Binary Properties Validation</h3><p>Inspecting the process properties window confirmed that the executable file was launching out of an atypical directory space, which is highly indicative of automated drive-by downloads or drop-and-execute scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*7jUnTr_QQxf24CTwrkm_Xg.png" /><figcaption>File properties menu detailing the untrusted binary file size and its specific directory path.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*4GK2WjWjaEbim5b0EWu_uQ.png" /><figcaption>Target file properties overview detailing file compilation metadata and staging directory paths.</figcaption></figure><p>The binary execution paths revealed critical environmental anomalies:</p><ul><li><strong>Binary Execution Path:</strong> C:\Users\TryCleanUser\AppData\Local\Temp\2\suspicious-executable.exe</li><li><strong>File Footprint on Disk:</strong> 12.4 MB (13,074,432 bytes)</li><li><strong>Risk Context:</strong> Legitimate application programs rarely execute persistent software loops directly out of local user \Temp\ directory paths. This directory location serves as a common staging area for staging payloads dropped by initial delivery vectors.</li></ul><h3>Advanced Analysis: Correlating Processes and Network Sockets</h3><p>Confirming a runtime anomaly requires mapping active local process identifiers directly to outgoing transport layer network connections.</p><h3>Transport Layer Analysis via Netstat</h3><p>To determine if the rogue binary was communicating with external assets, an elevated terminal session was initialized to trace socket connections using netstat configurations (netstat -aofn). Filtering the output block specifically for the malicious process ID (PID 4228) confirmed an active outbound connection attempt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*BfnZ5SLmLffOMsHI6P0g5w.png" /><figcaption>Detailed system task telemetry mapping the rogue binary execution layer to its explicit active PID status.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*RyTOm5ySQF8rUgzB1ghWyw.png" /><figcaption>Elevated command terminal trace displaying an active transport layer connection string linked directly to the target process ID.</figcaption></figure><p>The network socket configuration returned specific indicators of compromise:</p><ul><li><strong>Local Origin Interface:</strong> 10.80.129.177:49687</li><li><strong>Remote Destination Address:</strong> 45.33.32.156:42424</li><li><strong>Connection State:</strong> SYN_SENT</li><li><strong>Operational Rationale:</strong> The continuous SYN_SENT state indicates the endpoint is aggressively trying to establish an outbound TCP channel to an external command-and-control (C2) staging IP address, The process repeatedly attempted to establish outbound connections to an untrusted external IP address. This behavior is consistent with command and control communications and warranted further investigation.</li></ul><h3>Weaponization Analysis: Reverse-Engineering the Delivery Vector</h3><p>Tracing an infection back to its delivery mechanism is critical for identifying exactly how a threat bypassed initial edge defenses.</p><h3>Initial Delivery Document Dissection</h3><p>Investigation of the user’s local directory files uncovered a suspicious document file (invoice n. 65748224.docm). The document contents claimed that the user needed to connect to an external server link to view account invoices, a classic social engineering lure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*XckgqI62IHb9OeFOAM-RFA.png" /><figcaption>Deceptive document file containing embedded automated scripting macros.</figcaption></figure><h3>Document Code Review &amp; Reverse Engineering</h3><p>Opening the document’s Microsoft Visual Basic for Applications (VBA) macro configuration panels allowed analysts to directly reverse engineer the automated setup instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*-YQZz836AQ8GmuDpFCBTHw.png" /><figcaption>Macro interface controls allowing access to the document’s hidden underlying VBA codebase.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*A9gGCUc_RJ12gBTU9xjk4w.png" /><figcaption>Embedded VBA macro instructions detailing an automated payload delivery sequence.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*-Ql14Wbrn0kkzfQdvYtRLg.png" /><figcaption>Document macro strings showing explicit URL endpoints and local temporary file drop locations.</figcaption></figure><p>The extracted codebase revealed the exact infection routine:</p><p>VBA</p><pre>Analysis of the embedded VBA macro revealed automated download,<br>execution, and persistence functionality leveraging native Windows<br>utilities.</pre><h3>Strategic Code Takeaways</h3><ul><li><strong>Execution Automation:</strong> The macro utilizes the built-in AutoOpen() function block, meaning the malicious script executes automatically the moment the user opens the document.</li><li><strong>Living-off-the-Land Binaries (LotL):</strong> The script abuses a native binary utility (certutil.exe) via silent command prompt triggers (cmd /c certutil -urlcache -split -f) to download the malicious file, effectively evading simple application monitoring configurations.</li></ul><h3>Origin Forensics: Browser Download History Analysis</h3><p>To map the complete timeline of the incident, the local browser configuration logs were audited to find where the initial delivery document originated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*JZzcpRQhEzQxC96C5MPe1A.png" /><figcaption>Browser download history detailing file origin URLs and download timestamps.</figcaption></figure><p>The browser download cache records confirmed the file download history:</p><ul><li><strong>Source Download URL:</strong> <a href="http://172.233.61.246/">http://172.233.61.246</a></li><li><strong>Retrieved File Name:</strong> invoice n. 65748224.docm</li><li><strong>Additional Assets Dropped:</strong> 01bbdb18670e879c3c084514f5032145.jpg (Hosted via an untrusted image proxy network)</li></ul><h3>Containment, Eradication, and Persistence Cleanup</h3><p>Once the threat vectors were completely mapped, an incident responder must quickly sever active connections and remove all trace components from the asset.</p><h3>Terminating Active Threat Processes</h3><p>The rogue binary execution loop was stopped by forcefully closing its process tree (End Task) inside the Task Manager utility, dropping active CPU usage back to normal parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*_DeThcBgIe4Vu5DS_18YTw.png" /><figcaption>Process management terminal forcefully terminating the active threat thread.</figcaption></figure><h3>Eradicating Registry Persistence Elements</h3><p>To prevent the malware from executing again during subsequent system reboots, the Windows Registry Editor (regedit) was launched to search for autostart run entries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*K19JnroN84IxSJRbV2Usrg.png" /><figcaption>Windows Registry editor interface routing to the user run key sets.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*POdrmF-z5TdiMKwprgHW7A.png" /><figcaption>Target registry values page showing the persistent key added by the malware.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*6GRNFfuH9i__DehN8YrrSw.png" /><figcaption>Verification of target properties fields after cleaning the persistent startup values.</figcaption></figure><p>The persistent startup path was located inside the current user run key registry hive:</p><ul><li><strong>Target Registry Registry Path:</strong> HKCU\Software\Microsoft\Windows\CurrentVersion\Run</li><li><strong>Rogue Registry Key String Name:</strong> DefaultApp</li><li><strong>Malicious Parameter Payload Value:</strong> C:\Users\TRYCLE~1\AppData\Local\Temp\2\suspicious-executable.exe</li></ul><p>The registry value string was completely deleted, ensuring the system returns to a clean, reliable state.</p><h3>Findings Summary</h3><h3>Insecure Directory Execution</h3><ul><li><strong>Severity:</strong> High</li><li><strong>Description:</strong> The system allowed unverified executable files (.exe) to launch directly from the user&#39;s local \Temp\ directory structures.</li><li><strong>Impact:</strong> Simplifies multi-stage malware deployment by allowing initial delivery documents to drop and run secondary payloads without requiring administrative privileges.</li></ul><h3>Native Tool Abuse (Living-off-the-Land)</h3><ul><li><strong>Severity:</strong> Medium-High</li><li><strong>Description:</strong> Automated scripts successfully leveraged native utilities (certutil.exe) to download external untrusted binaries.</li><li><strong>Impact:</strong> Bypasses simple endpoint file inspection filters, as connection requests appear to originate from legitimate, trusted system files.</li></ul><h3>Verbose Macro Authorization Layouts</h3><ul><li><strong>Severity:</strong> Medium</li><li><strong>Description:</strong> End-user workstations allowed unchecked execution of embedded VBA macros inside standard productivity documents.</li><li><strong>Impact:</strong> Exposes endpoints to rapid, automated compromise chains whenever users interact with phishing attachment files.</li></ul><p><strong>Outbound Command-and-Control Communication Attempt</strong></p><ul><li><strong>Severity:</strong> High</li><li><strong>Description:</strong> The process attempted to establish repeated outbound<br>connections to an untrusted external IP address.</li><li><strong>Impact:</strong> Potential data exfiltration, secondary payload delivery, or remote attacker interaction.</li></ul><h3>Remediation Engineering Strategy</h3><p>To fix these host-level vulnerabilities and secure the corporate network against similar attachment threat lines, implement the following defensive mitigations:</p><ul><li><strong>Enforce Software Restriction Policies (SRP):</strong> Deploy strict AppLocker or Software Restriction Policy rules via Group Policy Objects (GPO) to prevent any executable code from running out of temporary user storage spaces:</li></ul><p>Plaintext</p><pre>Path Rule Restriction Matrix: Deny Executables: %USERPROFILE%\AppData\Local\Temp\*.exe <br>Deny Executables: %USERPROFILE%\AppData\Local\Temp\*\*.exe</pre><ul><li><strong>Block Internet Macros via Group Policy:</strong> Restrict Microsoft Office from executing embedded VBA macros in documents obtained from external sources or internet locations:</li></ul><p>Plaintext</p><pre>GPO Configuration Hierarchy: User Configuration -&gt; Administrative<br>Templates -&gt; Microsoft Word 2016 -&gt; Word Options -&gt; Security -&gt; Trust<br>Center Setting Name: Block macros from running in Office files from<br>the Internet -&gt; Enforce ENABLED</pre><ul><li><strong>Harden Certutil Tool Protections:</strong> Restrict standard user accounts from using certutil.exe to make web requests by blocking external lookups through local firewall filtering configurations, or monitor the tool&#39;s command execution history inside the SIEM pipeline for suspicious usage parameters:</li></ul><p>Plaintext</p><pre>SIEM Detection Filter Logic: ProcessName == &quot;certutil.exe&quot; AND<br>Commandline CONTAINS(&quot;-urlcache&quot; OR &quot;-split&quot;)</pre><ul><li><strong>Implement Application Control Baseline Policies:</strong> Configure Endpoint Detection and Response (EDR) solutions to monitor and block atypical child processes spawned by Microsoft Office applications (e.g., preventing winword.exe from launching cmd.exe or powershell.exe).</li></ul><p>Detection Opportunities</p><ul><li>Microsoft Word spawning cmd.exe<br>• certutil.exe performing external HTTP requests<br>• Executables launched from user Temp directories<br>• New Run Key persistence creation<br>• Repeated outbound SYN requests to unknown destinations.</li></ul><h3>Key Lessons Learned</h3><ul><li><strong>Perimeter Visibility Limits:</strong> Perimeter network defenses often fail to flag malicious actions when scripts utilize built-in system tools like certutil.exe to pull external files.</li><li><strong>Host Hardening Vulnerabilities:</strong> Allowing executable code to run from temporary folders gives dropped payloads a reliable path to run without triggering user account protection prompts.</li><li><strong>Persistence Focus:</strong> Simply killing an active process is not enough; defensive teams must thoroughly check system registry run paths to locate and remove hidden autostart triggers.</li><li>• Microsoft Word spawning cmd.exe<br>• certutil.exe performing external HTTP requests<br>• Executables launched from user Temp directories<br>• New Run Key persistence creation<br>• Repeated outbound SYN requests to unknown destinations</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e0d9a292973" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical Case Study: Advanced Network Reconnaissance & Service Fingerprinting]]></title>
            <link>https://medium.com/@abiodun475/technical-case-study-advanced-network-reconnaissance-service-fingerprinting-feec823646cb?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/feec823646cb</guid>
            <category><![CDATA[reconnaissance]]></category>
            <category><![CDATA[network-reconnaissance]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 11:24:26 GMT</pubDate>
            <atom:updated>2026-06-01T11:24:26.473Z</atom:updated>
            <content:encoded><![CDATA[<h3>Legal Disclaimer</h3><p><em>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real-world infrastructure or production systems were targeted. All sensitive data, IP addresses, session tokens, and identifiers have been completely sanitized or redacted. This content is provided to demonstrate network mapping methodologies, command-line reconnaissance tools, and defensive analysis for application security learning purposes only.</em></p><h3>Executive Summary</h3><p>A technical case study was conducted to analyze enterprise network environments using advanced layer-2 discovery, specialized packet scanning mechanics, and the Nmap Scripting Engine (NSE). When target systems are scanned using automated scripts or direct socket verification, missing structural segregation and verbose application headers quickly create clear blueprints for a threat actor.</p><p>The primary objective of this project was to document how varying TCP flags, custom UDP packet probes, and cryptographic service enumeration reveal detailed infrastructure configurations. This report outlines the operational workflows used to dissect target topologies, verify internal listening sockets, and implement robust security engineering fixes.</p><h3>Key Metrics &amp; Assessment Profile</h3><ul><li><strong>Assessment Phase:</strong> Active Reconnaissance &amp; Service Fingerprinting</li><li><strong>Methodologies:</strong> Stealth SYN Mapping, Layer-2 ARP Auditing, UDP Svc Discovery, Custom TCP Scanflags, Cryptographic Engine Enumeration</li><li><strong>Primary Tooling:</strong> Nmap, Netcat (nc), Wireshark packet capture analysis</li><li><strong>Remediation Priority:</strong> High (Cryptographic Hardening &amp; Port Obfuscation)</li></ul><h3>Layer-2 and Layer-4 Host Discovery Workflows</h3><p>Before executing deep port investigations, an operator must verify target host availability. Relying on default protocols often alerts defensive tools, making specialized packet choice critical.</p><h3>Subnet Mapping via ARP Lookups</h3><p>In localized testing scenarios where target segments sit on the same internal layer-2 broadcast domain, traditional ICMP ping requests are frequently dropped by endpoint security policies. To circumvent this restriction, Nmap was configured to run a localized Address Resolution Protocol (ARP) query block (sudo nmap -PR -sn) across the target range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PYztTP8ozeXf8tf6UR5FA.png" /><figcaption>Terminal telemetry demonstrating high-speed layer-2 host discovery via explicit ARP request and reply tracking across internal subnets.</figcaption></figure><p>Because ARP routing mechanisms are required for local network communication, these queries reliably bypass local operating system firewalls. This lookup completed a 256-address range check in 3.12 seconds, identifying active internal hosts while avoiding more intrusive layer-4 discovery scans.</p><h3>Non-Standard Transport Layer Probes</h3><p>When targeting external networks separated by routing boundaries, alternative transport layers must be leveraged. Probing endpoints via explicit UDP strings (sudo nmap -PU -sn) targeting closed ports triggers predictable ICMP Type 3, Code 3 (Port Unreachable) responses from active targets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdHaxlmFv9o0YP4DidQXWw.png" /><figcaption>Network mapping telemetry highlighting alternative transport layer UDP probes and command configurations.</figcaption></figure><h3>Packet Engineering &amp; Custom TCP Scan Flags</h3><p>Standard network scanning tools default to a basic three-way handshake structure. Understanding the underlying fields within the <strong>RFC 7393 TCP Header</strong> allows a security professional to craft non-standard packet layouts to analyze how firewalls statefully monitor active connections.</p><h3>Analysis of the TCP Header Flags</h3><p>The control bits field within a TCP segment governs the lifecycle of a connection. Security utilities focus heavily on manipulating the individual flag blocks:</p><p>During testing, FIN and NULL scans were performed to evaluate<br>whether perimeter controls properly handled non-standard TCP<br>flag combinations. The firewall allowed several probes to reach internal services, indicating incomplete stateful inspection.</p><p>Plaintext</p><pre>0                   1                   2                   3<br>  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1<br> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br> |           Source Port         |          Destination Port     |<br> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br> |                        Sequence Number                        |<br> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br> |                    Acknowledgment Number                      |<br> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br> |  Data |           |U|A|P|R|S|F|                               |<br> | Offset| Reserved  |R|C|S|H|Y|I|            Window             |<br> |       |           |G|K|H|T|N|N|                               |<br> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+</pre><h3>Advanced Scan Profiles: FIN, Null, and Xmas Layouts</h3><p>By crafting packets that break standard state machine rules, scanners can bypass simple packet filters.</p><ol><li><strong>FIN Scan (</strong><strong>-sF):</strong> Sends a standalone FIN segment. Open ports should ignore the packet, while closed ports return an immediate RST.</li></ol><p><strong>2. Null Scan (</strong><strong>-sN):</strong> Empties the control bit flags register completely.</p><p><strong>3. Xmas Scan (</strong><strong>-sX):</strong> Flashes the FIN, PSH, and URG flags simultaneously, making it look fully lit like a Christmas tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWiuEL0R-0XOzGpr4HkHPg.png" /><figcaption>Deep scan analysis contrasting custom FIN and Null packet evaluations against remote network firewalls.</figcaption></figure><p>These advanced scan types rely on raw socket responses to identify hidden services behind legacy or poorly configured firewall filters.</p><h3>Deep Service Auditing &amp; Script Integration</h3><p>Identifying open ports provides a solid starting point, but a true security assessment requires auditing service versions and extracting explicit cryptographic capabilities.</p><h3>Port State Identification Matrix</h3><p>A primary target (10.114.136.211) was subjected to a comprehensive multi-port audit (nmap -sT), confirming a broad exposed attack surface consisting of multiple externally accessible services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FIc5vDaf38SfEuKzuZQnYg.png" /><figcaption>Automated target sweep results confirming multiple active listening sockets across standard Lab-based network environment communication lines.</figcaption></figure><h3>UDP Interface Deep Audits</h3><p>Because UDP is a connectionless protocol that does not return automated handshakes, scanning it requires structured timeouts. An explicit UDP scan (sudo nmap -sU) was directed at the target node, verifying that the dynamic port mapper service was also reachable via UDP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHcWaxlIeZ8pMcJknXtaCw.png" /><figcaption>Integrated Wireshark loop capture showing a live packet logging analysis of UDP communication flows.</figcaption></figure><p>The capture shows Destination Unreachable replies returning for closed ports, RPCBind was externally accessible, this provides service mapping information that can assist attackers during enumeration. Impact depends on exposure, trust boundaries, and the services registered through RPC.</p><h3>Harnessing the Nmap Scripting Engine (NSE)</h3><p>To automate service auditing, specialized Lua scripts from the Nmap Scripting Engine were launched against the target node.</p><p>HTTP</p><pre>POST / HTTP/1.1<br>Host: 10.114.144.49<br>User-Agent: Nmap NSE Script Engine</pre><p>Using the http-date script block (nmap -sS -n --script &quot;http-date&quot;), the application verified internal server times, retrieving explicit software configurations directly from the target headers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SV7lUotR6wDcOP1B8_JppQ.png" /><figcaption>Detailed engine printout showing an automated script execution trace capturing the precise system date and server metadata.</figcaption></figure><p>The automated script output returned a clean, high-value infrastructure fingerprint:</p><p>Plaintext</p><pre>PORT    STATE SERVICE VERSION<br>22/tcp  open  ssh     OpenSSH 9.2p1 Debian 2+deb12u3 (protocol 2.0)<br>53/tcp  open  domain  ISC BIND 9.18.28-1-deb12u2 (Debian Linux)<br>|_dns-nsid: bind.version: 9.18.28-1-deb12u2-Debian<br>80/tcp  open  http    nginx 1.22.1<br>|_http-server-header: nginx/1.22.1<br>|_http-title: Welcome to nginx on Debian!<br>110/tcp open  pop3    Dovecot pop3d<br>111/tcp open  rpcbind 2-4 (RPC #100000)</pre><p>Finding:<br>Verbose Service Version Disclosure</p><p>Risk:<br>Attackers can identify exact software versions and rapidly<br>cross-reference known vulnerabilities.</p><p>Evidence:<br>nginx/1.22.1<br>OpenSSH 9.2p1<br>ISC BIND 9.18</p><h3>Cryptographic Key &amp; Ciphersuite Auditing</h3><p>When an administrative endpoint like SSH is exposed, it must be hardened against automated brute-force attacks and cryptographic weaknesses. The ssh2-enum-algos execution script was launched against the target to extract its supported key exchanges and encryption algorithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tHd0bJTGFNG33O3Tljid8g.png" /><figcaption>Cryptographic cipher analysis output listing all allowed key exchange parameters and encryption suites.</figcaption></figure><p>The assessment identified supported cryptographic algorithms that should be reviewed against organizational hardening standards. Administrators should remove deprecated or unnecessary algorithms and ensure only approved ciphers and key-exchange mechanisms remain enabled.</p><h3>Remediation Engineering Strategy</h3><p>To fix these vulnerabilities and secure the perimeter against advanced scanning methods, implement the following remediation steps:</p><ul><li>Restrict exposure of RPCBind (Port 111) by binding the service to localhost or trusted internal networks. Implement host-based firewall rules and disable the service where not operationally required.</li><li><strong>Harden Cryptographic Parameters:</strong> Update the target SSH daemon configuration (/etc/ssh/sshd_config) to disable legacy key formats and enforce modern ciphers like ChaCha20-Poly1305.</li></ul><p>Plaintext</p><pre># Enforce strong, modern cipher selections<br>Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com<br>KexAlgorithms curve25519-sha256@libssh.org</pre><ul><li><strong>Enforce Generic Service Banners:</strong> Sanitize software details from public headers. Update the web server configuration to hide specific version numbers:</li></ul><p>Nginx</p><pre># Hide exact application versions in Nginx headers<br>server_tokens off;</pre><ul><li><strong>Deploy Stateful Firewalls:</strong> Configure perimeter firewalls to drop invalid TCP flag combinations, ensuring that any standalone FIN or Null packets are automatically dropped before hitting internal endpoints.</li></ul><h3>Key Lessons Learned</h3><ul><li><strong>Information Over-Exposure:</strong> Default application profiles expose granular operating system details (such as specific Debian and Dovecot version strings) that simplify an attacker’s exploitation phase.</li><li><strong>Cipher Suite Gaps:</strong> Maintaining unhardened cryptographic parameters on management interfaces like SSH exposes the application to potential downgrade attacks.</li><li><strong>Scan Flag Resilience:</strong> Standard packet-filtering rules often fail to detect or block non-standard TCP flag combinations (like Null or FIN scans), highlighting the need for stateful inspection tools.</li></ul><h3><strong>Findings Summary</strong></h3><p>1. <strong>Verbose Service Version Disclosure</strong><br><strong>Severity:</strong> Medium-High</p><p><strong>Description:</strong> Public-facing services exposed exact software versions through application headers and service banners.</p><p><strong>Impact:</strong> Attackers can rapidly identify known vulnerabilities associated<br>with specific software releases.</p><p>2. <strong>RPCBind Exposure</strong><br><strong>Severity:</strong> Medium-High</p><p><strong>Description:</strong> RPCBind was reachable from the network perimeter.</p><p><strong>Impact:</strong> Service enumeration information may assist attackers during<br>subsequent reconnaissance activities.</p><p>3. <strong>Cryptographic Configuration Review Required</strong><br><strong>Severity:</strong> Medium-High</p><p><strong>Description:</strong> SSH services exposed multiple supported cryptographic algorithms that should be validated against organizational standards.</p><p><strong>Impact:</strong> Weak or deprecated algorithms may increase the risk of cryptographic downgrade attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feec823646cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passive and Active Reconnaissance Workflows in Modern Penetration Testing]]></title>
            <link>https://medium.com/@abiodun475/passive-and-active-reconnaissance-workflows-in-modern-penetration-testing-98a8672ce27c?source=rss-a5e865fd3fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/98a8672ce27c</guid>
            <category><![CDATA[reconnaissance]]></category>
            <dc:creator><![CDATA[Abiodun Aransiola]]></dc:creator>
            <pubDate>Thu, 28 May 2026 16:04:44 GMT</pubDate>
            <atom:updated>2026-05-28T16:04:44.714Z</atom:updated>
            <content:encoded><![CDATA[<h3>Legal Disclaimer</h3><p><em>This project and accompanying documentation are intended strictly for educational and authorized security research purposes within controlled, isolated lab environments. No real-world infrastructure or production systems were targeted. All sensitive data, IP addresses, session tokens, and identifiers have been completely sanitized or redacted. This content is provided to demonstrate network mapping methodologies, command-line reconnaissance tools, and defensive analysis for application security learning purposes only.</em></p><h3>Executive Summary</h3><p>A scheduled security assessment was conducted to evaluate external attack surface exposure through passive and active reconnaissance techniques. By leveraging public metadata aggregators alongside network discovery utilities, the assessment mapped the target’s public-facing footprint, identified active endpoints, and performed banner grabbing against exposed service daemons.</p><p>The objective was to contrast the visibility gained from external, non-intrusive lookups against direct target interaction. The results highlight how gaps in infrastructure visibility, legacy protocols, and missing network filtering create clear vectors for subsequent attack phases.</p><h3>Key Metrics &amp; Assessment Profile</h3><p><strong>●</strong> <strong>Assessment Phase:</strong> Reconnaissance &amp; Threat Modeling</p><p><strong>●</strong> <strong>Methodologies:</strong> OSINT Aggregation, DNS Enumeration, Network Path Analysis, Port Scanning, Banner Grabbing</p><p><strong>●</strong> <strong>Primary Tooling:</strong> DNSDumpster, Traceroute, Nmap, Netcat (nc)</p><p><strong>●</strong> <strong>Remediation Priority:</strong> High (Perimeter Hardening &amp; Service Obfuscation)</p><h3>Passive Reconnaissance: DNS Mapping &amp; OSINT Aggregation</h3><p>Passive reconnaissance collects technical intelligence without interacting directly with target assets, ensuring the testing activities do not trigger local intrusion detection systems (IDS).</p><h3>Methodology and Technical Execution</h3><p>The initial mapping relied on OSINT platforms to query public DNS tables and cached record layers. Using DNSDumpster, a centralized profile was built detailing the target domain’s infrastructure routing, autonomous system number (ASN) allocations, and third-party proxy configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*_xy_IYaan58NzmjrXFZn6A.png" /><figcaption>Passive DNS profile displaying cloud provider distributions, subdomains, and host record mappings.</figcaption></figure><p>The lookup identified several structural components:</p><p><strong>●</strong> <strong>Infrastructure Obfuscation:</strong> The application routes primary traffic through Cloudflare proxies (CLOUDFLARENET) to hide direct backend IP addresses.</p><p><strong>●</strong> <strong>Subdomain Discovery:</strong> Multiple operational endpoints were identified, including staging nodes (resources.tryhackme.com), authentication gateways (auth.tryhackme.com), and developer documentation proxies (insights-proxy-worker.tryhackme.com).</p><p><strong>●</strong> <strong>Third-Party CDN Reliance:</strong> Legacy staging assets and graphic pools (assets.tryhackme.com) were mapped directly to AWS infrastructure pools (Amazon CloudFront).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*oIt_PO5oHSlq4ZjwrE6SBQ.png" /><figcaption>Advanced subdomain routing matrix revealing secondary cloud provider boundaries.</figcaption></figure><h3>Active Reconnaissance: Path Analysis &amp; Direct Probing</h3><p>Active reconnaissance involves interacting directly with target ports and interfaces to analyze system behavior, confirm host availability, and chart network routes.</p><h3>ICMP and TTL Routing Diagnostics</h3><p>Using Time-To-Live (TTL) path diagnostics, traceroute operations were initialized to determine the network distance and locate intermediate firewall boundaries between the testing node and the target gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*smE3PWi5Y8CvaWdIDj5zpg.png" /><figcaption><strong>Parallel traceroute paths demonstrating multi-hop routing variance and ingress gateway discovery.</strong></figcaption></figure><p>During execution, the packet routing behavior revealed two specific network patterns:</p><p><strong>1. Network Path Asymmetry:</strong> Packets routing to the target traversed separate intermediate nodes depending on current state paths, indicating active load balancing or multi-homed ISP connections.</p><p><strong>2. Packet Dropping:</strong> Particular nodes within the routing path dropped incoming packets without returning an ICMP Time Exceeded message, indicating intermediate firewalls configured to drop ICMP traffic.</p><h3>Vulnerability Discovery: Scanning &amp; Banner Grabbing</h3><p>Port scanning and banner grabbing identify open communication channels and determine the exact software versions running on exposed services.</p><h3>Port Enumeration via Nmap</h3><p>Direct network scans targeted an active internal segment (10.113.XXX.XXX) to map the active service ports and operational listening sockets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*_zzlrA5R0agiTqZfdmDeDA.png" /><figcaption>Fast-scan Nmap results confirming active service ports and operational listening sockets.</figcaption></figure><p>The network scan confirmed the exposure of three service layers:</p><p><strong>●</strong> <strong>Port 22/TCP (Open):</strong> Secure Shell (SSH) management access.</p><p><strong>●</strong> <strong>Port 80/TCP (Open):</strong> Hypertext Transfer Protocol (HTTP) web hosting node.</p><p><strong>●</strong> <strong>Port 111/TCP (Open):</strong> RPCBind service mapper socket.</p><h3>Service Fingerprinting &amp; Banner Extraction</h3><p>Once the open ports were confirmed, automated version scanning (Nmap -sV) and raw Netcat connections were utilized to force the target interfaces into releasing their software version details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*wJsPNv2Atg8eJQRZ9H40DA.png" /><figcaption>Detailed service version detection and raw FTP daemon banner extraction via Netcat.</figcaption></figure><p>Connecting to a secondary target (10.113.XXX.XXX) on Port 21 forced an unauthenticated service response, leaking the exact application version details:</p><p>Plaintext</p><p>Connection to 10.113.XXX.XXX 21 port [tcp/ftp] succeeded!</p><p>220 ip-10.113.XXX.XXX.eu-central-1.compute.internal FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.</p><h3>Risk Rationale &amp; Exploitation Value</h3><p>Exposing exact software banners, such as Linux-ftpd-0.17, makes exploitation easier. Instead of spending time on speculative testing, an attacker can immediately cross-reference this version string with public vulnerability databases to locate known remote code execution (RCE) exploits or denial-of-service (DoS) vectors.</p><h3>Key Lessons Learned</h3><p><strong>●</strong> <strong>Intelligence Leakage:</strong> Service enumeration exposes technical details that provide attackers with an immediate roadmap of internal infrastructure.</p><p><strong>●</strong> <strong>Insecure Defaults:</strong> Default configurations often reveal granular software version details that should be generic or hidden.</p><p><strong>●</strong> <strong>Exploitation Optimization:</strong> Thorough reconnaissance significantly reduces attacker effort during later exploitation phases, making the initial attack lifecycle highly efficient.</p><h3>Remediation Engineering Strategy</h3><p>To secure the perimeter and mitigate the impact of active information gathering, the following security controls must be implemented:</p><p><strong>●</strong> <strong>Service Banner Obfuscation:</strong> Modify application configuration profiles (such as nginx.conf or FTP wrapper settings) to sanitize or remove explicit version numbers from public headers.</p><p><strong>●</strong> <strong>Port Filtering:</strong> Enforce strict firewall rules to close non-essential ports (such as Port 111/RPCBind) and implement a default-deny policy for all unrequested incoming traffic.</p><p><strong>●</strong> <strong>Network Segregation:</strong> Isolate staging infrastructure and administrative management interfaces (such as SSH) behind an internal VPN or access-controlled Bastion host rather than routing them over open-facing networks.</p><p><strong>●</strong> <strong>Perimeter Defense Automation:</strong> Configure IDS/IPS solutions to detect and drop aggressive scanning activity and high-velocity path lookups.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98a8672ce27c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>