mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #4310] [Feature] Open nested Apple bundle directories (appex, framework, xpc, plug-in) as targets #1714
Open
opened 2026-10-16 21:09:21 +00:00 by bsakaguchi
·
1 comment
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#1714
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @coygeek on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/4310
Originally assigned to: @kaoru0822-kitauji on GitHub.
Before submitting
Area
Native analysis or decompilation
Current limitation
Let
open_binary,inspect_macho,inspect_signature, andinspect_plist(and their CLI commands) accept.appex,.framework,.xpc,.systemextension,.bundle, and.plugindirectories. REA should resolve the program file through the bundle'sInfo.plistCFBundleExecutable, the way it resolves.apptoday, and add the macOS framework layout (Versions/Current/Resources/Info.plist, program file inVersions/Current/). Cases that cannot be resolved should fail closed with a typed reason. The rejection that Apple bundle directories receive today points the analyst to the JavaScript/Electron analyzer, which is misleading. This request replaces that message.An analyst who inspects an app's extension, framework, or XPC service usually has the bundle directory, not the program file inside it. REA admits only one kind of directory: in
resolveAppBundle, any directory whose extension is not.appis rejected with constraintdirectory_requires_file(BinaryTargetResolver.ts#L435-L451). Every target opened byopen_binary, the CLI inspection commands, and the doctor target check passes through this resolver (BinaryTargetResolver.ts#L92-L97). The.appresolver itself knows only two layouts,Contents/Info.plistwithContents/MacOS/, and a flat rootInfo.plist(AppBundleExecutable.ts#L21-L37). It therefore has no route to a macOS framework'sVersions/A/Resources/Info.plist.The rejection message is fixed text that recommends the JavaScript analyzer for any non-
.appdirectory (analysisErrorPresentation.ts#L266-L268). The remediation does the same (analysisErrorPresentation.ts#L80-L84). The CLI commands show the same text, even though the analyst never calledopen_binary.Observed with
npx -y rea-agents@6.5.0(--versionprints6.5.0, release commit3b79af28e80785afce9f5998d8f03289402a1847) on macOS 27.0.1 (26A434) arm64.rea inspect-macho,rea inspect-signature, andrea inspect-plisteach exit 1 with the same error for three stock bundles:/System/Applications/Maps.app/Contents/PlugIns/MapsDiagnostic.appex,/System/Library/Frameworks/CreateML.framework, and/System/Library/Frameworks/Intents.framework/XPCServices/intents_helper.xpc:A self-built, ad-hoc-signed
./fixture/Demo.frameworkwith the documentedVersions/Alayout fails the same way.codesign -dvreports it asFormat=bundle with Mach-O thin (arm64), so Apple's own tool treats it as a bundle. When the framework's program fileVersions/A/Demois given torea inspect-plistinstead, the command looks forVersions/A/Contents/Info.plistand fails withcapability_unavailable, because the default plist isContents/Info.plistbeside the program directory (NativeMacOSProvider.ts#L1153-L1166). The analyst must locate the program file and the plist by hand, and the resulting Evidence names a loose file rather than the bundle it came from.Use cases
No response
Desired outcome and success criteria
Admission. A directory whose extension is
.appex,.framework,.xpc,.systemextension,.bundle, or.plugin(case-insensitive) is opened like.app. Behavior for.app, including the iOS-on-MacWrapperlayout, is unchanged.Layouts. Resolution reads
CFBundleExecutablefrom the bundle'sInfo.plistin the macOSContents/layout and the flat iOS-style root layout that REA already supports. For.framework, it also reads the macOS versioned layout:Info.plistatVersions/Current/Resources/Info.plist, program fileVersions/Current/<CFBundleExecutable>. All symlinks, includingVersions/Currentand the root symlinks, must resolve inside the bundle, under the same containment rule.appuses. The flat root layout covers iOS-style frameworks and extensions.Evidence. The subject remains the resolved program file, with its digest as today. The result records the bundle directory, the bundle type, the layout used, the
Info.plistpath, and, for a versioned framework, the version directory thatVersions/Currentselects. The defaultinspect_plisttarget is thatInfo.plist, andinspect_plistrelative paths resolve from the bundle root.Framework name. When a framework's
CFBundleExecutablediffers from the framework name without.framework, which Apple requires to match, resolution still followsCFBundleExecutable, the key macOS uses. The result reports the mismatch as a limitation.Fail closed, with a typed reason and the probed paths, for each case:
Info.plistis present in any supported layout.Info.plistis present in a newly admitted bundle type.Info.plistis present but has noCFBundleExecutable, as in a codeless bundle. REA does not guess from directory contents.Versions/but noVersions/Current.file_format_rejectedoutcome that.appproduces for a script.For (c) and (d), the remediation names the
Info.plistpath forinspect_plist.Other directories. Other Apple bundle extensions, such as
.dext,.kext,.qlgenerator, and.mdimporter, stay rejected. The message names the directory as an Apple bundle type that this route does not open, lists the accepted bundle types, and suggests selecting the program file. It does not suggest the JavaScript analyzer. A directory without a bundle extension may keep the JavaScript/Electron route, but the message must also list the accepted Apple bundle types.Acceptance criteria
Fixtures (Xcode 27.0 (27A266a) command-line tools;
./fixtureis any scratch directory):rea inspect-macho ./fixture/Demo.frameworksucceeds, and the subject path ends inVersions/A/Demo.rea inspect-signatureon the same directory reports identifiercom.example.Demo, andrea inspect-plistreportsCFBundleExecutableDemofromVersions/A/Resources/Info.plistwith no--relative-path.MapsDiagnostic.appex,CreateML.framework, andintents_helper.xpcpaths quoted above, and each Evidence names the bundle directory, its layout, and itsInfo.plist.open_binaryover MCP opens./fixture/Demo.frameworkand each Contents-layout fixture;inspect_macho,inspect_signature, andinspect_plistthen work on the active target.Flat.frameworkresolves through the root layout.Versions/Currentis removed from a copy ofDemo.framework, the open fails with a typed reason that namesVersions/Current. After it is repointed outside the bundle, the open fails with the containment reason.CFBundleExecutablerenamed toOther, the open fails because the program file is missing. With it renamed toOtherandVersions/A/Otherpresent, the open succeeds with a name-mismatch limitation./System/Library/CoreServices/RawCameraSupport.bundle, whoseInfo.plisthas noCFBundleExecutablealthoughContents/MacOS/holds a file, fails with a typed missing-key reason, and the open does not select that file. Stock/System/Library/Frameworks/Accelerate.framework, whoseInfo.plistnamesAcceleratewhile no such file exists on disk, fails with a typed missing-program-file reason. Both remediations name theInfo.plistpath..bundlefixture whose program file is a shell script fails withfile_format_rejected, matching.app./System/Library/DriverExtensions/com.apple.DriverKit-AppleUSBFTDI.dextis rejected. The message names it as an unsupported Apple bundle type, lists the accepted types, and does not mentionanalyze_javascript_application..app, iOS-style, andWrappertests still pass, and the docs list the accepted bundle types (docs/mcp-prompts.mdsays only "files and macOS app bundles").Expected interaction with targets
Read existing files or captured data
Target and scope details (optional)
Affected area
Target admission shared by
open_binary, the CLI inspection commands, and the doctor target check; bundle program-file resolution; theinspect_plistdefault path; the user message and remediation for directory rejection; and the target documentation.Non-goals
.appand Mach-O targets they accept today.inspect_signaturereports..dext,.kext,.qlgenerator,.mdimporter,.xcframework, or.dSYMdirectories, or resolving codeless bundles to a program file.Versions/Currentis followed.Verification available so far
I have a prototype or observed results
Verification details (optional)
No response
Alternatives considered
Info.plistandCFBundleExecutable, regardless of extension. This covers more types, but it would also open arbitrary directories that happen to hold anInfo.plist, and it would change what the JavaScript route sees. An explicit extension list fails closed and can grow.Possible direction
No response
References
Info.plistatContents/Info.plist(macOS),Versions/A/Resources/Info.plist(macOS framework), andInfo.plist(iOS, watchOS, tvOS, visionOS). It places the main executable inContents/MacOS/,Versions/A/, and/respectively. For frameworks, the page says to "Create a symlink withinVersionscalledCurrentthat targetsA" and that "The framework's root must contain only theVersionsdirectory and symlinks." It also states that "A codeless bundle has no executable code.".frameworkextension," and "macOS uses this key to locate the bundle's executable or shared library in cases where the user renames the app or bundle directory."CFBundleExecutableis missing (AppBundleExecutable.ts#L257-L263).Wrapper.applayouts. This request extends the same resolution to other bundle types.main) resolves theinspect_plistdefault from aContents/MacOSprogram file. It does not cover directory targets or frameworks, and main atd52a488does not change the directory admission or the message.appex,CFBundleExecutable,directory_requires_file,Versions/Current,systemextension, andbundle directory targetfound no request for this outcome.@kaoru0822-kitauji commented on GitHub (Oct 30, 2026):
I opened #8117. It implements the admission, the three layouts, fail-closed cases (a)–(g), and the rejection messages. I checked it on the stock bundles quoted here and on your clang-built fixture set (
inspect-macho,inspect-signatureandinspect-plistsucceed on all seven fixtures).Two items are deliberately left for follow-up, so this issue stays open:
inspect_machoandinspect_signatureEvidence. The subject is the strict schema shared by all Evidence.inspect_plistalready reportsresource_rootwith the bundle directory, layout and Info.plist.CFBundleExecutable, but executable targets have no limitation channel to carry the note.