@eyeauras/insight-cli 0.2.0 → 0.2.2
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/.cli-package-build.json +1 -1
- package/README.md +25 -0
- package/SKILL.md +38 -54
- package/dist/src/binary.d.ts +3 -0
- package/dist/src/binary.js +74 -0
- package/dist/src/capture.d.ts +3 -0
- package/dist/src/capture.js +220 -0
- package/dist/src/cli.js +57 -12
- package/dist/src/contexts.d.ts +5 -0
- package/dist/src/contexts.js +42 -16
- package/dist/src/debugger-caller.d.ts +17 -0
- package/dist/src/debugger-caller.js +129 -0
- package/dist/src/debugger-launch.d.ts +2 -0
- package/dist/src/debugger-launch.js +17 -0
- package/dist/src/debugger-results.d.ts +1 -0
- package/dist/src/debugger-results.js +8 -0
- package/dist/src/debugger-supervisor.js +56 -13
- package/dist/src/debugger.js +16 -7
- package/dist/src/die.d.ts +12 -0
- package/dist/src/die.js +127 -0
- package/dist/src/dnspy-runtime.d.ts +8 -0
- package/dist/src/dnspy-runtime.js +46 -0
- package/dist/src/dnspy.d.ts +22 -0
- package/dist/src/dnspy.js +160 -0
- package/dist/src/dotnet-diagnostics.d.ts +13 -0
- package/dist/src/dotnet-diagnostics.js +101 -0
- package/dist/src/frida-worker.d.ts +1 -0
- package/dist/src/frida-worker.js +125 -0
- package/dist/src/frida.d.ts +16 -0
- package/dist/src/frida.js +125 -0
- package/dist/src/ghidra-debugger-runtime.d.ts +7 -0
- package/dist/src/ghidra-debugger-runtime.js +31 -0
- package/dist/src/ghidra-processes.d.ts +6 -0
- package/dist/src/ghidra-processes.js +121 -0
- package/dist/src/ghidra.js +6 -6
- package/dist/src/ilspy.d.ts +7 -0
- package/dist/src/ilspy.js +122 -0
- package/dist/src/lldb.d.ts +10 -0
- package/dist/src/lldb.js +99 -0
- package/dist/src/llvm.d.ts +6 -0
- package/dist/src/llvm.js +133 -0
- package/dist/src/managed-heap.d.ts +4 -0
- package/dist/src/managed-heap.js +73 -0
- package/dist/src/managed-metadata.d.ts +11 -0
- package/dist/src/managed-metadata.js +66 -0
- package/dist/src/mitmproxy.d.ts +55 -0
- package/dist/src/mitmproxy.js +172 -0
- package/dist/src/native-inputs.d.ts +3 -2
- package/dist/src/native-inputs.js +9 -4
- package/dist/src/package-version.d.ts +1 -0
- package/dist/src/package-version.js +3 -0
- package/dist/src/procmon-config.d.ts +2 -0
- package/dist/src/procmon-config.js +15 -0
- package/dist/src/procmon-events.d.ts +13 -0
- package/dist/src/procmon-events.js +82 -0
- package/dist/src/procmon.d.ts +4 -0
- package/dist/src/procmon.js +107 -0
- package/dist/src/research.d.ts +11 -2
- package/dist/src/research.js +5 -3
- package/dist/src/runtime-catalog.d.ts +5 -10
- package/dist/src/runtime-catalog.js +4 -5
- package/dist/src/runtime-manager.d.ts +27 -3
- package/dist/src/runtime-manager.js +100 -159
- package/dist/src/runtime-selection.js +21 -4
- package/dist/src/server.d.ts +13 -0
- package/dist/src/server.js +21 -45
- package/dist/src/sevenzip.d.ts +15 -0
- package/dist/src/sevenzip.js +119 -0
- package/dist/src/strace.d.ts +10 -0
- package/dist/src/strace.js +71 -0
- package/dist/src/text-window.d.ts +11 -0
- package/dist/src/text-window.js +6 -0
- package/dist/src/tool-runtime/archives.d.ts +10 -0
- package/dist/src/{runtime-archives.js → tool-runtime/archives.js} +91 -24
- package/dist/src/tool-runtime/catalog.d.ts +3 -0
- package/dist/src/tool-runtime/catalog.js +13 -0
- package/dist/src/tool-runtime/commands.d.ts +9 -0
- package/dist/src/tool-runtime/commands.js +39 -0
- package/dist/src/tool-runtime/deadline.d.ts +11 -0
- package/dist/src/tool-runtime/deadline.js +32 -0
- package/dist/src/tool-runtime/definition.d.ts +73 -0
- package/dist/src/tool-runtime/definition.js +49 -0
- package/dist/src/tool-runtime/dotnet.d.ts +4 -0
- package/dist/src/tool-runtime/dotnet.js +22 -0
- package/dist/src/tool-runtime/identity.d.ts +6 -0
- package/dist/src/tool-runtime/identity.js +50 -0
- package/dist/src/tool-runtime/installer.d.ts +101 -0
- package/dist/src/tool-runtime/installer.js +180 -0
- package/dist/src/tool-runtime/java-arguments.d.ts +6 -0
- package/dist/src/tool-runtime/java-arguments.js +44 -0
- package/dist/src/tool-runtime/launch-worker.d.ts +1 -0
- package/dist/src/tool-runtime/launch-worker.js +58 -0
- package/dist/src/tool-runtime/run.d.ts +51 -0
- package/dist/src/tool-runtime/run.js +159 -0
- package/dist/src/tool-runtime/store.d.ts +15 -0
- package/dist/src/tool-runtime/store.js +219 -0
- package/dist/src/tool-runtime/supervisor.d.ts +57 -0
- package/dist/src/tool-runtime/supervisor.js +269 -0
- package/dist/src/tool-runtime/windows-job.d.ts +22 -0
- package/dist/src/tool-runtime/windows-job.js +43 -0
- package/dist/src/toolbox.d.ts +84 -0
- package/dist/src/toolbox.js +35 -0
- package/dist/src/tshark.d.ts +23 -0
- package/dist/src/tshark.js +174 -0
- package/dist/src/windbg.d.ts +14 -0
- package/dist/src/windbg.js +119 -0
- package/dist/src/workspace.d.ts +1 -0
- package/dist/src/workspace.js +6 -0
- package/package.json +5 -4
- package/references/agent-execution.md +36 -0
- package/references/agent-setup.md +61 -0
- package/references/artifacts.md +5 -0
- package/references/debugger.md +22 -0
- package/references/ilspy.md +33 -0
- package/references/managed-runtime.md +53 -7
- package/references/native/InsightPythonWheels.java +283 -2
- package/references/native/InsightTraceState.java +28 -13
- package/references/native-workflows.md +10 -0
- package/references/setup.md +2 -1
- package/runtime/managed/insight-heap/Azure.Core.dll +0 -0
- package/runtime/managed/insight-heap/Azure.Identity.dll +0 -0
- package/runtime/managed/insight-heap/Insight.Heap.csproj +1 -0
- package/runtime/managed/insight-heap/Insight.Heap.deps.json +391 -0
- package/runtime/managed/insight-heap/Insight.Heap.dll +0 -0
- package/runtime/managed/insight-heap/Insight.Heap.runtimeconfig.json +13 -0
- package/runtime/managed/insight-heap/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Diagnostics.NETCore.Client.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Diagnostics.Runtime.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Options.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Extensions.Primitives.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Identity.Client.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/runtime/managed/insight-heap/Microsoft.Security.AntiSSRF.dll +0 -0
- package/runtime/managed/insight-heap/NuGet.Config +1 -0
- package/runtime/managed/insight-heap/Program.cs +20 -0
- package/runtime/managed/insight-heap/README.md +16 -0
- package/runtime/managed/insight-heap/System.ClientModel.dll +0 -0
- package/runtime/managed/insight-heap/System.Memory.Data.dll +0 -0
- package/runtime/managed/insight-heap/System.Security.Cryptography.ProtectedData.dll +0 -0
- package/runtime/managed/insight-heap/dependencies.json +436 -0
- package/runtime/managed/insight-heap/notices/Azure.Core-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/Azure.Identity-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.NETCore.Client-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.Runtime-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client.Extensions.Msal-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/Microsoft.IdentityModel.Abstractions-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/Microsoft.Security.AntiSSRF-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/System.ClientModel-LICENSE.txt +21 -0
- package/runtime/managed/insight-heap/notices/System.Memory.Data-LICENSE.txt +23 -0
- package/runtime/managed/insight-heap/notices/System.Memory.Data-THIRD-PARTY-NOTICES.TXT +1418 -0
- package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-LICENSE.TXT +23 -0
- package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-THIRD-PARTY-NOTICES.TXT +309 -0
- package/runtime/managed/insight-heap/packages.lock.json +165 -0
- package/runtime/managed/insight-heap/provenance.json +146 -0
- package/runtime/managed/insight-heap/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll +0 -0
- package/runtime/managed/insight-managed/Insight.Managed.csproj +4 -0
- package/runtime/managed/insight-managed/Insight.Managed.deps.json +41 -0
- package/runtime/managed/insight-managed/Insight.Managed.dll +0 -0
- package/runtime/managed/insight-managed/Insight.Managed.runtimeconfig.json +13 -0
- package/runtime/managed/insight-managed/LICENSE.dnlib.txt +20 -0
- package/runtime/managed/insight-managed/NuGet.Config +1 -0
- package/runtime/managed/insight-managed/Program.cs +31 -0
- package/runtime/managed/insight-managed/README.md +16 -0
- package/runtime/managed/insight-managed/dnlib.dll +0 -0
- package/runtime/managed/insight-managed/packages.lock.json +13 -0
- package/runtime/managed/insight-managed/provenance.json +40 -0
- package/runtime/native/binary/README.md +22 -0
- package/runtime/native/binary/dependencies.json +166 -0
- package/runtime/native/binary/helper.cpp +44 -0
- package/runtime/native/binary/insight-binary-darwin-arm64 +0 -0
- package/runtime/native/binary/notices/Catch2-3.12.0--Catch2-3.12.0__LICENSE.txt +23 -0
- package/runtime/native/binary/notices/LIEF-LICENSE.txt +202 -0
- package/runtime/native/binary/notices/LIEF-attribution.txt +37 -0
- package/runtime/native/binary/notices/Melkor_ELF_Fuzzer-ac2495b--elf_fuzzer-master__LICENSE.txt +674 -0
- package/runtime/native/binary/notices/expected-1.3.1--expected-1.3.1__COPYING +121 -0
- package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__AUTHORS +3 -0
- package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__LICENSE +202 -0
- package/runtime/native/binary/notices/json-LICENSE.MIT +21 -0
- package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--LICENSE +553 -0
- package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--framework__LICENSE +553 -0
- package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__LICENSE +552 -0
- package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__framework__LICENSE +553 -0
- package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--LICENSE +26 -0
- package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--ext__robin_map__LICENSE +21 -0
- package/runtime/native/binary/notices/span-LICENSE_1_0.txt +23 -0
- package/runtime/native/binary/notices/span-attribution.txt +11 -0
- package/runtime/native/binary/notices/spdlog-1.17.0--spdlog-1.17.0__LICENSE +25 -0
- package/runtime/native/binary/notices/utfcpp-4.0.9--utfcpp-4.0.9__LICENSE +23 -0
- package/runtime/native/binary/provenance.json +48 -0
- package/runtime/native/child-deadline-linux-x64 +0 -0
- package/runtime/native/child-deadline-linux.c +24 -0
- package/runtime/native/child-deadline-linux.provenance.json +17 -0
- package/runtime/native/deadline-alarm-darwin-universal.dylib +0 -0
- package/runtime/native/deadline-alarm.c +33 -0
- package/runtime/native/deadline-alarm.provenance.json +22 -0
- package/runtime/native/deadline-exec-darwin-arm64 +0 -0
- package/runtime/native/deadline-exec.c +24 -0
- package/runtime/native/deadline-exec.provenance.json +17 -0
- package/runtime/native/dnspy-extension/Bridge.cs +58 -0
- package/runtime/native/dnspy-extension/Insight.DnSpy.csproj +13 -0
- package/runtime/native/dnspy-extension/Insight.DnSpy.x.dll +0 -0
- package/runtime/native/dnspy-extension/NuGet.Config +1 -0
- package/runtime/native/dnspy-extension/UNICODE-LOADER.md +26 -0
- package/runtime/native/dnspy-extension/packages.lock.json +6 -0
- package/runtime/native/dnspy-extension/provenance.json +27 -0
- package/runtime/native/dnspy-extension/upstream-public-build.snk +0 -0
- package/runtime/native/dnspy-extension/vendor-files.json +4341 -0
- package/runtime/native/file-version.ps1 +7 -0
- package/runtime/native/insight-registry-win-x64.dll +0 -0
- package/runtime/native/mitmproxy/bridge.py +180 -0
- package/runtime/native/mitmproxy/notices.json +476 -0
- package/runtime/native/sources/detours-LICENSE.md +23 -0
- package/runtime/native/sources/detours-e4bfd6b.tar.gz +0 -0
- package/runtime/native/sources/detours-provenance.json +10 -0
- package/runtime/native/tshark-layout.json +2247 -0
- package/runtime/native/windows-job/DirectoryAlias.cs +24 -0
- package/runtime/native/windows-job/Insight.WindowsJob.csproj +1 -0
- package/runtime/native/windows-job/Insight.WindowsJob.dll +0 -0
- package/runtime/native/windows-job/NuGet.Config +1 -0
- package/runtime/native/windows-job/OwnedJob.cs +79 -0
- package/runtime/native/windows-job/RegistryRedirect.cs +45 -0
- package/runtime/native/windows-job/packages.lock.json +21 -0
- package/runtime/native/windows-job/provenance.json +16 -0
- package/runtime/native/windows-job/windows-job.ps1 +8 -0
- package/runtime/native/windows-registry.c +21 -0
- package/runtime/native/windows-registry.def +3 -0
- package/runtime/native/windows-registry.provenance.json +14 -0
- package/runtime/notices/diagnostics-10.0.750501.txt +23 -0
- package/runtime/tool-catalog.json +290 -0
- package/runtime/toolbox.json +1401 -0
- package/skill-bundle/insight-artifacts/SKILL.md +30 -0
- package/skill-bundle/insight-artifacts/references/agent-execution.md +36 -0
- package/skill-bundle/insight-artifacts/references/artifacts.md +52 -0
- package/skill-bundle/insight-binary/SKILL.md +46 -0
- package/skill-bundle/insight-binary/references/agent-execution.md +36 -0
- package/skill-bundle/insight-capture/SKILL.md +56 -0
- package/skill-bundle/insight-capture/references/agent-execution.md +36 -0
- package/skill-bundle/insight-cli/SKILL.md +42 -0
- package/skill-bundle/insight-cli/references/agent-execution.md +36 -0
- package/skill-bundle/insight-cli/references/agent-setup.md +61 -0
- package/skill-bundle/insight-die/SKILL.md +49 -0
- package/skill-bundle/insight-die/references/agent-execution.md +36 -0
- package/skill-bundle/insight-dnspy/SKILL.md +65 -0
- package/skill-bundle/insight-dnspy/references/agent-execution.md +36 -0
- package/skill-bundle/insight-dotnet-dump/SKILL.md +46 -0
- package/skill-bundle/insight-dotnet-dump/references/agent-execution.md +36 -0
- package/skill-bundle/insight-dotnet-stack/SKILL.md +39 -0
- package/skill-bundle/insight-dotnet-stack/references/agent-execution.md +36 -0
- package/skill-bundle/insight-dotnet-trace/SKILL.md +45 -0
- package/skill-bundle/insight-dotnet-trace/references/agent-execution.md +36 -0
- package/skill-bundle/insight-frida/SKILL.md +67 -0
- package/skill-bundle/insight-frida/references/agent-execution.md +36 -0
- package/skill-bundle/insight-ghidra/SKILL.md +91 -0
- package/skill-bundle/insight-ghidra/references/administration.md +34 -0
- package/skill-bundle/insight-ghidra/references/agent-execution.md +36 -0
- package/skill-bundle/insight-ghidra/references/archive.md +32 -0
- package/skill-bundle/insight-ghidra/references/artifacts.md +52 -0
- package/skill-bundle/insight-ghidra/references/debugger.md +62 -0
- package/skill-bundle/insight-ghidra/references/extensions-and-sync.md +124 -0
- package/skill-bundle/insight-ghidra/references/managed-runtime.md +162 -0
- package/skill-bundle/insight-ghidra/references/native-workflows.md +122 -0
- package/skill-bundle/insight-ghidra/references/query-semantics.md +96 -0
- package/skill-bundle/insight-ghidra/references/recovery.md +53 -0
- package/skill-bundle/insight-ghidra/references/research.md +101 -0
- package/skill-bundle/insight-ghidra/references/setup.md +50 -0
- package/skill-bundle/insight-ilspy/SKILL.md +45 -0
- package/skill-bundle/insight-ilspy/references/agent-execution.md +36 -0
- package/skill-bundle/insight-ilspy/references/ilspy.md +33 -0
- package/skill-bundle/insight-interop/SKILL.md +54 -0
- package/skill-bundle/insight-interop/references/agent-execution.md +36 -0
- package/skill-bundle/insight-lldb/SKILL.md +54 -0
- package/skill-bundle/insight-lldb/references/agent-execution.md +36 -0
- package/skill-bundle/insight-llvm/SKILL.md +56 -0
- package/skill-bundle/insight-llvm/references/agent-execution.md +36 -0
- package/skill-bundle/insight-managed-heap/SKILL.md +43 -0
- package/skill-bundle/insight-managed-heap/references/agent-execution.md +36 -0
- package/skill-bundle/insight-managed-metadata/SKILL.md +52 -0
- package/skill-bundle/insight-managed-metadata/references/agent-execution.md +36 -0
- package/skill-bundle/insight-mitmproxy/SKILL.md +62 -0
- package/skill-bundle/insight-mitmproxy/references/agent-execution.md +36 -0
- package/skill-bundle/insight-overview/SKILL.md +79 -0
- package/skill-bundle/insight-overview/references/agent-execution.md +36 -0
- package/skill-bundle/insight-procmon/SKILL.md +49 -0
- package/skill-bundle/insight-procmon/references/agent-execution.md +36 -0
- package/skill-bundle/insight-re/SKILL.md +121 -0
- package/skill-bundle/insight-re/references/agent-execution.md +36 -0
- package/skill-bundle/insight-re/references/artifacts.md +52 -0
- package/skill-bundle/insight-re/references/recovery.md +53 -0
- package/skill-bundle/insight-sevenzip/SKILL.md +42 -0
- package/skill-bundle/insight-sevenzip/references/agent-execution.md +36 -0
- package/skill-bundle/insight-strace/SKILL.md +46 -0
- package/skill-bundle/insight-strace/references/agent-execution.md +36 -0
- package/skill-bundle/insight-tshark/SKILL.md +49 -0
- package/skill-bundle/insight-tshark/references/agent-execution.md +36 -0
- package/skill-bundle/insight-windbg/SKILL.md +46 -0
- package/skill-bundle/insight-windbg/references/agent-execution.md +36 -0
- package/skill-bundle/manifest.json +32 -0
- package/skills/insight-artifacts/SKILL.md +30 -0
- package/skills/insight-artifacts/references/agent-execution.md +36 -0
- package/skills/insight-artifacts/references/artifacts.md +52 -0
- package/skills/insight-binary/SKILL.md +46 -0
- package/skills/insight-binary/references/agent-execution.md +36 -0
- package/skills/insight-capture/SKILL.md +56 -0
- package/skills/insight-capture/references/agent-execution.md +36 -0
- package/skills/insight-die/SKILL.md +49 -0
- package/skills/insight-die/references/agent-execution.md +36 -0
- package/skills/insight-dnspy/SKILL.md +65 -0
- package/skills/insight-dnspy/references/agent-execution.md +36 -0
- package/skills/insight-dotnet-dump/SKILL.md +46 -0
- package/skills/insight-dotnet-dump/references/agent-execution.md +36 -0
- package/skills/insight-dotnet-stack/SKILL.md +39 -0
- package/skills/insight-dotnet-stack/references/agent-execution.md +36 -0
- package/skills/insight-dotnet-trace/SKILL.md +45 -0
- package/skills/insight-dotnet-trace/references/agent-execution.md +36 -0
- package/skills/insight-frida/SKILL.md +67 -0
- package/skills/insight-frida/references/agent-execution.md +36 -0
- package/skills/insight-ghidra/SKILL.md +91 -0
- package/skills/insight-ghidra/references/administration.md +34 -0
- package/skills/insight-ghidra/references/agent-execution.md +36 -0
- package/skills/insight-ghidra/references/archive.md +32 -0
- package/skills/insight-ghidra/references/artifacts.md +52 -0
- package/skills/insight-ghidra/references/debugger.md +62 -0
- package/skills/insight-ghidra/references/extensions-and-sync.md +124 -0
- package/skills/insight-ghidra/references/managed-runtime.md +162 -0
- package/skills/insight-ghidra/references/native-workflows.md +122 -0
- package/skills/insight-ghidra/references/query-semantics.md +96 -0
- package/skills/insight-ghidra/references/recovery.md +53 -0
- package/skills/insight-ghidra/references/research.md +101 -0
- package/skills/insight-ghidra/references/setup.md +50 -0
- package/skills/insight-ilspy/SKILL.md +45 -0
- package/skills/insight-ilspy/references/agent-execution.md +36 -0
- package/skills/insight-ilspy/references/ilspy.md +33 -0
- package/skills/insight-interop/SKILL.md +54 -0
- package/skills/insight-interop/references/agent-execution.md +36 -0
- package/skills/insight-lldb/SKILL.md +54 -0
- package/skills/insight-lldb/references/agent-execution.md +36 -0
- package/skills/insight-llvm/SKILL.md +56 -0
- package/skills/insight-llvm/references/agent-execution.md +36 -0
- package/skills/insight-managed-heap/SKILL.md +43 -0
- package/skills/insight-managed-heap/references/agent-execution.md +36 -0
- package/skills/insight-managed-metadata/SKILL.md +52 -0
- package/skills/insight-managed-metadata/references/agent-execution.md +36 -0
- package/skills/insight-mitmproxy/SKILL.md +62 -0
- package/skills/insight-mitmproxy/references/agent-execution.md +36 -0
- package/skills/insight-overview/SKILL.md +79 -0
- package/skills/insight-overview/references/agent-execution.md +36 -0
- package/skills/insight-procmon/SKILL.md +49 -0
- package/skills/insight-procmon/references/agent-execution.md +36 -0
- package/skills/insight-re/SKILL.md +22 -9
- package/skills/insight-re/references/agent-execution.md +36 -0
- package/skills/insight-re/references/artifacts.md +52 -0
- package/skills/insight-re/references/recovery.md +53 -0
- package/skills/insight-sevenzip/SKILL.md +42 -0
- package/skills/insight-sevenzip/references/agent-execution.md +36 -0
- package/skills/insight-strace/SKILL.md +46 -0
- package/skills/insight-strace/references/agent-execution.md +36 -0
- package/skills/insight-tshark/SKILL.md +49 -0
- package/skills/insight-tshark/references/agent-execution.md +36 -0
- package/skills/insight-windbg/SKILL.md +46 -0
- package/skills/insight-windbg/references/agent-execution.md +36 -0
- package/dist/src/runtime-archives.d.ts +0 -5
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Save ordinary research materials
|
|
2
|
+
|
|
3
|
+
`insight-cli artifacts save <path> --json` saves a file or a settled directory tree in
|
|
4
|
+
the selected profile's AppData. It needs Factory Update permission and does not require
|
|
5
|
+
Ghidra, Java, authentication, target/session selectors or evidence metadata. Relative input
|
|
6
|
+
paths resolve against the caller's working directory. Use `--help` for generated syntax.
|
|
7
|
+
|
|
8
|
+
Save existing project files in their existing format; no `notes.md`, `finding.md` or
|
|
9
|
+
`research/` layout is required. The saved copy is a checkpoint and does not replace the
|
|
10
|
+
project's canonical evidence location or its source-of-truth rules.
|
|
11
|
+
|
|
12
|
+
Write notes and useful external-tool outputs as ordinary files while investigating. When
|
|
13
|
+
the selected files are no longer being edited, save one file, a completed worker subfolder
|
|
14
|
+
or the relevant project folder. For a project without a prescribed layout, for example:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
insight-cli artifacts save ./research --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The receipt has `state: "saved"`, `path`, `kind` (`file` or `directory`), `files`, `bytes`
|
|
21
|
+
and `sha256`. `path` points to an ordinary browsable copy with the source basename and
|
|
22
|
+
relative layout. Empty files and empty directories are retained. File count counts regular
|
|
23
|
+
files; byte count counts their contents. A file's SHA-256 hashes its bytes; a directory's
|
|
24
|
+
SHA-256 hashes its canonical manifest of relative paths, kinds, file lengths and hashes.
|
|
25
|
+
The manifest is stored beside the content, outside the returned directory.
|
|
26
|
+
|
|
27
|
+
Before claiming a verified checkpoint, read the expected files at the returned `path` using
|
|
28
|
+
ordinary file tools. Preserve that path verbatim in the handoff, alongside the receipt;
|
|
29
|
+
profile and snapshot identifiers must not be reconstructed from memory. If access is denied,
|
|
30
|
+
retain the actual receipt and state that readback remains unverified.
|
|
31
|
+
|
|
32
|
+
The service copies and syncs data before publishing the completed snapshot. Failure does
|
|
33
|
+
not return a successful receipt or expose a partial completed snapshot. Source edits made
|
|
34
|
+
after a successful save do not change the copy. Treat saved copies as retained snapshots;
|
|
35
|
+
edit the original research folder and save a new copy for another checkpoint. Each call
|
|
36
|
+
creates a new saved copy, including a repeated call after a lost response.
|
|
37
|
+
|
|
38
|
+
Keep a directory stable for the save: detected concurrent edits are rejected. Copying
|
|
39
|
+
several files is not an atomic filesystem snapshot of a directory that other agents keep
|
|
40
|
+
changing. Symbolic links and special files are rejected rather than followed or silently
|
|
41
|
+
omitted. Select the actual intended regular file/directory. Do not save a directory that
|
|
42
|
+
contains the destination materials store. Traversal supports at most 100,000 entries and
|
|
43
|
+
128 levels to bound inventory memory and recursion. Disk/permission failures return nonzero.
|
|
44
|
+
|
|
45
|
+
The saved bytes establish what was retained. Commands, tool versions and interpretations
|
|
46
|
+
written in a note remain the author's statements, not execution attestations. No upload,
|
|
47
|
+
tool execution or Ghidra publication is performed by saving materials.
|
|
48
|
+
|
|
49
|
+
Profile deletion/configuration invalidation is blocked while retained materials exist,
|
|
50
|
+
as with retained research work. Close tool contexts normally; preserve snapshots separately
|
|
51
|
+
if retiring a profile. There is no automatic registration, cleanup policy, graph database
|
|
52
|
+
or additional read API: read the receipt's path with normal file tools.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Debug an input in its private context
|
|
2
|
+
|
|
3
|
+
Use the same `--session` and `--target` as static research. `debugger launch-offers` lists
|
|
4
|
+
available launchers and starts the owned GUI services when needed. `debugger launch` executes a
|
|
5
|
+
verified copy of the selected immutable input in an owned run directory. It accepts `--offer`,
|
|
6
|
+
`--args`, `--cwd`, a bounded launch timeout and the optional request ID. A second live process
|
|
7
|
+
uses another session; it does not replace this context's current process.
|
|
8
|
+
|
|
9
|
+
For local macOS `lldb`, `--stop-at-entry` launches stopped before normal program startup.
|
|
10
|
+
The response verifies a live `STOPPED` target and reports `stoppedAtEntry: true`. This is
|
|
11
|
+
useful for short programs: inspect/map/set breakpoints, then explicitly resume. Without the
|
|
12
|
+
flag, the existing immediate-run behavior is unchanged. Other offers reject this flag before
|
|
13
|
+
a CPU intent is reserved. An unknown stopped launch still requires ordinary request recovery.
|
|
14
|
+
|
|
15
|
+
Read `debugger status`, `modules`, `registers`, `stack-trace` and `traces`. Address conversion
|
|
16
|
+
uses `static-to-dynamic` and `dynamic-to-static`; memory and breakpoint commands take dynamic
|
|
17
|
+
addresses. Lists are paged. Read results identify the logical context and current trace, and
|
|
18
|
+
report whether the trace is connected or retained after disconnection. `--trace` selects a
|
|
19
|
+
saved trace within this context; IDs from another context are rejected.
|
|
20
|
+
|
|
21
|
+
Changing commands include interrupt, resume, step into/over/out and breakpoint set/remove.
|
|
22
|
+
Their optional request ID retrieves the recorded result without executing again. A genuinely
|
|
23
|
+
unknown CPU action remains uncertain; a later program counter alone does not prove how many
|
|
24
|
+
instructions executed. Read-only observation remains available for uncertain debugger actions.
|
|
25
|
+
Program merge does not roll back execution, debugger I/O or other process side effects.
|
|
26
|
+
|
|
27
|
+
Trace databases are checkpointed separately from the private program and verified by independent
|
|
28
|
+
packed-database readback before acknowledgment. Reopening after process replacement restores
|
|
29
|
+
saved trace data as disconnected. It does not restart the debuggee or reconstruct CPU execution.
|
|
30
|
+
Ordinary static program edits remain private and retain the usual merge/refresh behavior.
|
|
31
|
+
Static breakpoint bookmarks created by debugger actions also count as pending program changes.
|
|
32
|
+
They follow explicit merge/refresh and complex-change conflict rules; CPU execution does not
|
|
33
|
+
wait for publication, and publishing a program never resumes another session's process.
|
|
34
|
+
|
|
35
|
+
On macOS, launch enforces the selected working directory, including paths with spaces and
|
|
36
|
+
quotes. A GUI backend crash ends the owned live debuggee through its debugger controller.
|
|
37
|
+
Verified trace data retained before a lost action response is adopted on disconnected continuation,
|
|
38
|
+
unless a later observation already saved a newer view. The CPU action itself remains uncertain.
|
|
39
|
+
|
|
40
|
+
On macOS, use an installed local LLDB and an executable supported by that host. GUI startup
|
|
41
|
+
prepares the Python wheels already supplied with Ghidra in owned storage; it does not install
|
|
42
|
+
packages into system Python. A launcher's optional Python executable and Windows debugger
|
|
43
|
+
directory are Factory profile settings. Native Windows/Linux acceptance remains deferred.
|
|
44
|
+
|
|
45
|
+
Use generated help for exact flags. A retained static breakpoint bookmark may remain after its live trace placement is
|
|
46
|
+
removed; `trace_location_count` distinguishes current placements from that static metadata.
|
|
47
|
+
|
|
48
|
+
For a call observation, set the mapped function breakpoint **before** resuming from entry.
|
|
49
|
+
After the stop, check the PC against that address, then capture arguments and stack before
|
|
50
|
+
stepping. Step-out verifies return to the native caller in the same thread and stack;
|
|
51
|
+
return registers are observed without being modified. A competing stop or unavailable caller
|
|
52
|
+
does not count as a verified return. A requested step whose reply
|
|
53
|
+
or observed completion is unknown remains journaled; do not issue another CPU action to
|
|
54
|
+
try to recover a missing return. Retain its diagnostics and use request/status recovery.
|
|
55
|
+
|
|
56
|
+
For another intentional run, close and reopen the same owned context first: this disconnects
|
|
57
|
+
and retains the previous trace without relaunching it. Then launch with a distinct request ID
|
|
58
|
+
and desired arguments. A connected debugger remains busy even after its subject has exited;
|
|
59
|
+
selecting or reading its old trace is not a request to execute the subject again.
|
|
60
|
+
Map the new process and explicitly set/check its live breakpoints before each resume from
|
|
61
|
+
entry. Old static bookmarks do not establish new trace placements. Reopening restores each
|
|
62
|
+
trace's saved snap/thread, including inactive traces; choose its returned ID with `--trace`.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Managed extensions and synchronization
|
|
2
|
+
|
|
3
|
+
`insight-cli` keeps targets/sessions above tools. Both features below belong to the Ghidra
|
|
4
|
+
context/runtime selected by the existing profile; they introduce no new agent/session objects.
|
|
5
|
+
The Factory API uses the same command paths and options as these CLI examples.
|
|
6
|
+
|
|
7
|
+
## Consume a ready-built SDK extension
|
|
8
|
+
|
|
9
|
+
Use an unpacked standard Ghidra 12.1.2 extension module, with `Module.manifest` and
|
|
10
|
+
`extension.properties` at its root. Directory basename and property `name` must agree.
|
|
11
|
+
The module can contain compiled `lib/*.jar`, `data/languages` (including compiled Sleigh `.sla`,
|
|
12
|
+
`.ldefs`, `.pspec`, `.cspec`) and `ghidra_scripts`. Build the extension with its own upstream
|
|
13
|
+
SDK build before consumption. ZIP acquisition/extraction, dependency resolution, building a
|
|
14
|
+
third-party extension and publishing extensions are outside this local management contract.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
insight-cli ghidra extensions inspect --directory ./MyExtension --json
|
|
18
|
+
insight-cli ghidra extensions install --directory ./MyExtension --sha256 <content-sha256> --json
|
|
19
|
+
insight-cli ghidra extensions list --json
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Inspect computes the content identity without executing extension code. Install requires the
|
|
23
|
+
`Destructive` permission, consumes all regular files into profile storage and verifies the
|
|
24
|
+
copy. It never edits the installed SDK or depends on the original directory after consumption.
|
|
25
|
+
The identity covers sorted relative paths, SHA256 and size for every file; it is not a ZIP hash.
|
|
26
|
+
Symlinks/special files, hidden/traversing paths and incompatible version metadata reject.
|
|
27
|
+
Limits: 32 modules/profile, 8192 files and 256 MiB/module, 16 path components.
|
|
28
|
+
A name stays pinned to one content identity; different builds use different module names or profiles.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
insight-cli ghidra extensions disable --name MyExtension --json
|
|
32
|
+
insight-cli ghidra extensions enable --name MyExtension --json
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Stop the Factory IPC owner after changing the enabled set, then run the next ordinary command.
|
|
36
|
+
A running owner refuses changed runtime configuration. Immutable module copies remain retained
|
|
37
|
+
when disabled, so saved contexts can resume with their original language/type dependencies after
|
|
38
|
+
re-enabling. Existing private work and unknown request/publication journals are preserved.
|
|
39
|
+
Disabling the language required by a saved program does not convert that program to another language.
|
|
40
|
+
Enablement/install are desired-state/content operations; repeating the same input is idempotent.
|
|
41
|
+
No automatic extension updates or network/package-manager installation occur.
|
|
42
|
+
|
|
43
|
+
Discover what the installed SDK actually provides:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
insight-cli ghidra extensions capabilities --kind languages --filter MyProcessor --json
|
|
47
|
+
insight-cli ghidra extensions capabilities --kind analyzers --filter MyExtension --json
|
|
48
|
+
insight-cli ghidra extensions capabilities --kind plugins --filter MyExtension --json
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
These paged inventories return actual native IDs (and compiler IDs for languages); `managed`
|
|
52
|
+
on analyzer/plugin classes identifies consumed modules. Select a language/compiler using
|
|
53
|
+
`ghidra open --language <id> --compiler-spec <id>`. Use `analysis configure-analyzer --name <name>
|
|
54
|
+
--enabled true` and `analysis reanalyze` in an explicit context. Program writes remain complex
|
|
55
|
+
private changes and follow the existing saved-state verification/merge rules.
|
|
56
|
+
Extension scripts have explicit inventory IDs such as `extension:MyExtension/Example.java`;
|
|
57
|
+
run that ID through `scripts run`, never guess a process-global search path.
|
|
58
|
+
|
|
59
|
+
For a GUI plugin, use `ghidra plugins set --plugin <class-id> --enabled true|false` with
|
|
60
|
+
`--session` and `--target`. `plugins list` returns enabled managed plugins in that owned GUI tool.
|
|
61
|
+
Only classes from enabled managed modules can be toggled. Enablement is read back immediately;
|
|
62
|
+
its lifetime is the current GUI tool, rather than a promise to resurrect it after a crash.
|
|
63
|
+
Plugin constructors/disposal may change program state: the operation saves a private snapshot
|
|
64
|
+
and conservatively records a complex change. An uncertain effect is never replayed; close the
|
|
65
|
+
owned context when its live effect cannot be established. Configuration dialogs, arbitrary
|
|
66
|
+
plugin-specific option schemas, native libraries with platform installers and hot class unloading
|
|
67
|
+
are not promised by this module contract; the explicit script API remains available.
|
|
68
|
+
|
|
69
|
+
Extension code runs with the OS privileges of the owned JVM. Digest pinning establishes which
|
|
70
|
+
code runs, not a security sandbox or a guarantee of third-party compatibility. Workers, GUI,
|
|
71
|
+
inspection and publication helpers use the same verified enabled set. The storage-only local
|
|
72
|
+
Ghidra Server continues to use the pinned base SDK and does not run managed analysis plugins.
|
|
73
|
+
|
|
74
|
+
## Optional synchronization for one context
|
|
75
|
+
|
|
76
|
+
The default remains explicit `merge` and `refresh`. Reads keep the private view. Configure an
|
|
77
|
+
existing `(session, target, ghidra)` context explicitly:
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
insight-cli ghidra sync-policy get --session s_a --target t_exe --json
|
|
81
|
+
insight-cli ghidra sync-policy set --session s_a --target t_exe \
|
|
82
|
+
--publish after-edit --refresh before-edit --json
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
| Setting | Behavior |
|
|
86
|
+
| --- | --- |
|
|
87
|
+
| `--publish manual` | Local edits and saves do not publish automatically. |
|
|
88
|
+
| `--publish after-edit` | After a supported program edit has a verified saved acknowledgment, merge all pending work in that context. Also publishes pending work on explicit `ghidra save`. |
|
|
89
|
+
| `--publish after-save` | Ordinary edits stay private; explicit scoped `ghidra save` merges all pending work after saving. |
|
|
90
|
+
| `--refresh manual` | No automatic incoming update. |
|
|
91
|
+
| `--refresh before-edit` | Refresh before a program-edit command; any returned conflict stops that edit before dispatch. Safe incoming changes from the refresh remain retained. |
|
|
92
|
+
|
|
93
|
+
Supported program-edit commands include ordinary names/comments, types, bytes/assembly,
|
|
94
|
+
analysis and scripts. Policy excludes control commands (`open`, `close`, `merge`, `refresh`,
|
|
95
|
+
policy/discard), cross-target transfer, GUI/debugger, archive/project/server operations, file
|
|
96
|
+
exports, library databases and Version Tracking. Session-wide `save-all` saves privately;
|
|
97
|
+
use scoped `save` for automatic publication. Read-only queries never trigger refresh/publication.
|
|
98
|
+
Automatic refresh/publication also requires the current Factory `Update` permission, including
|
|
99
|
+
when the edit itself is gated by `Destructive`. Revocation prevents starting those automatic
|
|
100
|
+
effects; retrieval of a completed workflow does not repeat them. No background timers, watchers
|
|
101
|
+
or automatic semantic conflict resolution are introduced.
|
|
102
|
+
|
|
103
|
+
A successful automatic edit includes its normal local result plus `automatic.refresh` and/or
|
|
104
|
+
`automatic.publication`, final `pendingChanges` and `sharedState`. After a publication conflict,
|
|
105
|
+
the command fails with `state: conflict`, `localApplied: true` and the retained `local` result.
|
|
106
|
+
Nothing from that merge is published. An incoming conflict reports `phase: refresh` and
|
|
107
|
+
`localApplied: false`; the requested edit was not started. Lost local replies may report
|
|
108
|
+
`localOutcome: unknown`; they do not falsely assert that the local effect failed.
|
|
109
|
+
|
|
110
|
+
Automatic merge uses exactly the manual contract: any conflict prevents the whole publication;
|
|
111
|
+
only verified scalar categories combine after divergence; complex divergence retains both
|
|
112
|
+
versions. Use explicit refresh, inspect/resolve scalar conflicts, or transfer complex changes
|
|
113
|
+
onto a current base. A failed automatic workflow does not silently retry after resolution;
|
|
114
|
+
use a new request or explicit merge for the new intention.
|
|
115
|
+
|
|
116
|
+
Policy survives owner replacement. Optional request IDs (up to 128 characters) bind the local edit, incoming refresh and publication workflow. Repeating the same ID/input
|
|
117
|
+
retrieves its result or reconciles the original publication; it never replays a check-in or
|
|
118
|
+
uncertain script. The original workflow keeps its original policy even if policy changes later.
|
|
119
|
+
Retrying an earlier manual edit does not retroactively publish it after enabling automatic mode.
|
|
120
|
+
Without a request ID, a call is a new intention, as elsewhere in the facade.
|
|
121
|
+
|
|
122
|
+
The caller ID reserves the complete automatic workflow in the common profile namespace, even
|
|
123
|
+
when incoming conflicts prevent the local command from starting. It cannot be reused by an
|
|
124
|
+
explicit merge, close, export or administration operation. Internal child effects have derived IDs.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Managed Ghidra runtime
|
|
2
|
+
|
|
3
|
+
Use `ghidra install` for a complete compatible installation. Node 24+ is the bootstrap dependency;
|
|
4
|
+
no existing Java, Ghidra, Homebrew, Gradle, compiler or Python MCP bridge is required. Factory
|
|
5
|
+
profiles, permissions and OS secret storage remain in use. Follow the project's tool rules when
|
|
6
|
+
it specifies an external installation or server.
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
insight-cli profile create local
|
|
10
|
+
insight-cli --profile local permissions grant Update
|
|
11
|
+
insight-cli --profile local ghidra install
|
|
12
|
+
insight-cli --profile local ghidra status
|
|
13
|
+
insight-cli --profile local ghidra open ./client.exe --session new --json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`download` caches the complete pinned Ghidra/JDK archives, without selecting or starting a runtime.
|
|
17
|
+
`install` uses that cache or downloads missing archives, unpacks to a new stage, checks JDK 21 and
|
|
18
|
+
Ghidra 12.1.2, decompiles a known x86 function and starts a disposable local Ghidra Server. The
|
|
19
|
+
server probe authenticates its identity and reader/publisher permissions. Selection changes only
|
|
20
|
+
after all checks pass. The bridge and helper sources come from the version-matched npm package.
|
|
21
|
+
A failed install preserves its stage/diagnostics and the old selection. Retrying uses a fresh stage;
|
|
22
|
+
completed cached archives are reused. A later install/doctor/uninstall authenticates and stops
|
|
23
|
+
any leftover disposable probe server before proceeding; an unverified live identity blocks recovery. Interrupted partial downloads are never used as complete files.
|
|
24
|
+
|
|
25
|
+
On Windows, long Ghidra Java classpaths use an owned per-execution argument file, retained with
|
|
26
|
+
the process diagnostics. `javac` files use UTF-8; `java` launcher files use the Windows system
|
|
27
|
+
code page. Java 21's launcher still requires paths representable in that code page. Unmappable
|
|
28
|
+
characters fail before launch rather than selecting different files through lossy conversion.
|
|
29
|
+
|
|
30
|
+
`status` without scope is passive: selection, paths, missing components, installations, retained
|
|
31
|
+
stages, recorded checks and live process receipts. It works before installation. It does not start
|
|
32
|
+
Java or create a research workspace. `status --session S --target T` retains the scoped live health
|
|
33
|
+
check. `server status` also works without an installed runtime and explains missing prerequisites.
|
|
34
|
+
`doctor` explicitly runs disposable native decompiler/server probes and checks macOS LLDB Python.
|
|
35
|
+
It never imports a research target or publishes research changes. Readiness recorded by a doctor
|
|
36
|
+
run includes its runtime fingerprint; status identifies whether that record matches the selection.
|
|
37
|
+
|
|
38
|
+
## Local archives and external installations
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
insight-cli --profile local ghidra download
|
|
42
|
+
insight-cli --profile local ghidra install --offline
|
|
43
|
+
insight-cli --profile local ghidra install --archive ./ghidra.zip
|
|
44
|
+
insight-cli --profile local ghidra install --archive ./ghidra.zip \
|
|
45
|
+
--java-archive ./jdk.tar.gz --debugger-archive ./lldb-python.tar.gz --offline
|
|
46
|
+
insight-cli --profile local ghidra install --executable /tools/ghidra/ghidraRun
|
|
47
|
+
insight-cli --profile local ghidra install --executable /tools/ghidra \
|
|
48
|
+
--java /tools/jdk/bin/java --debugger-archive ./lldb-python.tar.gz --offline
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
`--executable` accepts the actual Ghidra launcher (`ghidraRun[.bat]`, or
|
|
52
|
+
`support/analyzeHeadless[.bat]`) or installation directory. It needs the complete compatible
|
|
53
|
+
installation, including host native components. A target EXE is not a Ghidra launcher.
|
|
54
|
+
Common Homebrew launcher wrappers are resolved through the adjacent complete `libexec` tree.
|
|
55
|
+
The external Ghidra tree is never modified or deleted. Java is delivered automatically unless
|
|
56
|
+
`--java` or `--java-archive` is supplied. Legacy profile `java`/`ghidraHome` configuration still works
|
|
57
|
+
when no explicit selection exists; an explicit selection takes precedence and never silently
|
|
58
|
+
falls back to profile paths after failure or uninstall.
|
|
59
|
+
|
|
60
|
+
Local archives are caller-selected inputs, consumed into owned hash-addressed copies before
|
|
61
|
+
extraction so later source edits cannot change the installed bytes. Optional `--archive-sha256` and
|
|
62
|
+
`--java-archive-sha256` and `--debugger-archive-sha256` check the expected bytes; the actual digests are recorded in the installation
|
|
63
|
+
identity. `--offline` prohibits network acquisition: provide/cache every required archive. On macOS,
|
|
64
|
+
an official Ghidra zip also needs the pinned prebuilt native archive in cache. The managed macOS
|
|
65
|
+
distribution already includes these natives. Executable modes are preserved; paths, links and
|
|
66
|
+
expanded sizes are checked during portable Node extraction. Downloads use exact assets retained
|
|
67
|
+
in `iXab3r/insight-cli` GitHub Releases, with hashes and sizes pinned in the installed package.
|
|
68
|
+
There is no runtime upstream/latest fallback; supplied archives and verified cache support offline use.
|
|
69
|
+
No external unzip, tar or Python executable is needed for extraction.
|
|
70
|
+
|
|
71
|
+
## Server, process and data ownership
|
|
72
|
+
|
|
73
|
+
The Ghidra distribution includes Ghidra Server. It uses the selected JDK and immutable tool code;
|
|
74
|
+
its repository, certificates, credentials and process settings are separate profile data.
|
|
75
|
+
Ordinary `open` starts it automatically. `server start` explicitly starts/enables it, and
|
|
76
|
+
`server stop` stops the identified owned server after all contexts are closed. It refuses to stop
|
|
77
|
+
a server under live clients. A later open can start it again; explicit `disconnect` disables shared
|
|
78
|
+
operations until `connect`/`start`. `server connect/disconnect` retain their connection-management API.
|
|
79
|
+
An external server remains configured through profile server/repository/account fields and Factory
|
|
80
|
+
secrets; `server stop` cannot stop that external service.
|
|
81
|
+
|
|
82
|
+
Code/cache/installation receipts live under profile AppData `runtime/`; research remains under
|
|
83
|
+
`workspace/`, and saved files under `materials/`. One selected immutable installation serves many
|
|
84
|
+
isolated JVM contexts; each has its own projects, home, settings, cache/temp and authenticated
|
|
85
|
+
endpoint. No per-agent copy of the Ghidra code distribution is required. This is process and data
|
|
86
|
+
isolation; it does not restrict arbitrary user scripts to an OS security sandbox.
|
|
87
|
+
|
|
88
|
+
Close scoped contexts and stop the owned server before selecting/reinstalling/removing a runtime.
|
|
89
|
+
A live receipt conservatively blocks these operations; it never authorizes killing a PID.
|
|
90
|
+
Download and doctor can run without switching the current runtime. Runtime commands serialize
|
|
91
|
+
within the Factory owner. Changing a selected runtime invalidates cached backend handles, without
|
|
92
|
+
removing saved research. There is no automatic version migration or floating upstream upgrade.
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
insight-cli --profile local ghidra close --session S --target T
|
|
96
|
+
insight-cli --profile local ghidra server stop
|
|
97
|
+
insight-cli --profile local permissions grant Destructive
|
|
98
|
+
insight-cli --profile local ghidra uninstall
|
|
99
|
+
# Optional cache deletion; research and external installations remain preserved:
|
|
100
|
+
insight-cli --profile local ghidra uninstall --purge-cache
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Uninstall removes only selected owned installation files. It preserves the selection as an
|
|
104
|
+
uninstalled receipt, so later research reports a missing runtime instead of changing bindings.
|
|
105
|
+
Archives remain reusable unless `--purge-cache` is selected. It removes recorded archives for
|
|
106
|
+
this installation, preserving other tools' cache and unrecorded legacy entries. Reinstalling the same archives restores
|
|
107
|
+
the same runtime identity. Sessions, private snapshots, unresolved publication journals, server
|
|
108
|
+
repositories and artifacts survive. Uninstall does not resolve an uncertain merge or replay it.
|
|
109
|
+
|
|
110
|
+
## Process inventory and recovery
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
insight-cli --profile local tools processes --tool ghidra
|
|
114
|
+
insight-cli --profile local tools processes show <process-id>
|
|
115
|
+
insight-cli --profile local tools processes stop <process-id>
|
|
116
|
+
insight-cli --profile local tools processes kill <process-id>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
These IDs describe executions, not new research selectors. Context records include the existing
|
|
120
|
+
session/target; server, GUI, debugger and helper roles remain separate. `stop` saves a selected
|
|
121
|
+
Ghidra context through its ordinary close path. Stopping a server requires closed contexts.
|
|
122
|
+
`kill` requires Destructive and explicitly interrupts verified owned work; it does not prove a
|
|
123
|
+
merge/save completed. Live debugger cleanup goes through the owning GUI so inferior termination
|
|
124
|
+
can be verified. Research and unknown journals are retained.
|
|
125
|
+
|
|
126
|
+
After an owner crash, inventory reconnects to authenticated owned endpoints without re-executing
|
|
127
|
+
research. macOS process birth times alone cannot prove recovered ownership; an ambiguous process
|
|
128
|
+
stays `unverified` and is not signalled. Original child handles and authenticated tool identities
|
|
129
|
+
provide the supported stop/kill authority. This is lifecycle management, not an OS security sandbox.
|
|
130
|
+
|
|
131
|
+
## Sources and host boundary
|
|
132
|
+
|
|
133
|
+
The catalog pins Ghidra 12.1.2 and Temurin JDK 21.0.11+10. macOS uses public Homebrew-built Ghidra
|
|
134
|
+
bottles with native components (macOS 14+, ARM64 or x64); no installed Homebrew is used. Linux x64
|
|
135
|
+
and Windows x64 use the official Ghidra zip and Temurin archive. The installed `runtime/tool-catalog.json` pins mirror assets; repository
|
|
136
|
+
`scripts/tool-distributions/` recipes retain upstream provenance. Published tool releases include
|
|
137
|
+
original licenses/notices and required source/build companions, independent of CLI releases.
|
|
138
|
+
Unsupported platforms fail explicitly and may use compatible external profile paths. Native
|
|
139
|
+
acceptance for this delivery is macOS ARM64; catalog availability is not Windows/Linux native proof.
|
|
140
|
+
|
|
141
|
+
The host provides Node/npm, OS frameworks, display/keychain access and debugger authorization.
|
|
142
|
+
macOS LLDB and its embedded Python come from Apple's developer tools; they are OS prerequisites,
|
|
143
|
+
not downloaded third-party Python dependencies. `doctor` reports a missing host debugger as a partial
|
|
144
|
+
failure even when static analysis/server pass. No root installation, developer-tools installer,
|
|
145
|
+
Gatekeeper disabling, shell-profile edit or global Java/Python selection is performed. Ghidra GUI
|
|
146
|
+
agents receive private copies of the Ghidra SDK's pinned debugger Python wheels.
|
|
147
|
+
|
|
148
|
+
## Managed debugger dependency
|
|
149
|
+
|
|
150
|
+
On macOS 15+ ARM64, download/install also prepares pinned LLDB 23.1.3 with its own
|
|
151
|
+
Python 3.15 and native library closure. It is a private Ghidra dependency; the separate
|
|
152
|
+
`insight-cli lldb` application retains its own installation. `--debugger-archive` supplies
|
|
153
|
+
the exact pinned debugger archive for offline installation, including an external Ghidra
|
|
154
|
+
selection. Status reports this dependency and doctor probes its actual Python interpreter.
|
|
155
|
+
GUI startup prepares it for legacy profiles as needed. The backend does not use Homebrew
|
|
156
|
+
or Python from Apple developer tools. OS debugger authorization is still a host prerequisite.
|
|
157
|
+
|
|
158
|
+
A GUI context pins the verified debugger receipt. Its supervisor verifies those code and
|
|
159
|
+
library bytes again before launching LLDB. Close contexts and stop the local server before
|
|
160
|
+
changing/removing the Ghidra runtime; uninstall removes this owned dependency while retaining
|
|
161
|
+
research and external installations. Existing running GUI contexts must be closed/reopened
|
|
162
|
+
to adopt a different backend. Other host debugger profiles retain their declared host requirements.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Selected native SDK workflows
|
|
2
|
+
|
|
3
|
+
These commands extend the pinned MCP catalog. All program calls select both `--session` and
|
|
4
|
+
`--target`; API callers use the same Factory command paths. Use generated help for flags.
|
|
5
|
+
Programs remain private until explicit `ghidra merge`. Every new program edit is a complex
|
|
6
|
+
change: saved-state verification is required, and a diverged shared base retains a conflict.
|
|
7
|
+
`refresh` does not silently overwrite either complex version. Program edits require Destructive
|
|
8
|
+
permission. File/database creation and VT decisions require Update; reads require ReadOnly.
|
|
9
|
+
|
|
10
|
+
## Compare and edit a private program
|
|
11
|
+
|
|
12
|
+
`ghidra changes compare --other-target <id> --other-session <id>` compares immutable saved
|
|
13
|
+
contexts with native ProgramDiff. Choose `--categories '["bytes","comments","symbols"]'`;
|
|
14
|
+
other supported categories are code_units, functions, references, context and properties.
|
|
15
|
+
Results retain address ranges and completion flags. This does not run a universal DB merger.
|
|
16
|
+
|
|
17
|
+
`ghidra memory patch-bytes --address 0x180000000 --expect-hex 9090 --bytes-hex 9091`
|
|
18
|
+
requires equal lengths of 1–4096 bytes and clears overlapping listing. `assembly preview` takes
|
|
19
|
+
`--instructions '["NOP"]'`; `assembly apply` also requires exact `--expect-hex`. Assembly uses
|
|
20
|
+
the selected program's language and processor context. It does not rebuild executable files.
|
|
21
|
+
|
|
22
|
+
`memory block-state --name <block>` returns current layout and a full digest for initialized
|
|
23
|
+
blocks up to 16 MiB. `split-block` and `move-block` require that digest, size and original start;
|
|
24
|
+
`join-blocks` requires both sizes/digests and compatible adjacent blocks. No uninitialized or
|
|
25
|
+
oversized-block edit is implied. `processor-context read|set|clear` addresses a named register
|
|
26
|
+
and a range of at most 65536 bytes. Read distinguishes explicit state from compiler defaults.
|
|
27
|
+
|
|
28
|
+
`namespaces list|create|update|delete` supports ordinary namespaces/classes; deletion requires
|
|
29
|
+
an empty container. `externals` supplies create/update/delete-library and create/update/delete-location.
|
|
30
|
+
Deletion refuses retained dependencies. It does not recursively erase referenced program state.
|
|
31
|
+
|
|
32
|
+
`decompiler ir --address <function> --simplification normalize --max-ops 1000` returns typed SSA
|
|
33
|
+
operations, varnodes, address spaces, sizes and block IDs. Options are known Boolean keys:
|
|
34
|
+
eliminate_unreachable, respect_read_only, infer_constant_pointers, split_structures, split_arrays.
|
|
35
|
+
Native timeout is 1–120 seconds. `completed` describes decompilation; `ir_complete` separately
|
|
36
|
+
reports a truncated operation list. The result is a bounded view, not a serialized HighFunction graph.
|
|
37
|
+
|
|
38
|
+
## Loader, exporter and type archives
|
|
39
|
+
|
|
40
|
+
`ghidra formats loaders --input <file>` consumes immutable bytes and lists actual installed
|
|
41
|
+
loader IDs, supported language/compiler specifications and native option definitions.
|
|
42
|
+
`ghidra open <file> --session new --loader BinaryLoader --language x86:LE:64:default
|
|
43
|
+
--loader-options '{"Base Address":"0x10000","File Offset":"0x2","Length":"0x6"}'`
|
|
44
|
+
selects a loader explicitly. Primitive options, native address and HexLong options are converted
|
|
45
|
+
and validated; unsupported complex option classes fail explicitly. One program belongs to a target.
|
|
46
|
+
|
|
47
|
+
For a mixed managed/native or protected PE, first inspect the installed loader options. If the
|
|
48
|
+
task needs its native view and CLI metadata parsing emits repeated warnings or prevents import,
|
|
49
|
+
an explicit PE import may select `--loader <PE-loader-ID-from-discovery>` together with
|
|
50
|
+
`--loader-options '{"Parse CLI headers (if present)":false}'`.
|
|
51
|
+
This is a per-target analysis choice: record it with the findings. For an alternative managed
|
|
52
|
+
import of the same bytes, use a separate disposable profile; targets within one profile reuse
|
|
53
|
+
the same immutable input identity. An output-limit failure means import/analysis is incomplete; inspect
|
|
54
|
+
the retained diagnostics and first-import recovery state before continuing. Do not treat warnings,
|
|
55
|
+
a killed worker or a partial snapshot as a successful analysis or blindly repeat publication.
|
|
56
|
+
|
|
57
|
+
`formats exporters` lists compatible native exporters and their options. `formats export
|
|
58
|
+
--exporter 'Raw Bytes' --ranges '[{"start":"0x10001","end":"0x10003"}]'
|
|
59
|
+
--output-directory <new-directory>` requires a format supporting restricted address sets.
|
|
60
|
+
All output/companion files are hashed and retained. Existing destinations are not overwritten.
|
|
61
|
+
Native completion receipts permit a repeated request ID to recover completed bytes without
|
|
62
|
+
another export. An incomplete/uncertain export cannot be replayed blindly.
|
|
63
|
+
|
|
64
|
+
`types define-layout --path /Owned/Record --packing 1 --fields
|
|
65
|
+
'[{"name":"flags","type":"uint","bit_size":3},{"name":"value","type":"ushort"}]'`
|
|
66
|
+
uses native structures and bitfields. Packing/alignment accept -1, zero or powers of two through
|
|
67
|
+
64; explicit byte offsets require packing -1. There are at most 256 fields. `types layout` returns
|
|
68
|
+
native source archive/universal IDs and bounded field/setting records. `types set-settings --path
|
|
69
|
+
/Owned/Number --settings '{"Format":1}'` uses actual definition names and native enum choices;
|
|
70
|
+
null clears an explicit setting. Inventory the type first; definitions differ between native types.
|
|
71
|
+
|
|
72
|
+
`types archive-export --types '["/Owned/Record"]' --output-directory <new-directory>` creates a
|
|
73
|
+
real GDT. `types archive-import --input <file.gdt> --types '["/Owned/Record"]'` consumes an
|
|
74
|
+
immutable archive up to 64 MiB and checks saved layout/source identity. A conflicting existing
|
|
75
|
+
layout is rejected. `types create-struct --replace-placeholder` replaces only an empty structure.
|
|
76
|
+
|
|
77
|
+
## Version porting and library identification
|
|
78
|
+
|
|
79
|
+
`version-tracking create --source-target <id> --source-session <id>` creates a persistent native
|
|
80
|
+
VT session inside the destination research scope. The returned tracking ID owns the exact saved
|
|
81
|
+
source/destination snapshots. `list`, `matches --tracking <id>` and `markup --tracking <id>
|
|
82
|
+
--source-address <address> --destination-address <address>` retain native correlator/score/markup
|
|
83
|
+
provenance. Exact function bytes and duplicate instruction correlators are selected; instruction
|
|
84
|
+
matching can ignore operands. Ambiguity is retained. Unmatched means no association in these
|
|
85
|
+
selected policies, not proof of no equivalent function. Inputs are limited to 10000 functions;
|
|
86
|
+
correlation has a 60-second monitor budget, match pages have at most 1000 rows.
|
|
87
|
+
|
|
88
|
+
`decide` explicitly accepts, rejects or resets an association; native one-to-one constraints apply.
|
|
89
|
+
Decisions survive owner replacement. Markup is inspected before ordinary facade edits transfer
|
|
90
|
+
selected changes. No automatic markup application/publication is performed. Context-changed flags
|
|
91
|
+
warn when current programs differ from the VT snapshots. Unknown decisions block further decisions
|
|
92
|
+
on that object until reconciliation; the same request ID never blindly repeats a native effect.
|
|
93
|
+
|
|
94
|
+
`libraries build-fid --library <name> --library-version <version> --output-directory <new-directory>`
|
|
95
|
+
creates a genuine native FID database. `libraries fid-query --database <file.fidb> --function <entry>
|
|
96
|
+
--threshold 1` reports native scores, library/version/variant, database digest and no-match semantics.
|
|
97
|
+
`build-bsim --library <name> --output-directory <new-directory>` creates embedded native BSim/H2;
|
|
98
|
+
`bsim-query --database <database.mv.db> --function <entry> --similarity 0.9` reports signature version,
|
|
99
|
+
similarity and significance. Required SDK components are supplied by the pinned Ghidra install;
|
|
100
|
+
there is no external database service to provision for these local workflows. Inputs are bounded to
|
|
101
|
+
1000 functions, output is bounded, and scores are not calibrated probabilities. Query databases
|
|
102
|
+
are consumed into private immutable storage; the caller's file is unchanged.
|
|
103
|
+
|
|
104
|
+
## Live target and retained trace
|
|
105
|
+
|
|
106
|
+
`debugger write-memory --address <dynamic-address> --expect-hex <bytes> --bytes-hex <bytes>`
|
|
107
|
+
and `write-register --register <name> --expect-value <hex> --value <hex>` require a stopped,
|
|
108
|
+
selected live target at its current live time. They refresh from the target before and after the
|
|
109
|
+
write. Preconditions are read-before-write checks, not atomic compare-exchange. Register width
|
|
110
|
+
is exact. These live effects do not enter program publication. A lost write response remains
|
|
111
|
+
uncertain and is never replayed, even when trace bytes subsequently show the requested value.
|
|
112
|
+
The owned copy of Ghidra 12.1.2's Python adapter corrects its SBProcess memory-write call; the
|
|
113
|
+
installed SDK/wheel remains unchanged and runtime fingerprint checks still apply.
|
|
114
|
+
|
|
115
|
+
`debugger timeline --limit 100` returns snapshot keys/times/schedules and continuation.
|
|
116
|
+
`objects --limit 100 --max-scan 10000` returns persistent object IDs, schema, path and lifespan
|
|
117
|
+
at a selected snap. `object-values --object-id <id> --key <exact-key>` reads one key, optionally
|
|
118
|
+
over at most 1000 snapshot keys. Values preserve address/object-reference types and 64-bit integers;
|
|
119
|
+
unknown Java value kinds are explicit. Object iteration is budgeted, paths replace the owned
|
|
120
|
+
staging root with `@target`, and IDs remain scoped to the selected trace. `schedule --schedule <time>`
|
|
121
|
+
parses/validates native schedules and reports `executed: false`. It does not execute emulation.
|
|
122
|
+
Saved trace queries remain available after disconnect; live execution is never resurrected.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Query semantics and work limits
|
|
2
|
+
|
|
3
|
+
Read operations return observations with their scope. A successful command can report a **partial
|
|
4
|
+
scan** or a **stopped emulation**: inspect the completion fields before drawing conclusions.
|
|
5
|
+
A backend placeholder/unavailable status is an error, including when nested in an otherwise
|
|
6
|
+
successful response. Generated help describes the facade's implementation, not an upstream stub.
|
|
7
|
+
|
|
8
|
+
## Static reachability and constants
|
|
9
|
+
|
|
10
|
+
`analysis find-dead-code --function-name <name-or-entry>` walks the selected function's decoded
|
|
11
|
+
basic blocks. `complete`, `unresolved_flow`, `scan` and `findings` distinguish a completed static
|
|
12
|
+
CFG result from a budget stop or unresolved indirect flow. Incomplete/unresolved analysis does
|
|
13
|
+
not classify blocks as unreachable. This is not a runtime-execution proof or an analysis of
|
|
14
|
+
undecoded bytes outside the function body.
|
|
15
|
+
|
|
16
|
+
`analysis detect-crypto-constants` searches initialized memory for the versioned exact signatures
|
|
17
|
+
listed under `database`. Matches identify constant-table candidates, not proof of cryptographic
|
|
18
|
+
execution. `--max-bytes` defaults to 1 MiB and is capped at 16 MiB. `complete: false` returns
|
|
19
|
+
`next_address`; continue with `--scan-from`, or increase the budget if the remaining lookahead
|
|
20
|
+
cannot fit. `search-byte-patterns` has the same byte budget/continuation behavior. Wildcard byte
|
|
21
|
+
pairs use `??`; an explicit mask uses `x`/`?`. Several signatures at one address are grouped in
|
|
22
|
+
`signatures`, with a primary `signature`.
|
|
23
|
+
|
|
24
|
+
## Types, prototypes and entries
|
|
25
|
+
|
|
26
|
+
`types get-valid-data-types` lists actual program types and successfully resolved builtins,
|
|
27
|
+
including category/path, size, alignment and source. It does not advertise a hard-coded list of
|
|
28
|
+
Windows names as installed types. `types validate-data-type` reports `resolved` and `diagnostics`.
|
|
29
|
+
Resolution is distinct from whether a particular memory location can accept that type.
|
|
30
|
+
|
|
31
|
+
`types validate-function-prototype` uses Ghidra's signature parser and an isolated temporary type
|
|
32
|
+
manager. It returns `valid`, `signature`, `diagnostics` and `persisted_changes: false`. Unsupported
|
|
33
|
+
compiler conventions and parse failures cannot pass as valid. The parser supports Ghidra's C
|
|
34
|
+
signature syntax; it is not a general C++ compiler. Validation checks the program modification
|
|
35
|
+
counter and does not persist types or mutate the function.
|
|
36
|
+
|
|
37
|
+
`listing get-entry-points` separates `entry_points` with Ghidra external-entry metadata from
|
|
38
|
+
`candidates` inferred from names or image base. An external entry designation is metadata;
|
|
39
|
+
the image base and a conventional `main` name are not proof of an OS startup address.
|
|
40
|
+
|
|
41
|
+
## Structured and bounded reads
|
|
42
|
+
|
|
43
|
+
Globals are records containing `address`, `name`, `type`, `type_path`, `size`, `xrefs`, `named`,
|
|
44
|
+
`typed`, namespace and symbol provenance. Parsing display text is unnecessary.
|
|
45
|
+
|
|
46
|
+
Facade-owned global/string/type/instruction scans accept `--max-scan` (default 100000, maximum
|
|
47
|
+
200000 visited inputs), `--timeout-seconds` (1–30), `--limit` and `--offset`. Output paging does not
|
|
48
|
+
increase the work budget. `scan.complete: false`, `truncated: true` and `total_known: false` mean
|
|
49
|
+
`total` counts only the scanned prefix; absence from that prefix is not a negative whole-program
|
|
50
|
+
finding. Narrow the query or raise its budget within the declared bound. Oversized string units
|
|
51
|
+
also stop a scan rather than silently claiming complete coverage. Returned string values are
|
|
52
|
+
bounded; check truncation fields.
|
|
53
|
+
|
|
54
|
+
Bounded string/instruction regex search supports literals, escapes, anchors, character classes
|
|
55
|
+
and at most one `.*` wildcard. Branching/nested repetition and unsupported patterns are rejected.
|
|
56
|
+
Use the literal `strings search --contains` convenience when no regex is needed.
|
|
57
|
+
|
|
58
|
+
Other pinned upstream operations explicitly return `scanPolicy.workBound: not-guaranteed`:
|
|
59
|
+
their page/output limit may follow a full scan, and transport cancellation does not prove backend
|
|
60
|
+
work stopped. The generic accepted result limit is 1 MiB. This policy is distinct from the actual
|
|
61
|
+
work counters on facade-owned scans; narrow function/address/filter selectors for costly upstream
|
|
62
|
+
analyses. Scores, similarities, estimated bounds, name suggestions and malware/IOC patterns carry
|
|
63
|
+
`semantics` with their algorithm and limitations. Confidence labels are not calibrated probabilities.
|
|
64
|
+
|
|
65
|
+
## Emulation
|
|
66
|
+
|
|
67
|
+
Supported policies are little-endian `x86-cdecl` (32 bits), `windows-x64` and `sysv-x64`. `--abi auto`
|
|
68
|
+
recognizes the supported compiler specifications, including Windows Clang. Unknown architectures
|
|
69
|
+
or compiler policies are explicit errors. Inputs run in isolated emulator memory and cannot patch
|
|
70
|
+
the program database.
|
|
71
|
+
|
|
72
|
+
`emulation emulate-function --arguments '[2]' --registers '{}' --memory '[]'` supplies unsigned
|
|
73
|
+
integer/pointer arguments using the ABI's register/stack layout. Explicit register inputs can
|
|
74
|
+
override argument registers; PC/SP remain ABI-owned. Initial memory accepts at most 64 regions
|
|
75
|
+
and 64 KiB in total. The ABI creates an aligned stack, correctly sized return address and Windows
|
|
76
|
+
shadow space. Floating-point/aggregate ABI lowering, OS services and imported process behavior
|
|
77
|
+
are not modeled by this helper.
|
|
78
|
+
|
|
79
|
+
Read `completed`, `hit_return`, `stop_reason`, `steps_executed`, `abi` and `pointer_bytes`.
|
|
80
|
+
`completed: false` is not a function result. Budgets count instructions: at most 100000 steps per
|
|
81
|
+
candidate and a 1–30 second timeout. Hash batches accept at most 256 candidates and 200000 total
|
|
82
|
+
instructions; incomplete candidates cannot match a target hash. Batch `complete`, `truncated`
|
|
83
|
+
and individual `outcomes` report the actual scope checked. This is independent from live debugging.
|
|
84
|
+
|
|
85
|
+
## Memory and signature edits
|
|
86
|
+
|
|
87
|
+
`memory create-block` accepts hex/base64 initial bytes, optional size/fill byte, uninitialized
|
|
88
|
+
memory, overlay, volatile and comment inputs. Content determines omitted size; size is capped
|
|
89
|
+
at 16 MiB. Uninitialized memory cannot carry initial bytes or nonzero fill. Overlays retain their
|
|
90
|
+
distinct address-space identity. The saved database is independently checked for metadata and
|
|
91
|
+
the entire initialized-content digest before acknowledgment. `functions set-function-prototype`
|
|
92
|
+
also accepts `--calling-convention`; saved signature types and convention are verified.
|
|
93
|
+
|
|
94
|
+
These remain complex private edits. Request IDs retrieve retained outcomes; lost responses are
|
|
95
|
+
reconciled from saved effects, never blindly re-created. Publish with explicit merge on the
|
|
96
|
+
unchanged shared base; structural divergence still retains a conflict.
|