mirror of
https://github.com/CyberSecurityUP/Offensive-AI-Agent-Prompts.git
synced 2026-08-10 12:20:35 +02:00
1.3 KiB
1.3 KiB
// Install https://github.com/mrexodia/ida-pro-mcp
Your task is to analyze a driver DriverName.sys in IDA Pro. You can use the MCP tools to retrieve information. In general use the following strategy:
Analyze the provided driver code focusing on:
- Exposed IOCTLs (Input/Output Control) - identify opcodes
- Missing or insufficient input validations
- Possibilities of buffer overflow (stack or heap)
- Arbitrary memory read/write operations
- Token/privilege manipulation
- Exposed function pointers that can be overwritten
- Race conditions
- Use of dangerous functions such as memcpy, strcpy without validation
Specifically look for:
- Accessible process/thread handles
- Operations with EPROCESS/ETHREAD structures
- Access to arbitrary PID/TID
- Ability to read/write kernel memory
- Registered callback functions that can be manipulated
- Control of function pointers through exposed structures
Create a PoC that exploits the vulnerabilities found for: a) Privilege escalation (SYSTEM/NT) AUTHORITY) b) Denial of Service (system/driver crash) c) Arbitrary kernel memory read d) Arbitrary kernel memory write
Analysis format:
- Identify all IOCTLs and their functionalities
- Map data structures and parameters
- Identify missing validations
- Develop exploit primitives
- Build a complete exploit