
Ntobjmanager Mcp
io.github.lupingQAQPublished by GitHub account lupingQAQv1.0.0Updated Oct 24, 2026
Stateful Windows RPC attack-surface research for AI agents: 22 tools on NtObjectManager.
Overview
A Windows-only MCP server that gives an AI assistant stateful tools for researching Windows RPC attack surfaces via NtObjectManager.
- What you can do
- Parse PE files for RPC servers, inspect interfaces, endpoints and running services, and keep parsed state across calls. Connect to RPC servers, list opnum-mapped methods, invoke methods with stored return objects, and disconnect sessions. Run PowerShell inside a lab VM through a persistent guest runspace. Apply fixed CVE-hunting workflows: context-handle scanning, attack-surface inventory, dry-run fuzzing, hijackable-interface discovery, ETW checks, ALPC security audits and flag decoding. Export generated C# client source, build NDR structs, squat ALPC ports and list user-startable tasks. Manage session variables and the parse cache, with every call logged to an audit file.
- When to use it
- For authorized Windows RPC security research and CVE methodology work on an isolated lab VM, where an assistant should keep live RPC sessions and parsed objects between steps instead of re-running one-off PowerShell. Not intended for production or daily-driver hosts.
- Requirements
- Runs locally as a Python stdio process on Windows PowerShell 5.1 (pwsh 7 untested). Needs the NtObjectManager PowerShell module installed and the Python mcp package. Some tools (ETW tracing, ALPC security descriptors) require administrator rights; VM tools need a configured lab VM.
Installation
In SourceWeft
- Open Ntobjmanager Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
🛰️ NtObjectManager-MCP
Stateful Windows RPC Research MCP — 2024–2026 CVE methodologies as one-click tools
[Python] [License] [PowerShell] [MCP]
🌐 中文版
What is NtObjectManager-MCP?
A Model Context Protocol server that gives an AI agent live, stateful access to Windows RPC attack-surface research, built on James Forshaw's NtObjectManager (NtCoreLib).
Three things a generic PowerShell MCP cannot do — and the reason this exists:
- Stateful RPC connections — a persistent PowerShell engine keeps parsed
RpcServerobjects and connected RPC clients alive across tool calls:rpc_connectonce,rpc_callmany times (auth handshakes, context-handle chains, session variables survive). - CVE methodology as fixed tools — the standard hunting workflows from 2024–2026 public research are one-click, not prompt-engineering.
- Stateful execution inside a lab VM — the same one-engine principle applied
in the guest:
rpc_vm_execkeeps variables and connected RPC clients alive across calls through a single persistent guest runspace, never a fresh shell per call (the vmrun fallback is reported asstateful: false).
Tool Matrix (24)
Core stateful pipeline
VM lab bridge (stateful guest execution)
2024–2026 CVE methodology tools
Every tool call is appended to output/mcp_audit.log.
Field-Tested (real machine, full hunting round)
🚀 Quick Start
Claude Code:
Any MCP client (e.g. OpenCode opencode.json):
Example: context-handle type confusion (CVE-2025-48815 pattern)
store_as / {"__var__"} is the core chain primitive: RPC return objects flow
between calls without serialization round-trips, which is exactly what
producer→consumer handle-confusion testing needs.
📁 Project Structure
🛡️ Honest Capability Boundaries
📖 Documentation
- ARCHITECTURE.md — engine protocol, state model, design decisions
- CHANGELOG.md — R1–R13 decision history incl. two PS 5.1 marshaling bugs
- SECURITY.md — authorized use, VM isolation, MSRC disclosure
- CONTRIBUTING.md — development invariants and test requirements
⚠️ Disclaimer
For lawful security research, education, and authorized testing only.
rpc_call invokes real RPC methods and can crash services — run it against an
isolated VM, never a production or daily-driver host. Vulnerabilities found
through this tool must follow responsible disclosure (MSRC).
📄 License
MIT — Copyright (c) 2026 ntobjmanager-mcp Contributors
Source: README.md at commit 0c3f0f6
Tools
0Version history
1- v1.0.0LatestSep 30, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts