Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / MemorySnapshot

Interface: MemorySnapshot

Defined in: packages/security/src/guard/types.ts:37

Snapshot a guard takes before / after a tool runs. Implementations record the xxhash digest of the regions of memory the tool could touch; the guard compares the after-snapshot against the before-snapshot to detect non-tool-mediated mutation.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
digestreadonlyreadonly { hash: string; region: string; }[]xxhash digest of every relevant region. Empty for NO_GUARD.packages/security/src/guard/types.ts:39
durationUsreadonlynumberTotal snapshot wall-clock duration in microseconds.packages/security/src/guard/types.ts:41