rea-agents 4.1.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -568
- package/bridge/android/ReaJadxBridge.java +247 -0
- package/bridge/mitmproxy/capture.py +210 -0
- package/bridge/native/NativeUIChildren.swift +27 -0
- package/bridge/native/ReaNativeUI.swift +30 -16
- package/bridge/native/rea_lldb_tracer.py +303 -0
- package/bridge/process/ProcessRunTokenReader.swift +263 -0
- package/bridge/process/ProcessRunTokenReaderMain.swift +35 -0
- package/bridge/pwndbg/core_context.py +101 -0
- package/bridge/pwndbg/launch.py +39 -0
- package/bridge/pwndbg/launch_impl.py +34 -0
- package/bridge/pwntools/decoder_runtime.py +59 -0
- package/bridge/pwntools/layout.py +39 -0
- package/bridge/pwntools/layout_impl.py +309 -0
- package/bridge/pwntools/recorded_crash.py +39 -0
- package/bridge/pwntools/recorded_crash_impl.py +143 -0
- package/dist/android/AndroidTargetSnapshot.js +5 -3
- package/dist/android/JadxAnalysis.js +8 -6
- package/dist/android/JadxConfiguration.js +19 -3
- package/dist/android/JadxMcpTransport.js +43 -16
- package/dist/android/JadxProtocol.js +8 -0
- package/dist/android/JadxProvider.js +118 -28
- package/dist/android/JadxRelease.js +8 -0
- package/dist/android/JadxSession.js +32 -18
- package/dist/application/AppBundleExecutable.js +141 -0
- package/dist/application/BinaryTargetResolver.js +9 -64
- package/dist/application/CapabilityInventory.js +82 -3
- package/dist/application/ClientConfigurationDocument.js +72 -12
- package/dist/application/ClientRegistrationStatus.js +7 -8
- package/dist/application/DirectAnalysis.js +109 -37
- package/dist/application/DirectAnalysisStatus.js +4 -5
- package/dist/application/DoctorDiagnostics.js +3 -3
- package/dist/application/EnhancedTools.js +4 -4
- package/dist/application/EvidenceBundleCommands.js +1 -1
- package/dist/application/EvidenceBundleFiles.js +1 -1
- package/dist/application/InvestigationProviders.js +6 -0
- package/dist/application/LinuxHopper.js +8 -2
- package/dist/application/OptionalObservationProviders.js +3 -0
- package/dist/application/ReconstructionCoverageService.js +2 -6
- package/dist/application/ReconstructionObligationCandidates.js +10 -3
- package/dist/application/ReferenceSourceImport.js +2 -0
- package/dist/application/ReferenceSourceImportEntries.js +20 -3
- package/dist/application/ReferenceSourceImportTypes.js +5 -0
- package/dist/application/Setup.js +10 -2
- package/dist/application/SetupClientConfiguration.js +19 -16
- package/dist/application/SetupHost.js +18 -3
- package/dist/application/SetupPlan.js +1 -1
- package/dist/application/Uninstall.js +23 -17
- package/dist/application/UpdateMaintenance.js +3 -3
- package/dist/application/ValidateSelectedWebScript.js +27 -0
- package/dist/application/WebModuleTraceService.js +209 -0
- package/dist/application/WebNetworkCaptureService.js +132 -0
- package/dist/application/WebRuntimeService.js +73 -0
- package/dist/application/WebScriptExportService.js +115 -0
- package/dist/application/WebSourceLocationService.js +160 -0
- package/dist/application/WindowsCapabilities.js +1 -1
- package/dist/application/{AndroidAnalysisService.js → android/AndroidAnalysisService.js} +6 -6
- package/dist/application/{AndroidApplicationService.js → android/AndroidApplicationService.js} +3 -3
- package/dist/application/{AppleApplicationService.js → apple/AppleApplicationService.js} +5 -5
- package/dist/application/{AnalysisClientCleanup.js → binary/AnalysisClientCleanup.js} +2 -2
- package/dist/application/{AnalysisProviderEvaluation.js → binary/AnalysisProviderEvaluation.js} +4 -4
- package/dist/application/{AnalysisProviderRegistry.js → binary/AnalysisProviderRegistry.js} +5 -5
- package/dist/application/{AnalysisSnapshotCache.js → binary/AnalysisSnapshotCache.js} +55 -14
- package/dist/application/{AnalysisSnapshotFiles.js → binary/AnalysisSnapshotFiles.js} +4 -4
- package/dist/application/{BinarySession.js → binary/BinarySession.js} +50 -20
- package/dist/application/{BinarySessionComposition.js → binary/BinarySessionComposition.js} +2 -1
- package/dist/application/{BinarySessionExecution.js → binary/BinarySessionExecution.js} +9 -7
- package/dist/application/{BinarySessionOpen.js → binary/BinarySessionOpen.js} +22 -9
- package/dist/application/{BinarySessionRecords.js → binary/BinarySessionRecords.js} +48 -40
- package/dist/application/{CompositeProvider.js → binary/CompositeProvider.js} +2 -2
- package/dist/application/{LazyAnalysisProvider.js → binary/LazyAnalysisProvider.js} +6 -6
- package/dist/application/{SessionProviderRouter.js → binary/SessionProviderRouter.js} +7 -7
- package/dist/application/binaryDiagnostics/BinaryLayoutService.js +57 -0
- package/dist/application/binaryDiagnostics/RecordedCrashPort.js +1 -0
- package/dist/application/binaryDiagnostics/RecordedCrashService.js +60 -0
- package/dist/application/evm/EvmInterfacePort.js +1 -0
- package/dist/application/evm/EvmInterfaceService.js +62 -0
- package/dist/application/firmware/FirmwareAnalysisPort.js +1 -0
- package/dist/application/{FirmwareAnalysisService.js → firmware/FirmwareAnalysisService.js} +5 -5
- package/dist/application/{EvidenceLedger.js → investigation/EvidenceLedger.js} +44 -7
- package/dist/application/investigation/InvestigationRecordPort.js +1 -0
- package/dist/application/investigation/InvestigationRecords.js +69 -0
- package/dist/application/{UnknownEvidence.js → investigation/UnknownEvidence.js} +1 -1
- package/dist/application/{ElectronActiveEvidence.js → javascript/ElectronActiveEvidence.js} +3 -3
- package/dist/application/javascript/ElectronActiveObservationPort.js +1 -0
- package/dist/application/{ElectronActiveObservationService.js → javascript/ElectronActiveObservationService.js} +3 -3
- package/dist/application/{ElectronBoundaryAnalysis.js → javascript/ElectronBoundaryAnalysis.js} +1 -1
- package/dist/application/{ElectronBoundaryGraphContext.js → javascript/ElectronBoundaryGraphContext.js} +1 -1
- package/dist/application/{ElectronEvidence.js → javascript/ElectronEvidence.js} +2 -2
- package/dist/application/javascript/ElectronObservationPort.js +1 -0
- package/dist/application/{ElectronObservationService.js → javascript/ElectronObservationService.js} +3 -3
- package/dist/application/{JavaScriptApplicationEvidence.js → javascript/JavaScriptApplicationEvidence.js} +3 -4
- package/dist/application/{JavaScriptApplicationEvidenceGraph.js → javascript/JavaScriptApplicationEvidenceGraph.js} +5 -5
- package/dist/application/{JavaScriptApplicationService.js → javascript/JavaScriptApplicationService.js} +25 -12
- package/dist/application/{JavaScriptApplicationWorkflowEvidence.js → javascript/JavaScriptApplicationWorkflowEvidence.js} +3 -3
- package/dist/application/{JavaScriptApplicationWorkflowService.js → javascript/JavaScriptApplicationWorkflowService.js} +12 -12
- package/dist/application/{JavaScriptArtifactAnalysis.js → javascript/JavaScriptArtifactAnalysis.js} +50 -47
- package/dist/application/javascript/JavaScriptArtifactAnalysisTypes.js +1 -0
- package/dist/application/{JavaScriptArtifactGraphAccumulator.js → javascript/JavaScriptArtifactGraphAccumulator.js} +16 -2
- package/dist/application/{JavaScriptArtifactGraphBuilder.js → javascript/JavaScriptArtifactGraphBuilder.js} +2 -2
- package/dist/application/{JavaScriptArtifactGraphContext.js → javascript/JavaScriptArtifactGraphContext.js} +1 -1
- package/dist/application/{JavaScriptArtifactGraphDocuments.js → javascript/JavaScriptArtifactGraphDocuments.js} +27 -3
- package/dist/application/{JavaScriptArtifactGraphFindings.js → javascript/JavaScriptArtifactGraphFindings.js} +20 -7
- package/dist/application/{JavaScriptArtifactGraphStructure.js → javascript/JavaScriptArtifactGraphStructure.js} +1 -1
- package/dist/application/{JavaScriptArtifactPathResolution.js → javascript/JavaScriptArtifactPathResolution.js} +80 -36
- package/dist/application/{JavaScriptArtifactReconstruction.js → javascript/JavaScriptArtifactReconstruction.js} +26 -17
- package/dist/application/{JavaScriptJsonModules.js → javascript/JavaScriptJsonModules.js} +1 -1
- package/dist/application/{JavaScriptModuleRelationships.js → javascript/JavaScriptModuleRelationships.js} +2 -2
- package/dist/application/javascript/JavaScriptRecoveryPort.js +1 -0
- package/dist/application/javascript/JavaScriptRecoveryService.js +52 -0
- package/dist/application/{JavaScriptReturnShapeProjection.js → javascript/JavaScriptReturnShapeProjection.js} +3 -3
- package/dist/application/{JavaScriptRuntimeObservationEvidence.js → javascript/JavaScriptRuntimeObservationEvidence.js} +2 -2
- package/dist/application/javascript/JavaScriptRuntimeObservationPort.js +1 -0
- package/dist/application/{JavaScriptRuntimeObservationService.js → javascript/JavaScriptRuntimeObservationService.js} +3 -3
- package/dist/application/{JavaScriptRuntimeReconciliationEvidence.js → javascript/JavaScriptRuntimeReconciliationEvidence.js} +3 -3
- package/dist/application/{JavaScriptRuntimeReconciliationService.js → javascript/JavaScriptRuntimeReconciliationService.js} +6 -6
- package/dist/application/{JavaScriptSemanticGraphAsyncProjection.js → javascript/JavaScriptSemanticGraphAsyncProjection.js} +8 -8
- package/dist/application/{JavaScriptSemanticGraphBuilder.js → javascript/JavaScriptSemanticGraphBuilder.js} +150 -73
- package/dist/application/{JavaScriptSemanticGraphChildProcessProjection.js → javascript/JavaScriptSemanticGraphChildProcessProjection.js} +15 -16
- package/dist/application/{JavaScriptSemanticGraphConstruction.js → javascript/JavaScriptSemanticGraphConstruction.js} +43 -2
- package/dist/application/{JavaScriptSemanticGraphDataProjection.js → javascript/JavaScriptSemanticGraphDataProjection.js} +8 -8
- package/dist/application/{JavaScriptSemanticGraphFingerprintProjection.js → javascript/JavaScriptSemanticGraphFingerprintProjection.js} +1 -1
- package/dist/application/{JavaScriptSemanticGraphFlowProjection.js → javascript/JavaScriptSemanticGraphFlowProjection.js} +7 -11
- package/dist/application/{JavaScriptSemanticGraphObjectProjection.js → javascript/JavaScriptSemanticGraphObjectProjection.js} +4 -4
- package/dist/application/javascript/JavaScriptSemanticGraphProjection.js +144 -0
- package/dist/application/{JavaScriptSemanticGraphResourceProjection.js → javascript/JavaScriptSemanticGraphResourceProjection.js} +4 -4
- package/dist/application/{JavaScriptSemanticGraphValueProjection.js → javascript/JavaScriptSemanticGraphValueProjection.js} +5 -5
- package/dist/application/{JavaScriptSemanticTraceService.js → javascript/JavaScriptSemanticTraceService.js} +6 -6
- package/dist/application/{ManagedApplicationGraphService.js → managed/ManagedApplicationGraphService.js} +7 -7
- package/dist/application/{ManagedMemberComparisonService.js → managed/ManagedMemberComparisonService.js} +10 -10
- package/dist/application/{ManagedNativeVerificationService.js → managed/ManagedNativeVerificationService.js} +7 -7
- package/dist/application/{ManagedReconstructionService.js → managed/ManagedReconstructionService.js} +7 -7
- package/dist/application/{NativeApiInspection.js → native/NativeApiInspection.js} +1 -1
- package/dist/application/{NativeCallRoutes.js → native/NativeCallRoutes.js} +3 -3
- package/dist/application/{NativeDispatchMetadataInspection.js → native/NativeDispatchMetadataInspection.js} +4 -4
- package/dist/application/{NativeUiActionTrace.js → native/NativeUiActionTrace.js} +7 -7
- package/dist/application/{NativeValueTrace.js → native/NativeValueTrace.js} +6 -6
- package/dist/application/{ProcessCli.js → process/ProcessCli.js} +15 -11
- package/dist/application/{ProcessEvidence.js → process/ProcessEvidence.js} +4 -4
- package/dist/{application/ArtifactInventory/hash.js → artifacts/ArtifactHash.js} +4 -2
- package/dist/artifacts/ArtifactPaths.js +3 -3
- package/dist/artifacts/ArtifactProvider.js +37 -40
- package/dist/artifacts/ArtifactProviderMetadata.js +37 -0
- package/dist/artifacts/AsarArtifactReader.js +195 -23
- package/dist/artifacts/AsarEntryStream.js +76 -0
- package/dist/artifacts/DirectoryArtifactReader.js +41 -7
- package/dist/artifacts/NativeDmgArtifactReader.js +161 -9
- package/dist/artifacts/ZipArtifactReader.js +3 -0
- package/dist/{application → artifacts/apple}/AppleAssetCatalogAnalysis.js +4 -4
- package/dist/artifacts/apple/DylibResolutionReader.js +259 -0
- package/dist/{application → artifacts/apple}/InterfaceBuilderAnalysis.js +125 -51
- package/dist/artifacts/{KeyedArchiveReader.js → apple/KeyedArchiveReader.js} +21 -27
- package/dist/artifacts/apple/MachoLoadCommandReader.js +294 -0
- package/dist/artifacts/apple/NibViewHierarchy.js +150 -0
- package/dist/{application → artifacts/extraction}/ArtifactExtraction.js +10 -10
- package/dist/{application → artifacts/inventory}/ArtifactGraphConstruction.js +3 -3
- package/dist/{application → artifacts/inventory}/ArtifactInventory.js +4 -4
- package/dist/{application/ArtifactInventory → artifacts/inventory}/classify.js +2 -2
- package/dist/{application/ArtifactInventory → artifacts/inventory}/reader.js +5 -5
- package/dist/{application/ArtifactInventory → artifacts/inventory}/scanCanonical.js +3 -3
- package/dist/{application/ArtifactInventory → artifacts/inventory}/scanReader.js +5 -5
- package/dist/{application → artifacts/javascript}/JavaScriptArtifactFiles.js +27 -6
- package/dist/artifacts/javascript/JavaScriptArtifactReader.js +6 -0
- package/dist/artifacts/readStableArtifact.js +68 -0
- package/dist/browser/BrowserScenarioSecrets.js +50 -8
- package/dist/browser/CdpAuthorizedMainFrame.js +4 -4
- package/dist/browser/CdpAuthorizedTarget.js +22 -0
- package/dist/browser/CdpBrowserProvider.js +4 -15
- package/dist/browser/CdpCaptureDocuments.js +33 -21
- package/dist/browser/CdpCaptureEventBodyShapes.js +3 -3
- package/dist/browser/CdpCaptureEventHandlers.js +116 -28
- package/dist/browser/CdpCaptureEventHelpers.js +6 -6
- package/dist/browser/CdpCaptureEvents.js +9 -0
- package/dist/browser/CdpCaptureStorage.js +10 -8
- package/dist/browser/CdpCaptureStorageFingerprints.js +24 -22
- package/dist/browser/CdpCaptureValues.js +2 -2
- package/dist/browser/CdpCommandRejection.js +17 -0
- package/dist/browser/CdpConnection.js +51 -11
- package/dist/browser/CdpElectronInspection.js +10 -10
- package/dist/browser/CdpElectronProvider.js +3 -6
- package/dist/browser/CdpElectronScriptEvents.js +6 -6
- package/dist/browser/CdpElectronScripts.js +2 -2
- package/dist/browser/CdpElectronWorkers.js +4 -4
- package/dist/browser/CdpObservationSession.js +18 -23
- package/dist/browser/CdpPageCapture.js +4 -4
- package/dist/browser/CdpPageCaptureScripts.js +2 -2
- package/dist/browser/CdpPageCaptureWorkers.js +9 -9
- package/dist/browser/CdpSafeMetadata.js +48 -10
- package/dist/browser/CdpScreenshot.js +5 -5
- package/dist/browser/CdpTargetEvents.js +8 -0
- package/dist/browser/CdpTargetSession.js +2 -2
- package/dist/browser/CdpWebMcpDiscovery.js +22 -16
- package/dist/browser/PlaywrightBrowserScenarioProvider.js +7 -6
- package/dist/browser/PlaywrightElectronActiveProvider.js +15 -9
- package/dist/browser/PlaywrightScenarioEvents.js +59 -51
- package/dist/browser/PlaywrightScenarioSession.js +8 -1
- package/dist/browser/WebSourceMapFetcher.js +37 -53
- package/dist/browser/assets/LocalWebScriptArtifacts.js +87 -0
- package/dist/browser/assets/PageScriptCapture.js +32 -0
- package/dist/browser/assets/PublishWebScripts.js +74 -0
- package/dist/browser/assets/ScenarioScriptCapture.js +76 -0
- package/dist/browser/assets/ScriptCaptureAdapters.js +57 -0
- package/dist/browser/assets/WebArtifactReads.js +56 -0
- package/dist/browser/assets/WebSourceLocationArtifacts.js +40 -0
- package/dist/browser/execution/CdpEventListeners.js +79 -0
- package/dist/browser/execution/CdpExecutionCapture.js +135 -0
- package/dist/browser/execution/CdpExecutionCollection.js +57 -0
- package/dist/browser/execution/CdpExecutionWindow.js +100 -0
- package/dist/browser/execution/CdpListenerSelector.js +22 -0
- package/dist/browser/execution/CdpPreciseCoverage.js +48 -0
- package/dist/browser/execution/CdpRuntimeInitiator.js +18 -0
- package/dist/browser/execution/CdpRuntimeProtocol.js +106 -0
- package/dist/browser/execution/CdpRuntimeRequests.js +81 -0
- package/dist/browser/execution/CdpRuntimeSession.js +163 -0
- package/dist/browser/execution/CdpRuntimeSources.js +223 -0
- package/dist/browser/execution/CdpWebRuntimeProvider.js +51 -0
- package/dist/browser/history/CaptureFailures.js +101 -0
- package/dist/browser/history/CaptureFormatError.js +10 -0
- package/dist/browser/history/CaptureRedaction.js +65 -0
- package/dist/browser/history/CaptureRelease.js +12 -0
- package/dist/browser/history/HarCapture.js +165 -0
- package/dist/browser/history/HarCaptureAdapter.js +20 -0
- package/dist/browser/history/HarCaptureProcess.js +57 -0
- package/dist/browser/history/HarJson.js +91 -0
- package/dist/browser/history/HarSchema.js +72 -0
- package/dist/browser/history/HistoricalCaptureDecoder.js +186 -0
- package/dist/browser/history/HistoricalCaptureFormatAdapter.js +1 -0
- package/dist/browser/history/MitmproxyCaptureAdapter.js +42 -0
- package/dist/browser/modules/NativeModuleResolver.js +210 -0
- package/dist/browser/modules/WebModuleArtifacts.js +40 -0
- package/dist/browser/network/PlaywrightNetworkContent.js +71 -0
- package/dist/browser/network/PlaywrightScenarioNetwork.js +180 -0
- package/dist/browser/providerIdentities.js +24 -0
- package/dist/catalogIdentity.js +23 -15
- package/dist/cli/androidCommands.js +13 -3
- package/dist/cli/applicationCommands.js +39 -8
- package/dist/cli/artifactCommands.js +27 -2
- package/dist/cli/binaryDiagnosticsCommands.js +39 -0
- package/dist/cli/browserAdvancedCommands.js +27 -9
- package/dist/cli/coreAnalysisCommands.js +6 -494
- package/dist/cli/coreBinaryCommands.js +211 -0
- package/dist/cli/coreNativeCommands.js +293 -0
- package/dist/cli/electronCommands.js +29 -27
- package/dist/cli/evmCommands.js +24 -0
- package/dist/cli/firmwareCommands.js +9 -6
- package/dist/cli/javascriptApplicationAnalysis.js +17 -4
- package/dist/cli/javascriptRecoveryCommands.js +45 -0
- package/dist/cli/jsonOutput.js +133 -0
- package/dist/cli/managedCommands.js +4 -4
- package/dist/cli/managedProjectGraphCommand.js +1 -1
- package/dist/cli/nativeCallCommands.js +35 -0
- package/dist/cli/processCommands.js +1 -1
- package/dist/cli/referenceSourceImportStatus.js +6 -1
- package/dist/cli/streamedJsonOutput.js +56 -0
- package/dist/cli/utilityCommands.js +49 -23
- package/dist/cli/webModuleCommands.js +56 -0
- package/dist/cli/webNetworkCaptureCommands.js +40 -0
- package/dist/cli/webRuntimeCommands.js +60 -0
- package/dist/cli/webScriptCommands.js +31 -0
- package/dist/cli/webSourceLocationCommands.js +42 -0
- package/dist/cli.js +19 -3
- package/dist/cliBrowserContext.js +4 -2
- package/dist/cliBrowserScenarioCommands.js +6 -5
- package/dist/cliCommandNames.js +14 -0
- package/dist/cliJavaScriptRuntimeCommands.js +6 -4
- package/dist/cliJsonInput.js +38 -2
- package/dist/cliOutput.js +52 -11
- package/dist/composition/android.js +3 -0
- package/dist/composition/auxiliaryAnalysisProviders.js +30 -0
- package/dist/composition/binary.js +25 -0
- package/dist/composition/binaryDiagnostics.js +8 -0
- package/dist/composition/browserObservation.js +3 -0
- package/dist/composition/browserScenario.js +3 -0
- package/dist/composition/directAnalysis.js +17 -0
- package/dist/composition/electronObservation.js +3 -0
- package/dist/composition/electronScenario.js +3 -0
- package/dist/composition/evm.js +4 -0
- package/dist/composition/firmware.js +3 -0
- package/dist/composition/javascriptRecovery.js +3 -0
- package/dist/composition/javascriptRuntimeObservation.js +3 -0
- package/dist/composition/optionalObservationProviders.js +49 -0
- package/dist/composition/webModules.js +5 -0
- package/dist/composition/webNetworkCaptures.js +6 -0
- package/dist/composition/webRuntime.js +4 -0
- package/dist/composition/webSourceLocations.js +5 -0
- package/dist/config/parseConfig.js +22 -3
- package/dist/contracts/{androidToolContracts.js → android/androidToolContracts.js} +5 -5
- package/dist/contracts/applicationToolContracts.js +43 -8
- package/dist/contracts/artifactToolContracts.js +8 -2
- package/dist/contracts/browserCaptureToolInputSchema.js +43 -0
- package/dist/contracts/browserScenarioToolContracts.js +1 -1
- package/dist/contracts/browserToolContracts.js +4 -3
- package/dist/contracts/enhancedInputs.js +1 -1
- package/dist/contracts/errorSchemas.js +8 -1
- package/dist/contracts/evm/evmToolContracts.js +20 -0
- package/dist/contracts/{firmwareToolContracts.js → firmware/firmwareToolContracts.js} +5 -5
- package/dist/contracts/investigationExamples.js +2 -2
- package/dist/contracts/{applicationWorkflowInputContracts.js → javascript/applicationWorkflowInputContracts.js} +6 -6
- package/dist/contracts/{electronToolContracts.js → javascript/electronToolContracts.js} +6 -6
- package/dist/contracts/{javascriptApplicationWorkflowExamples.js → javascript/javascriptApplicationWorkflowExamples.js} +3 -3
- package/dist/contracts/javascript/javascriptRecoveryToolContracts.js +23 -0
- package/dist/contracts/{javascriptRuntimeObservationToolContracts.js → javascript/javascriptRuntimeObservationToolContracts.js} +3 -3
- package/dist/contracts/{javascriptRuntimeReconciliationExample.js → javascript/javascriptRuntimeReconciliationExample.js} +5 -5
- package/dist/contracts/{managedToolContracts.js → managed/managedToolContracts.js} +10 -6
- package/dist/contracts/{managedWorkflowExamples.js → managed/managedWorkflowExamples.js} +1 -1
- package/dist/contracts/{managedWorkflowToolContracts.js → managed/managedWorkflowToolContracts.js} +6 -6
- package/dist/contracts/mobileApplicationGraphExamples.js +105 -0
- package/dist/contracts/native/binaryDiagnosticsToolContracts.js +42 -0
- package/dist/contracts/{nativeToolContracts.js → native/nativeToolContracts.js} +31 -8
- package/dist/contracts/officialToolContracts.js +15 -12
- package/dist/contracts/process/processCaptureExample.js +2 -0
- package/dist/contracts/sessionLifecycleInputs.js +22 -5
- package/dist/contracts/sessionStatusContract.js +10 -2
- package/dist/contracts/sessionToolContracts.js +9 -2
- package/dist/contracts/sessionToolSchemas.js +10 -3
- package/dist/contracts/toolContractExamples.js +1 -1
- package/dist/contracts/toolContracts.js +19 -7
- package/dist/contracts/toolEffects.js +62 -0
- package/dist/contracts/toolOutputSchemaGroups.js +23 -19
- package/dist/contracts/toolOutputSchemaPrimitives.js +1 -1
- package/dist/contracts/webNetworkCaptureToolContracts.js +24 -0
- package/dist/contracts/webRuntimeToolContracts.js +43 -0
- package/dist/contracts/webScriptToolContracts.js +68 -0
- package/dist/domain/analysisErrorBase.js +15 -0
- package/dist/domain/analysisErrorCore.js +63 -7
- package/dist/domain/analysisErrorPresentation.js +29 -1
- package/dist/domain/analysisErrorProjection.js +53 -2
- package/dist/domain/analysisSnapshot.js +166 -2
- package/dist/domain/{androidApplication.js → android/androidApplication.js} +7 -6
- package/dist/domain/apple/appleApplication.js +277 -0
- package/dist/domain/{appleAssetCatalog.js → apple/appleAssetCatalog.js} +2 -2
- package/dist/domain/apple/appleBundleAnatomy.js +236 -0
- package/dist/domain/apple/dyldPaths.js +81 -0
- package/dist/domain/apple/dylibResolution.js +367 -0
- package/dist/domain/apple/dylibResolutionFindings.js +75 -0
- package/dist/domain/{interfaceBuilderGraph.js → apple/interfaceBuilderGraph.js} +47 -314
- package/dist/domain/apple/interfaceBuilderKeyedArchive.js +411 -0
- package/dist/domain/{keyedArchive.js → apple/keyedArchive.js} +10 -9
- package/dist/domain/apple/plistValue.js +35 -0
- package/dist/domain/artifactInventoryEvidence.js +12 -2
- package/dist/domain/artifactInventorySnapshot.js +1 -0
- package/dist/domain/artifactOperationError.js +5 -1
- package/dist/domain/artifactPathSyntax.js +26 -0
- package/dist/domain/browserNetworkEvidence.js +82 -0
- package/dist/domain/browserObservation.js +1 -1
- package/dist/domain/browserObservationError.js +2 -0
- package/dist/domain/browserObservationSchemas.js +15 -1
- package/dist/domain/browserScenarioCapture.js +22 -0
- package/dist/domain/browserScenarioCaptureValues.js +25 -0
- package/dist/domain/browserScenarioDiff.js +6 -3
- package/dist/domain/browserScenarioDiffEvidence.js +35 -1
- package/dist/domain/browserScenarioValues.js +21 -3
- package/dist/domain/browserSession.js +2 -7
- package/dist/domain/bundleComparison.js +2 -1
- package/dist/domain/callPath.js +52 -44
- package/dist/domain/callPathSchemas.js +1 -1
- package/dist/domain/canonicalDigest.js +13 -1
- package/dist/domain/changedBehavior.js +3 -3
- package/dist/domain/comparisonStatus.js +11 -0
- package/dist/domain/conformanceTrustGate.js +0 -16
- package/dist/domain/evidence.js +17 -5
- package/dist/domain/evidenceBundle.js +98 -35
- package/dist/domain/evm/evmInterface.js +63 -0
- package/dist/domain/explicitSensitiveFailure.js +92 -0
- package/dist/domain/explicitSensitiveValues.js +10 -0
- package/dist/domain/{firmwareAnalysis.js → firmware/firmwareAnalysis.js} +10 -3
- package/dist/domain/functionComparisonNormalization.js +11 -13
- package/dist/domain/hopperValues.js +2 -2
- package/dist/domain/inputIssueProjection.js +17 -2
- package/dist/domain/{electronActiveObservation.js → javascript/electronActiveObservation.js} +9 -4
- package/dist/domain/{electronObservation.js → javascript/electronObservation.js} +5 -11
- package/dist/domain/{electronStaticAnalysisBrowser.js → javascript/electronStaticAnalysisBrowser.js} +4 -3
- package/dist/domain/{electronStaticAnalysisIpc.js → javascript/electronStaticAnalysisIpc.js} +2 -2
- package/dist/domain/{electronStaticAnalysisNative.js → javascript/electronStaticAnalysisNative.js} +12 -13
- package/dist/domain/javascript/electronStaticAnalysisTypes.js +1 -0
- package/dist/domain/{electronStaticAnalysisValues.js → javascript/electronStaticAnalysisValues.js} +3 -3
- package/dist/domain/javascript/htmlArtifactReferences.js +40 -0
- package/dist/domain/{javascriptApplicationAnalysis.js → javascript/javascriptApplicationAnalysis.js} +2 -2
- package/dist/domain/{javascriptApplicationChangeGraph.js → javascript/javascriptApplicationChangeGraph.js} +1 -1
- package/dist/domain/{javascriptApplicationEvidenceSchemas.js → javascript/javascriptApplicationEvidenceSchemas.js} +6 -4
- package/dist/domain/{javascriptApplicationGraph.js → javascript/javascriptApplicationGraph.js} +2 -2
- package/dist/domain/{javascriptApplicationGraphSchemas.js → javascript/javascriptApplicationGraphSchemas.js} +2 -2
- package/dist/domain/{javascriptApplicationVersionComparison.js → javascript/javascriptApplicationVersionComparison.js} +2 -2
- package/dist/domain/{javascriptApplicationVersionComparisonSchemas.js → javascript/javascriptApplicationVersionComparisonSchemas.js} +3 -3
- package/dist/domain/{javascriptApplicationVersionItems.js → javascript/javascriptApplicationVersionItems.js} +2 -2
- package/dist/domain/{javascriptApplicationVersionKeys.js → javascript/javascriptApplicationVersionKeys.js} +16 -9
- package/dist/domain/javascript/javascriptArtifactFiles.js +1 -0
- package/dist/domain/{javascriptAstFingerprint.js → javascript/javascriptAstFingerprint.js} +38 -22
- package/dist/domain/javascript/javascriptAstValues.js +23 -0
- package/dist/domain/{javascriptExportShapeComparison.js → javascript/javascriptExportShapeComparison.js} +21 -5
- package/dist/domain/{javascriptExportShapeComparisonSchemas.js → javascript/javascriptExportShapeComparisonSchemas.js} +2 -2
- package/dist/domain/{javascriptExportShapeSelection.js → javascript/javascriptExportShapeSelection.js} +1 -1
- package/dist/domain/{javascriptExportShapeVariants.js → javascript/javascriptExportShapeVariants.js} +1 -11
- package/dist/domain/{javascriptFeatureSeed.js → javascript/javascriptFeatureSeed.js} +4 -3
- package/dist/domain/{javascriptFeatureTrace.js → javascript/javascriptFeatureTrace.js} +2 -2
- package/dist/domain/{javascriptFeatureTraceSchemas.js → javascript/javascriptFeatureTraceSchemas.js} +32 -18
- package/dist/domain/{javascriptFeatureTraversal.js → javascript/javascriptFeatureTraversal.js} +6 -2
- package/dist/domain/{javascriptNativeHandoff.js → javascript/javascriptNativeHandoff.js} +1 -1
- package/dist/domain/javascript/javascriptRecovery.js +88 -0
- package/dist/domain/{javascriptRuntimeLoadState.js → javascript/javascriptRuntimeLoadState.js} +1 -1
- package/dist/domain/{javascriptRuntimeObservation.js → javascript/javascriptRuntimeObservation.js} +2 -2
- package/dist/domain/{javascriptRuntimeReconciliationActive.js → javascript/javascriptRuntimeReconciliationActive.js} +3 -3
- package/dist/domain/{javascriptRuntimeReconciliationGraph.js → javascript/javascriptRuntimeReconciliationGraph.js} +1 -1
- package/dist/domain/{javascriptRuntimeReconciliationMatching.js → javascript/javascriptRuntimeReconciliationMatching.js} +2 -2
- package/dist/domain/{javascriptRuntimeReconciliationParsing.js → javascript/javascriptRuntimeReconciliationParsing.js} +5 -5
- package/dist/domain/{javascriptRuntimeReconciliationResult.js → javascript/javascriptRuntimeReconciliationResult.js} +2 -2
- package/dist/domain/{javascriptRuntimeReconciliationSchemas.js → javascript/javascriptRuntimeReconciliationSchemas.js} +4 -4
- package/dist/domain/{javascriptRuntimeStaticCandidates.js → javascript/javascriptRuntimeStaticCandidates.js} +1 -1
- package/dist/domain/{javascriptSemanticAnalysis.js → javascript/javascriptSemanticAnalysis.js} +40 -14
- package/dist/domain/{javascriptSemanticAsyncEffects.js → javascript/javascriptSemanticAsyncEffects.js} +2 -1
- package/dist/domain/{javascriptSemanticCallResolution.js → javascript/javascriptSemanticCallResolution.js} +10 -5
- package/dist/domain/{javascriptSemanticCalls.js → javascript/javascriptSemanticCalls.js} +7 -4
- package/dist/domain/{javascriptSemanticChildProcesses.js → javascript/javascriptSemanticChildProcesses.js} +4 -2
- package/dist/domain/{javascriptSemanticDataEffectHelpers.js → javascript/javascriptSemanticDataEffectHelpers.js} +7 -6
- package/dist/domain/{javascriptSemanticDataEffects.js → javascript/javascriptSemanticDataEffects.js} +8 -6
- package/dist/domain/{javascriptSemanticFingerprints.js → javascript/javascriptSemanticFingerprints.js} +40 -16
- package/dist/domain/{javascriptSemanticGraph.js → javascript/javascriptSemanticGraph.js} +23 -7
- package/dist/domain/{javascriptSemanticGraphSchemas.js → javascript/javascriptSemanticGraphSchemas.js} +3 -3
- package/dist/domain/javascript/javascriptSemanticMemberMutations.js +116 -0
- package/dist/domain/javascript/javascriptSemanticMutationValues.js +53 -0
- package/dist/domain/{javascriptSemanticObjects.js → javascript/javascriptSemanticObjects.js} +5 -5
- package/dist/domain/{javascriptSemanticPrimitives.js → javascript/javascriptSemanticPrimitives.js} +1 -1
- package/dist/domain/{javascriptSemanticProjection.js → javascript/javascriptSemanticProjection.js} +31 -44
- package/dist/domain/{javascriptSemanticPromises.js → javascript/javascriptSemanticPromises.js} +77 -22
- package/dist/domain/{javascriptSemanticProvenance.js → javascript/javascriptSemanticProvenance.js} +4 -1
- package/dist/domain/{javascriptSemanticQuery.js → javascript/javascriptSemanticQuery.js} +1 -1
- package/dist/domain/{javascriptSemanticQueryAssessment.js → javascript/javascriptSemanticQueryAssessment.js} +1 -1
- package/dist/domain/{javascriptSemanticQueryIdentity.js → javascript/javascriptSemanticQueryIdentity.js} +1 -1
- package/dist/domain/{javascriptSemanticQuerySchemas.js → javascript/javascriptSemanticQuerySchemas.js} +3 -3
- package/dist/domain/javascript/javascriptSemanticRequireOrigin.js +25 -0
- package/dist/domain/{javascriptSemanticResources.js → javascript/javascriptSemanticResources.js} +2 -1
- package/dist/domain/{javascriptSemanticReturns.js → javascript/javascriptSemanticReturns.js} +1 -1
- package/dist/domain/{javascriptSemanticTraceSchemas.js → javascript/javascriptSemanticTraceSchemas.js} +2 -2
- package/dist/domain/javascript/javascriptSemanticTraversal.js +55 -0
- package/dist/domain/javascript/javascriptSemanticValueTypes.js +1 -0
- package/dist/domain/{javascriptSemanticValues.js → javascript/javascriptSemanticValues.js} +72 -48
- package/dist/domain/{javascriptStaticAnalysis.js → javascript/javascriptStaticAnalysis.js} +7 -4
- package/dist/domain/{javascriptStaticAnalysisBundler.js → javascript/javascriptStaticAnalysisBundler.js} +14 -11
- package/dist/domain/{javascriptStaticAnalysisCalls.js → javascript/javascriptStaticAnalysisCalls.js} +2 -2
- package/dist/domain/{javascriptStaticAnalysisHelpers.js → javascript/javascriptStaticAnalysisHelpers.js} +231 -40
- package/dist/domain/{sourceToBundleComparison.js → javascript/sourceToBundleComparison.js} +2 -2
- package/dist/domain/{sourceToBundleComparisonSchemas.js → javascript/sourceToBundleComparisonSchemas.js} +4 -4
- package/dist/domain/{sourceToBundleSignals.js → javascript/sourceToBundleSignals.js} +2 -2
- package/dist/domain/jsonValue.js +4 -0
- package/dist/domain/localPath.js +2 -0
- package/dist/domain/{managedApplicationGraph.js → managed/managedApplicationGraph.js} +4 -4
- package/dist/domain/{managedApplicationGraphNodes.js → managed/managedApplicationGraphNodes.js} +1 -1
- package/dist/domain/{managedArtifact.js → managed/managedArtifact.js} +1 -1
- package/dist/domain/{managedMemberComparison.js → managed/managedMemberComparison.js} +4 -4
- package/dist/domain/{managedMemberComparisonCoverage.js → managed/managedMemberComparisonCoverage.js} +2 -1
- package/dist/domain/{managedMemberComparisonItems.js → managed/managedMemberComparisonItems.js} +97 -40
- package/dist/domain/{managedMemberComparisonMatch.js → managed/managedMemberComparisonMatch.js} +22 -11
- package/dist/domain/{managedNativeVerification.js → managed/managedNativeVerification.js} +1 -1
- package/dist/domain/{managedNativeVerificationMatch.js → managed/managedNativeVerificationMatch.js} +3 -3
- package/dist/domain/{managedNativeVerificationSchemas.js → managed/managedNativeVerificationSchemas.js} +6 -5
- package/dist/domain/{managedReconstruction.js → managed/managedReconstruction.js} +3 -3
- package/dist/domain/native/binaryLayout.js +357 -0
- package/dist/domain/native/nativeCallObservation.js +164 -0
- package/dist/domain/{nativeFunctionAnnotations.js → native/nativeFunctionAnnotations.js} +1 -1
- package/dist/domain/{nativeInspection.js → native/nativeInspection.js} +1 -1
- package/dist/domain/{nativeInvestigationGraph.js → native/nativeInvestigationGraph.js} +13 -4
- package/dist/domain/{nativeLoadImage.js → native/nativeLoadImage.js} +1 -1
- package/dist/domain/{nativeUiObservation.js → native/nativeUiObservation.js} +20 -6
- package/dist/domain/{objcSwiftMetadata.js → native/objcSwiftMetadata.js} +17 -39
- package/dist/domain/native/recordedCrash.js +266 -0
- package/dist/domain/native/recordedCrashNoteCoverage.js +73 -0
- package/dist/domain/process/processCapture.js +316 -0
- package/dist/domain/{processCaptureExample.js → process/processCaptureExample.js} +5 -0
- package/dist/domain/process/processCaptureParsing.js +54 -0
- package/dist/domain/{processCaptureValidation.js → process/processCaptureValidation.js} +18 -2
- package/dist/domain/{processComparison.js → process/processComparison.js} +1 -1
- package/dist/domain/{processObservation.js → process/processObservation.js} +1 -1
- package/dist/domain/{processScenario.js → process/processScenario.js} +17 -17
- package/dist/domain/{processTraceSpecification.js → process/processTraceSpecification.js} +1 -1
- package/dist/domain/propertyListKeys.js +69 -0
- package/dist/domain/providerCleanupError.js +5 -2
- package/dist/domain/providerSelectionError.js +4 -2
- package/dist/domain/reconstructionCoverageEvaluation.js +46 -24
- package/dist/domain/reconstructionCoverageInput.js +7 -0
- package/dist/domain/reconstructionVerification.js +3 -3
- package/dist/domain/reconstructionVerificationSchemas.js +1 -1
- package/dist/domain/residualUnknown.js +3 -2
- package/dist/domain/runtimeVersion.js +2 -0
- package/dist/domain/sourceMapEnvelope.js +38 -0
- package/dist/domain/staticRuntimeCorrelation.js +3 -3
- package/dist/domain/unicodeCodePointOrder.js +11 -6
- package/dist/domain/webBundleAnalyzerAst.js +2 -34
- package/dist/domain/webBundleAnalyzerInspection.js +12 -9
- package/dist/domain/webCaptureDiff.js +1 -0
- package/dist/domain/webEventListeners.js +28 -0
- package/dist/domain/webExecution.js +74 -0
- package/dist/domain/webMcpDiscovery.js +1 -7
- package/dist/domain/webModuleImports.js +104 -0
- package/dist/domain/webModuleTrace.js +106 -0
- package/dist/domain/webNetworkCapture.js +118 -0
- package/dist/domain/webNetworkCaptureCoordinates.js +58 -0
- package/dist/domain/webRuntime.js +69 -0
- package/dist/domain/webScreenshot.js +1 -7
- package/dist/domain/webScriptArtifacts.js +39 -0
- package/dist/domain/webScriptExport.js +86 -0
- package/dist/domain/webScriptExportError.js +13 -0
- package/dist/domain/webScriptExportPlan.js +108 -0
- package/dist/domain/webSourceLocation.js +106 -0
- package/dist/domain/webSourcePosition.js +21 -0
- package/dist/dotnet/ManagedArtifactInspector.js +1 -1
- package/dist/dotnet/ManagedExceptionRegionValidation.js +41 -0
- package/dist/dotnet/ManagedMemberInspector.js +5 -3
- package/dist/dotnet/ManagedMemberInspectorCore.js +72 -32
- package/dist/dotnet/ManagedMemberInstructionDecoder.js +23 -7
- package/dist/dotnet/ManagedMemberRows.js +19 -6
- package/dist/dotnet/ManagedMetadataHeaps.js +20 -2
- package/dist/dotnet/ManagedMetadataInventory.js +38 -28
- package/dist/dotnet/ManagedMetadataInventoryRows.js +24 -10
- package/dist/dotnet/ManagedMethodBodyReader.js +7 -1
- package/dist/dotnet/ManagedNativeBoundaryHelpers.js +37 -19
- package/dist/dotnet/ManagedNativeBoundaryInspector.js +59 -51
- package/dist/dotnet/ManagedPeReader.js +11 -0
- package/dist/dotnet/ManagedStaticProvider.js +3 -33
- package/dist/dotnet/ManagedStaticProviderMetadata.js +36 -0
- package/dist/evaluation/CodexAgentEval.js +2 -1
- package/dist/evm/EvmBytecodeCarrier.js +21 -0
- package/dist/evm/EvmWorkerLimits.js +40 -0
- package/dist/evm/EvmoleFailures.js +126 -0
- package/dist/evm/EvmoleInterfaceAdapter.js +53 -0
- package/dist/evm/EvmoleInterfaceProvider.js +273 -0
- package/dist/evm/EvmoleInterfaceWorker.js +87 -0
- package/dist/evm/EvmoleRelease.js +16 -0
- package/dist/firmware/FirmwareCommand.js +1 -0
- package/dist/firmware/FirmwareProvider.js +18 -12
- package/dist/firmware/FirmwarePublication.js +1 -1
- package/dist/firmware/FirmwareRelease.js +1 -1
- package/dist/firmware/FirmwareReports.js +12 -0
- package/dist/firmware/FirmwareVersion.js +80 -0
- package/dist/generatedPackageMetadata.js +2 -2
- package/dist/ghidra/GhidraFunctionValues.js +5 -5
- package/dist/ghidra/GhidraInstallation.js +38 -34
- package/dist/ghidra/GhidraInstallationPolicy.js +140 -0
- package/dist/ghidra/GhidraInventoryValues.js +1 -1
- package/dist/ghidra/GhidraLauncher.js +13 -4
- package/dist/ghidra/GhidraLoadImageAttest.js +36 -0
- package/dist/ghidra/GhidraLoadImageValues.js +1 -1
- package/dist/ghidra/GhidraProvider.js +17 -235
- package/dist/ghidra/GhidraProviderCapabilities.js +8 -15
- package/dist/ghidra/GhidraProviderClient.js +209 -0
- package/dist/ghidra/GhidraResponseBuffer.js +7 -1
- package/dist/ghidra/extensions/nativeaot/NativeAotReport.js +17 -1
- package/dist/hopper/BridgeLauncher.js +2 -0
- package/dist/hopper/HopperProvider.js +2 -48
- package/dist/hopper/HopperProviderCapabilities.js +73 -0
- package/dist/hopper/HopperResponseStream.js +7 -1
- package/dist/hopper/LinuxPrivateDisplayProbe.js +8 -6
- package/dist/ida/IdaProviderCapabilities.js +3 -11
- package/dist/ida/IdaSessionClient.js +12 -0
- package/dist/{browser → inspector}/JavaScriptRuntimeScope.js +16 -5
- package/dist/{browser → inspector}/V8InspectorCaptureProjection.js +46 -8
- package/dist/{browser → inspector}/V8InspectorEndpoint.js +1 -1
- package/dist/{browser → inspector}/V8InspectorProvider.js +10 -13
- package/dist/inspector/providerIdentity.js +6 -0
- package/dist/javascript/recovery/RecoveryFiles.js +122 -0
- package/dist/javascript/recovery/WakaruCommand.js +119 -0
- package/dist/javascript/recovery/WakaruExecution.js +100 -0
- package/dist/javascript/recovery/WakaruProvider.js +96 -0
- package/dist/javascript/recovery/WakaruPublication.js +102 -0
- package/dist/javascript/recovery/WakaruRelease.js +29 -0
- package/dist/javascript/recovery/WakaruReport.js +134 -0
- package/dist/javascript/sourceMaps/SourceMapCodecProcess.js +37 -0
- package/dist/javascript/sourceMaps/SourceMapCodecProtocol.js +20 -0
- package/dist/javascript/sourceMaps/SourceMapCommand.js +177 -0
- package/dist/javascript/sourceMaps/SourceMapDecoder.js +61 -0
- package/dist/javascript/sourceMaps/SourceMapFormat.js +185 -0
- package/dist/javascript/sourceMaps/TraceSourceMap.js +138 -0
- package/dist/main/shutdown.js +8 -2
- package/dist/main/transport.js +24 -7
- package/dist/main.js +4 -18
- package/dist/native/AppleDispatchCoverage.js +58 -0
- package/dist/native/AppleDispatchMetadata.js +71 -509
- package/dist/native/AppleMachoFixups.js +292 -0
- package/dist/native/AppleMachoSelection.js +188 -0
- package/dist/native/AppleObjcCategories.js +59 -0
- package/dist/native/AppleObjcDispatchFacets.js +257 -0
- package/dist/native/AppleObjcProperties.js +68 -0
- package/dist/native/AppleObjcProtocols.js +2 -1
- package/dist/native/AppleSwiftDispatchFacets.js +150 -0
- package/dist/native/CommandRunner.js +2 -1
- package/dist/native/LldbCallTracer.js +278 -0
- package/dist/native/NativeCallObservation.js +135 -0
- package/dist/native/NativeMacOSProvider.js +151 -75
- package/dist/native/NativeMacOSProviderMetadata.js +47 -0
- package/dist/native/NativeMachoInspection.js +45 -14
- package/dist/native/NativeUiHelperRuntime.js +7 -3
- package/dist/native/NativeUiObservation.js +8 -4
- package/dist/native/NativeUiOutputBudget.js +8 -0
- package/dist/native/parsers/codesign.js +40 -5
- package/dist/native/parsers/demangle.js +6 -2
- package/dist/native/parsers/dyldInfo.js +13 -4
- package/dist/native/parsers/echoedPath.js +14 -0
- package/dist/native/parsers/lipo.js +14 -0
- package/dist/native/parsers/otool.js +1 -1
- package/dist/native/parsers/plist.js +174 -19
- package/dist/native/pwndbg/PwndbgCoreContext.js +160 -0
- package/dist/native/pwntools/PwntoolsDecoder.js +203 -0
- package/dist/native/pwntools/PwntoolsFailures.js +180 -0
- package/dist/native/pwntools/PwntoolsLayoutProvider.js +36 -0
- package/dist/native/pwntools/PwntoolsRecordedCrashProvider.js +75 -0
- package/dist/native/pwntools/PwntoolsRelease.js +19 -0
- package/dist/native/pwntools/PwntoolsResourceLimits.js +76 -0
- package/dist/native/pwntools/RecordedCrashSourceBindings.js +46 -0
- package/dist/native/pwntools/RecordedCrashStructureBindings.js +101 -0
- package/dist/process/DarwinProcessRunTokenReader.js +294 -0
- package/dist/process/ExecFileOutput.js +2 -0
- package/dist/process/OwnedCommand.js +113 -0
- package/dist/process/ProcessOwnership.js +263 -33
- package/dist/process/ProcessOwnershipObservation.js +161 -24
- package/dist/process/ProviderProcess.js +68 -20
- package/dist/{application → process/capture}/FilesystemSnapshot.js +20 -5
- package/dist/{application → process/capture}/ProcessCaptureCapability.js +16 -1
- package/dist/{application → process/capture}/ProcessCaptureError.js +17 -1
- package/dist/process/capture/ProcessCaptureLifecycle.js +615 -0
- package/dist/process/capture/ProcessHarness.js +452 -0
- package/dist/{application → process/capture}/ProcessSampling.js +2 -2
- package/dist/reference/ReferenceSourceReaderEntries.js +6 -1
- package/dist/server/createServer.js +70 -6
- package/dist/server/mcpClientMetadata.js +6 -3
- package/dist/server/promptCompletion.js +10 -3
- package/dist/server/registerAndroidTools.js +1 -1
- package/dist/server/registerApplicationTools/compareExportShapes.js +2 -2
- package/dist/server/registerApplicationTools/compareSourceToBundle.js +2 -2
- package/dist/server/registerApplicationTools/compareVersions.js +2 -2
- package/dist/server/registerApplicationTools/projectMobileApplicationGraph.js +43 -0
- package/dist/server/registerApplicationTools/traceFeature.js +1 -1
- package/dist/server/registerApplicationTools/traceSemantics.js +1 -1
- package/dist/server/registerApplicationTools.js +2 -0
- package/dist/server/registerBinaryDiagnosticsTools.js +17 -0
- package/dist/server/registerBrowserScenarioTool.js +6 -2
- package/dist/server/registerBrowserTools.js +13 -2
- package/dist/server/registerCloseLifecycleTool.js +1 -1
- package/dist/server/registerElectronTools.js +21 -7
- package/dist/server/registerEvidenceTools.js +1 -1
- package/dist/server/registerEvmTools.js +17 -0
- package/dist/server/registerJavaScriptRecoveryTool.js +17 -0
- package/dist/server/registerJavaScriptRuntimeObservationTools.js +9 -4
- package/dist/server/registerManagedTools.js +3 -3
- package/dist/server/registerManagedWorkflowTools/compareManagedMembers.js +2 -2
- package/dist/server/registerManagedWorkflowTools/contract.js +1 -1
- package/dist/server/registerManagedWorkflowTools/importManagedReconstruction.js +1 -1
- package/dist/server/registerManagedWorkflowTools/projectManagedApplicationGraph.js +1 -1
- package/dist/server/registerManagedWorkflowTools/verifyManagedNativeBoundaries.js +2 -2
- package/dist/server/registerNativeTools.js +1 -1
- package/dist/server/registerProcessComparisonTool.js +1 -1
- package/dist/server/registerPrompts.js +5 -1
- package/dist/server/registerRecordedCrashTools.js +17 -0
- package/dist/server/registerSessionTools.js +3 -3
- package/dist/server/registerWebModuleTool.js +17 -0
- package/dist/server/registerWebNetworkCaptureTool.js +28 -0
- package/dist/server/registerWebRuntimeTools.js +31 -0
- package/dist/server/registerWebScriptTool.js +18 -0
- package/dist/server/registerWebSourceLocationTool.js +17 -0
- package/dist/server/sessionAvailabilityPolicy.js +27 -12
- package/dist/server/sessionToolPolicies.js +1 -1
- package/dist/server/toolResult.js +1 -1
- package/dist/windows/WindowsOwnedProcess.js +3 -1
- package/install.sh +12 -2
- package/native/windows/README.md +5 -0
- package/native/windows/build/manifest.json +2 -2
- package/native/windows/build/rea-windows-x64.node +0 -0
- package/package.json +75 -26
- package/scripts/hopper-demo-x11.py +67 -8
- package/scripts/rea.mjs +19 -3
- package/skills/reverse-engineer-anything/SKILL.md +23 -3
- package/skills/reverse-engineer-anything/references/android-applications.md +2 -2
- package/skills/reverse-engineer-anything/references/javascript-applications.md +1 -1
- package/skills/reverse-engineer-anything/references/native-and-artifacts.md +61 -23
- package/third_party/README.md +60 -0
- package/third_party/evmole/LICENSE +21 -0
- package/third_party/evmole/README.md +22 -0
- package/third_party/pwndbg/LICENSE.md +21 -0
- package/third_party/pwndbg/README.md +23 -0
- package/third_party/pwntools/README.md +40 -0
- package/dist/application/AuthorizedArtifactInventory.js +0 -7
- package/dist/application/JavaScriptSemanticGraphProjection.js +0 -38
- package/dist/application/ProcessCaptureLifecycle.js +0 -299
- package/dist/application/ProcessHarness.js +0 -275
- package/dist/application/StoreFileLock.js +0 -124
- package/dist/application/runtime.js +0 -53
- package/dist/contracts/processCaptureExample.js +0 -2
- package/dist/domain/appleApplication.js +0 -181
- package/dist/domain/bytecodeProvider.js +0 -178
- package/dist/domain/customProtocolCapture.js +0 -137
- package/dist/domain/eventProcessTree.js +0 -225
- package/dist/domain/javascriptAstValues.js +0 -13
- package/dist/domain/javascriptSemanticTraversal.js +0 -30
- package/dist/domain/mobileApplicationInvestigation.js +0 -159
- package/dist/domain/packageAnalysis.js +0 -123
- package/dist/domain/peInspection.js +0 -197
- package/dist/domain/processCapture.js +0 -177
- package/dist/domain/processCaptureParsing.js +0 -21
- package/dist/domain/protocolCapture.js +0 -217
- package/dist/domain/runtimeIdentification.js +0 -212
- package/dist/generatedMcpToolCatalog.js +0 -37
- package/dist/native/NativeHostCapabilities.js +0 -23
- /package/dist/application/{AndroidAnalysisPort.js → DirectAnalysisDependencies.js} +0 -0
- /package/dist/application/{BinarySessionPort.js → WebModulePorts.js} +0 -0
- /package/dist/application/{ElectronActiveObservationPort.js → WebNetworkCapturePort.js} +0 -0
- /package/dist/application/{ElectronObservationPort.js → WebRuntimePort.js} +0 -0
- /package/dist/application/{FirmwareAnalysisPort.js → WebScriptArtifactPort.js} +0 -0
- /package/dist/application/{JavaScriptArtifactAnalysisTypes.js → WebSourceLocationPorts.js} +0 -0
- /package/dist/application/{JavaScriptRuntimeObservationPort.js → android/AndroidAnalysisPort.js} +0 -0
- /package/dist/application/{ArtifactExtractionDestination.js → artifacts/ArtifactExtractionDestination.js} +0 -0
- /package/dist/application/{AbortablePromise.js → binary/AbortablePromise.js} +0 -0
- /package/dist/{domain/electronStaticAnalysisTypes.js → application/binary/BinarySessionPort.js} +0 -0
- /package/dist/application/{BinarySessionStatus.js → binary/BinarySessionStatus.js} +0 -0
- /package/dist/{domain/javascriptSemanticValueTypes.js → application/binaryDiagnostics/BinaryLayoutPort.js} +0 -0
- /package/dist/application/{ElectronBoundaryGraph.js → javascript/ElectronBoundaryGraph.js} +0 -0
- /package/dist/application/{ElectronBoundaryGraphIpc.js → javascript/ElectronBoundaryGraphIpc.js} +0 -0
- /package/dist/application/{ElectronBoundaryGraphNative.js → javascript/ElectronBoundaryGraphNative.js} +0 -0
- /package/dist/application/{ElectronBoundaryGraphWindows.js → javascript/ElectronBoundaryGraphWindows.js} +0 -0
- /package/dist/application/{JavaScriptArtifactGraphBundlers.js → javascript/JavaScriptArtifactGraphBundlers.js} +0 -0
- /package/dist/application/{JavaScriptArtifactGraphEvidence.js → javascript/JavaScriptArtifactGraphEvidence.js} +0 -0
- /package/dist/application/{JavaScriptArtifactReconstructionInput.js → javascript/JavaScriptArtifactReconstructionInput.js} +0 -0
- /package/dist/application/{JavaScriptSemanticGraphEvidence.js → javascript/JavaScriptSemanticGraphEvidence.js} +0 -0
- /package/dist/artifacts/{NibArchive.js → apple/NibArchive.js} +0 -0
- /package/dist/{application/ArtifactInventory → artifacts/inventory}/policy.js +0 -0
- /package/dist/{application/ArtifactInventory → artifacts/inventory}/types.js +0 -0
- /package/dist/domain/{androidAnalysis.js → android/androidAnalysis.js} +0 -0
- /package/dist/domain/{electronStaticAnalysis.js → javascript/electronStaticAnalysis.js} +0 -0
- /package/dist/domain/{javascriptExportShapeComparisonIdentity.js → javascript/javascriptExportShapeComparisonIdentity.js} +0 -0
- /package/dist/domain/{javascriptRuntimeReconciliation.js → javascript/javascriptRuntimeReconciliation.js} +0 -0
- /package/dist/domain/{javascriptRuntimeReconciliationRuntime.js → javascript/javascriptRuntimeReconciliationRuntime.js} +0 -0
- /package/dist/domain/{javascriptSemanticCoverage.js → javascript/javascriptSemanticCoverage.js} +0 -0
- /package/dist/domain/{javascriptSemanticDerivedAnalysis.js → javascript/javascriptSemanticDerivedAnalysis.js} +0 -0
- /package/dist/domain/{javascriptSemanticGraphSerialization.js → javascript/javascriptSemanticGraphSerialization.js} +0 -0
- /package/dist/domain/{javascriptSemanticIr.js → javascript/javascriptSemanticIr.js} +0 -0
- /package/dist/domain/{javascriptSemanticQueryRelations.js → javascript/javascriptSemanticQueryRelations.js} +0 -0
- /package/dist/domain/{javascriptSemanticState.js → javascript/javascriptSemanticState.js} +0 -0
- /package/dist/domain/{javascriptSourceParser.js → javascript/javascriptSourceParser.js} +0 -0
- /package/dist/domain/{javascriptStaticAnalysisFindings.js → javascript/javascriptStaticAnalysisFindings.js} +0 -0
- /package/dist/domain/{javascriptStaticAnalysisState.js → javascript/javascriptStaticAnalysisState.js} +0 -0
- /package/dist/domain/{javascriptStaticAnalysisTypes.js → javascript/javascriptStaticAnalysisTypes.js} +0 -0
- /package/dist/domain/{managedApplicationGraphCoverage.js → managed/managedApplicationGraphCoverage.js} +0 -0
- /package/dist/domain/{managedApplicationGraphNodeCoverage.js → managed/managedApplicationGraphNodeCoverage.js} +0 -0
- /package/dist/domain/{nativeApiBoundary.js → native/nativeApiBoundary.js} +0 -0
- /package/dist/domain/{nativeDataType.js → native/nativeDataType.js} +0 -0
- /package/dist/domain/{nativeInstruction.js → native/nativeInstruction.js} +0 -0
- /package/dist/domain/{nativeMetadataRecovery.js → native/nativeMetadataRecovery.js} +0 -0
- /package/dist/domain/{nativeValueFlow.js → native/nativeValueFlow.js} +0 -0
- /package/dist/domain/{nativeValueTrace.js → native/nativeValueTrace.js} +0 -0
- /package/dist/domain/{processEvidenceProvider.js → process/processEvidenceProvider.js} +0 -0
- /package/dist/domain/{processTraceComparison.js → process/processTraceComparison.js} +0 -0
- /package/dist/domain/{processTraceDimensionProjection.js → process/processTraceDimensionProjection.js} +0 -0
- /package/dist/domain/{processTraceEvaluation.js → process/processTraceEvaluation.js} +0 -0
- /package/dist/{application → process/capture}/ProcessCaptureEnvironment.js +0 -0
- /package/dist/{application → process/capture}/ProcessCaptureJournal.js +0 -0
- /package/dist/{application → process/capture}/ProcessFilesystemEffects.js +0 -0
- /package/dist/{application → process/capture}/ProcessNormalization.js +0 -0
- /package/dist/{application → process/capture}/ProcessScenarioRuntimeValidation.js +0 -0
- /package/dist/{application → process/capture}/ProcessTimer.js +0 -0
- /package/dist/{application → process/capture}/TerminalRenderer.js +0 -0
package/README.md
CHANGED
|
@@ -10,14 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/rea-agents)
|
|
12
12
|
[](https://github.com/morluto/rea/actions/workflows/ci.yml)
|
|
13
|
-
[](
|
|
13
|
+
[](docs/product-catalog.json)
|
|
14
14
|
[](https://nodejs.org/)
|
|
15
|
+
[](https://skills.sh/morluto/rea/reverse-engineer-anything)
|
|
15
16
|
[](LICENSE)
|
|
16
17
|
[](https://discord.gg/GkcryMnJDM)
|
|
17
18
|
|
|
18
19
|
<a href="https://trendshift.io/repositories/82054?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-82054" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/82054" alt="morluto%2Frea | Trendshift" width="250" height="55"/></a>
|
|
19
20
|
|
|
20
|
-
[
|
|
21
|
+
**[Website](https://morluto.github.io/rea/) · [Guides](https://morluto.github.io/rea/guides/) · [Showcases](https://morluto.github.io/rea/showcase/)**
|
|
22
|
+
|
|
23
|
+
[Quick start](#quick-start) · [How REA works](#how-rea-works) · [What you can analyze](#what-you-can-analyze) · [Showcases](#showcases) · [FAQ](#faq) · [Documentation](#documentation)
|
|
21
24
|
|
|
22
25
|
<code>npx rea-agents setup</code>
|
|
23
26
|
|
|
@@ -51,679 +54,281 @@ REA connects your agent to tools for inspecting native binaries, JavaScript and
|
|
|
51
54
|
|
|
52
55
|
Setup registers REA with your agent and installs matching workflow instructions. Native analysis can use an existing Hopper or Ghidra installation; setup can optionally install Hopper with approval. Static JavaScript analysis needs neither engine.
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
After [setup](#quick-start), restart your agent and ask:
|
|
57
|
-
|
|
58
|
-
```text
|
|
59
|
-
Understand how search works in the Notes app, show me the evidence, and build a
|
|
60
|
-
similar feature for my project.
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Replace Notes with the app you want to understand, or ask for an overview first.
|
|
64
|
-
|
|
65
|
-
## The investigation model
|
|
66
|
-
|
|
67
|
-
<table>
|
|
68
|
-
<tr>
|
|
69
|
-
<td width="33%" valign="top">
|
|
70
|
-
<strong>Decompile</strong><br /><br />
|
|
71
|
-
Open an app and recover readable code, strings, names, and other clues about how it works.
|
|
72
|
-
</td>
|
|
73
|
-
<td width="33%" valign="top">
|
|
74
|
-
<strong>Understand</strong><br /><br />
|
|
75
|
-
Follow the code from one part of the app to another until the agent can explain how a feature actually works.
|
|
76
|
-
</td>
|
|
77
|
-
<td width="33%" valign="top">
|
|
78
|
-
<strong>Recreate</strong><br /><br />
|
|
79
|
-
Turn what the agent learned into a feature for your own product, adapted to your stack, interface, and requirements.
|
|
80
|
-
</td>
|
|
81
|
-
</tr>
|
|
82
|
-
</table>
|
|
83
|
-
|
|
84
|
-
REA shows how it reached its conclusions. It does not claim to recover original source code or automatically clone an application.
|
|
85
|
-
|
|
86
|
-
## Why REA
|
|
87
|
-
|
|
88
|
-
| | |
|
|
89
|
-
| ------------------------ | ----------------------------------------------------------------------------------------------------- |
|
|
90
|
-
| **Built for agents** | Ask what an app does and let your agent inspect it instead of guessing. |
|
|
91
|
-
| **CLI and MCP** | Run the same reverse-engineering capabilities from your terminal or agent. |
|
|
92
|
-
| **Guided setup** | Configure your agent, connect an existing analysis tool, or install Hopper with your approval. |
|
|
93
|
-
| **From insight to code** | Understand a feature, then build your own version in the same coding session. |
|
|
94
|
-
| **Local by design** | Analysis runs on your supported local host. REA does not upload the app to a hosted analysis service. |
|
|
95
|
-
| **Keeps context** | Investigate several apps without starting over for every question. |
|
|
57
|
+
> **[Visit the REA website](https://morluto.github.io/rea/)** for setup instructions, illustrated guides, and real case studies.
|
|
96
58
|
|
|
97
59
|
## Quick start
|
|
98
60
|
|
|
99
|
-
###
|
|
61
|
+
### Set up your agent
|
|
100
62
|
|
|
101
|
-
|
|
63
|
+
With Node.js and npm installed, run:
|
|
102
64
|
|
|
103
65
|
```bash
|
|
104
66
|
npx rea-agents setup
|
|
105
67
|
```
|
|
106
68
|
|
|
107
|
-
Choose
|
|
69
|
+
Choose your agents, review the proposed changes, and approve them. Setup adds
|
|
70
|
+
REA's MCP server and matching workflow instructions, with backups of existing
|
|
71
|
+
configuration. Restart your agent afterward.
|
|
108
72
|
|
|
109
|
-
Setup
|
|
73
|
+
Setup supports Claude Code, Codex, Cursor, Gemini CLI and
|
|
74
|
+
[other agents](docs/installation.md#supported-agents). See
|
|
75
|
+
[installation and setup](docs/installation.md) for provider configuration and
|
|
76
|
+
manual MCP registration.
|
|
110
77
|
|
|
111
|
-
###
|
|
78
|
+
### Ask your agent
|
|
112
79
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Install the skill separately
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
npx skills add morluto/rea --skill reverse-engineer-anything
|
|
80
|
+
```text
|
|
81
|
+
Understand how search works in the Notes app, show me the evidence, and build a
|
|
82
|
+
similar feature for my project.
|
|
121
83
|
```
|
|
122
84
|
|
|
123
|
-
|
|
124
|
-
Follow the skill's [conditional connection guide](skills/reverse-engineer-anything/SKILL.md#connect-only-when-needed):
|
|
125
|
-
prepare a scoped `npx rea-agents setup` plan if registration is missing, review
|
|
126
|
-
and approve its actual changes, then restart/reconnect and verify the tools.
|
|
127
|
-
Guided setup above installs a version-matched skill by default. The skills.sh
|
|
128
|
-
route uses repository instructions, which can be ahead of the released server;
|
|
129
|
-
see [released package and main](docs/installation.md#released-package-and-main).
|
|
85
|
+
Replace Notes with your target app and the feature you want to understand.
|
|
130
86
|
|
|
131
|
-
###
|
|
87
|
+
### Use the terminal
|
|
132
88
|
|
|
133
|
-
|
|
89
|
+
Inspect an extracted JavaScript/Electron app directory or ASAR:
|
|
134
90
|
|
|
135
91
|
```bash
|
|
136
92
|
npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json
|
|
137
93
|
```
|
|
138
94
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
MCP setup, Hopper, Ghidra, or executing the application. For a native app, configure
|
|
142
|
-
its engine first, then use `analyze` with that app's path. Run `doctor` when you
|
|
143
|
-
need diagnosis; it is not a prerequisite for each analysis.
|
|
144
|
-
|
|
145
|
-
### Install the rea command
|
|
146
|
-
|
|
147
|
-
Install the command-line interface:
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
curl -fsSL https://raw.githubusercontent.com/morluto/rea/main/install.sh | bash
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
The installer adds `rea` to your system and starts setup when run in a terminal. It requires Node.js and npm to be installed already.
|
|
95
|
+
The result includes modules, imports, Electron boundaries and their evidence.
|
|
96
|
+
Replace the path with your target, such as `"D:/apps/example"` on Windows.
|
|
154
97
|
|
|
155
|
-
|
|
98
|
+
To install the `rea` command for regular use:
|
|
156
99
|
|
|
157
100
|
```bash
|
|
158
101
|
npm install --global rea-agents
|
|
159
|
-
rea
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
Update either installation with `rea update`.
|
|
163
|
-
|
|
164
|
-
### Requirements
|
|
165
|
-
|
|
166
|
-
Static JavaScript inspection requires the Node/npm runtime only. Host and
|
|
167
|
-
external-tool prerequisites depend on the selected workflow; the native
|
|
168
|
-
provider guides describe their supported platforms.
|
|
169
|
-
|
|
170
|
-
- macOS 12 or newer
|
|
171
|
-
- Ubuntu 24.04+, Fedora 41+, or 64-bit Arch Linux
|
|
172
|
-
- Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+
|
|
173
|
-
- npm; REA does not require or install a particular npm version
|
|
174
|
-
|
|
175
|
-
Deep native binary analysis requires [Hopper](https://www.hopperapp.com/), [Ghidra](#ghidra-analysis-provider), or [IDA Pro](#ida-pro-analysis-provider). Hopper is separate software with its own license; its demo supports analysis with vendor-defined limits. Ghidra and IDA are bring-your-own providers.
|
|
176
|
-
|
|
177
|
-
Firmware region inspection and explicit extraction use caller-supplied Binwalk and Unblob on Linux. See [Firmware analysis](docs/firmware-analysis.md) for setup, provenance, resource limits and native handoff.
|
|
178
|
-
|
|
179
|
-
Static APK analysis uses a separately supplied headless JADX JAR and Java, with no emulator or APK execution. See [Android analysis](docs/android-analysis.md) for setup, CLI/MCP operations, coverage and public test fixtures.
|
|
180
|
-
|
|
181
|
-
Repository main includes experimental Windows x64 Ghidra support for native x86-64 PE applications on local NTFS, with bundled Job Object, private-DACL, and path-admission controls. Check the [release boundary](docs/installation.md#released-package-and-main) before expecting this from an npm package. See [Windows Ghidra P0](docs/windows-ghidra-p0.md) for prerequisites and verified scope.
|
|
182
|
-
|
|
183
|
-
If something is not working, run:
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
npx -y rea-agents@latest doctor
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
`doctor` checks your host, dependencies, analysis tools, and agent configuration without changing them. Use `--json` for structured diagnostics.
|
|
190
|
-
|
|
191
|
-
### Linux installation and troubleshooting
|
|
192
|
-
|
|
193
|
-
On macOS, setup can install Hopper in `~/Applications` after approval. It verifies the official download and does not need Homebrew or administrator privileges.
|
|
194
|
-
|
|
195
|
-
On supported Linux distributions, setup can install Hopper and its demo-session dependencies through your system package manager. You may see a system authorization prompt. Demo sessions use a private virtual display, leaving your desktop alone. See [Hopper installation](docs/installation.md#hopper) for download verification and platform details.
|
|
196
|
-
|
|
197
|
-
The normal Linux launcher is `/opt/hopper/bin/Hopper`. If Hopper was installed elsewhere:
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
export HOPPER_LAUNCHER_PATH=/absolute/path/to/Hopper
|
|
201
|
-
rea doctor --json
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
If doctor reports a missing analysis engine even though the file exists, inspect shared-library resolution with:
|
|
205
|
-
|
|
206
|
-
```bash
|
|
207
|
-
ldd /opt/hopper/bin/Hopper | grep 'not found'
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
Install the missing packages and rerun `rea setup`. The Linux demo needs Xvfb, Python 3, X11, and XTEST; approved setup installs these dependencies. If you use the curl installer, add `~/.local/bin` to your shell `PATH` when needed.
|
|
211
|
-
|
|
212
|
-
REA defaults `HOPPER_LAUNCHER_PATH` to `/Applications/Hopper Disassembler.app/Contents/MacOS/hopper` on macOS and `/opt/hopper/bin/Hopper` on Linux. Explicit configuration always takes precedence.
|
|
213
|
-
|
|
214
|
-
### Ghidra analysis provider
|
|
215
|
-
|
|
216
|
-
Already use Ghidra? REA can connect it to your agent on Linux x64 or macOS x64/arm64. It requires **Ghidra 12.1.4** and a **64-bit JDK 21**. On macOS, your Ghidra installation must also include the native decompiler for your architecture.
|
|
217
|
-
|
|
218
|
-
Set the installation paths, then run setup:
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
export GHIDRA_INSTALL_DIR=/absolute/path/to/ghidra_12.1.4_PUBLIC
|
|
222
|
-
export JAVA_HOME=/absolute/path/to/jdk-21 # optional when java and javac resolve from PATH
|
|
223
|
-
rea doctor --json
|
|
224
|
-
rea setup
|
|
225
|
-
rea providers --json
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
Setup checks the installations and saves their paths in your selected agents' configuration after approval. Ghidra and Java must already be installed; REA does not download or change them.
|
|
229
|
-
|
|
230
|
-
The adapter exposes inventory, function, memory and load-image inspection, plus atomic function annotation edits on Linux and macOS. `annotate_native_function` edits names and entry comments in the session database and returns a refreshed function dossier; executable bytes stay unchanged. Ghidra does not provide GUI controls through REA.
|
|
231
|
-
|
|
232
|
-
Opening a Ghidra target selects its provider; the first analysis query starts import and auto-analysis. That query can take longer than a client's default request deadline. See [first-query deadlines and recovery](docs/mcp-contracts.md#ghidra-first-query-deadlines-and-recovery) for an SDK example and cancellation recovery.
|
|
233
|
-
|
|
234
|
-
REA analyzes a temporary copy of the target and removes the temporary project when the session closes. Results identify what Ghidra observed and what it could not resolve. Decompilation produces pseudocode rather than the original source.
|
|
235
|
-
|
|
236
|
-
Ghidra also imports DOS MZ executables with an explicit 16-bit x86 real-mode profile. Function results include complete observed body ranges, distinguishing owned bytes from the enclosing span. See the [DOS analysis guide](docs/ghidra-dos.md) for addresses, packing, and verification boundaries.
|
|
237
|
-
See [optional NativeAOT metadata recovery](docs/ghidra-nativeaot.md) for the pinned
|
|
238
|
-
headless adapter, supported layout and existing native-tool workflow.
|
|
239
|
-
|
|
240
|
-
Windows Ghidra P0 uses bundled native controls for its read-only native x86-64 PE boundary on local NTFS; see the [Windows Ghidra P0 guide](docs/windows-ghidra-p0.md). See [Ghidra installation](docs/installation.md#ghidra), [provider evaluation](docs/provider-evaluation.md), and [testing](docs/testing.md) for configuration details, coverage, and real-provider verification.
|
|
241
|
-
|
|
242
|
-
To remove only REA-owned MCP registrations and the managed skill:
|
|
243
|
-
|
|
244
|
-
```bash
|
|
245
|
-
rea uninstall
|
|
246
|
-
rea uninstall --purge-data # also removes only ~/.rea/cache and ~/.rea/state
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
Uninstall preserves Hopper, Node.js, Evidence files, captures, unrelated skills, and other MCP servers. It refuses malformed client configuration and never follows purge-data symlinks.
|
|
250
|
-
|
|
251
|
-
### IDA Pro analysis provider
|
|
252
|
-
|
|
253
|
-
Already have [mrexodia/ida-pro-mcp](https://github.com/mrexodia/ida-pro-mcp) working? REA can reuse its MCP registration for read-only analysis of the current GUI target, or use its database supervisor to open and analyze a supplied binary headlessly.
|
|
254
|
-
|
|
255
|
-
```bash
|
|
256
|
-
export REA_IDA_MCP_CONFIG=/absolute/path/to/ida-mcp.json
|
|
257
|
-
rea function /absolute/path/to/program main --provider ida --json
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
The registration selects `attached` (default, legacy 1.4 tools) or `headless` (modern database supervisor). Setup can preserve this file reference in your selected agent's REA registration. REA adapts existing analysis contracts and manages its own headless database; it leaves an attached GUI database open and never saves it. Results stay live because external IDA database changes are not immutable snapshots.
|
|
261
|
-
|
|
262
|
-
See the [IDA provider guide](docs/ida-provider.md) for upstream installation links, exact configuration examples, Windows-native headless operation, lifecycle cleanup, and coverage. The initial real workflows cover a Windows GUI and Windows x64 headless IDA 9.3; other engine/platform combinations remain unverified. Use a package version that includes this adapter; repository main can lead the npm release.
|
|
263
|
-
|
|
264
|
-
### CLI or agent?
|
|
265
|
-
|
|
266
|
-
| If you want to… | Use |
|
|
267
|
-
| ---------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
268
|
-
| Ask an agent to investigate an app and build a feature | Run setup, restart your agent, then describe the task |
|
|
269
|
-
| Inspect or decompile one part of an app from the Terminal | `rea analyze` or `rea decompile` |
|
|
270
|
-
| Validate, canonicalize, or compare Evidence bundles | `rea evidence-import`, `rea evidence-export`, or `rea compare` |
|
|
271
|
-
| Map a local JavaScript/Electron application without executing it | `rea analyze PATH` or `rea analyze-javascript-application` |
|
|
272
|
-
| Reuse immutable analysis results without relaunching a provider | Pass `--snapshot /path/to/analysis.json` to a deep-analysis command |
|
|
273
|
-
| Import source as historical reference | `rea import-reference-source` |
|
|
274
|
-
| Capture or compare controlled process behavior | `rea capture-process` or `rea compare-process-captures` |
|
|
275
|
-
|
|
276
|
-
```bash
|
|
277
|
-
rea evidence-import /absolute/path/to/evidence/bundle.json
|
|
278
|
-
rea evidence-export /absolute/path/to/evidence/bundle.json /absolute/path/to/evidence/canonical.json
|
|
279
|
-
rea compare /absolute/path/to/evidence/left.json /absolute/path/to/evidence/right.json
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
Analyze a JavaScript application directory or ASAR without executing it:
|
|
283
|
-
|
|
284
|
-
```bash
|
|
285
|
-
rea analyze /absolute/path/to/releases/app.asar --json
|
|
286
|
-
rea analyze-javascript-application /absolute/path/to/releases/app.asar --json
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
For a directory or `.asar`, generic `rea analyze` automatically selects the
|
|
290
|
-
static JavaScript application provider when neither `--provider` nor
|
|
291
|
-
`--snapshot` is supplied. Both routes return the analysis and its Evidence
|
|
292
|
-
context inline.
|
|
293
|
-
|
|
294
|
-
Import an older source tree as a reference. REA keeps it separate from observations of the current app:
|
|
295
|
-
|
|
296
|
-
```bash
|
|
297
|
-
rea import-reference-source /absolute/path/to/source
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
Imports read the path supplied to the command. File names do not cause automatic omissions; files are represented by hashes and metadata. To exclude selected paths, set `REA_REFERENCE_SECRET_PATTERNS_JSON` to a JSON string array of ignore patterns. Exports never replace an existing file unless `--overwrite` is explicit.
|
|
301
|
-
|
|
302
|
-
Use a snapshot to save successful analysis results and reuse them on later runs. REA reuses a result only when the target bytes, operation, parameters, analysis tool, and settings match. It does not cache changes or cursor-dependent calls. Snapshot files stay local and use owner-only permissions.
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
|
-
rea analyze /absolute/path/to/app --snapshot /absolute/path/to/analysis/app.json
|
|
306
|
-
# The same exact query can be answered from that snapshot.
|
|
307
|
-
rea analyze /absolute/path/to/app --snapshot /absolute/path/to/analysis/app.json
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
Exact CLI cached-evidence reads happen before any provider process starts. In MCP sessions,
|
|
311
|
-
pass `snapshot_path` to `open_binary` to import a snapshot atomically while
|
|
312
|
-
opening its matching target; MCP providers may still start before a cached call
|
|
313
|
-
result is returned. Pass `snapshot_path` and, when required, `overwrite: true` to
|
|
314
|
-
`close_binary` to save atomically before Hopper resources are released. If the
|
|
315
|
-
save fails, REA deliberately leaves the session open.
|
|
316
|
-
|
|
317
|
-
## One prompt, a full investigation
|
|
318
|
-
|
|
319
|
-
```text
|
|
320
|
-
Reverse engineer the Notes app. Find how offline search works, explain it,
|
|
321
|
-
and build a version for my project using TypeScript and SQLite.
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
REA gives the agent a clear path from that request to working code:
|
|
325
|
-
|
|
326
|
-
| Step | What the agent does | REA tools |
|
|
327
|
-
| ---: | --------------------------------------- | ---------------------------------------------------------------- |
|
|
328
|
-
| 1 | Opens and identifies the binary | `open_binary`, `binary_overview` |
|
|
329
|
-
| 2 | Finds likely offline-search clues | `search_strings`, `search_procedures`, `list_names` |
|
|
330
|
-
| 3 | Connects those clues to executable code | `find_xrefs_to_name`, `xrefs`, `procedure_callers` |
|
|
331
|
-
| 4 | Reconstructs the relevant control flow | `get_call_graph`, `procedure_callees`, `procedure_info` |
|
|
332
|
-
| 5 | Decompiles the relevant routines | `procedure_pseudo_code`, `procedure_assembly`, `batch_decompile` |
|
|
333
|
-
| 6 | Builds the feature in your project | code adapted to your stack, product, and requirements |
|
|
334
|
-
|
|
335
|
-
REA handles the app analysis in steps 1 through 5. The agent performs step 6 with its normal file-editing and test tools, using what it learned about the app.
|
|
336
|
-
|
|
337
|
-
## What agents can do
|
|
338
|
-
|
|
339
|
-
- Investigate a feature you like and build a version tailored to your own product.
|
|
340
|
-
- Explain how a feature works when its source code is unavailable.
|
|
341
|
-
- Reconstruct an app's authentication, storage, update, or networking flow.
|
|
342
|
-
- Recover enough structure to document an undocumented format or interface.
|
|
343
|
-
- Trace a suspicious behavior from a string or symbol to the code that implements it.
|
|
344
|
-
- Turn recovered behavior into product features, tests, migration notes, ports, or interoperable replacements.
|
|
345
|
-
- Analyze Swift and Objective-C metadata without manually untangling every mangled symbol.
|
|
346
|
-
- Leave names, comments, and bookmarks in Hopper so human and agent analysis reinforce each other.
|
|
347
|
-
|
|
348
|
-
See [native investigation](docs/native-investigation.md) for keyed archives, instruction/call/type primitives, typed dispatch metadata, value traces and native desktop observation.
|
|
349
|
-
|
|
350
|
-
## Tool catalog for investigation
|
|
351
|
-
|
|
352
|
-
| Tool family | Count | Examples |
|
|
353
|
-
| ------------------------- | ----: | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
354
|
-
| Native inspection | 41 | functions, pseudocode, assembly, strings, symbols, calls, references, annotations, byte reads, and file offsets |
|
|
355
|
-
| Investigation workflows | 14 | app overviews, function dossiers, native APIs and dispatch, batch decompilation, feature traces, call paths, call graphs, Swift and Objective-C discovery |
|
|
356
|
-
| Native macOS utilities | 7 | Mach-O metadata, code signatures, plists, architectures, and Swift demangling without launching Hopper |
|
|
357
|
-
| Artifact graph | 5 | directory and package inventories, compiled Interface Builder files, Apple asset catalogs, and extraction |
|
|
358
|
-
| Managed PE/CLI | 7 | .NET identity, metadata, CIL instructions, native dependencies, reconstruction imports, and build comparisons |
|
|
359
|
-
| Firmware | 2 | Linux firmware region inspection and explicit extraction |
|
|
360
|
-
| Android APK | 5 | package and manifest declarations, class search, member inventories, method decompilation, and incoming static references |
|
|
361
|
-
| Browser observation | 9 | page structure, network metadata, scripts, source maps, WebMCP discovery, screenshots, and capture comparisons |
|
|
362
|
-
| Electron analysis | 5 | renderer observation, static app mapping, and static/runtime reconciliation |
|
|
363
|
-
| JavaScript runtime | 2 | Node/Electron Inspector target discovery, script locations, and execution-context events |
|
|
364
|
-
| Application workflows | 7 | cross-layer feature traces, build comparisons, historical source mapping, static return-shape comparison, and reconstruction checks |
|
|
365
|
-
| Workspace and observation | 21 | sessions, evidence bundles, navigation context, process/artifact/function comparisons, and open-question tracking |
|
|
366
|
-
|
|
367
|
-
The public interface describes what the agent is trying to learn. Providers decide how to answer. macOS utilities handle common semantic inspection without launching Hopper; Hopper handles deeper native analysis; the process harness records direct behavioral captures.
|
|
368
|
-
|
|
369
|
-
## Current status
|
|
370
|
-
|
|
371
|
-
REA supports native application, JavaScript, Electron, .NET, and browser investigation on macOS and Linux. Individual tools have platform and runtime prerequisites. `rea capabilities` and `rea providers` describe the binary-session providers and auxiliary operations; they are not an inventory of every browser, Android, or application workflow. Use the connected MCP tool list and `binary_session` tool availability for the full MCP surface, and the relevant guide for each tool's prerequisites. Repository main can be ahead of [the npm release](docs/installation.md#released-package-and-main).
|
|
372
|
-
|
|
373
|
-
Static Android APK inspection is verified on Linux with headless JADX; see [Android analysis](docs/android-analysis.md) for its separate prerequisites and coverage.
|
|
374
|
-
|
|
375
|
-
- **Native binaries:** Open Mach-O, ELF, PE, and Mac `.app` targets through a selected deep provider. Hopper and Ghidra cover broad inventory and function analysis; the IDA adapter supplies its documented read-only function/string operations. Hopper also accepts `.hop` databases and supports annotations.
|
|
376
|
-
- **Packages and resources:** Inspect directories, ZIP, APK, IPA, ASAR, plists, compiled Interface Builder files, and Apple asset catalogs. Artifact requests name the input and requested extraction or traversal directly; macOS DMG traversal also requires the host's native mounting support.
|
|
377
|
-
- **JavaScript and Electron:** Map modules, imports, source maps, routes, IPC channels, storage, and native add-ons without running the app. Compare builds and trace a feature across the recovered graph. Dynamic and ambiguous relationships remain unresolved. See [JavaScript application workflows](docs/javascript-application-workflows.md).
|
|
378
|
-
- **Websites:** Inspect a selected page in an existing Chrome-family browser. Capture page structure, network metadata, script evidence, and screenshots requested by the call. Passive observation does not navigate or execute page JavaScript. See [browser observation](docs/browser-observation.md).
|
|
379
|
-
- **Electron and Node runtime observation:** Inspect selected Electron pages or attach to a Node/Electron V8 Inspector target. Inspector observation records script locations and execution-context events; it does not infer imports, IPC activity, or which modules executed. See [runtime observation](docs/javascript-runtime-observation.md).
|
|
380
|
-
- **.NET assemblies:** Inspect metadata and CIL instructions, compare builds, and check declared native dependencies without loading or running the assembly. Imported decompiler output is labeled as analyst inference. See [managed-code analysis](docs/managed-code-analysis.md).
|
|
381
|
-
- **Controlled behavior capture:** Run process, browser, or Electron scenarios with the target, actions, and lifecycle declared in each request, then compare the resulting evidence. Missing observations cannot establish that two runs behaved the same way.
|
|
382
|
-
- **Evidence and comparison:** Save results with artifact identity, provider, locations, confidence, and limitations. Export or import bundles, compare artifacts and functions, and connect static findings to runtime observations without claiming causality from correlation.
|
|
383
|
-
- **Open questions:** Track unresolved findings, contradictions, and follow-up probes. Reconstruction checks report pass, fail, or unknown rather than treating missing evidence as a pass.
|
|
384
|
-
- **Guided workflows:** Start six [MCP investigation workflows](docs/mcp-prompts.md) with suggestions based on your current session.
|
|
385
|
-
|
|
386
|
-
Windows x64 Ghidra P0 supports native, non-managed, non-DLL x86-64 PE applications on fixed local NTFS with 25 read-only operations. Linux/macOS Ghidra additionally supports atomic session-scoped function names and entry comments. Ghidra has no GUI controls; Windows P0 has no mutation authority.
|
|
387
|
-
|
|
388
|
-
### Website observation with CDP
|
|
389
|
-
|
|
390
|
-
REA can inspect an already-running Chrome-family browser through a literal loopback CDP endpoint. Each request names the endpoint and target; an optional origin filter can narrow discovery:
|
|
391
|
-
|
|
392
|
-
```bash
|
|
393
|
-
rea list-browser-targets http://127.0.0.1:9222 --json
|
|
394
|
-
rea inspect-web-page http://127.0.0.1:9222 TARGET_ID --json
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
The eight passive browser tools work through both CLI and MCP. They inspect the selected page without navigating, clicking, or evaluating its JavaScript. Credentials, cookies, authorization headers, and raw payload values are not retained. A request selects whether to include script sources, accessibility text, screenshots, or console and payload summaries. REA cannot observe activity that happened before it attached. See [browser observation](docs/browser-observation.md) for browser startup, capture options, and limits.
|
|
398
|
-
|
|
399
|
-
### Controlled browser scenarios
|
|
400
|
-
|
|
401
|
-
`capture_browser_scenario` runs a caller-declared sequence of browser actions through
|
|
402
|
-
Playwright. Unlike passive observation, it can interact with the page. Each
|
|
403
|
-
step records evidence such as screenshots, page structure, navigation, and
|
|
404
|
-
network activity. Missing or truncated observations cannot establish that two
|
|
405
|
-
runs behaved the same way.
|
|
406
|
-
|
|
407
|
-
```bash
|
|
408
|
-
rea capture-browser-scenario ./scenario.json --json
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
Launch mode owns a temporary browser profile and removes it after terminating
|
|
412
|
-
the launched browser. Connect mode accepts one exact loopback CDP target and
|
|
413
|
-
disconnects without closing the external browser. The request supplies the
|
|
414
|
-
selected executable or endpoint, actions, and any origin or environment
|
|
415
|
-
selections needed by the scenario. Scenario JSON contains secret references and
|
|
416
|
-
environment-variable names, never secret values. The default capture retains
|
|
417
|
-
only the final URL; request `dom`, `accessibility`, or `screenshot` when an
|
|
418
|
-
interaction changes the page without navigating. For asynchronous updates,
|
|
419
|
-
wait for a page-specific result-ready condition before capture. See the
|
|
420
|
-
[browser scenario contract](docs/browser-scenario-contract.md), including its
|
|
421
|
-
interaction example.
|
|
422
|
-
|
|
423
|
-
### Node and Electron V8 Inspector observation
|
|
424
|
-
|
|
425
|
-
Node and Electron runtime observation attaches to an existing Inspector target named in the request:
|
|
426
|
-
|
|
427
|
-
```bash
|
|
428
|
-
rea list-javascript-runtime-targets http://127.0.0.1:9229 --json
|
|
429
|
-
rea observe-javascript-runtime http://127.0.0.1:9229 TARGET_ID \
|
|
430
|
-
--runtime-kind node --json
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
REA records script locations and execution-context events without evaluating
|
|
434
|
-
code or setting breakpoints. These observations do not establish import
|
|
435
|
-
relationships, event activity, IPC, process identity, or Electron roles. See
|
|
436
|
-
[Node and Electron runtime observation](docs/javascript-runtime-observation.md)
|
|
437
|
-
for the exact coverage.
|
|
438
|
-
|
|
439
|
-
Exact package, tool-family, provider, setup-client, schema, and CLI facts are generated from source in [`docs/product-catalog.json`](docs/product-catalog.json). PR CI verifies this catalog, narrative documentation, and generated schemas.
|
|
440
|
-
|
|
441
|
-
## Roadmap
|
|
442
|
-
|
|
443
|
-
The [current status](#current-status) section describes shipped capabilities. These are the next areas of work.
|
|
444
|
-
|
|
445
|
-
### Now
|
|
446
|
-
|
|
447
|
-
1. **Keep documentation accurate:** update the generated catalog and documentation checks when tools, providers, setup options, or versions change.
|
|
448
|
-
2. **Test more native binaries:** expand architecture and indirect-call coverage across Hopper and Ghidra.
|
|
449
|
-
|
|
450
|
-
### Next
|
|
451
|
-
|
|
452
|
-
1. **Connect more application layers:** add static extractors and runtime observations to feature traces.
|
|
453
|
-
2. **Extend .NET analysis:** improve comparisons of obfuscated assemblies and connect managed findings to verified native analysis. See the [managed-code guide](docs/managed-code-analysis.md).
|
|
454
|
-
3. **Compare more runtime behavior:** expand process, protocol, filesystem, reconnect, and version-comparison coverage.
|
|
455
|
-
|
|
456
|
-
### Later
|
|
457
|
-
|
|
458
|
-
1. **Expand browser and Electron interaction:** add scenario actions beyond the current click and wait operations.
|
|
459
|
-
2. **Observe native apps at runtime:** explore LLDB, Frida, system logs, and native API tracing.
|
|
460
|
-
3. **Evaluate more tools and targets:** assess IDA/Hex-Rays, Binary Ninja, Rizin, LIEF, Windows-native tools, mobile apps, and firmware.
|
|
461
|
-
|
|
462
|
-
Setup already lets you choose agent integration and Hopper installation. Support for installing additional analysis tools is future work, described in the [installation roadmap](docs/roadmap.md).
|
|
463
|
-
|
|
464
|
-
See [provider evaluation](docs/provider-evaluation.md) for coverage and remaining requirements, and the [native investigation guide](docs/native-investigation.md) for UI, dispatch, and value-flow analysis.
|
|
465
|
-
|
|
466
|
-
## Using REA with other agents
|
|
467
|
-
|
|
468
|
-
Setup offers supported agent integrations for selection. Existing REA registrations are selected by default; newly detected agents remain unselected until chosen. Any agent that supports local MCP servers can use the configuration below.
|
|
469
|
-
|
|
470
|
-
### Manual MCP configuration
|
|
471
|
-
|
|
472
|
-
<!-- x-release-please-start-version -->
|
|
473
|
-
|
|
474
|
-
```json
|
|
475
|
-
{
|
|
476
|
-
"mcpServers": {
|
|
477
|
-
"rea": {
|
|
478
|
-
"command": "npx",
|
|
479
|
-
"args": ["-y", "rea-agents@4.1.0", "mcp"]
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
```
|
|
484
|
-
|
|
485
|
-
<!-- x-release-please-end -->
|
|
486
|
-
|
|
487
|
-
Persistent registrations should use one exact package version. `rea setup`
|
|
488
|
-
maintains that pin, updates the bundled skill at the same time, and gives Codex
|
|
489
|
-
a 30-second startup allowance for a cold package-runner start. `rea update`
|
|
490
|
-
installs an exact release and verifies the new executable. It returns an
|
|
491
|
-
unapplied maintenance plan for existing REA integrations, with a scoped setup
|
|
492
|
-
command to review and approve their changes. Restart affected agents afterward.
|
|
493
|
-
|
|
494
|
-
MCP clients that support prompts can also discover six ordered investigation
|
|
495
|
-
workflows through `prompts/list`. Their optional identifier arguments use the
|
|
496
|
-
current session for bounded `completion/complete` suggestions; see
|
|
497
|
-
[Guided MCP prompts and completion](docs/mcp-prompts.md).
|
|
498
|
-
|
|
499
|
-
## How it works
|
|
500
|
-
|
|
501
|
-
```mermaid
|
|
502
|
-
flowchart LR
|
|
503
|
-
Agent["Agent"] --> REA["REA<br/>CLI + MCP"]
|
|
504
|
-
Terminal --> REA
|
|
505
|
-
REA --> Session["Target-bound session router"]
|
|
506
|
-
Session --> Registry["Deep-provider registry<br/>deterministic selection"]
|
|
507
|
-
Registry --> Hopper["Hopper provider"]
|
|
508
|
-
Registry --> Ghidra["Ghidra provider<br/>inventory + function analysis + annotations"]
|
|
509
|
-
Registry --> Ida["IDA MCP provider<br/>attached GUI or owned headless database"]
|
|
510
|
-
Hopper --> Runtime["Owned provider runtime<br/>deadline + bounded diagnostics + cleanup"]
|
|
511
|
-
Ghidra --> Runtime
|
|
512
|
-
Ida --> IdaRuntime["Upstream MCP lifecycle<br/>live observations + owned database cleanup"]
|
|
513
|
-
IdaRuntime --> Target
|
|
514
|
-
Session --> Native["Native macOS provider"]
|
|
515
|
-
Session --> Artifact["Artifact graph provider"]
|
|
516
|
-
REA --> Browser["Browser CDP provider"]
|
|
517
|
-
REA --> Android["Android static provider<br/>headless JADX adapter"]
|
|
518
|
-
Android --> Runtime
|
|
519
|
-
REA --> Firmware["Firmware providers<br/>Binwalk / Unblob adapters"]
|
|
520
|
-
Firmware --> Runtime
|
|
521
|
-
REA --> Process["Process capture provider"]
|
|
522
|
-
Runtime --> Target["Target software"]
|
|
523
|
-
Process --> Target
|
|
524
|
-
Native --> Target
|
|
525
|
-
Artifact --> Target
|
|
102
|
+
rea --help
|
|
526
103
|
```
|
|
527
104
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
The agent workflow above is the easiest way to use REA. For a one-off overview from the Terminal:
|
|
105
|
+
For native analysis, configure a provider first. See the
|
|
106
|
+
[CLI and Evidence guide](docs/cli.md) for native commands, provider selection,
|
|
107
|
+
snapshots and scripting.
|
|
533
108
|
|
|
534
|
-
|
|
535
|
-
npx -y rea-agents@latest analyze /Applications/Notes.app
|
|
536
|
-
npx -y rea-agents@latest inspect /Applications/Notes.app
|
|
537
|
-
npx -y rea-agents@latest search /Applications/Notes.app "offline"
|
|
538
|
-
npx -y rea-agents@latest function /Applications/Notes.app 0x1000
|
|
539
|
-
npx -y rea-agents@latest xrefs /Applications/Notes.app 0x1000
|
|
540
|
-
npx -y rea-agents@latest trace /Applications/Notes.app "offline"
|
|
541
|
-
npx -y rea-agents@latest compare /absolute/path/to/left-evidence.json /absolute/path/to/right-evidence.json
|
|
542
|
-
npx -y rea-agents@latest capabilities
|
|
543
|
-
npx -y rea-agents@latest providers
|
|
544
|
-
```
|
|
109
|
+
### Update REA
|
|
545
110
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
`function`, `xrefs`, and `trace` return the same Evidence envelopes as MCP.
|
|
111
|
+
REA changes quickly, and new releases include frequent bug fixes. Keep your
|
|
112
|
+
installation up to date.
|
|
549
113
|
|
|
550
|
-
|
|
114
|
+
For an npm-installed CLI:
|
|
551
115
|
|
|
552
116
|
```bash
|
|
553
|
-
npm install --global rea-agents
|
|
554
|
-
rea --help
|
|
555
117
|
rea update
|
|
556
|
-
rea mcp
|
|
557
118
|
```
|
|
558
119
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
### Choosing a deep-analysis provider
|
|
120
|
+
To refresh your agent registrations and skill, run the setup command printed
|
|
121
|
+
by the update.
|
|
562
122
|
|
|
563
|
-
|
|
123
|
+
If you use `npx`, update your agent setup with:
|
|
564
124
|
|
|
565
125
|
```bash
|
|
566
|
-
rea
|
|
567
|
-
rea analyze /absolute/path/to/program --provider hopper
|
|
568
|
-
REA_ANALYSIS_PROVIDER=hopper rea decompile /absolute/path/to/program 0x1000
|
|
569
|
-
```
|
|
570
|
-
|
|
571
|
-
For MCP, pass the optional selector on `open_binary`:
|
|
572
|
-
|
|
573
|
-
```json
|
|
574
|
-
{
|
|
575
|
-
"path": "/absolute/path/to/program",
|
|
576
|
-
"provider_id": "hopper"
|
|
577
|
-
}
|
|
126
|
+
npx rea-agents@latest setup
|
|
578
127
|
```
|
|
579
128
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
With `auto`, REA selects the only available tool that supports the target. If both are available, specify one before opening the target. The session keeps that choice until you explicitly switch or close it; a failure never silently switches tools. Artifact-only analysis can work without a native analysis tool.
|
|
129
|
+
Review the setup changes and restart your agent. For one-off CLI commands,
|
|
130
|
+
use `npx rea-agents@latest` followed by the command.
|
|
583
131
|
|
|
584
|
-
|
|
132
|
+
## How REA works
|
|
585
133
|
|
|
586
|
-
|
|
134
|
+
Your agent calls REA through MCP to inspect the target and trace relevant code.
|
|
135
|
+
REA returns findings with their evidence. The agent uses them to ask follow-up
|
|
136
|
+
questions, explain the behavior, or write and test an implementation.
|
|
137
|
+
CLI commands use the same workflows.
|
|
587
138
|
|
|
588
|
-
|
|
139
|
+

|
|
589
140
|
|
|
590
|
-
|
|
591
|
-
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
592
|
-
| `0` | The operation completed. Results may still include warnings, partial evidence, or unresolved questions. |
|
|
593
|
-
| `1` | The operation could not complete, for example because of invalid input, host permission denial, cancellation, or timeout. Structured output reports the reason when available. |
|
|
594
|
-
| `128 + N` | The process ended from signal `N`, where the shell or runtime preserves the conventional signal-derived status. |
|
|
141
|
+
[Open the full-size figure](website/public/assets/figures/rea-investigation-flow.svg).
|
|
595
142
|
|
|
596
|
-
|
|
597
|
-
status `cancelled` also exits `0`.
|
|
598
|
-
`setup` returns `1` for `needs_confirmation` or `needs_human`
|
|
599
|
-
because configuration is not ready; rerun it after approval or remediation.
|
|
600
|
-
`doctor` returns `1` when required checks for its readiness scope are unhealthy.
|
|
601
|
-
Unavailable optional provider prerequisites remain visible as informational
|
|
602
|
-
diagnostics and do not block setup or unrelated providers. Output format, full envelopes,
|
|
603
|
-
filters, and token controls never change the operation status.
|
|
143
|
+
<a id="current-status"></a>
|
|
604
144
|
|
|
605
|
-
|
|
606
|
-
cannot hide its failure:
|
|
145
|
+
## What you can analyze
|
|
607
146
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
rea inspect-artifact ./app.asar --json | jq . > inspection.json
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
## Current Hopper provider
|
|
147
|
+
REA requires Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+, plus npm.
|
|
148
|
+
Additional tools and host support depend on the target:
|
|
614
149
|
|
|
615
|
-
|
|
150
|
+
| Target | What REA returns | Requirements and guide |
|
|
151
|
+
| ---------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
152
|
+
| Native binaries | Pseudocode, assembly, strings, symbols, calls and references | Hopper, Ghidra or IDA; [native analysis](https://morluto.github.io/rea/guides/native/) |
|
|
153
|
+
| Offline ELF layout | Sections, segments, original symbols/relocations and static mitigation candidates | Caller-supplied pwntools on Linux x64; [binary diagnostics](docs/binary-diagnostics.md) |
|
|
154
|
+
| EVM bytecode | Dispatch selectors, byte offsets, inferred arguments and mutability | Local raw/hex carrier; [offline EVM guide](docs/evm-bytecode.md) |
|
|
155
|
+
| Recorded Linux crashes | Raw notes, every recorded thread's registers/signals and optional mapping candidates | Caller-supplied pwntools; optional GDB/pwndbg; [recorded crashes](docs/recorded-crashes.md) |
|
|
156
|
+
| JavaScript / Electron | Modules, imports, source maps, routes, IPC and native add-on relationships | Node.js and npm; [application analysis](https://morluto.github.io/rea/guides/javascript/) |
|
|
157
|
+
| Websites | Page structure, scripts, network observations and requested screenshots | A Chrome-family browser; [browser analysis](https://morluto.github.io/rea/guides/browser/) |
|
|
158
|
+
| Saved network captures | Requests, responses, exposed payloads and source locations | HAR; mitmdump on Linux for native mitmproxy captures; [capture guide](docs/web-network-captures.md) |
|
|
159
|
+
| .NET assemblies | Metadata, CIL instructions, declared native dependencies and build comparisons | Static inspection; [managed-code guide](docs/managed-code-analysis.md) |
|
|
160
|
+
| Android APKs | Manifest declarations, classes, decompiled methods and references | Headless JADX and a full JDK on Linux/macOS; [Android guide](docs/android-analysis.md) |
|
|
161
|
+
| Firmware | Regions, extraction results and native-analysis handoffs | Binwalk / Unblob on Linux; [firmware guide](docs/firmware-analysis.md) |
|
|
162
|
+
| Packages and resources | File inventories, digests, plists, Apple bundle anatomy and extracted resources | [Artifact and JavaScript guide](docs/javascript-artifact-reconstruction.md), [Apple applications](docs/apple-application-analysis.md) |
|
|
163
|
+
| Process behavior | Terminal output, interactions, exit and filesystem observations, and run comparisons | Linux/macOS with a native PTY; [process capture](docs/process-capture.md) |
|
|
616
164
|
|
|
617
|
-
|
|
165
|
+
Static JavaScript and .NET inspection read the supplied files without running
|
|
166
|
+
the application. Runtime capture runs or interacts with the selected target
|
|
167
|
+
using your user permissions; each runtime guide describes its effects.
|
|
618
168
|
|
|
619
|
-
|
|
169
|
+
<a id="choosing-a-deep-analysis-provider"></a>
|
|
620
170
|
|
|
621
|
-
|
|
171
|
+
Native formats and host support vary by provider. See
|
|
172
|
+
[Hopper and Ghidra setup](docs/installation.md#hopper), the
|
|
173
|
+
[IDA guide](docs/ida-provider.md), and
|
|
174
|
+
[experimental Windows Ghidra support](docs/windows-ghidra-p0.md).
|
|
175
|
+
Ghidra also supports [16-bit DOS analysis](docs/ghidra-dos.md).
|
|
176
|
+
For provider selection, see the [CLI guide](docs/cli.md#choose-a-provider).
|
|
177
|
+
Check [release availability](docs/installation.md#released-package-and-main)
|
|
178
|
+
for features added since the latest npm release.
|
|
622
179
|
|
|
623
|
-
##
|
|
180
|
+
## Showcases
|
|
624
181
|
|
|
625
|
-
|
|
626
|
-
with the requested working directory and environment. Filesystem observation
|
|
627
|
-
paths select what to snapshot. The process runs with your user permissions;
|
|
628
|
-
Process Capture records behavior and is not a security sandbox.
|
|
182
|
+
### DX-Ball: reconstruct a sound-pan calculation
|
|
629
183
|
|
|
630
|
-
|
|
184
|
+
Follow a sound call into its position-to-pan helper, inspect the instructions,
|
|
185
|
+
and turn incomplete pseudocode into C. The reconstruction passes 3,205
|
|
186
|
+
original-x86 cases and reproduces all 63 compiled function bytes.
|
|
631
187
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
rea capture-process ./reconstruction.json > reconstruction.json
|
|
635
|
-
rea compare-process-captures authority.json reconstruction.json
|
|
636
|
-
```
|
|
188
|
+
[Read the case study](https://morluto.github.io/rea/showcase/dx-ball/) ·
|
|
189
|
+
[Reconstruction repository](https://github.com/N0zoM1z0/dx-ball)
|
|
637
190
|
|
|
638
|
-
|
|
639
|
-
first terminal, interaction, exit, filesystem, or process divergence.
|
|
640
|
-
See [Process Capture](docs/process-capture.md) for scenario fields, limits, and
|
|
641
|
-
evidence boundaries.
|
|
191
|
+
### Notion: trace the Electron clipboard bridge
|
|
642
192
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
reinstall REA for the current platform and architecture.
|
|
193
|
+
Find the renderer's clipboard API, follow it through preload and IPC into the
|
|
194
|
+
main process, and inspect the rich clipboard format.
|
|
646
195
|
|
|
647
|
-
|
|
648
|
-
and `.asar.unpacked` companion files. Integrity failures identify the logical
|
|
649
|
-
path, declared and calculated SHA-256 values, and whether the entry was
|
|
650
|
-
unpacked; REA does not silently accept the mismatched artifact. If a supplied
|
|
651
|
-
ASAR declares unpacked companion bytes that are absent from the local artifact
|
|
652
|
-
set, REA keeps that occurrence as `unavailable` and continues analyzing the
|
|
653
|
-
embedded JavaScript instead of treating the missing native/resource bytes as
|
|
654
|
-
verified or absent.
|
|
196
|
+
[Read the case study](https://morluto.github.io/rea/showcase/notion/)
|
|
655
197
|
|
|
656
|
-
|
|
198
|
+
### TH04: recover a DOS bullet-ring calculation
|
|
657
199
|
|
|
658
|
-
|
|
200
|
+
Inspect the original PC-98 game's 16-bit instructions, recover the fixed and
|
|
201
|
+
aimed angle calculations, and compare the reconstructed C++ with the
|
|
202
|
+
historical compiler output.
|
|
659
203
|
|
|
660
|
-
|
|
204
|
+
[Read the case study](https://morluto.github.io/rea/showcase/th04/) ·
|
|
205
|
+
[Reconstruction repository](https://github.com/N0zoM1z0/th04)
|
|
661
206
|
|
|
662
|
-
|
|
207
|
+
If you've used REA on something interesting, we'd love to see it. Share your
|
|
208
|
+
case in an [issue](https://github.com/morluto/rea/issues) or a
|
|
209
|
+
[pull request](https://github.com/morluto/rea/pulls), including the target,
|
|
210
|
+
your question, how REA helped, and what you found.
|
|
663
211
|
|
|
664
212
|
## FAQ
|
|
665
213
|
|
|
666
214
|
<details>
|
|
667
|
-
<summary><strong>
|
|
215
|
+
<summary><strong>Which agents can use REA?</strong></summary>
|
|
668
216
|
|
|
669
|
-
|
|
217
|
+
Any agent that supports local MCP servers. Setup configures the
|
|
218
|
+
[supported agents](docs/installation.md#supported-agents); other clients can use
|
|
219
|
+
[manual MCP registration](docs/installation.md#mcp-registry).
|
|
670
220
|
|
|
671
221
|
</details>
|
|
672
222
|
|
|
673
223
|
<details>
|
|
674
|
-
<summary><strong>
|
|
224
|
+
<summary><strong>Do I need Hopper, Ghidra or IDA?</strong></summary>
|
|
675
225
|
|
|
676
|
-
|
|
226
|
+
Deep native analysis uses one of them. Static JavaScript and .NET inspection
|
|
227
|
+
work without a native analysis engine. Setup can install Hopper after approval;
|
|
228
|
+
Ghidra and IDA use your existing installations. See [provider setup](docs/installation.md#hopper).
|
|
677
229
|
|
|
678
230
|
</details>
|
|
679
231
|
|
|
680
232
|
<details>
|
|
681
|
-
<summary><strong>
|
|
233
|
+
<summary><strong>Do I need to start Hopper first?</strong></summary>
|
|
682
234
|
|
|
683
|
-
|
|
235
|
+
REA starts Hopper when an operation needs it. On macOS, a first-run dialog may
|
|
236
|
+
ask you to choose demo mode or activate your license. See
|
|
237
|
+
[Hopper startup and troubleshooting](docs/installation.md#launcher-paths-and-troubleshooting).
|
|
684
238
|
|
|
685
239
|
</details>
|
|
686
240
|
|
|
687
241
|
<details>
|
|
688
|
-
<summary><strong>
|
|
242
|
+
<summary><strong>What does installing the skill from skills.sh do?</strong></summary>
|
|
689
243
|
|
|
690
|
-
|
|
244
|
+
The skill supplies investigation instructions for your agent. Use `rea setup`
|
|
245
|
+
to register REA's MCP server and install the matching instructions, then restart
|
|
246
|
+
your agent. See [skill-only installation](docs/installation.md#skill-only-installation).
|
|
691
247
|
|
|
692
248
|
</details>
|
|
693
249
|
|
|
694
250
|
<details>
|
|
695
|
-
<summary><strong>
|
|
251
|
+
<summary><strong>What code does REA return?</strong></summary>
|
|
696
252
|
|
|
697
|
-
|
|
253
|
+
Native analysis returns pseudocode and assembly. JavaScript/Electron analysis
|
|
254
|
+
recovers modules and their relationships. Your agent uses these findings to
|
|
255
|
+
write and test an implementation; the [showcases](#showcases) give worked examples.
|
|
698
256
|
|
|
699
257
|
</details>
|
|
700
258
|
|
|
701
259
|
<details>
|
|
702
|
-
<summary><strong>
|
|
260
|
+
<summary><strong>Does REA upload my app?</strong></summary>
|
|
703
261
|
|
|
704
|
-
|
|
262
|
+
REA analyzes targets locally. Your agent receives the tool results, and its
|
|
263
|
+
model provider has its own data policy.
|
|
705
264
|
|
|
706
265
|
</details>
|
|
707
266
|
|
|
708
267
|
<details>
|
|
709
|
-
<summary><strong>
|
|
268
|
+
<summary><strong>What should I do if I hit a bug?</strong></summary>
|
|
269
|
+
|
|
270
|
+
Update first; a recent release may already fix it.
|
|
271
|
+
|
|
272
|
+
For an npm-installed CLI:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
rea update
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
For agent setup through `npx`:
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
npx rea-agents@latest setup
|
|
282
|
+
```
|
|
710
283
|
|
|
711
|
-
|
|
284
|
+
If you're using an agent, complete the [setup refresh](#update-rea) and restart
|
|
285
|
+
it. Retry the same task. If the problem persists, [open an issue](https://github.com/morluto/rea/issues)
|
|
286
|
+
with your REA version, target type, steps to reproduce and error output.
|
|
712
287
|
|
|
713
288
|
</details>
|
|
714
289
|
|
|
715
|
-
##
|
|
290
|
+
## Documentation
|
|
291
|
+
|
|
292
|
+
Start with the website's [worked guides](https://morluto.github.io/rea/guides/).
|
|
293
|
+
For exact options, prerequisites and result contracts:
|
|
716
294
|
|
|
717
|
-
|
|
295
|
+
- [Installation and setup](docs/installation.md): agent registration, provider configuration, updates and uninstall.
|
|
296
|
+
- [Readiness and troubleshooting](docs/installation.md#check-readiness-for-your-task): diagnose one agent or analysis engine.
|
|
297
|
+
- [CLI and Evidence](docs/cli.md): commands, provider selection, snapshots, import/export and exit statuses.
|
|
298
|
+
- [MCP contracts](docs/mcp-contracts.md) and [agent prompts](docs/mcp-prompts.md): tool results, sessions and guided investigations.
|
|
299
|
+
- [Tool catalog](docs/product-catalog.json): generated inventory of tools, providers and CLI commands.
|
|
300
|
+
- [Roadmap](docs/roadmap.md): planned work and capability trackers.
|
|
718
301
|
|
|
719
|
-
|
|
302
|
+
Report vulnerabilities through [SECURITY.md](SECURITY.md).
|
|
720
303
|
|
|
721
|
-
|
|
304
|
+
## Contributing
|
|
305
|
+
|
|
306
|
+
We'd love your help with REA! [Open an issue](https://github.com/morluto/rea/issues) to
|
|
307
|
+
report a bug or suggest a feature, or [send a pull request](https://github.com/morluto/rea/pulls)
|
|
308
|
+
to improve the code or docs.
|
|
309
|
+
|
|
310
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and checks,
|
|
311
|
+
[testing](docs/testing.md) for verification lanes, and the
|
|
312
|
+
[architecture map](docs/architecture.mermaid) for the project structure.
|
|
722
313
|
|
|
723
314
|
## Project links
|
|
724
315
|
|
|
725
|
-
[npm](https://www.npmjs.com/package/rea-agents) · [
|
|
316
|
+
[Website](https://morluto.github.io/rea/) · [npm](https://www.npmjs.com/package/rea-agents) · [skills.sh](https://skills.sh/morluto/rea/reverse-engineer-anything) · [Issues](https://github.com/morluto/rea/issues) · [Security](SECURITY.md)
|
|
726
317
|
|
|
727
318
|
## License
|
|
728
319
|
|
|
729
320
|
[MIT](LICENSE)
|
|
321
|
+
|
|
322
|
+
## Star history
|
|
323
|
+
|
|
324
|
+
<a href="https://www.star-history.com/?repos=morluto%2Frea&type=date">
|
|
325
|
+
<picture>
|
|
326
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date&theme=dark&legend=top-left" />
|
|
327
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
|
328
|
+
<img alt="REA GitHub star history" src="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
|
329
|
+
</picture>
|
|
330
|
+
</a>
|
|
331
|
+
|
|
332
|
+
## Disclaimer
|
|
333
|
+
|
|
334
|
+
REA provides tools for lawful reverse-engineering research, analysis, and reconstruction. You are responsible for obtaining any required authorization and complying with applicable laws. The project does not endorse illegal or unauthorized use.
|