/windbg-mcp:windbg-secure-kernelfrom WinDbg MCP
Inspects, controls, and debugs a VBS guest's Secure Kernel (VTL1) via the windbg MCP server. Reads Hyper-V checkpoint modules/memory/symbols, stops/steps/resumes a live VTL1 VP, or debugs as a DbgEng session.
Ships in WinDbg MCP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
windbg MCP serverGoal: inspect, control, or ordinarily debug a Windows guest's Secure Kernel — the VBS VTL1 side, memory a running Windows cannot read about itself. Four capture tools read a Hyper-V saved state; ten low-level live-control operations stop, inspect, step and resume one selected VP; M8 exposes the same controller as an ordinary DbgEng kernel session.
These tools are not served by default. They are the server's securekernel group, which a
server started with no --tools leaves out, so a call to one is refused with -32602 naming
--tools — a configuration answer, not a missing feature. Widen the surface first: --tools all,
or securekernel beside the groups you use (the M8 route below also needs inspect and exec).
On a listener either works: the listener's own --tools is every client's default, and a tool
spec in a client's credential entry, where the entry has one, replaces that default for that
client; an entry without one inherits it. Engine bundling and symbol setup are the server's in
general rather than this skill's: the windbg-debugging skill covers them where the surface also
serves the ordinary groups, as --tools all does, and the elevation and prerequisites these tools
add are below.
Symbols need more than the in-box engine. A name, stack or symbolic breakpoint on the Secure
Kernel needs the securekernel.pdb matching the guest's securekernel.exe. The engine in
System32 ships dbghelp.dll without symsrv.dll, so a srv* symbol path fetches nothing there
and names fall back to exports. Bundle a debugger package's engine beside the server binary with
its symsrv.dll, plus msdia140.dll where that package's dbghelp.dll needs one to parse a PDB:
the WinDbg package carries both, while the Windows SDK's Debugging Tools carry no msdia140.dll
and their dbghelp.dll has been measured reading PDBs without it. Confirm that names resolve
rather than assuming either way.
| Route | Tools |
|---|---|
| Capture | open_sk_capture, sk_modules, sk_read_memory, sk_symbol |
| Live control | opener open_sk_live_control; ten operations: sk_live_arm, sk_live_wait, sk_live_break, sk_live_registers, sk_live_read_memory, optional policy-gated sk_live_write_memory, sk_live_step, sk_live_continue_to_breakpoints, sk_live_continue_to_software_breakpoints, sk_live_continue |
| Traces | sk_service_trace, sk_service_trace_read, sk_call_trace, sk_call_trace_read, hv_transition_trace, hv_transition_trace_read |
| Debuggers | open_sk_debugger creates a managed MCP DbgEng session paired with its Secure Kernel controller; open_sk_kd exposes a standalone pipe for external WinDbg |
Capture, live-control and standalone KD sessions refuse ordinary debugger tools; the managed
debugger exposes them. Every route's session must be closed with end_session, and an unresolved
controller teardown retains its worker and target reservation for operator recovery.
| Operation | Administrator? |
|---|---|
Capture (open_sk_capture) | No — but it needs the Windows SDK's vmsavedstatedumpprovider.dll and read access to the checkpoint. Naming the capture as a vm rather than as a path asks Hyper-V where it lives, so that needs the role installed on this host and an account that may ask about that VM (below) |
Live control (open_sk_live_control) | Yes — plus an exact disposable VBS VM, operator-supplied register and memory providers, and a build-matched vmwp profile (below) |
A capture is a file, and its MCP tools read it with no driver, no
debuggee, and nothing running. A live decode uses the --sk-live command-line role and a child
memory transport. Low-level live execution control is a separate MCP session using built-in or
operator-supplied register and memory providers plus a build-matched vmwp adapter. The
normal debugger route uses open_sk_debugger for generic MCP debugger tools or open_sk_kd for
an external WinDbg client. The built-in provider uses the operator-built and installed h3probe
driver; a custom provider remains an escape hatch. For a running guest,
choose live decode only for a current snapshot, low-level control for controller evidence, and the
M8 debugger route for ordinary symbols, stack, disassembly, breakpoints and execution control.
.vmrs, or the older
.bin + .vsv pair. It reads the same copied off the Hyper-V host as on it, so the machine
running the server needs no Hyper-V role at all when the capture is named as a path. Naming it as
a vm instead asks Hyper-V where that checkpoint lives, which does need the role installed there
and an account that may ask about that VM. Encryption is the one prerequisite whose failure is
not a refusal — see below.vmsavedstatedumpprovider.dll, which the tool loads out of an installed
kit. kit and kit_version override the search when several are installed or the newest one has
no provider.securekernel.exe the captured guest was running, as a file on the host running the
server — usually C:\Windows\System32\securekernel.exe when host and guest builds match.
image is required and is not a formality: a mapping in VTL1 is identified by comparing it with
that file, so there is nothing to identify against without one. A host on a different build is
the wrong file; point image at the guest's own copy or the decode finds nothing and reports
that it did.securekernel tool group is extra, so the default surface does not serve it. A server
started plainly has none of its capture or live-control tools, and the refusal is -32602 naming
--tools, which reads like a configuration mistake rather than a missing capability. On stdio the
command line is the only way to widen it; on a listener a client may instead carry its own surface
(WINDBG_MCP_TOOLS_<NAME>, or a tools field in its credential-file entry) that names the group.
Either spec may also name the tools it wants individually — --tools takes a group or a tool — so
a surface can carry open_sk_capture and sk_read_memory and not the other two capture readers.No driver, no test-signing, and no debugger attached to anything. A checkpoint is the guest's whole RAM in a file, so handle one like a full memory dump of that machine.
An encrypted .vmrs will kill the session rather than be refused, and the error reads as
transient when it is not. For a checkpoint of a VM with EncryptStateAndVmMigrationTraffic on,
the SDK provider does not return a failure: LoadSavedStateFile __fastfails (0xC0000409) and
takes the calling process with it, which here is the worker holding that session — the provider is
loaded once per worker. So the open comes back "the engine worker process holding session … is
gone", whose own advice is that opening again starts a fresh one. For this cause that advice is
wrong: the same capture kills the next worker too, so read that error on an open_sk_capture as
check whether the VM encrypts its state before retrying anything. Your other sessions are
untouched, one worker holding one session being the whole point of the shape.
What that is measured on, because the scope is narrower than the warning sounds. Provider
10.0.26100.7705, x64, a standard checkpoint, reproduced from two unrelated processes — one a Rust
binary calling the same export — so it is the provider's behaviour rather than this server's
handling of it. The older bin + vsv pair goes through a different export
(LoadSavedStateFiles) and is untested, encrypted or not: expect the same symptom, but if an
encrypted pair gives you an ordinary error instead, that is new information and not a contradiction
of this page. The ARM64 provider is untested too.
Name it exactly one way — vm (with an optional snapshot; omit for the most recent),
vmrs, or bin with vsv. Two selectors is refused rather than one silently winning.
open_sk_capture {
"vmrs": "D:\\Hyper-V\\Virtual Machines\\Snapshots\\<id>.vmrs",
"image": "C:\\Windows\\System32\\securekernel.exe",
"symbols": true // opt-in: sk_symbol needs it; sk_read_memory names what it read with it
}
The rest are rarely needed and each has a sane default: vp (which virtual processor's saved
registers the VTL1 page-table root comes from, default 0), vtl (default 1, which is where the
Secure Kernel is), symbol_path (replaces the default for that engine rather than adding to it),
and cross_check, which reaches the loader list a second way — structurally, from the entry
whose base is the identified image's — and reports whether that agrees with the debugger data
block. One answer by two routes, at the cost of a scan of the mapped pages.
The whole decode comes back with the open: the page-table root read out of the capture, the
walk, securekernel.exe's base, KdDebuggerDataBlock, SkLoadedModuleList, the loader list it
points at, and every count the decode made — including the reads that failed, which is what
separates "nothing is there" from "this run could not see". A capture is a fixed snapshot, so
nothing it says changes while the session is held and no later call re-reads it; sk_modules
renders the list the open already walked.
A capture of a VBS-off guest opens and says so. The provider refuses the VTL switch by name, the session reports that refusal and the partition's VTLs, and every read against it is refused with the same sentence. That is the answer to asking — and the control that makes a VBS guest's figures mean something — not a failure to work around.
Two consequences, both of them from the target being a file:
sk_modules, sk_read_memory and sk_symbol read the capture;
every other tool that answers about a debugger target is refused by name. That is not
tidiness: the engine in that worker holds the Secure Kernel image on disk — or nothing at
all, when the session was opened without symbols — so read_memory there would read the file
and report it as the guest's memory, and registers would answer about no thread. What is not
refused is everything that is about the session rather than its target: end_session and
interrupt are accepted on any session kind, and session_status and server_log never reach
the worker at all. So a capture session is closed the ordinary way.go, set_breakpoint or continue_async. The capture is opened read-only and never written;
end_session closes a file.sk_read_memory { "session_id": "sess-…", "address": "0xFFFFF80220D89000", "size": 4096 }
The address is a guest virtual address in the captured VTL1, translated through the page-table walk the open made. The physical address comes back with the bytes — so a reading here can be compared with one taken another way — and, where the session has symbols, what the image calls that address.
That gpa is where the range starts, and nothing more. A read crossing a page boundary is
assembled page by page, each translated on its own, and two adjacent virtual pages need not be
adjacent physically — so the returned gpa is the first page's and the buffer is not a window
onto gpa..gpa+size. To line a reading up against a physical source, read a page at a time and
translate each one, rather than comparing a multi-page buffer against a contiguous physical range. size is 1 to 65536 and the read is whole or nothing: a range reaching a
page the capture does not carry is refused naming that page rather than answered short, which would
look like the end of a structure.
This is the only read that answers about the guest.
sk_symbol { "session_id": "sess-…", "name": "SkLoadedModuleList" } // or "address": "0x…"
Exactly one of name or address. A name is unqualified — the module name is the engine's and
is applied for you, so pass SkLoadedModuleList and not securekernel!SkLoadedModuleList. A
qualified one is refused as an invalid argument rather than stripped: skci!Foo names a module
the capture does not hold, and a lenient engine would otherwise answer
securekernel!securekernel!Foo — the right address under a doubled name — so the refusal is the
one answer that cannot mislead. A lookup by address answers with the nearest preceding name and how far past it
the address is, so a displacement of zero is the only answer that says the address is the
symbol. Every answer carries the guest address, the RVA and the engine's own address, so a figure
from here joins a disassembler loaded at either base.
Two limits to plan around:
symbols. Without it the refusal says so and the remedy is to
open the capture again — the decode is identical either way, so nothing is lost but the call.securekernel.pdb has carried no type records, so nothing in this session formats a
structure over VTL1, and dt is not a way round it, the debugger tools being refused here in the
first place. A structure is read with sk_read_memory and decoded by hand, from offsets you
derive. Whether a public PDB ships types is Microsoft's to change, which is why the open probes
for them and reports what the engine answered — read that rather than this sentence, and if it
ever says otherwise, that is the build worth saying so about.Symbols are loaded against the image with no debuggee, at its preferred base, rebased onto the
base the decode found. So what a session with symbols buys is the names; the types are what
the paragraph above is about, and the open's probes are what answer for the build in front of you.
windbg-mcp --sk-live --transport "<command line>" --image <securekernel.exe> [--cross-check]
For the built-in provider, pass the boot-scoped coordinates returned by guarded discovery:
windbg-mcp --sk-live --transport builtin:h3probe --image <securekernel.exe> \
--vmwp-pid <pid> --partition-handle <handle> --partition-id <id> [--vp <number>]
That runs the same decode against a running guest. Three things about it decide how it can be used, and all three matter:
session_id, and session_status never lists it. This skill can describe it and read what it
printed; running it needs a shell on the debugger host.--transport is required. builtin:h3probe re-executes this exact server image as a child,
which opens the operator-installed driver through a typed IOCTL ABI. The repository ships the
driver's source but no binary, signature, installation or startup action. A command line selects
a custom provider under the same protocol. Do not infer one provider's host posture from
another; the built-in driver's own README is authoritative for its build and install.open_sk_capture can hand back a whole decode at the
open because a capture cannot change. A live guest can: 2 bytes of securekernel.exe's .data
were measured changing inside twenty seconds (gate S5x), so a session whose figures were taken
at the open would quietly describe a guest that has moved on, and two sk_read_memory calls
could not be promised the same bytes.A capture can also be read without MCP, by the sibling role —
windbg-mcp --sk-inspect --image <path> (--vm <name> | --vmrs <path> | --bin <p> --vsv <p>) [--symbols] [--cross-check] [--json <path>] — which is the thing to suggest when the operator
wants the decode in a terminal or a file rather than in this conversation.
A child process speaking a line protocol on its stdio: one ASCII line of request on stdin, one
status line on stdout, and for a successful read exactly the requested bytes after it.
src/livesrc.rs is the normative spec — this is the shape.
<- (the provider's own startup lines; echoed to stderr, prefixed `transport:`, and bounded — see
the table below, which is where every number in this protocol lives)
<- windbg-mcp-gpa/1 the ready sentinel — the lines before it are ignored, not unlimited
-> SHAPE
<- SHAPE cr3=0x1201000 vtl_enabled=1 paging=long max_read=4096 max_write=4096 write_coherency=instruction_coherent
<- SHAPE max_read=16 switch_refused=VTL_switch_denied unreadable=efer:not_exposed
a VBS-off guest, and a register the source cannot get: both are
answers that travel, and both spell a space as `_`
-> READ 0xCD12DF 16
<- OK 16
<- <16 raw bytes>
-> WRITE 0xCD12DF 1
-> <1 raw byte>
<- OK 1
<- REFUSED ReadIntercept the hypervisor withheld that page
<- NOTPRESENT no such mapping
<- ERROR the driver is not loaded
Every bound the client enforces, in one place. Three of these were found one review round at a
time, each as a provider that satisfied the protocol as written and failed anyway, so the list is
read off src/livesrc.rs rather than grown a row per bug report. None of them is negotiable from
the transport's side, and none is clamped — each refuses.
| what | bound | what a breach does |
|---|---|---|
| lines before the sentinel | 63 (64 are read in all) | rejected as "probably not a transport", with what it said quoted back |
| bytes in any one line | under 64 KiB, newline included | 64 KiB with no newline is "not one line"; the exchange is refused and the transport poisoned |
max_read declared | 1..=1048576 | the handshake is refused — declare the smaller of your real capacity and 1 MiB |
max_write declared | 1..=4096, and only with write_coherency=instruction_coherent | the handshake is refused; the two fields are one capability and must be absent or present together |
SHAPE keys | the documented ones only | an unknown key is refused, not ignored |
vtl_enabled | 0 or 1 | anything else is refused |
paging | long | refused; this decode walks long mode only |
unreadable names | cr0, cr3, cr4, efer | an unknown register name is refused |
OK <n> | n equal to the bytes asked for | both directions poison: more is a source error, fewer is a short read, and a short read is a failed read rather than a partial answer |
| stdout | stays open until stdin closes | an EOF mid-exchange is "the transport closed its stdout" |
| teardown | 10s after its stdin closes | the child is killed rather than waited for |
And the grammar, which is the other half of the same contract. Rounds of review found the bounds one at a time and then found these the same way, so they are read off the source together: nothing here is a shell, and no value is free text except where the table says it is.
| where | the rule | what ignoring it does |
|---|---|---|
the --transport string | words split on whitespace, " toggling quoting; no shell at all — no expansion, no escapes, no single quotes | $VAR, %VAR%, >, |, '…' and \ reach the program literally, as arguments, so it usually fails to start or starts wrong |
| an empty argument | cannot be expressed: quoting groups whitespace, it does not create a word, so "" contributes nothing | a provider needing an explicit empty positional gets it dropped and everything after it shifted — the one case that needs the wrapper script rather than merely preferring it |
a SHAPE field | key=value, with whitespace in neither | the reply is split on whitespace first, so a value containing a space becomes a field that is not key=value, and the handshake fails |
a SHAPE reason — switch_refused, unreadable | spaces written as _, which the client turns back into spaces | a reason with real spaces fails the handshake as above |
unreadable | unreadable=<register>:<reason>, the register one of cr0, cr3, cr4, efer | an unknown register name is refused; no colon means the whole value is the register name |
a status line's detail — REFUSED, ERROR | free text to the end of the line | nothing: these may contain spaces, and that asymmetry with SHAPE is the one to remember |
If the provider needs shell features, put them in a script and name the script. That is the
advice rather than a quoting recipe for invoking cmd.exe or pwsh inline, because this grammar
has no escape character: a " toggles quoting wherever it appears, so nested quotes do not nest.
Note also that the string reaches --transport only after your own shell has had it, so what
this grammar sees is whatever that shell passed on.
Things to know besides the numbers and the grammar:
After the sentinel, say nothing that was not asked for. Every line the client reads from then
on is read as the reply to the request it just sent, and there are only two requests ever sent:
SHAPE, once, and then READ <0xADDR> <len> or an authorized WRITE <0xADDR> <len> followed
by exactly that many raw bytes — the address in uppercase hex with an 0x prefix.
A progress line, a warning or a log written to stdout after the handshake is therefore consumed as
a status line and desynchronises the stream. Diagnostics belong on stderr, which is never
read as protocol and is the right place for them anyway: it reaches the operator's terminal
directly.
The sentinel is not politeness. A provider prints during its own setup, so without it the
first line of a partition menu gets read as a SHAPE reply. A provider that prints per
partition, per device or per loaded component is the one to check the line bound against — and a
single long line is as fatal as too many, which is the easier one to hit with a provider that
dumps a table or a JSON blob in one write.
max_read is the only required SHAPE field, and it must be the real one — HvCallReadGpa
moves at most 16 bytes, and a transport that claims more than it can do will be asked for it.
Its ceiling above is a guard on the client's own buffer, which is sized from whatever you
declare, rather than a statement about your source: a transport that reads more per request
simply gets more requests. Every other field is optional because a source that cannot read a
register must be able to say so rather than have a missing EFER decoded as a machine not in
long mode. An unknown key is refused rather than ignored because a misspelled cr3 would
otherwise look like a guest with no page-table root, which is a far more plausible-looking wrong
answer. One SHAPE field is not a failure: switch_refused=<reason> is how a transport says
the VTL could not be selected, which on a VBS-off guest is the result and travels as one.
Write capability cannot authorize itself. max_write and
write_coherency=instruction_coherent only say the transport can make one bounded physical
write whose instruction-fetch visibility it handles. The startup policy must independently set
allow_memory_writes: true; without both gates, sk_live_write_memory is unavailable.
The four status words must stay distinct, and collapsing them fails in two different
directions. REFUSED is the hypervisor withholding a page, and over HvCallReadGpa on a VBS
guest it is the expected answer. Only OK with zero-filled bytes turns a protected guest
into one with no Secure Kernel — a zeroed buffer cannot tell data from silence, which is why
refusals are counted on their own. Reporting a refusal as ERROR is a different mistake and
still a mistake: it becomes a failed read, so the report withholds the negative instead of
claiming one ("identified nothing while N read(s) failed, so its negative has not been
earned") — you lose the reason rather than receive a wrong answer — and an ERROR poisons the
transport, that variant also covering an unparseable OK, which the client deliberately will
not try to tell apart by reading the detail. On a guest that refuses per access, that ends the
run at the first refusal instead of counting every one of them.
Every exchange has a deadline, and it is per response rather than per byte. A transport that
starts and then never emits a newline is refused after 60 seconds (EXCHANGE_WAIT), and the
bound covers a whole banner, shape or read response, so one byte a minute does not keep the role
alive either. It still runs in the foreground, where the person who wrote the transport sees the
refusal.
The --sk-live role above decodes a running guest once. It does not stop or resume anything. For a
controlled VTL1 kernel-mode stop, use the ten live-control tools. They create a dedicated worker
session whose DbgEng target is the host's vmwp and whose child providers access the selected VP's
VTL1 registers and memory. builtin:h3probe is the normal provider for both fields; ordinary
debugger tools are refused on this session so they cannot report vmwp state as guest state.
Use this route only for an exact, disposable VBS VM under an independent heartbeat, crash-record and
unchanged-text audit. Before the server starts, set WINDBG_MCP_SK_LIVE_POLICY to an operator-owned
file that admits the VM GUID, builtin:h3probe (or exact custom commands), and profile root. The worker resolves
the current vmwp PID, the register provider reports CR3 and the memory provider reports the Secure
Kernel base, so vmwp_pid and expected_cr3 are optional mismatch assertions. The per-boot
dispatcher VND and partition id are discovered only when the profile carries a discovery section,
which makes dispatcher_vnd and partition_id assertions as well; a profile without one takes both
as required inputs. open_sk_live_control applies policy, validates the
input and profile and reserves the VM. It starts no provider and does not pause, attach to or inspect
the VM. The first sk_live_arm performs discovery and validates the provider identities, live
VM/vmwp binding, CR3, build and guarded instruction before it changes registers or breakpoints.
The sequence is:
open_sk_live_control with profile, control_transport, live_transport, vm_id and
optional vp; normally both transport fields are builtin:h3probe. Supply vmwp_pid,
dispatcher_vnd, partition_id or expected_cr3 only when an
independent measurement should be enforced as a mismatch assertion — except that a profile with
no discovery section requires dispatcher_vnd and partition_id, because nothing else
supplies them.sk_live_arm with the exact instruction address and 1–15 guarded bytes. Natural mode leaves RIP
untouched and may arm up to four distinct debug-register slots; redirect mode accepts one and
deliberately moves RIP.sk_live_wait to resume and collect the exact owned vector-1 event. Its answer includes the
complete two-read register evidence, guarded instruction, expected next RIPs and a new opaque
stopped epoch.sk_live_registers or sk_live_read_memory. Reads are bound to the
stop and refused while running. If both independent write gates are enabled,
sk_live_write_memory compares and replaces 1–64 same-length bytes without consuming the stop
epoch. It retains the original until a later transition restores and verifies it; do not treat
its rollback_pending: true result as a persistent patch.sk_live_step, then call sk_live_wait for the next stop. For
repeated steps, give the new current instruction and its bounded destinations.sk_live_continue, then call end_session. Require the teardown
to confirm release and that the target is running before the external health audit decides the
run passed.Every mutating stopped operation consumes one session-scoped epoch. Never reuse an epoch, guess an
instruction, or widen a branch beyond its decoded destinations. If teardown is unconfirmed,
session_status reports live_control_unresolved and retains the worker plus the exact VM/vmwp
reservation. Do not open a second controller; inspect or discard the disposable VM out of band.
Note that live_control_unresolved also appears transiently on a healthy release, followed by
closed and released: true; the end is what is authoritative, in both directions.
Six things about that sequence are not visible from the tool signatures, and each one costs a run against somebody's VM to discover:
extra group, so a client that asks for nothing is served none of
them and open_sk_live_control is refused -32602 naming --tools. The group is widened on the
server's command line — except on a listener, where a client may carry its own surface
(WINDBG_MCP_TOOLS_<NAME>, or a tools field in the credential file) that replaces the run's
and may be wider, so a listener started without this group can still serve it to a configured
client.expected_cr3 is an optional
assertion; one live read of a VP's CR3 is whatever address space was resident at that instant,
and two sources agreeing on it says only that they sampled together.registers.values, not its target. Read the
cr3 entry of the register snapshot. target.expected_cr3 is the provider-hello baseline, cloned
unchanged into every stop, so under allow_transition_cr3 it holds the wrong root for exactly the
case that flag exists for — and the two differing is what the transition is.instruction field describes what the previous step executed. Supplying it
again fails saying the step address does not match the stopped RIP.For user-facing debugging, prefer open_sk_debugger over manually composing the ten low-level
operations. It returns one public composite session_id: a normal DbgEng worker is attached to a
private KD facade pipe, while a hidden worker retains controller and recovery ownership. Generic
tools on that handle operate on VTL1, not on host vmwp.
The setup is exact and must be checked before opening:
h3probe.sys, for registers/control and direct
memory; windbg-mcp itself ships no driver.WINDBG_MCP_SK_LIVE_POLICY was present when the server started and admits the exact VM GUID,
complete provider command templates, profile root, and pause bound.vmwp.exe path, SHA-256 and SizeOfImage, carries
the matching VID identity and guarded sites, and contains secure_kernel_kd initial-stop and
debugger-metadata RVAs. Live PID, partition, CR3 and Secure Kernel base are discovered per boot;
they are not copied into the profile.securekernel.exe when names, stacks,
or symbolic breakpoints are requested.After open_sk_debugger, use the ordinary sequence: set the symbol path; list modules; set a
breakpoint; call continue_async; start the guest trigger only once running is reported; call
wait_for_stop; inspect registers, stack and disassembly; step; clear breakpoints; and use
continue_async + break_in + wait_for_stop for a bounded free-run rendezvous. Finish with
end_session and require released: true; a closed public DbgEng peer alone is not release.
Use open_sk_kd only when a human needs Classic WinDbg or WinDbgX. Prefer the checked-in
tools/launch_sk_kd.ps1, which owns the generated pipe, debugger process, ordered MCP teardown and
failure cleanup. For WinDbgX, name the package's DbgX.Shell.exe, not its WindowsApps execution
alias. A read-only policy maps up to four bp handles to hardware slots. A write-authorized policy
allows only the guarded, one-shot INT3 breakpoint route and requires one VP; it does not grant
arbitrary writes.
The complete architecture, profile fields, policy example, acceptance evidence and recovery rules
are in docs/secure-kernel/m8-debugger.md. For a
repeatable bench, use the sibling secure-kernel-lab repository's docs/m8-runbook.md; its modules
generate the policies, open/config files, enclave trigger and 60-second audit instead of depending
on the former private scripts.
Offer the capture first when a fixed snapshot answers the question: it needs no driver and can be
read on another machine. For a current decode of a running guest, use --sk-live: the transport
is theirs to supply and the role runs outside MCP. For controller development or exact epoch-bound
stop evidence, use open_sk_live_control. For ordinary interactive debugging, use
open_sk_debugger: its generic symbol, stack, disassembly, breakpoint and execution tools are the
M8 product path. If they want external WinDbg itself, use open_sk_kd. It
returns a generated local named pipe for
kd -k com:pipe,port=\\.\pipe\<name>,resets=0, while MCP retains lifecycle and recovery and WinDbg
owns execution. The --sk-kd-target role remains a standalone diagnostic fallback. M8's managed
gate passed generic tools plus 75/75 free-run break-ins on three clean boots, and Classic WinDbg
and WinDbgX each passed 100 hardware and 100 guarded-INT3 hits. The remaining limits are in
docs/secure-kernel/kd-facade.md.
docs/secure-kernel/sessions.md — the caller's half: what capture and live-control
sessions are, and what ending one does.docs/secure-kernel/kd-facade.md — WinDbg in front of
the live controller: the connection string, what it can do today, and what it is told that the
guest never held.docs/secure-kernel/m8-debugger.md — the M8 product
architecture, complete setup contract, profile lifecycle, qualification and recovery procedure.docs/secure-kernel/README.md — the research record behind
all of it: what is reachable from where, which landmarks survive a reboot and which do not, and
what the lab needs. Several sections record what did not work, which is most of the value.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/msrc-patch-diffInvestigate a Windows CVE through MSRC, acquire verified current and previous stable component binaries for the same Windows product and architecture, and compare them with Binary Ninja Personal and external BinDiff. Use for CVE patch comparisons and similarity acceptance captures./windbg-debuggingDrive WinDbg/DbgEng via the `windbg` MCP server to debug Windows crash dumps, live user-mode and kernel targets, and Time Travel Debugging (.run) traces. Use when analyzing a .dmp, attaching to a process or the kernel, or recording/navigating/analyzing a TTD trace.npx claudepluginhub glslang/windbg-mcp --plugin windbg-mcpOther plugins' skills for the same job