[HANDLE]
Display information about open handles for processes, useful for file lock investigation and forensic analysis
Key Features
Understanding Windows Handles
A handle is a reference to a system resource such as a file, registry key, process, thread, or synchronization object. When a process needs to access a resource, Windows creates a handle that the process uses to reference that resource.
Common Handle Types:
- • File: Open files and directories
- • Process: Running process references
- • Thread: Thread objects within processes
- • Registry: Open registry keys
- • Event: Synchronization events
- • Mutex: Mutual exclusion objects
Handle Information:
- • Process ID: Which process owns the handle
- • Handle Value: Numeric handle identifier
- • Access Rights: Permissions granted
- • Object Name: Path or name of the resource
- • Object Type: Type of system object
Basic Usage
File Handle Investigation
Process Handle Analysis
Advanced Features
Object Type Filtering
Handle Closure (Use with Caution)
Command Line Options
Option | Description | Example |
---|---|---|
-a | Show all handles | handle -a |
-p [PID] | Show handles for specific process | handle -p 1234 |
-u | Show unnamed handles | handle -u -p 1234 |
-s | Show summary of handle types | handle -s |
-c | Close handle (dangerous) | handle -c -p 1234 0x123 |
-y | Suppress prompts | handle -c -y -p 1234 0x123 |
Security Use Cases
🔍 Digital Forensics
Identify which processes are accessing critical system files.
🦠 Malware Analysis
Analyze what files and resources malware is accessing.
🚨 Incident Response
Investigate file access during security incidents.
🔧 File Lock Troubleshooting
Resolve "file in use" errors by identifying blocking processes.
Common Investigation Scenarios
File Deletion Issues
System File Access
Output Interpretation
Sample Output Analysis
Process name: The executable holding the handle
PID: Process ID for identification
Type: Handle type (File, Key, Process, Thread, etc.)
Handle value: Hexadecimal handle identifier
Object name: Path or name of the resource