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.Service-Related Vulnerabilities
Modifiable Services
Vulnerability: User or group has permissions to modify service configuration. Remediation:Identify Affected Services
Review Service Permissions
Set Proper Permissions
Verify Changes
- 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:Identify Affected Services
Quote the Service Path
Verify Fix
Modifiable Service Binaries
Vulnerability: Service executable file has weak permissions allowing modification. Remediation:Identify Affected Binaries
Set Proper File Permissions
Verify Parent Directory 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:Identify Affected Registry Keys
HKLM\SYSTEM\CurrentControlSet\Services\).Set Proper Registry Permissions
Use Group Policy (Domain Environment)
Modifiable Scheduled Tasks
Vulnerability: Scheduled task file or binary has weak permissions. Remediation:Secure Task XML Files
Secure Task Binaries
Review Task Actions
Registry-Based Vulnerabilities
AlwaysInstallElevated
Vulnerability: Windows Installer configured to install MSI packages with SYSTEM privileges. Remediation:Disable the Policy
Remove from Group Policy
- Open Group Policy Management
- Navigate to: Computer Configuration → Administrative Templates → Windows Components → Windows Installer
- Set “Always install with elevated privileges” to Disabled
Verify Removal
Registry AutoLogons
Vulnerability: Plaintext credentials stored in registry for automatic logon. Remediation:Disable Auto-Logon
Use Alternative Solutions
- Use Windows Credential Manager with encrypted credentials
- Implement LSA secrets for service accounts
- Use Managed Service Accounts (MSA) or Group Managed Service Accounts (gMSA)
Verify Removal
Registry Autoruns
Vulnerability: Autorun registry entries point to binaries with weak permissions. Remediation:Identify Vulnerable Autoruns
Secure Autorun Binaries
Remove Unnecessary Autoruns
Use Group Policy for Autoruns
Credential Storage Vulnerabilities
Cached GPP Passwords
Vulnerability: Group Policy Preference passwords cached locally. Remediation:Delete Cached Policy Files
Prevent Future Caching
Domain GPP Passwords
Vulnerability: Group Policy Preference passwords stored in SYSVOL. Remediation:Identify GPP Files in SYSVOL
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
Delete XML Files from SYSVOL
Implement KB2962486
- Windows 7/Server 2008 R2: KB2962486
- Already patched in newer Windows versions
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:Locate Unattended Files
Remove or Secure Files
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:Locate SiteList Files
Remove Files
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:Identify Vulnerable Paths
Secure Folder Permissions
Review PATH Variable
Remove Unnecessary Paths
- 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:Identify Vulnerable DLLs
Secure DLL Permissions
Review Application Installation
- Reinstall applications that have vulnerable DLLs
- Install to Program Files (protected location)
- Ensure applications use proper installer that sets correct permissions
Use AppLocker or WDAC
Token Privilege Vulnerabilities
Token Privileges
Vulnerability: User has dangerous token privileges that can be abused. Remediation:Review Assigned Privileges
- SeImpersonatePrivilege
- SeDebugPrivilege
- SeLoadDriverPrivilege
- SeTakeOwnershipPrivilege
- SeBackupPrivilege
- SeRestorePrivilege
Remove Unnecessary Privileges
Limit Service Account Privileges
- Use gMSA or sMSA instead of standard accounts
- Apply principle of least privilege
- Use Virtual Service Accounts when possible
- Limit services running as LocalSystem
Monitor Privilege Usage
SeImpersonatePrivilege
SeImpersonatePrivilege
- 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
SeDebugPrivilege
SeDebugPrivilege
- Only assign to developers and administrators who need it
- Never assign to service accounts
- Monitor usage heavily
SeBackupPrivilege / SeRestorePrivilege
SeBackupPrivilege / SeRestorePrivilege
- 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:Re-run SharpUp
Document Changes
- What was found
- What was fixed
- When it was fixed
- Who performed the remediation
Implement Regular Scanning
Update Security Baseline