26bec6f653
fix(artifacts): name no slice in trace-dylib-resolution Evidence ( #11838 )
...
trace_dylib_resolution Evidence named the slice the session happened to
open, not what was traced. On Apple silicon, `rea trace-dylib-resolution
/bin/ls --architecture x86_64` returned a subject selecting the arm64e
slice (offset 65536, architecture "arm64") while its parameters and
roots said x86_64. Whole-file traces of universal images and app bundle
traces also carried that host slice.
Root cause: the artifact provider built the execution without a
subject, and bindExecutionTarget binds such an execution, like any
subject that names the target's own bytes without a selection, to the
open target's selection. A provider had no way to state that an
observation covers the whole file.
EvidenceSubjectTarget.selection now accepts null, meaning the
observation selects nothing even though a session opened one slice.
bindExecutionTarget already inherited a selection only when none was
stated; its comment now says so. The trace states selection: null. This
matches inspect-binary-hardening and the other whole-file inspectors,
which already record no selection for a universal image.
Validation (macOS arm64, Node 24.22.1):
- New CLI boundary regression: a universal arm64 + x86_64 tool, traced
whole and with --architecture x86_64, has a subject with no
architecture or selection and the expected roots. Before this change
the subject carried the opened slice.
- dylibResolutionCli and dylibResolutionMcp: 44 passed, 2 skipped.
- Suites that exercise subject binding (binarySession,
analysisEvidenceAdapterParity, artifactMcp, bundleResourceRootCliMcp,
appleBundleTraversalCoverage, AppBundleResourceRoot,
ArtifactComparisonEvidence): 144 passed, 1 skipped.
- evidence, BinarySession and ArtifactProvider unit tests: 186 passed.
- Real /bin/ls trace with --architecture x86_64: subject selection and
architecture null, roots [x86_64]. Format, typecheck, lint and
architecture guards pass.
Not changed: inspect-macho, inspect-signature and
inspect-native-dispatch-metadata also record the opened slice for a
universal image; whether each examines only that slice was not checked.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com >
2026-11-19 09:07:16 +08:00
..
2026-11-14 05:27:07 +08:00
2026-11-18 09:05:26 -05:00
2026-11-16 21:13:43 -05:00
2026-11-16 21:13:43 -05:00
2026-11-16 21:13:43 -05:00
2026-11-14 13:21:13 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-10-24 04:08:59 +08:00
2026-10-24 02:50:03 +08:00
2026-11-16 13:56:34 +00:00
2026-11-15 17:28:05 +08:00
2026-11-12 22:05:32 -05:00
2026-11-10 05:11:20 -05:00
2026-11-11 17:20:37 +08:00
2026-10-21 05:50:50 +08:00
2026-11-14 05:27:07 +08:00
2026-10-28 13:28:03 +08:00
2026-10-17 19:46:20 +08:00
2026-11-08 00:01:18 +08:00
2026-11-16 13:56:34 +00:00
2026-10-23 02:29:48 +08:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 07:12:16 +08:00
2026-11-15 20:54:31 -05:00
2026-10-23 14:01:50 +08:00
2026-11-16 03:22:24 +08:00
2026-11-16 03:22:24 +08:00
2026-11-16 03:22:24 +08:00
2026-10-24 12:30:37 +08:00
2026-11-13 06:07:58 -08:00
2026-11-16 13:56:34 +00:00
2026-11-18 07:45:34 +08:00
2026-11-14 05:27:07 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 14:16:24 -05:00
2026-11-16 06:43:33 +08:00
2026-11-16 13:56:34 +00:00
2026-10-22 23:52:21 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-10-11 18:01:32 +08:00
2026-11-18 22:33:07 +08:00
2026-11-16 03:22:24 +08:00
2026-11-16 16:30:36 -05:00
2026-11-16 16:30:36 -05:00
2026-11-18 09:11:20 -05:00
2026-11-18 09:11:20 -05:00
2026-11-15 22:23:49 +08:00
2026-11-16 13:56:34 +00:00
2026-11-14 13:21:13 +08:00
2026-11-17 19:58:40 +08:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-08 01:42:28 +08:00
2026-11-18 09:15:24 -05:00
2026-11-14 14:28:08 +08:00
2026-11-18 07:30:45 +08:00
2026-11-16 13:56:34 +00:00
2026-11-18 07:31:37 +08:00
2026-11-17 18:48:24 -05:00
2026-11-14 14:28:08 +08:00
2026-11-16 13:56:34 +00:00
2026-11-18 09:12:01 -05:00
2026-11-18 18:29:31 -05:00
2026-11-18 07:30:45 +08:00
2026-11-17 14:57:30 -05:00
2026-11-17 18:48:24 -05:00
2026-11-18 07:17:37 +08:00
2026-11-11 17:20:37 +08:00
2026-11-14 14:28:08 +08:00
2026-11-18 11:21:49 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 13:56:34 +00:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-18 10:09:11 -05:00
2026-11-16 10:35:14 +08:00
2026-11-15 10:22:40 -05:00
2026-11-17 18:48:24 -05:00
2026-11-18 08:54:35 -05:00
2026-11-18 10:57:01 -05:00
2026-11-15 21:52:17 -05:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-18 22:33:07 +08:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-18 07:45:34 +08:00
2026-11-18 10:49:22 -05:00
2026-11-08 00:25:43 +08:00
2026-11-10 17:58:04 -05:00
2026-11-15 17:01:45 +08:00
2026-11-17 08:19:52 +00:00
2026-11-17 19:58:40 +08:00
2026-11-04 19:10:35 +08:00
2026-11-09 20:28:29 +08:00
2026-11-14 13:21:13 +08:00
2026-11-18 13:07:56 -05:00
2026-11-14 14:16:39 +01:00
2026-11-18 07:00:09 +08:00
2026-11-16 13:56:34 +00:00
2026-11-18 07:30:45 +08:00
2026-11-14 14:51:30 -05:00
2026-11-14 13:21:13 +08:00
2026-11-18 16:06:51 -05:00
2026-11-15 17:25:31 +08:00
2026-11-19 09:07:16 +08:00
2026-11-16 03:22:24 +08:00
2026-10-17 15:59:57 +08:00
2026-11-16 06:28:01 +08:00
2026-10-17 15:41:07 +08:00
2026-10-29 09:20:53 +08:00
2026-11-17 19:58:40 +08:00
2026-11-04 16:47:46 +08:00
2026-11-08 01:42:28 +08:00
2026-11-14 05:36:32 +01:00
2026-10-13 23:53:35 +08:00
2026-11-16 13:56:34 +00:00
2026-11-18 11:14:13 +08:00
2026-11-14 14:59:49 +01:00
2026-11-18 10:39:58 +08:00
2026-11-18 10:52:03 +08:00
2026-11-14 13:21:13 +08:00
2026-11-18 10:00:19 +08:00
2026-11-14 13:21:13 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-08 00:01:18 +08:00
2026-11-16 13:56:34 +00:00
2026-11-16 13:56:34 +00:00
2026-11-15 20:06:47 +08:00
2026-11-16 03:56:10 +08:00
2026-11-13 04:45:16 -05:00
2026-11-16 06:28:01 +08:00
2026-11-16 13:56:34 +00:00
2026-11-16 08:54:51 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 13:56:34 +00:00
2026-11-14 13:21:13 +08:00
2026-11-18 16:06:51 -05:00
2026-11-08 16:39:20 +00:00
2026-11-14 13:21:13 +08:00
2026-11-07 01:28:12 +08:00
2026-11-18 06:59:02 +08:00
2026-11-16 03:22:24 +08:00
2026-11-16 10:59:18 +08:00
2026-11-14 05:27:07 +08:00
2026-11-16 08:08:38 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-11-09 14:58:35 +08:00
2026-11-14 14:28:08 +08:00
2026-11-15 19:55:43 +08:00
2026-10-25 07:31:42 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:22:24 +08:00
2026-11-16 13:56:34 +00:00
2026-10-24 04:14:51 +08:00
2026-10-09 00:09:55 +08:00
2026-10-11 13:29:50 +08:00
2026-11-14 14:28:08 +08:00
2026-11-09 13:21:24 +08:00
2026-10-09 10:01:59 +08:00
2026-10-17 08:32:26 +08:00
2026-11-17 08:19:52 +00:00
2026-10-17 08:27:39 +08:00
2026-10-25 05:25:54 -07:00
2026-11-15 21:05:27 +08:00
2026-11-09 13:21:24 +08:00
2026-11-17 23:02:01 -05:00
2026-10-14 17:09:18 +08:00
2026-10-25 05:32:29 -07:00
2026-10-24 18:00:43 +08:00
2026-11-17 17:53:28 -05:00
2026-11-16 13:56:34 +00:00
2026-11-18 08:42:59 -05:00
2026-11-17 18:38:16 -05:00
2026-11-18 07:45:34 +08:00
2026-11-16 13:56:34 +00:00
2026-11-17 18:48:24 -05:00
2026-11-14 14:28:08 +08:00
2026-10-27 06:43:07 +08:00
2026-10-24 00:30:34 +08:00
2026-10-14 08:59:27 +08:00
2026-11-08 16:39:20 +00:00
2026-11-15 10:12:08 -05:00
2026-11-15 10:12:08 -05:00
2026-11-16 05:31:37 +08:00
2026-11-16 07:12:16 +08:00
2026-11-16 06:28:01 +08:00
2026-11-17 18:48:24 -05:00
2026-11-16 06:28:01 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-14 14:14:09 -05:00
2026-11-17 18:48:24 -05:00
2026-11-17 19:58:40 +08:00
2026-11-15 15:43:55 +08:00
2026-11-18 10:56:53 -05:00
2026-11-14 13:21:13 +08:00
2026-11-16 07:12:16 +08:00
2026-11-06 19:09:18 +00:00
2026-10-20 23:15:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 13:56:34 +00:00
2026-11-16 13:56:34 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-11-16 03:22:24 +08:00
2026-11-14 12:13:56 +01:00
2026-11-14 12:13:56 +01:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-10-27 21:33:17 +08:00
2026-10-26 22:20:00 +08:00
2026-11-16 16:31:52 -05:00
2026-10-25 01:45:23 +08:00
2026-11-14 05:27:07 +08:00
2026-11-14 14:06:23 +01:00
2026-11-16 08:25:18 +08:00
2026-11-16 12:01:04 +08:00
2026-11-16 13:56:34 +00:00
2026-11-15 21:53:53 -05:00
2026-11-15 17:04:11 +08:00
2026-11-16 09:48:52 +08:00
2026-11-14 14:06:23 +01:00
2026-11-01 08:53:29 -08:00
2026-11-16 13:56:34 +00:00
2026-10-31 14:45:21 +00:00
2026-11-18 07:17:37 +08:00
2026-11-17 18:48:24 -05:00
2026-11-05 18:35:22 +08:00
2026-11-16 16:42:07 -05:00
2026-11-14 05:27:07 +08:00
2026-11-10 22:49:26 -05:00
2026-11-17 14:16:24 -05:00
2026-10-24 23:14:19 +09:00
2026-10-23 19:18:47 +08:00
2026-10-29 08:18:13 +08:00
2026-11-06 17:21:28 +08:00
2026-11-16 03:56:10 +08:00
2026-10-13 05:52:27 +09:00
2026-10-24 04:23:56 +08:00
2026-10-24 06:46:22 +08:00
2026-10-23 21:28:10 +08:00
2026-10-24 07:28:09 +08:00
2026-10-24 06:24:55 +08:00
2026-11-14 14:28:08 +08:00
2026-11-11 16:52:07 +08:00
2026-11-08 16:39:20 +00:00
2026-11-16 13:56:34 +00:00
2026-11-16 03:56:10 +08:00
2026-11-17 08:19:52 +00:00
2026-11-10 13:53:58 -05:00
2026-11-14 05:27:07 +08:00
2026-10-25 19:03:06 +08:00
2026-11-18 09:44:34 +08:00
2026-11-17 08:19:52 +00:00
2026-11-15 18:01:05 +08:00
2026-11-12 05:51:59 -08:00
2026-11-18 10:09:11 -05:00
2026-11-17 19:58:40 +08:00
2026-11-16 13:56:34 +00:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-16 13:56:34 +00:00
2026-11-16 13:56:34 +00:00
2026-11-12 03:21:38 -05:00
2026-11-16 14:46:48 +08:00
2026-11-17 18:48:24 -05:00
2026-11-06 10:13:45 +08:00
2026-11-18 09:12:01 -05:00
2026-11-18 07:14:50 +08:00
2026-11-16 03:56:10 +08:00
2026-10-27 09:16:02 +08:00
2026-11-17 18:48:24 -05:00
2026-11-16 13:56:34 +00:00
2026-11-16 04:00:00 +08:00