XRef
Recorded with xref 0.7.0 · Linux x86-64

Live Analysis: from a running process to the code that writes its memory.

One stripped program, examined from outside while it runs: a value we know, where it sits in memory, which static function owns it, how often that code runs and who calls it, which instruction writes the field, and the same field after its buffer moves. Every command below ran exactly as shown, and the output under it is what that run printed.

v0.7.0 Recorded with xref 0.7.0. xref live and the opt-in xref_live MCP tool exist since v0.3.0; Linux x86-64 only.
  1. Start a stripped program and give it some state
  2. Confirm the process and the binary
  3. Find the structure in memory
  4. Translate the two pointers to static addresses
  5. Find the code that stores that string
  6. Read the deposit handler as pseudo-C
  7. Read the function stored in the structure
  8. Count calls and see who makes them
  9. Catch the instruction that writes a field
  10. Find a growable buffer
  11. Follow the buffer after it moves
Provenance.
  • xref: xref 0.7.0 built from main at db9b69e71f0b5132a11a6af1e81c754a3a05b4a7 (release), sha256 ad1bd5566a4997a5e15a28e65f34a855662b5fb3e5ab21dbef12c8998f854937
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09)
  • Host: development Linux 6.8.0-111-generic x86_64 host, recorded 2026-11-27T05:35:16Z
  • Fixture: rustc --edition=2021 -O -C strip=symbols -o vault-daemon tests/fixtures/live_daemon_app.rs; source sha256 febf7570f2130801942216a8ec216c32dffe0f806f64b35431cc6157e891fdc3; binary sha256 09dc82791fda6e18b3abb2fcca347e7926b3ffc484503d73f8d4163604f73ae4
  • Run: daemon PID 217353. PIDs and runtime addresses belong to this run; ASLR changes them on every start.
  • Output: stdout and stderr are copied unchanged except that spaces at line ends are trimmed; scripts/live_walkthrough/transcript.json keeps the raw capture.
Privileges. maps, resolve and memscan read /proc/<pid>/maps and /proc/<pid>/mem, so they need ptrace access to the target (same user; under Yama ptrace_scope=1 the target must allow it, which the fixture does with prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY)). probe and watch open perf events on another process and need privileged perf access (root, or capabilities and kernel.perf_event_paranoid settings that allow it). In this recording only those two commands ran with sudo -n, only against the fixture; host settings were not changed.
Reproduce from a checkout of main on Linux x86-64:
cargo build --release
python3 scripts/live_walkthrough/record.py --commit "$(git rev-parse --short HEAD)" --out /tmp/live-walkthrough.json
python3 scripts/live_walkthrough/render.py /tmp/live-walkthrough.json

1. Start a stripped program and give it some state

unprivileged

The target is our own fixture, tests/fixtures/live_daemon_app.rs, built with -C strip=symbols: no symbols, no debug info. It keeps a vault structure on the heap and changes it when it reads commands such as DEPOSIT, ROTATE and VEC_MOVE_WRITE0 on stdin. We act as if we knew only one thing about it: the 16-byte signature DAEMONV2 + 0x778899aabbccddee that it keeps at the start of the vault.

DAEMON SESSION
$ ./vault-daemon
DAEMON_READY pid=217353
> DEPOSIT 777 500000
ACK op=DEPOSIT seq=1

2. Confirm the process and the binary

unprivileged

xref live maps reads /proc/<pid>/maps and smaps, checks that the file passed with -b is the executable that is running, and computes the PIE slide that links runtime addresses to static ones.

$./xref -b vault-daemon live maps --pid 217353
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
0x577644d2d000..0x577644d47000  r--p  off 0x00000000  skipped_non_writable        target  /tmp/xref-walkthrough/vault-daemon
0x577644d47000..0x577644d93000  r-xp  off 0x00019000  skipped_non_writable        target  /tmp/xref-walkthrough/vault-daemon
0x577644d93000..0x577644d97000  r--p  off 0x00064000  skipped_non_writable        target  /tmp/xref-walkthrough/vault-daemon
0x577644d97000..0x577644d99000  rw-p  off 0x00067000  scannable_rwp               target  /tmp/xref-walkthrough/vault-daemon
0x5776600af000..0x5776600d0000  rw-p  off 0x00000000  scannable_rwp               -       [heap]
0x71edb2c00000..0x71edb2c28000  r--p  off 0x00000000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libc.so.6
0x71edb2c28000..0x71edb2db1000  r-xp  off 0x00028000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libc.so.6
0x71edb2db1000..0x71edb2e00000  r--p  off 0x001b1000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libc.so.6
0x71edb2e00000..0x71edb2e04000  r--p  off 0x001ff000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libc.so.6
0x71edb2e04000..0x71edb2e06000  rw-p  off 0x00203000  skipped_unclassified_file   -       /usr/lib/x86_64-linux-gnu/libc.so.6
0x71edb2e06000..0x71edb2e13000  rw-p  off 0x00000000  scannable_rwp               -       [anon]
0x71edb2e46000..0x71edb2e49000  rw-p  off 0x00000000  scannable_rwp               -       [anon]
0x71edb2e49000..0x71edb2e4d000  r--p  off 0x00000000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x71edb2e4d000..0x71edb2e71000  r-xp  off 0x00004000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x71edb2e71000..0x71edb2e75000  r--p  off 0x00028000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x71edb2e75000..0x71edb2e76000  r--p  off 0x0002b000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x71edb2e76000..0x71edb2e77000  rw-p  off 0x0002c000  skipped_unclassified_file   -       /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x71edb2e7f000..0x71edb2e80000  ---p  off 0x00000000  skipped_non_writable        -       [anon]
0x71edb2e80000..0x71edb2e82000  rw-p  off 0x00000000  scannable_rwp               -       [anon]
0x71edb2e82000..0x71edb2e84000  rw-p  off 0x00000000  scannable_rwp               -       [anon]
0x71edb2e84000..0x71edb2e85000  r--p  off 0x00000000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x71edb2e85000..0x71edb2eb0000  r-xp  off 0x00001000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x71edb2eb0000..0x71edb2eba000  r--p  off 0x0002c000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x71edb2eba000..0x71edb2ebc000  r--p  off 0x00036000  skipped_non_writable        -       /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x71edb2ebc000..0x71edb2ebe000  rw-p  off 0x00038000  skipped_unclassified_file   -       /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x7ffe901aa000..0x7ffe901cb000  rw-p  off 0x00000000  scannable_rwp               -       [stack]
0x7ffe901d5000..0x7ffe901d9000  r--p  off 0x00000000  skipped_device_or_special   -       [vvar]
0x7ffe901d9000..0x7ffe901db000  r-xp  off 0x00000000  skipped_device_or_special   -       [vdso]
0xffffffffff600000..0xffffffffff601000  --xp  off 0x00000000  skipped_device_or_special   -       [vsyscall]
29 regions (7 scannable_rwp)

3. Find the structure in memory

unprivileged

xref live memscan searches the scannable regions for the two signature words and prints a window of 8-byte words around each hit. Every word is classified against the static image: code pointer, pointer to a string, heap pointer, vtable candidate or plain number.

$./xref -b vault-daemon live memscan --pid 217353 --after-words 11 0x4441454d4f4e5632 0x778899aabbccddee
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
needle 0x32564e4f4d454144eeddccbbaa998877  align 8  elapsed 0ms  regions 7/29  bytes 0x58000  unreadable 0  stop complete  hits 2
hit 0x577644d987a8  /tmp/xref-walkthrough/vault-daemon+0x17a8
   -0x10  0x0000577644d98798  0x0000577644d95c50  relro_ptr_candidate  candidates [0x65960, 0x65968, 0x65964]
    -0x8  0x0000577644d987a0  0x0000000000000000  scalar
     0x0* 0x0000577644d987a8  0x4441454d4f4e5632  scalar
    +0x8* 0x0000577644d987b0  0x778899aabbccddee  scalar
   +0x10  0x0000577644d987b8  0x0000000000000001  scalar
   +0x18  0x0000577644d987c0  0x0000000000000309  scalar
   +0x20  0x0000577644d987c8  0x000000000007a120  scalar
   +0x28  0x0000577644d987d0  0x13579caa196801ee  scalar
   +0x30  0x0000577644d987d8  0x0000000000000000  scalar
   +0x38  0x0000577644d987e0  0x0000000000000000  scalar
   +0x40  0x0000577644d987e8  0x0000000000000000  scalar
   +0x48  0x0000577644d987f0  0x0000000000000000  scalar
   +0x50  0x0000577644d987f8  0x0000000000000000  scalar
   +0x58  0x0000577644d98800  0x0000000000000000  scalar
   +0x60  0x0000577644d98808  0x0000000000000000  scalar
hit 0x5776600afda0  [heap]+0xda0
   -0x10  0x00005776600afd90  0x0000000000000000  scalar
    -0x8  0x00005776600afd98  0x0000000000000071  scalar
     0x0* 0x00005776600afda0  0x4441454d4f4e5632  scalar
    +0x8* 0x00005776600afda8  0x778899aabbccddee  scalar
   +0x10  0x00005776600afdb0  0x0000000000000001  scalar
   +0x18  0x00005776600afdb8  0x0000000000000309  scalar
   +0x20  0x00005776600afdc0  0x000000000007a120  scalar
   +0x28  0x00005776600afdc8  0x13579caa196801ee  scalar
   +0x30  0x00005776600afdd0  0x0000000000420042  scalar
   +0x38  0x00005776600afdd8  0x0000577644d4f110  code_ptr             fn 0x22110+0x0  -
   +0x40  0x00005776600afde0  0x0000577644d385b4  static_data_ptr      "XREF_DAEMON_VAULT_ACTIVE_V2"
   +0x48  0x00005776600afde8  0x00005776600afd80  heap_ptr             [heap]+0xd80
   +0x50  0x00005776600afdf0  0x0000577644d93f00  relro_ptr_candidate  candidates [0x21fb0, 0x23eb0]
   +0x58  0x00005776600afdf8  0xe9992ca71d7036cd  scalar
   +0x60  0x00005776600afe00  0x0000577644d39897  static_data_ptr      "DAEMON_OP_DEPOSIT_V2ERR invalid DEPOSIT args"

4. Translate the two pointers to static addresses

unprivileged

xref live resolve turns runtime addresses into static addresses and file offsets of the verified binary. The static addresses are what every static xref command takes.

$./xref -b vault-daemon live resolve --pid 217353 0x0000577644d4f110 0x0000577644d39897
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
0x577644d4f110  runtime_to_static  static 0x22110  runtime 0x577644d4f110  file 0x21110  sym -  /tmp/xref-walkthrough/vault-daemon+0x8110
0x577644d39897  runtime_to_static  static 0xc897  runtime 0x577644d39897  file 0xc897  sym -  /tmp/xref-walkthrough/vault-daemon+0xc897

5. Find the code that stores that string

unprivileged

Static analysis of the same stripped file: which instructions reference the string address?

$./xref -b vault-daemon refs 0xc897
RECORDED STDOUTexit 0
0x2214e  in 0x22130  lea rax, [0xc897]
1 hits
STDERR
xref: load 169.1µs, total 1.8ms

6. Read the deposit handler as pseudo-C

unprivileged

xref c decompiles the function directly from machine code.

$./xref -b vault-daemon c 0x22130
RECORDED STDOUTexit 0
/*
 * fn_22130 — 0x22130..0x22227 (247 bytes, 1 direct caller; synthetic FDE entry)
 *   params:
 *     arg_0 (rdi): void * — writes +0x0 (8B), +0x8 (8B), +0x10 (8B), +0x18 (8B)
 *     arg_1 (rsi): unk64 — 64-bit register (signedness unconstrained)
 *     arg_2 (rdx): unk64 — 64-bit register (signedness unconstrained)
 *   return: unk64 in rax (consumed by 1/1 direct call site)
 */
unk64 fn_22130(void *arg_0, unk64 arg_1, unk64 arg_2) {
  unk64 slot_0; /* [rsp+0x0], addr-taken */
  unk64 slot_8; /* [rsp+0x8] */
  unk64 slot_10; /* [rsp+0x10] */

  slot_8 = arg_2;
  slot_10 = arg_1;
  slot_0 = 0xc897;
  *(u64 *)(arg_0 + 96) = slot_0;
  slot_0 = 0x4441454d4f4e5632;
  unk64 v_1 = slot_0;
  *(u64 *)(arg_0) = v_1;
  slot_0 = 0x778899aabbccddee;
  unk64 v_2 = slot_0;
  *(u64 *)(arg_0 + 8) = v_2;
  unk64 v_3 = *(u64 *)(arg_0 + 48);
  unk64 v_4 = (*(u64 *)(arg_0 + 16) + 1);
  *(u64 *)(arg_0 + 16) = v_4;
  *(u64 *)(arg_0 + 24) = arg_1;
  unk64 v_5 = (*(u64 *)(arg_0 + 32) + arg_2);
  *(u64 *)(arg_0 + 32) = v_5;
  unk64 v_6 = *(u64 *)(arg_0 + 56)(v_5, v_3, arg_1);
  unk64 v_7 = v_6;
  *(u64 *)(arg_0 + 40) = v_6;
  unk64 v_21 = *(u64 *)(*(u64 *)(arg_0 + 80) + 24)(*(u64 *)(arg_0 + 72), v_4, v_7);
  *(u64 *)(arg_0 + 88) = v_21;
  unk64 v_8 = slot_10;
  fn_23ed0(v_8, slot_8, v_4);
  /* xchg [0x6b7a8], r14 */
  /* xchg [0x6b7b0], rbx */
  unk64 v_9 = v_4;
  /* xchg [0x6b7b8], r12 */
  /* xchg [0x6b7c0], r15 */
  /* xchg [0x6b7c8], r13 */
  /* xchg [0x6b7d0], rbp */
  return v_9;
}
STDERR
xref: load 144.2µs, total 2.2ms

7. Read the function stored in the structure

unprivileged

The code_ptr from offset +0x38 points to 0x22110.

$./xref -b vault-daemon c 0x22110
RECORDED STDOUTexit 0
/*
 * fn_22110 — 0x22110..0x22128 (24 bytes, 0 direct callers; synthetic FDE entry)
 *   params:
 *     arg_0 (rdi): unk64 — 64-bit register (signedness unconstrained)
 *     arg_1 (rsi): usize — count/index (scaled by 201527)
 *   return: unk64 in rax
 */
unk64 fn_22110(unk64 arg_0, usize arg_1) {
  return ((arg_1 * 0x31337) + (0x13579bdf2468ace0 ^ arg_0));
}
STDERR
xref: load 158.9µs, total 1.7ms

8. Count calls and see who makes them

recorded with sudo -n · fixture only

xref live probe places Linux uprobes on the two static addresses, only for this process (perf backend). While it is armed we send three commands to the daemon: a deposit, a key rotation and another deposit.

$sudo -n ./xref -b vault-daemon live probe --pid 217353 --callers --regs --duration-ms 1500 0x22130 0x22110
SENT TO THE DAEMON WHILE THE OBSERVER WAS ARMED
> DEPOSIT 777 250000
ACK op=DEPOSIT seq=2
> ROTATE 0x99
ACK op=ROTATE seq=3
> DEPOSIT 777 125000
ACK op=DEPOSIT seq=4
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
backend perf  pid_isolated_bp true  elapsed 1500ms/1500ms  stop duration_elapsed  seeded_tids 1  dyn_tids 0  excluded_tgid 0  lost 0
probe static 0x22130  runtime 0x577644d4f130  file 0x21130  insn push    cfi entry_rsp+8_ra-8    fn 0x22130 (-)  hits 2
  caller ra 0x577644d4f800 (static 0x22800)  fn 0x22460  call_site 0x227fb  verified true  hits 2  [unwind_evidence_only_tail_call_possible]
  regs tid 217353  rdi 0x5776600afda0  rsi 0x309  rdx 0x3d090  rcx 0x5776600b1e40  r8 0x0  r9 0x5776600b1e32  rax 0x1  rsp 0x7ffe901ca2f8  rbp 0x309  [raw_register_bits_do_not_prove_source_types]
  regs tid 217353  rdi 0x5776600afda0  rsi 0x309  rdx 0x1e848  rcx 0x5776600b1e40  r8 0x0  r9 0x5776600b1e32  rax 0x1  rsp 0x7ffe901ca2f8  rbp 0x309  [raw_register_bits_do_not_prove_source_types]
probe static 0x22110  runtime 0x577644d4f110  file 0x21110  insn mov     cfi entry_rsp+8_ra-8    fn 0x22110 (-)  hits 1
  caller ra 0x577644d4f1ba (static 0x221ba)  fn 0x22130  call_site 0x221b6  verified true  hits 1  [unwind_evidence_only_tail_call_possible]
  regs tid 217353  rdi 0xb71b0  rsi 0x420042  rdx 0x3d090  rcx 0x309  r8 0x0  r9 0x5776600b1e32  rax 0x7ffe901ca2b0  rsp 0x7ffe901ca2a8  rbp 0x309  [raw_register_bits_do_not_prove_source_types]
STDERR
xref: probe_ready {"backend":"perf","pid":217353,"attached_tids":[217353],"probes":["0x22130","0x22110"]}

9. Catch the instruction that writes a field

recorded with sudo -n · fixture only

xref live watch arms an x86 hardware write watchpoint (DR0–DR3) on the runtime address of the field at +0x28, then we make two deposits.

$sudo -n ./xref -b vault-daemon live watch --pid 217353 --duration-ms 1200 0x00005776600afdc8
SENT TO THE DAEMON WHILE THE OBSERVER WAS ARMED
> DEPOSIT 777 1000
ACK op=DEPOSIT seq=5
> DEPOSIT 777 2000
ACK op=DEPOSIT seq=6
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
backend perf_breakpoint  pid_isolated_wp true  elapsed 1200ms/1200ms  stop duration_elapsed  seeded_tids 1  dyn_tids 0  excluded_tgid 0  lost 0
watch runtime 0x5776600afdc8  static -  len 8B  access write  region [heap]+0xdc8 (rw-p)  init 0xfedcba99ddb00a59  latest 0xfedcba99db270a59  hits 2
  writer 0x221bd (trap 0x577644d4f1c1 / static 0x221c1)  fn 0x22130 (-)  insn "mov [r15+0x28], rax"  conf candidate_linear_predecessor_store  hits 2  values 0xfedcba99db270a59..=0xfedcba99de2d0a59  [candidate_linear_predecessor_store_operand_assumes_no_indirect_or_cross_fde_entry]
  sample tid 217353  writer 0x221bd  trap 0x577644d4f1c1  value candidate_reg:rax(8B)=0xfedcba99de2d0a59
  sample tid 217353  writer 0x221bd  trap 0x577644d4f1c1  value candidate_reg:rax(8B)=0xfedcba99db270a59
STDERR
xref: watch_ready {"backend":"perf_breakpoint","pid":217353,"attached_tids":[217353],"watches":["0x5776600afdc8"],"access":"write","len_bytes":8}

10. Find a growable buffer

unprivileged

A second structure has its own signature (XREFTYPE + 0x1122334455667788). It mirrors a Vec<u64>.

$./xref -b vault-daemon live memscan --pid 217353 --after-words 12 0x5852454654595045 0x1122334455667788
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
needle 0x45505954464552588877665544332211  align 8  elapsed 0ms  regions 7/30  bytes 0x58000  unreadable 0  stop complete  hits 1
hit 0x5776600af480  [heap]+0x480
   -0x10  0x00005776600af470  0x000071edb2e03228  mapped_ptr           /usr/lib/x86_64-linux-gnu/libc.so.6+0x3228
    -0x8  0x00005776600af478  0x0000000000000081  scalar
     0x0* 0x00005776600af480  0x5852454654595045  scalar
    +0x8* 0x00005776600af488  0x1122334455667788  scalar
   +0x10  0x00005776600af490  0x0000000000000001  scalar
   +0x18  0x00005776600af498  0x0000000000000309  scalar
   +0x20  0x00005776600af4a0  0x00000000000007d0  scalar
   +0x28  0x00005776600af4a8  0x8000000100000019  scalar
   +0x30  0x00005776600af4b0  0xff011234ffffffff  scalar
   +0x38  0x00005776600af4b8  0xfffffff6389adc00  scalar
   +0x40  0x00005776600af4c0  0x000000003fc00000  scalar
   +0x48  0x00005776600af4c8  0x4009000000000000  scalar
   +0x50  0x00005776600af4d0  0x00005776600b1e90  heap_ptr             [heap]+0x2e90
   +0x58  0x00005776600af4d8  0x0000000000000008  scalar
   +0x60  0x00005776600af4e0  0x0000000000000006  scalar
   +0x68  0x00005776600af4e8  0x0000577644d97d10  static_data_ptr      "XREF"

11. Follow the buffer after it moves

recorded with sudo -n · fixture only

--follow watches the pointer slot and the element it points to. len_slot/min_len and guard_slot/guard_val stop the watch if the length or the signature no longer match. We write element 0, move the buffer to a new allocation, and write element 0 again.

$sudo -n ./xref -b vault-daemon live watch --pid 217353 --duration-ms 1600 --follow ptr_slot=0x00005776600af4d0,offset=0,len_slot=0x00005776600af4e0,min_len=1,guard_slot=0x00005776600af480,guard_val=0x5852454654595045
SENT TO THE DAEMON WHILE THE OBSERVER WAS ARMED
> VEC_WRITE0 0x1111222233334444
ACK op=VEC_WRITE0 len=6
> VEC_MOVE_WRITE0 0x5555666677778888
ACK op=VEC_MOVE_WRITE0 cap=256
> VEC_WRITE0 0x9999aaaabbbbcccc
ACK op=VEC_WRITE0 len=6
RECORDED STDOUTexit 0
pid 217353  starttime 1670364065  match verified_build_id  pie_slide +0x577644d2d000  alive true  changed false
backend perf_breakpoint  pid_isolated_wp true  elapsed 1600ms/1600ms  stop duration_elapsed  seeded_tids 1  dyn_tids 0  excluded_tgid 0  lost 0 (lower_bound)
follow ptr_slot 0x5776600af4d0+0  state bound  gen 2  leaf 0x5776600b1ee0  slots 2  root_hits 1  leaf_hits 2
  writer 0x232f8 (trap 0x577644d502fb / static 0x232fb)  fn 0x22460 (-)  insn "mov [rcx], rdx"  conf ambiguous_branch_target  hits 2  [trap_ip_is_intra_function_branch_target_predecessor_not_unique]
  sample tid 217353  writer 0x232f8  trap 0x577644d502fb  value unknown(ambiguous_branch_target_at_trap_ip)
  sample tid 217353  writer 0x232f8  trap 0x577644d502fb  value unknown(ambiguous_branch_target_at_trap_ip)
STDERR
xref: watch_ready {"backend":"perf_breakpoint","pid":217353,"attached_tids":[217353],"watches":["0x5776600af4d0","0x5776600b1e90"],"access":"write","len_bytes":8}

Use it from an agent

xref -b vault-daemon mcp --allow-live-pid <PID> exposes the same operations to an MCP client as the xref_live tool, pinned to that one verified process, next to the static xref_query tool. Without --allow-live-pid the server stays read-only and static. This session is not recorded here; see docs/mcp.md for requests and budgets, and docs/live.md for the full contract and limits.