windows-service-dll-abuse

Exploit Windows service misconfigurations and DLL hijacking for privilege escalation.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill windows-service-dll-abuse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: windows-service-dll-abuse
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/privesc/windows-service-dll-abuse
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill windows-service-dll-abuse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires accesschk, sc, PowerUp, Process Monitor, icacls, mingw, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers escalate privileges on Windows systems by exploiting common misconfigurations in services, such as unquoted paths and weak permissions, and by leveraging DLL hijacking techniques.

Core Features & Use Cases

  • Service Enumeration: Identifies services with potential vulnerabilities like unquoted paths or weak ACLs.
  • DLL Hijacking: Exploits Windows DLL search order to execute arbitrary code when a privileged process loads a DLL.
  • Weak Permission Exploitation: Modifies service configurations or replaces binaries when write permissions are present.
  • Use Case: A tester gains low-privilege access to a Windows machine and uses this Skill to find and exploit a misconfigured service to gain SYSTEM-level privileges.

Quick Start

Use the windows-service-dll-abuse skill to find and exploit unquoted service paths on the target system.

Frequently Asked Questions about windows-service-dll-abuse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit unquoted service paths for Windows privilege escalation?

Windows privilege escalation via unquoted service paths works by placing a malicious executable in a writable directory along the unquoted path, causing the service to execute your payload instead of the intended binary when it starts.

What is DLL hijacking and how does it help escalate privileges on Windows?

DLL hijacking escalates privileges by exploiting the Windows DLL search order, allowing you to execute arbitrary code in a privileged context when a service loads a malicious DLL instead of the legitimate one.

How do I find Windows services with weak permissions using PowerUp and accesschk?

You can find Windows services with weak permissions using PowerUp and accesschk by enumerating service configurations and ACLs to identify services where low-privileged users can modify binaries or change startup settings.

Can I compile a malicious DLL payload for service exploitation using mingw?

Yes, you can compile a malicious DLL payload for service exploitation using mingw to generate the shared library needed to intercept the execution flow of vulnerable Windows services.

How do I use Process Monitor to identify vulnerable DLL search orders?

You use Process Monitor to identify vulnerable DLL search orders by filtering for file creation and path not found events, revealing where a privileged process attempts to load non-existent DLLs that you can hijack.

Does icacls work for checking service binary permissions during red teaming?

Yes, icacls works for checking service binary permissions during red teaming by displaying the discretionary access control lists to verify if low-privileged accounts have write access to executable files.