MythosX Anvil Setup Guide

Usage Guide

This chapter covers how to use MythosX Anvil, in two routes. For everyday analysis, read Everyday Analyst. To call all of the low-level capabilities, read Advanced Analyst. Choose your route first.

Everyday Analyst

The features and workflows used for everyday analysis.

01

Keep Using PCILeech-Ecosystem Tools

If you already use PCILeech-ecosystem tools and do not need the features specific to MythosX Anvil HV, follow the two options below.

  1. With an FPGA card

    Nothing to change. Just run your existing software. MythosX Anvil has already opened DMA access to all memory except the protected area.

  2. With an X520

    Replace the DLL in your original software folder with the LEECHCORE.DLL provided by MythosX Anvil, overwriting the original DLL. Your original software keeps running, and MythosX Anvil provides VA→PA read and write through mapping.

Advanced Analyst

Advanced use cases and SDK calls.

01

Call All of MythosX Anvil's Low-Level Capabilities

MythosX Anvil is a multi-purpose analysis tool that opens all of its low-level capabilities to you through a DLL. Before you call it, take part in our Trusted Security Verification Program (Cyber). After you pass, get the integration DLL, API docs and sample code from the team. The DLL header files, API docs, call examples and the PCILeech compatibility layer (LEECHCORE) are all public. The byte-level implementation of the low-level communication protocol is not open source.

Capability list

Memory read and write

  • Read and write both virtual (VA) and physical (PA) addresses
  • V-BATCH scattered batch read and write (multiple pages in one call)
  • BULK_READ single bulk read of a contiguous range
  • Transparent CR3 page-table walk with guard and restricted-region checks
  • Read and write from the CPU point of view (the same semantics as the guest CPU accessing memory itself, unlike the raw DMA view of the original PCILeech)
  • All memory outside the protected area is open

Process and module resolution

  • PID, image name, module base, PE and export resolution
  • The caller supplies the layout, list head, selection criteria and bounded scratch

Write monitoring

  • Page-granular write traps, range filtering and re-arming
  • Synchronous capture before a write triggers: GPRs, control context, required vectors, entry RSP and stack, and bounded indirect memory
  • Multi-core aware, with a flood ceiling
  • decode-by-reexecution: flip the page to RW, single-step one instruction, flip it back to RO, and reconcile byte deltas

Debugging

  • Shadow breakpoints (dual-view NPT: the read view passes through, the execute view is shadowed)
  • Single-step and exception interception (TF+#DB or NPT-granular traps, with EFLAGS.TF shadowed)
  • Cross-page stepping

HOOK

  • Trap hooks (cold spots, exit on every instruction)
  • Island hooks (view switching, one NPF per direction)
  • Dual-view NPT (content view and execute view separated)
  • INT3 fallback path
  • Full CAPS / INSTALL / REMOVE / QUERY lifecycle
  • Install, query, remove and roll back; a failure never leaves a half-bound state behind

Code islands and data islands

  • Code island: custom content pages and execution landing points
  • Data island: inside the window, the CPU reads and writes real data; outside it, the data is hidden
  • Two-generation group switching, migration and rollback
  • Custom blob delivery (bounded transfer, SHA-256, manifest and version check, per-frame integrity, whole-page atomicity, a closed three-state set, and interrupt-safe recovery)

Event ring

  • One SPSC ring per CPU, merged by the consumer
  • Timestamps (monotonic on one core and consistent across cores), sequence numbers, drop counts, and complete generation information

Sandboxed execution domain

  • A separate execution domain isolated at CPL3
  • Separate address space, W^X
  • Closed API set: walk, read and write, shared ring, timers, events and controlled time
  • Event-driven worker execution (P3 / P4 events, then ring, then worker wake-up)
  • Exception isolation, drain on restart

Nested virtualization compatibility

  • Hyper-V, HVCI and VBS run inside a guest Windows with real semantics
  • Full SVM nesting support: VMCB, second-level page tables, MSRs, exceptions, interrupts and APIC, XSTATE, TLB and multi-core state, all faithfully preserved
  • Multi-core fidelity across cores
  • Fidelity on seven dimensions: CPUID, MSR, VMRUN, timing, exceptions, memory, TLB and cache, and interrupts
  • Anti-nesting observation interface

Identity and presentation

  • Read or hot-switch what the guest sees: SMBIOS (motherboard, system, BIOS, chassis), disks (NVMe SN, MN, FR and volume ID), NIC MAC, OS identity (MachineGuid, SQM, ProductID, ComputerName), display EDID, TPM presentation, Secure Boot presentation and IOMMU presentation
  • Raw (real value) and render (presented value) are managed separately

Hiding the cards

  • The DMA card and the X520 are invisible to the guest OS
  • PCIe enumeration removed, downstream switch ports show no link handshake, and nothing appears in the IOMMU tables

Dual-channel transport

  • DMA mailbox (a fixed physical-memory whiteboard)
  • X520 (a LAN D5MF walkie-talkie)
  • Both channels share one public API. The code does not branch, and switching channels needs no changes.

Development package

  • Official C ABI + two DLLs (DMA channel, X520 channel)
  • Thin C# layer
  • Dual ABI for guest execution and worker sandbox execution
  • Process and module cache
  • Named invalidation notifications in the ring
  • Headless CLI entry point (AnvilConsole.exe --op profile.list / read / save / rename / copy / delete / setCurrent, --cli-selftest)
  • Mock, fixed inputs and E2E examples

Integration

How to integrate

After completing Cyber verification, get the DLLs, integration credentials, API docs and sample code from the MythosX team. Put the DLL in your tool folder to call it.