No slash command · from reverse-engineering-plugin
Analyzes whether an SGX/TEE-sealed secret is recoverable. Covers CPU+MRSIGNER binding, why copying sealed blobs fails, and how to trace plaintext to its source.
Ships in reverse-engineering-plugin. 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.
When a secret (a device key, a PSK, a license token) is held by an SGX enclave, the driver only shuttles opaque sealed blobs and ciphertext. Before planning a recovery, work out what the seal is actually bound to — most "copy the blob and decrypt it" plans are dead on arrival, and a couple of non-obvious routes are not.
sgx_urts.dll / sgx_uae_service.dll (Windows) or links
the Linux SGX SDK; ships a *.signed.dll / *.signed.so enclave and a
sgx_white_list_cert.bin.EGETKEY, sgx_seal_data/sgx_unseal_data, MRSIGNER, ECALL/OCALL
names, an mbedTLS build inside the enclave.sgx_seal_data encrypts under a key from EGETKEY, derived from:
MRENCLAVE (this exact enclave) or MRSIGNER
(any enclave signed by the same vendor key), per the seal policy, plusCR_SGXOWNEREPOCH (a platform-owner MSR) and the SVN.Consequences:
EGETKEY only runs inside an enclave. The OS, a driver, /dev/mem, DMA —
none can issue it. Copying the sealed blob to another machine (or to Linux on
the same box, from outside an enclave) yields nothing.MRSIGNER matches, i.e. one signed by the vendor.
You can't forge MRSIGNER (it's SHA-256 of the signer's public modulus)
without their private key.ATTRIBUTES.DEBUG=0 in the SIGSTRUCT) blocks
EDBGRD/EDBGWR, so you can't single-step it or read EPC. Check the
SIGSTRUCT DEBUG bit — a debug-signed enclave is fully readable.SGX cannot seal data off-device — EGETKEY is local. So a sealed blob that
exists on this machine was necessarily created here, which means the
plaintext secret passed through the enclave on this box at least once (factory
provisioning, first boot). Find that delivery path: the secret came from
somewhere the enclave could read — a provisioning server, the platform's CSME/ME
over a DH channel, an EC, a one-time ACPI hand-off. That source, not the sealed
blob, is where plaintext is reachable.
EREPORT), that peer may be unable to tell the real enclave from
your client — worth checking the channel's authentication.device-passthrough-feasibility).device-passthrough-feasibility — why a VM can't peek into a guest enclave.firmware-dump-region-map / ghidra-headless-decompile — find the
provisioning/CSME delivery path in firmware and the untrusted driver.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/acpi-table-reReverse-engineer ACPI tables (DSDT/SSDT) with iasl. Use when investigating a device's ACPI definition — find a device by _ADR/_HID, read a _DSM, or map wake sources (_PRW/GPE) for suspend/drain work. Covers iasl decompilation, the live tables on Linux, and the methods to grep./device-passthrough-feasibilityDecide whether hardware or a physical address range can be forwarded into a VM. Use when asked "can I pass through device X to a guest" or "alias physical address Y into the VM". Covers what's bindable, the /proc/iomem+e820 check, data-plane vs control-plane, and why a TEE defeats it./firmware-dump-region-mapEnumerate every region of a firmware/BIOS/SPI-flash dump before reverse-engineering one. Use when handed a flash image and about to carve out the EC, a DXE driver or the ME region. Covers the flash descriptor, extracting compressed UEFI volumes (raw grep misses strings), and host-vs-device split./ghidra-headless-decompileBatch-decompile a binary with Ghidra headless and grep the output. Use when reverse-engineering a PE/ELF/firmware binary from the CLI — export decompiled C for every function, dump xrefs or call graphs. Covers the Ghidra 12 Jython-to-PyGhidra break (scripts are Java now) and the project lock./re-deterministic-examinerBuild a deterministic examiner for a binary format instead of guessing. Use when reverse-engineering a packed/proprietary format and inferring a field, record size, grid, or asset identity from indirect evidence. Covers slicing into labelled units, measuring, and refusing when underdetermined.npx claudepluginhub laurigates/claude-plugins --plugin reverse-engineering-pluginOther plugins' skills for the same job