Skip to content

Releases

MemVeil v0.2.0 (RnD prerelease)

Pre-release

Choose a tag to compare

@mingulov mingulov released this 23 Nov 15:08

MemVeil 0.2.0 release notes (development bundle)

Status: attempt/lifecycle/copy development preview. The version names
development bytes and schema compatibility, not a qualified full release.
The capability table is the support
contract for shipping collection, offline analysis, and laboratory work.

0.2.0 rebuilds the userspace in Rust: collection, CLI, and reporting
come from the Cargo workspace, the BPF loader is statically linked,
and the inspection objects are embedded in the binary. The 0.1.0
bundle notes below stay as the history of that prerelease.

Known issues

What this RnD release is — and is not

MemVeil 0.2.0 is a research-and-development preview for
explaining SWIOTLB bounce behaviour from inside an ordinary
x86-64 Linux guest. It records bounce attempts (try-counts
and requested bytes), mapping lifetimes, and executed bounce
copies, and replays captures offline. Read this before relying
on any number it prints:

  • Not qualified on confidential VMs. Collection is not
    qualified on AMD SEV-SNP, Intel TDX, or Hyper-V confidential
    guests. One historical SEV-SNP run exists (older binary);
    TDX has not been run. Ordinary-Linux results do not transfer.
    MemVeil performs no attestation and its output is not evidence about what a host or hypervisor did or could read, and not a verdict on guest confidentiality.
    doctor's guest line (e.g. guest: snp) is a kernel-reported
    signal, not platform proof.
  • Attempts are not copies, and inner success is not DMA
    success.
    bounce_attempts counts tries; only the copy
    channel reports bytes actually copied. A successful inner
    allocation can still be followed by outer DMA failure.
    Unmapping is not erasure or re-privatization: an
    unmap/release ends a mapping lifetime; it says nothing about
    later accessibility of the underlying pages.
  • Exit 0 does not mean a complete measurement. record,
    report, and top exit 0 for valid output with partial
    evidence (live terminal quality is partial by design). Read
    the verdict: line, or pass --strict in scripts (exit 4
    unless the verdict is complete). Rows shown as
    unavailable/withheld mean "not measured" — never zero.
    "No findings" means no diagnostic fired, not that the
    condition was absent.
  • Only the exact tested artifact is tested. Kernel-matrix
    results name one binary by hash (see release notes); the
    matrix ran bundle mode of the canonical binary, byte-identical
    to the .deb install (all three package binaries share one
    sha256). Rows not listed as PASS carry no verdict;
    the T5 and T8 campaigns measured all 20 matrix
    kernels on this build — 8 T5-admitted rows plus 12
    T8 rows (see evidence/matrix/ in the evidence
    archive).
    A machine-local qualify receipt records that a smoke
    capture worked on one host; it is not release qualification
    and does not hash the memveil executable — re-run qualify
    after any reinstall. Pool samples cannot diagnose sustained
    pressure, and saturation (~153k records/s, lower pre-6.7)
    degrades to partial/unknown rather than blocking.
  • Metadata only, with fingerprints. Captures contain
    allowlisted measurement metadata only — no payload bytes,
    keys, PINs, content hashes, raw addresses, full command
    lines, or environment dumps (the shipped collector also never
    writes process names/ids; the format reserves a
    never-rendered execution-context block for other producers —
    check a foreign capture before sharing it). Captures do
    contain a per-boot identifier, device PCI names, and
    kernel/build hashes: share a capture like you would share a
    dmesg — deliberately, not anonymously.
  • Privilege. Recording needs root in the initial user
    namespace (BPF load + tracefs); there is no supported
    capabilities-only mode. Replay (report, top DIR) and
    passive doctor are unprivileged and make no network
    connections. This is an RnD prerelease: verify downloads with
    the signed SHA256SUMS.txt; build from source if you need a
    stronger chain — signed release custody returns at 1.x.

Exit 0 does not mean complete measurement. Read the verdict: line, or pass --strict in scripts.

Finalized session 0.1.4 captures now bind and verify literal event bytes,
counts, kinds and contiguous sequences. Report 0.1.4 exposes verified
bytes/events. Finalized corruption returns 2 with or without partial mode.
Legacy input remains readable with unverified arithmetic and no complete
channels; normal mode returns 0 and strict mode returns 4. This source change
does not qualify older packaged artifacts. See capture integrity.

New captures allocate a synced 17 MiB finalization reserve and publish a durable
empty checkpoint before readiness, then checkpoint every 10 seconds or 1,000
committed events. With no final session, report --allow-partial DIR verifies
and reports only the checkpoint prefix, returning 4. Final evidence always wins;
a corrupt final session never falls back. SIGHUP stops orderly and a lost final
stdout summary preserves the durable capture's exit and reports its path on
stderr. Full-filesystem and hard-power-cut qualification remain open; these
source changes do not qualify older packages.

One canonical binary: the bundle, .deb, and .rpm
binaries are byte-identical (sha256
6fa00bfba2bbff4aecd5b8185a6d736b7170f12fbe26754fd51b97750395275d);
matrix ran bundle mode of it, byte-identical to the
.deb install (matrix mode + binary hash per row in
evidence/matrix/*/artifacts.json in the evidence archive;
retained-.deb install journey receipt privately retained).

What this bundle contains

  • record: SWIOTLB bounce-attempt capture, requested bytes, attach-anchored
    window/deadline, and readable default-pool capacity/used/high-water
    samples at start, on a best-effort 1 s cadence (4,096 routine,
    then pressurized-only up to 64), and close,
    plus opt-in mapping-lifecycle and copy-actual channels on the admitted
    profile. Admission checks profile bindings, bridge, and privilege.
    Attempts are not outer DMA successes or actual copies.
  • report: offline text/JSON/Markdown analysis. Lifecycle, copy, and mapping
    reducers consume the shipped channels on the admitted profile; region and
    pool reducers work only when input supplies their evidence. Allocation
    occupancy and byte-time are distinct from sharing lifetime.
  • top DIR: periodic summaries of finished-capture replay prefixes.
    top --output observes live with provisional prefixes; the final
    answer always equals a replay of the retained capture.
  • Human reports expose captured kernel/profile/scope and exact window
    duration. Missing/conflicting provenance remains explicit; an unbound
    capture remains unbound. Full hashes stay available in session/JSON.
  • Passive doctor, and source/runtime tarball packaging with licenses
    and manifests. The runtime tarball ships the binary, runtime closure,
    BPF objects, profiles, docs, and example; versioned schemas in
    schemas/ and the standalone build/test wrappers stay in the
    source tree.

Evidence scope

The release payload is asserted per package by the
packaging suites: the engine binary plus the three BPF
inspection objects of the .deb, the .rpm, and the
runtime tarball, with payload-manifest and SPDX checks
over each. In-payload license texts cover compliance;
no committed byte-pin manifest exists (the collected
manifest's shape stands in until requalification pins
release bytes). Each artifact's MANIFEST.json binds
its own verified bytes.

The .deb entry set is the kernel-matrix-tested one. The
matrix ran bundle mode of the sealed 0.2.0 build (seal
08bdeaed2e8646c28b1a6dda760ae9071f603816ab8e219600cb465749b890c9,
source bdf641c36addc345f3fb6d8bf925059c6f1fa714)
whose /usr/bin/memveil is sha256
6fa00bfba2bbff4aecd5b8185a6d736b7170f12fbe26754fd51b97750395275d.
The AWS SEV-SNP run installed the older 0.1.0 .deb
(ae2d3c13..., historical — see the support
appendix
).
The sealed artifacts, all from the one seal:

Artifact sha256 Size
memveil-0.2.0.tar.gz 1421538887f8fc7673b5edcb55c6633ff6febec6d21257a181fcab4cd20d863e 1826844
memveil_0.2.0-1_amd64.deb 45e0085508fa24b5b1033616ee64e4ef576b6aa05db766fe33bc75e5fd3f9d6e 1273512
memveil-0.2.0-1.fc44.x86_64.rpm 439a32ee2f2fa11ce0636f5eccba52fac6bde098871178513bfd4389f00df0b7 1385858
memveil-source.tar.gz b8226ace8d843d3cc06c2a94a0f243f889f762b9d564d90ed8cfa3cfcdd52280 3375252
memveil.spdx.json 3e253dd3b88ac9a41c9c6e1f1c0b74e0b611ce94492ec5ff348aa3a1f0ccee86 213354
memveil.provenance.json 62139c3687c0ab3de4714577d025209822b69e37e2ad7007856c9af6df4e6c6e 1638
qualification.json 44df17ac0897b102f96265b1bce9faf840868dad75a34851e699c682ed4ea058 758
qualification-evidence.tar.gz 16d320ff6ad15d20fd9c1fc3b9f6dc9f2c21000109c218310f4de7b8036cc7fe 303131684
tested-payload.sha256 5dff6a1737eca7fa7e80b2a0260e48657fc9340271f60e021d422014159de99a 37696

These six hashes are re-verified by the T5 campaign's
pre-VM gates (6/6 match candidate.json) and the
release lists them in SHA256SUMS.txt, which covers only
those six. The three export rows verify differently:
tested-payload.sha256 regenerates byte-for-byte from the
sealed candidate (tools/kernel-matrix --export-tested),
and qualification.json binds the two signed gate receipts
(signatures check against signer.pub) plus the evidence
archive hash and size; compare all three against the release
assets on download.
The T8 full-repeat campaign completed the full 20-row matrix,
so this prerelease carr...

Read more

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Oct 05:19

Known issues

This is a development prerelease, not for production use. Two defects are known and will be fixed in 0.1.1:

  • A truncated or edited capture can read as complete. report checks only that event seq values increase, and session.json records no event count or digest. If lines are removed from the end or the middle of events.ndjson, the capture can still report detail: complete_for_scope loss=0 with lower counts. Do not treat a copied or stored capture as verified evidence.
  • An abnormal stop leaves a capture that cannot be read. session.json is written only when record finishes normally. SIGPIPE (for example memveil record ... | head), SIGHUP, SIGKILL or a full disk leave only events.ndjson, and report (also with --allow-partial) exits 2. Run record with stdout to a file or terminal, stop it with SIGINT or SIGTERM, and keep free space beyond the size cap.

Also note: the .rpm and the runtime tarball carry builds of the same source as the .deb but not byte-identical binaries; only the .deb binary was run on the kernel matrix.

MemVeil 0.1.0 release notes (development bundle)

Status: attempt/lifecycle/copy development preview. The version names
development bytes and schema compatibility, not a qualified full release.
The capability table is the support
contract for shipping collection, offline analysis, and laboratory work.

What this bundle contains

  • record: SWIOTLB bounce-attempt capture, requested bytes, attach-anchored
    window/deadline, and readable default-pool capacity/used/high-water
    samples at start, on a best-effort 1 s cadence (cap 4,096), and close,
    plus opt-in mapping-lifecycle and copy-actual channels on the admitted
    profile. Admission checks profile bindings, bridge, and privilege.
    Attempts are not outer DMA successes or actual copies.
  • report: offline text/JSON/Markdown analysis. Lifecycle, copy, and mapping
    reducers consume the shipped channels on the admitted profile; region and
    pool reducers work only when input supplies their evidence. Allocation
    occupancy and byte-time are distinct from sharing lifetime.
  • top DIR: periodic summaries of finished-capture replay prefixes.
    top --output observes live with provisional prefixes; the final
    answer always equals a replay of the retained capture.
  • Human reports expose captured kernel/profile/scope and exact window
    duration. Missing/conflicting provenance remains explicit; an unbound
    capture remains unbound. Full hashes stay available in session/JSON.
  • Passive doctor, and source/runtime tarball packaging with licenses
    and manifests. The runtime tarball ships the binary, runtime closure,
    BPF objects, profiles, docs, and example; versioned schemas in
    schemas/ and the standalone build/test wrappers stay in the
    source tree.

Evidence scope

Tested binary sha256
ae2d3c13ddad4c093317b90b0e2975cc388ff8566ae8bd4d0c13b7e9ecb2ae5e:
/usr/bin/memveil in the .deb. The kernel matrix and the AWS SEV-SNP
run installed that package, and the release workflow refuses to publish
a .deb carrying any other binary. The runtime tarball and the .rpm
are built from the same tree and pass their own install lanes, but
their binaries are linked separately (other hashes) and were not run on
the kernel matrix. Package hashes change with every build (the .deb
changelog records the commit and build date); the release lists them in
SHA256SUMS.txt.
Earlier development receipts and CI successes apply to their recorded
revisions, binaries, BPF objects and environments. They are historical
evidence, not a final re-gate of every later candidate. Laboratory lifecycle,
copy and oracle lanes compare decoded probe records or synthetic translated
reports; see oracles. Shipping lifecycle/copy qualification
comes from the shipped-record VM gates on the admitted profile, not from
these laboratory comparisons. Historical replay/performance and coexistence
experiments likewise do not establish current-candidate live overhead or
pairing support; see performance and
coexistence.

For a candidate, retain exact source and dependency revisions, source/runtime
archive hashes, manifest verification, observed toolchain, binary/BPF/profile
identities, commands, expected/actual results and cleanup. Compiler-free
offline replay is a packaging boundary; collection additionally needs its
exact bound profile/environment and independent live oracle. Source-export
builds may produce different BPF bytes and fail recorded bindings.
Do not silently rewrite a profile hash to make them admitted.

Open release gates and limits

  • Periodic pressure sampling, live summary, proven writer settlement,
    and their independent operational qualification remain open. The
    original lifecycle-qualified preview and full confidential first
    release are not complete.
  • No TDX guest was run, and one SEV-SNP guest only (AWS c6a.large,
    Ubuntu 7.0.0-1014-aws, where every channel matched the oracle
    exactly). Offline region analysis and ordinary-Linux
    conversion calls do not prove a confidential transition. No attestation
    is performed, and observations are not host-access verdicts.
  • SEV-SNP guests are detected through the vmpl node
    (/sys/devices/system/cpu/sev/vmpl beside the sev-guest
    node), fixture-proven and live-proven on that AWS guest: doctor
    reports sev-vmpl:0, matching the kernel's "SNP running at VMPL0".
  • Pool samples are best-effort reads (start, 1 s cadence capped at
    4,096 with missed ticks skipped, close) and cannot alone diagnose
    sustained pressure. The sampler never resets high-water; equal values
    share an allocator lifetime only if no reset occurred. Dynamic pools
    are outside the reader's scope; see privacy.
  • Live terminal quality stays partial: a finalized capture and a
    quiet ring do not prove writer settlement. The wired close-out
    (detach, 100 ms settle, bounded drain, 100 confirmation polls,
    counter sample, finalize) stamps stop evidence with the 5,000 ms
    budget as a completeness threshold; live runs stay partial with
    quiescence unproven because no kernel protocol proves settlement.
    record exits 4 for a finalized capture, and report/top exit 0
    only with complete terminal evidence.
  • CPU targets and ELF linkage minima are compatibility prerequisites,
    not tests of every claimed platform. See support.
  • Sustained saturation drains about 153,000 records/s
    (3,118,447 records in 20.33 s on a 4-vCPU guest). A
    busy capture above the 1 GiB default needs
    report --max-events-bytes to replay.
  • Rows that refuse, with their codes: 5.15 is below the
    6.0 floor; 6.0 through 6.10 refuse lifecycle and copy
    (need 6.11); BTF-less kernels refuse lifecycle and
    copy (btf-absent-config); confidentiality lockdown
    refuses everything.
  • Saturated busy runs can stop at the 4,194,304-record
    cap with bytes below the 4 GiB cap (6.11 in the
    release run; 6.0, 6.10, and 6.12.0 in earlier runs),
    which the gate accepts as a filled budget. Main-window
    captures can lose a few map or copy events to BPF
    trampoline recursion; memveil counts them as
    recursion_missed and reports detail partial (5 to 222
    events on five rows of the release run). Attempt loss before 6.7 is a lower bound:
    the 6.0 and 6.6 rows report partial with the
    lower-bound label in detail and aggregate.
  • The 6.18.0 kernel leaves read maps unmapped (640,
    384, and 1152 across runs); the product reports them
    open with the kernel-left-open note and the oracle
    agrees on every channel. This is a
    known kernel issue, not capture
    loss.
  • The aggregate attempt claim covers the attempt
    hook's attached interval, stated in the aggregate
    scope text; the busy path allows a 2 s oracle edge
    gap while the main path keeps 1 s, and rows whose
    oracle samples stall fail closed.
  • forced mirrors the kernel's swiotlb force bit and is
    not a confidential-guest signal; see
    privacy.
  • The BTF-less row proves attempt counts only; bytes
    stay unproven.
  • Passive doctor can read ready (load not checked)
    while the memcg precheck reports memcg-headroom
    unknown; only doctor --load-check or a record proves
    the load fits. Detection scenarios pass 12 of 12 on
    the 7.0 guest, including the setpriv capability
    drop and the calibrated memcg refusal.

Compatibility

Current output versions are report v0.1.1 and
session v0.1.2; events stay at v0.1.1. Readers still
accept the retained session v0.1.1 contract (frozen;
without correlation relations), while report readers
require v0.1.1 - the v0.1.0 report schema file stays
for reference only. Full reader rules live in
format compatibility. Captures are self-describing
and replay without the recording host or native bridge. JSON metric meanings,
integer values and exit policy are unchanged by the human-context correction.