Kaoru0822 and Claude Opus 5.5
11b7f918c2
feat(artifacts): trace Mach-O dylib resolution in bundles
...
Add trace_dylib_resolution (CLI trace-dylib-resolution) to the artifact
family. For the active Mach-O, or every executable in the active .app
(the main app, XPC services, extensions, login items, helpers), it
reports which file each dylib load reaches and how.
A pure TypeScript reader decodes FAT and Mach-O load commands:
LC_LOAD/WEAK/REEXPORT/LAZY/UPWARD_DYLIB, including the newer
dylib_use_command encoding with weak, re-export, upward and delayed-init
flags, plus LC_ID_DYLIB, LC_RPATH, LC_DYLD_ENVIRONMENT and code-signature
presence. Malformed tables are reported with the failing command instead
of being guessed.
Resolution follows dyld:
- @executable_path comes from each process root;
- @loader_path comes from the loading image, or from the owner of the
LC_RPATH entry being expanded;
- @rpath searches the loader's rpaths first, then up the load chain;
- dependencies load dependents-first in load-command order, once per
process, and a matching install name reuses an already loaded image;
- symlinks are followed inside the analyzed root, and escapes stop.
Every candidate path is reported with its outcome. Each edge resolves to
resolved, conditional (an outside-root candidate such as /usr/lib/swift
precedes), unresolved, or undetermined. Absolute and shared-cache system
paths are never checked against the host. Derived findings cover
unresolved required or weak loads, absent earlier @rpath candidates (with
library validation left unknown), and LC_DYLD_ENVIRONMENT.
verify:macos-bundle now also:
- checks every traced image against otool -l;
- asserts each resolution status on a clang-built fixture that adds a
missing Overrides rpath, an absolute rpath, and a delay-init library;
- compares the predicted load order of two process roots with what dyld
loads under DYLD_PRINT_LIBRARIES.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-07 10:31:17 +00:00
..
2026-10-07 14:09:57 +08:00
2026-10-07 14:44:52 +08:00
2026-10-07 17:40:05 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 04:20:53 +08:00
2026-10-06 20:17:59 +08:00
2026-10-07 04:20:53 +08:00
2026-10-07 12:17:16 +08:00
2026-09-29 17:36:26 +08:00
2026-10-05 17:29:20 +08:00
2026-09-29 07:08:46 +08:00
2026-10-05 20:16:44 +08:00
2026-10-06 16:26:40 +08:00
2026-10-07 10:30:47 +00:00
2026-10-07 10:30:47 +00:00
2026-10-06 00:50:38 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 10:30:47 +00:00
2026-10-06 00:50:38 +08:00
2026-09-29 16:29:23 +08:00
2026-10-06 16:26:40 +08:00
2026-10-06 04:55:26 +08:00
2026-10-07 11:40:34 +08:00
2026-10-07 10:31:17 +00:00
2026-10-07 11:28:28 +08:00
2026-10-07 11:28:28 +08:00
2026-10-05 20:09:45 +08:00
2026-10-05 20:09:45 +08:00
2026-10-06 16:26:40 +08:00
2026-10-06 16:26:40 +08:00
2026-09-29 12:42:08 +08:00
2026-07-14 20:24:12 +09:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-05 20:16:44 +08:00
2026-10-06 05:58:46 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 14:59:52 +08:00
2026-10-07 13:00:24 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 06:02:02 +08:00
2026-10-05 21:15:04 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 04:35:49 +08:00
2026-09-29 17:00:06 +08:00
2026-10-06 04:55:26 +08:00
2026-10-07 04:35:49 +08:00
2026-10-07 13:00:24 +08:00
2026-10-06 02:08:42 +08:00
2026-10-07 11:40:24 +08:00
2026-09-29 14:53:50 +08:00
2026-09-29 14:53:50 +08:00
2026-10-07 17:03:44 +08:00
2026-10-07 17:03:44 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 11:54:55 +08:00
2026-10-06 11:54:55 +08:00
2026-10-06 04:55:26 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 01:43:45 -07:00
2026-10-06 00:50:38 +08:00
2026-10-06 11:54:55 +08:00
2026-10-07 11:40:24 +08:00
2026-10-07 11:40:24 +08:00
2026-09-29 08:07:24 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 19:53:08 +08:00
2026-10-05 17:29:20 +08:00
2026-08-11 18:04:36 +08:00
2026-10-05 21:42:26 +08:00
2026-10-03 23:22:07 +08:00
2026-10-05 20:16:44 +08:00
2026-10-05 17:29:20 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 16:26:40 +08:00
2026-10-06 16:26:40 +08:00
2026-10-05 20:09:45 +08:00
2026-10-05 20:09:45 +08:00
2026-10-07 10:31:17 +00:00
2026-10-07 10:31:17 +00:00
2026-10-07 10:31:17 +00:00
2026-10-05 15:32:58 +08:00
2026-10-05 15:32:58 +08:00
2026-10-03 23:22:07 +08:00
2026-10-03 23:22:07 +08:00
2026-09-29 14:53:50 +08:00
2026-10-05 20:09:45 +08:00
2026-10-06 16:26:40 +08:00
2026-09-29 14:53:20 +08:00
2026-09-29 14:53:50 +08:00
2026-10-05 17:29:20 +08:00
2026-10-06 20:17:59 +08:00
2026-10-05 22:39:03 -07:00
2026-10-06 04:55:26 +08:00
2026-10-06 04:55:26 +08:00
2026-10-07 11:40:24 +08:00
2026-10-06 04:55:26 +08:00
2026-10-05 17:29:20 +08:00
2026-09-29 07:08:46 +08:00
2026-10-06 00:50:38 +08:00
2026-10-06 05:57:38 +08:00
2026-09-29 17:00:06 +08:00
2026-10-05 20:09:45 +08:00
2026-10-06 05:57:38 +08:00
2026-10-06 22:02:25 -07:00
2026-10-06 22:02:25 -07:00
2026-09-30 00:41:05 +08:00
2026-10-07 13:30:25 +08:00
2026-10-07 13:30:25 +08:00
2026-10-06 01:01:16 -07:00
2026-10-06 01:01:16 -07:00
2026-07-13 19:09:27 +00:00
2026-10-06 22:46:16 -07:00
2026-09-08 10:59:13 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 17:16:58 +08:00
2026-07-18 05:49:14 +00:00
2026-10-07 17:16:58 +08:00
2026-10-06 02:08:02 +08:00
2026-10-06 16:31:00 +08:00
2026-10-06 00:50:38 +08:00
2026-10-06 16:31:00 +08:00
2026-10-06 02:08:51 +08:00
2026-09-29 07:08:46 +08:00
2026-10-06 16:31:00 +08:00
2026-10-05 17:29:20 +08:00
2026-10-05 20:16:44 +08:00
2026-10-05 20:16:44 +08:00
2026-10-03 23:22:07 +08:00
2026-10-06 05:00:16 +08:00
2026-10-05 22:54:17 +08:00
2026-10-07 00:57:08 +08:00
2026-10-06 17:24:33 +08:00
2026-10-06 00:50:38 +08:00
2026-10-04 16:02:36 +08:00
2026-10-04 16:02:36 +08:00
2026-10-07 16:50:41 +08:00
2026-10-07 00:57:08 +08:00
2026-10-07 00:57:08 +08:00
2026-10-07 00:57:08 +08:00
2026-10-05 20:16:44 +08:00
2026-10-04 16:02:36 +08:00
2026-10-04 16:02:36 +08:00
2026-10-03 23:22:07 +08:00
2026-10-06 05:00:16 +08:00
2026-10-03 23:22:07 +08:00
2026-08-11 18:34:32 +08:00
2026-10-03 23:22:07 +08:00
2026-10-06 02:09:00 +08:00
2026-10-06 20:54:23 -07:00
2026-10-06 20:54:23 -07:00
2026-10-05 21:15:04 +08:00
2026-08-11 18:34:32 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 06:02:02 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-09-29 07:08:46 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 01:43:45 -07:00
2026-10-06 01:43:45 -07:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 06:02:02 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-10-05 21:15:04 +08:00
2026-09-29 14:53:50 +08:00
2026-10-07 08:12:59 +00:00
2026-10-07 08:12:59 +00:00
2026-10-05 20:16:44 +08:00
2026-10-05 20:16:44 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-10-06 05:57:38 +08:00
2026-09-29 13:57:24 +08:00
2026-10-04 16:02:36 +08:00
2026-10-05 17:29:20 +08:00
2026-09-29 14:53:50 +08:00
2026-10-07 10:56:06 +08:00
2026-09-29 14:53:50 +08:00
2026-10-05 17:29:20 +08:00
2026-10-04 16:02:36 +08:00
2026-09-29 08:45:36 +08:00
2026-07-24 14:40:29 +00:00
2026-07-24 13:18:10 +00:00
2026-07-24 13:18:10 +00:00
2026-10-05 17:29:20 +08:00
2026-10-06 04:55:26 +08:00
2026-10-06 02:11:10 -07:00
2026-10-05 21:15:04 +08:00
2026-10-06 02:11:10 -07:00
2026-10-05 21:15:04 +08:00
2026-10-06 16:17:50 +08:00
2026-10-06 16:17:50 +08:00
2026-10-06 00:03:29 -07:00
2026-10-05 20:16:44 +08:00
2026-10-06 04:55:26 +08:00
2026-10-05 22:32:36 -07:00
2026-10-06 01:09:56 -07:00
2026-10-06 00:17:04 -07:00
2026-09-29 14:53:20 +08:00
2026-10-06 00:26:08 -07:00
2026-10-05 23:56:24 -07:00
2026-09-29 16:29:23 +08:00
2026-10-05 17:29:20 +08:00
2026-07-12 03:25:10 +08:00
2026-10-06 16:26:40 +08:00
2026-10-05 22:13:22 -07:00
2026-10-07 13:00:24 +08:00
2026-10-06 05:00:54 +08:00
2026-10-06 05:00:54 +08:00
2026-10-05 20:16:44 +08:00
2026-10-07 11:23:37 +08:00
2026-10-07 11:23:37 +08:00
2026-10-05 21:15:04 +08:00
2026-10-06 01:43:45 -07:00
2026-09-29 11:23:24 +08:00
2026-09-29 11:22:00 +08:00
2026-09-29 16:29:23 +08:00
2026-09-08 10:59:13 +08:00
2026-10-06 05:57:38 +08:00
2026-10-07 12:25:37 +08:00
2026-10-06 01:03:41 +08:00
2026-10-07 00:01:16 -07:00
2026-10-05 20:16:44 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 17:16:58 +08:00
2026-09-29 13:57:24 +08:00
2026-10-06 00:50:38 +08:00
2026-10-05 15:32:58 +08:00
2026-09-29 14:53:50 +08:00
2026-10-04 16:02:36 +08:00
2026-07-14 20:24:12 +09:00
2026-10-07 13:00:24 +08:00
2026-10-07 14:59:52 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 14:59:52 +08:00
2026-10-04 16:02:36 +08:00
2026-10-07 13:00:24 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 05:24:32 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-10-07 16:21:18 +08:00
2026-09-08 10:59:13 +08:00