Skip to main content

Overview

This guide provides remediation steps for all vulnerabilities that SharpUp can identify. Each section corresponds to a specific check and provides actionable steps to fix the security issue.
Always test remediation steps in a non-production environment before applying to production systems.

Modifiable Services

Vulnerability: User or group has permissions to modify service configuration. Remediation:
1

Identify Affected Services

Review SharpUp output to identify which services have weak permissions.
2

Review Service Permissions

3

Set Proper Permissions

4

Verify Changes

Best Practices:
  • Only SYSTEM and Administrators should have full control
  • Authenticated Users should have read-only access
  • Remove unnecessary permissions for standard users
  • Use Group Policy to enforce service permissions across domain

Unquoted Service Paths

Vulnerability: Service executable path contains spaces but is not quoted, allowing path hijacking. Remediation:
1

Identify Affected Services

Review SharpUp output for services with unquoted paths.
2

Quote the Service Path

Or manually:
3

Verify Fix

Automated Remediation Script:

Modifiable Service Binaries

Vulnerability: Service executable file has weak permissions allowing modification. Remediation:
1

Identify Affected Binaries

Note the service binary paths from SharpUp output.
2

Set Proper File Permissions

3

Verify Parent Directory Permissions

Ensure the parent directory also has proper permissions to prevent replacement attacks.
Recommended Permissions:
  • SYSTEM: Full Control
  • Administrators: Full Control
  • Users: Read & Execute only
  • TrustedInstaller: Full Control (for system binaries)

Modifiable Service Registry Keys

Vulnerability: Service registry key has weak permissions allowing configuration changes. Remediation:
1

Identify Affected Registry Keys

Note the registry paths from SharpUp output (typically under HKLM\SYSTEM\CurrentControlSet\Services\).
2

Set Proper Registry Permissions

3

Use Group Policy (Domain Environment)

Configure registry permissions centrally using Group Policy Preferences → Registry Permissions.

Modifiable Scheduled Tasks

Vulnerability: Scheduled task file or binary has weak permissions. Remediation:
1

Secure Task XML Files

2

Secure Task Binaries

Apply the same file permission fixes as for service binaries (see Modifiable Service Binaries above).
3

Review Task Actions

Ensure scheduled tasks run binaries from secure locations only.

Registry-Based Vulnerabilities

AlwaysInstallElevated

Vulnerability: Windows Installer configured to install MSI packages with SYSTEM privileges. Remediation:
1

Disable the Policy

2

Remove from Group Policy

If configured via GPO:
  • Open Group Policy Management
  • Navigate to: Computer Configuration → Administrative Templates → Windows Components → Windows Installer
  • Set “Always install with elevated privileges” to Disabled
3

Verify Removal

Impact: Users will need administrator privileges to install MSI packages requiring elevation.

Registry AutoLogons

Vulnerability: Plaintext credentials stored in registry for automatic logon. Remediation:
1

Disable Auto-Logon

2

Use Alternative Solutions

If auto-logon is required:
  • Use Windows Credential Manager with encrypted credentials
  • Implement LSA secrets for service accounts
  • Use Managed Service Accounts (MSA) or Group Managed Service Accounts (gMSA)
3

Verify Removal

Registry Autoruns

Vulnerability: Autorun registry entries point to binaries with weak permissions. Remediation:
1

Identify Vulnerable Autoruns

Review SharpUp output for modifiable autorun binaries.
2

Secure Autorun Binaries

Apply proper file permissions (see Modifiable Service Binaries section).
3

Remove Unnecessary Autoruns

4

Use Group Policy for Autoruns

Centrally manage autoruns via Group Policy instead of registry entries.

Credential Storage Vulnerabilities

Cached GPP Passwords

Vulnerability: Group Policy Preference passwords cached locally. Remediation:
1

Delete Cached Policy Files

2

Prevent Future Caching

This is controlled by Group Policy distribution. See Domain GPP Password remediation.

Domain GPP Passwords

Vulnerability: Group Policy Preference passwords stored in SYSVOL. Remediation:
1

Identify GPP Files in SYSVOL

2

Remove GPP Passwords

  • Open Group Policy Management Console (GPMC)
  • Navigate to each policy containing GPP passwords
  • Remove or update the affected preferences:
    • Groups: Use restricted groups instead
    • Services: Use service account management
    • Scheduled Tasks: Use proper credential delegation
3

Delete XML Files from SYSVOL

After updating GPOs, manually delete old XML files from SYSVOL.
4

Implement KB2962486

Microsoft removed the ability to set passwords in GPP. Ensure this update is installed:
  • Windows 7/Server 2008 R2: KB2962486
  • Already patched in newer Windows versions
5

Use Alternative Solutions

  • Group Managed Service Accounts (gMSA): For service accounts
  • LAPS: For local administrator password management
  • CyberArk/HashiCorp Vault: For enterprise credential management
  • Restricted Groups: For group membership management without passwords

Unattended Install Files

Vulnerability: Credentials stored in unattended installation files. Remediation:
1

Locate Unattended Files

SharpUp checks common locations. Verify these files exist and contain credentials.
2

Remove or Secure Files

3

Secure Deployment Process

  • Don’t store credentials in answer files
  • Use offline domain join for automated deployments
  • Implement MDT/SCCM with proper credential management
  • Delete answer files after deployment completes

McAfee SiteList Files

Vulnerability: McAfee SiteList.xml contains encrypted credentials that can be decrypted. Remediation:
1

Locate SiteList Files

2

Remove Files

3

Update McAfee Configuration

  • Use ePO server for centralized management
  • Don’t store credentials in SiteList.xml
  • Use proper repository authentication methods
  • Deploy via GPO or SCCM instead of SiteList

Path and DLL Vulnerabilities

Hijackable Paths

Vulnerability: Folders in system PATH have weak permissions. Remediation:
1

Identify Vulnerable Paths

Review SharpUp output for modifiable folders in PATH.
2

Secure Folder Permissions

3

Review PATH Variable

4

Remove Unnecessary Paths

Remove folders from PATH that aren’t needed or can’t be secured.
Best Practices:
  • Only include necessary folders in system PATH
  • Ensure all PATH folders are in protected locations
  • User-specific paths should use user PATH variable, not system PATH
  • Avoid adding user-writable folders to system PATH

Process DLL Hijack

Vulnerability: DLL files loaded by privileged processes have weak permissions. Remediation:
1

Identify Vulnerable DLLs

Review SharpUp output for writable DLLs used by privileged processes.
2

Secure DLL Permissions

3

Review Application Installation

  • Reinstall applications that have vulnerable DLLs
  • Install to Program Files (protected location)
  • Ensure applications use proper installer that sets correct permissions
4

Use AppLocker or WDAC

Implement application control to prevent unauthorized DLL loading.

Token Privilege Vulnerabilities

Token Privileges

Vulnerability: User has dangerous token privileges that can be abused. Remediation:
1

Review Assigned Privileges

Understand which privileges are assigned and why:
  • SeImpersonatePrivilege
  • SeDebugPrivilege
  • SeLoadDriverPrivilege
  • SeTakeOwnershipPrivilege
  • SeBackupPrivilege
  • SeRestorePrivilege
2

Remove Unnecessary Privileges

3

Limit Service Account Privileges

Service accounts often have these privileges. Consider:
  • Use gMSA or sMSA instead of standard accounts
  • Apply principle of least privilege
  • Use Virtual Service Accounts when possible
  • Limit services running as LocalSystem
4

Monitor Privilege Usage

Enable auditing for privilege use:
Special Considerations:
  • Required for IIS, SQL Server, and many services
  • Cannot be fully removed from service accounts
  • Mitigate with proper segmentation and monitoring
  • Use constrained delegation where possible
  • Only assign to developers and administrators who need it
  • Never assign to service accounts
  • Monitor usage heavily
  • Required for backup software
  • Use dedicated backup accounts
  • Implement audit logging
  • Restrict to specific systems

Centralized Remediation Strategies

Group Policy Approach

For domain environments, use Group Policy to enforce security settings:

PowerShell Remediation Script

Comprehensive script for multiple vulnerabilities:

Continuous Monitoring

Implement continuous monitoring for these vulnerabilities:

Verification

After implementing remediation steps:
1

Re-run SharpUp

Verify that previously identified vulnerabilities are no longer present.
2

Document Changes

Maintain documentation of:
  • What was found
  • What was fixed
  • When it was fixed
  • Who performed the remediation
3

Implement Regular Scanning

Schedule periodic SharpUp scans to detect configuration drift.
4

Update Security Baseline

Update your security baseline documentation to prevent reintroduction of vulnerabilities.

Additional Resources

Check Documentation

Detailed information for each vulnerability type

Usage Guide

How to identify vulnerabilities with SharpUp

Microsoft Security

Official Windows security documentation

CIS Benchmarks

Security configuration benchmarks