@eyeauras/insight-cli 0.2.0 → 0.2.1

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.
Files changed (384) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/README.md +25 -0
  3. package/SKILL.md +38 -54
  4. package/dist/src/binary.d.ts +3 -0
  5. package/dist/src/binary.js +74 -0
  6. package/dist/src/capture.d.ts +3 -0
  7. package/dist/src/capture.js +220 -0
  8. package/dist/src/cli.js +57 -12
  9. package/dist/src/contexts.d.ts +5 -0
  10. package/dist/src/contexts.js +42 -16
  11. package/dist/src/debugger-caller.d.ts +17 -0
  12. package/dist/src/debugger-caller.js +129 -0
  13. package/dist/src/debugger-launch.d.ts +2 -0
  14. package/dist/src/debugger-launch.js +17 -0
  15. package/dist/src/debugger-results.d.ts +1 -0
  16. package/dist/src/debugger-results.js +8 -0
  17. package/dist/src/debugger-supervisor.js +56 -13
  18. package/dist/src/debugger.js +16 -7
  19. package/dist/src/die.d.ts +12 -0
  20. package/dist/src/die.js +127 -0
  21. package/dist/src/dnspy-runtime.d.ts +8 -0
  22. package/dist/src/dnspy-runtime.js +46 -0
  23. package/dist/src/dnspy.d.ts +22 -0
  24. package/dist/src/dnspy.js +160 -0
  25. package/dist/src/dotnet-diagnostics.d.ts +13 -0
  26. package/dist/src/dotnet-diagnostics.js +101 -0
  27. package/dist/src/frida-worker.d.ts +1 -0
  28. package/dist/src/frida-worker.js +125 -0
  29. package/dist/src/frida.d.ts +16 -0
  30. package/dist/src/frida.js +125 -0
  31. package/dist/src/ghidra-debugger-runtime.d.ts +7 -0
  32. package/dist/src/ghidra-debugger-runtime.js +31 -0
  33. package/dist/src/ghidra-processes.d.ts +6 -0
  34. package/dist/src/ghidra-processes.js +121 -0
  35. package/dist/src/ghidra.js +6 -6
  36. package/dist/src/ilspy.d.ts +7 -0
  37. package/dist/src/ilspy.js +122 -0
  38. package/dist/src/lldb.d.ts +10 -0
  39. package/dist/src/lldb.js +99 -0
  40. package/dist/src/llvm.d.ts +6 -0
  41. package/dist/src/llvm.js +133 -0
  42. package/dist/src/managed-heap.d.ts +4 -0
  43. package/dist/src/managed-heap.js +73 -0
  44. package/dist/src/managed-metadata.d.ts +11 -0
  45. package/dist/src/managed-metadata.js +66 -0
  46. package/dist/src/mitmproxy.d.ts +55 -0
  47. package/dist/src/mitmproxy.js +172 -0
  48. package/dist/src/native-inputs.d.ts +3 -2
  49. package/dist/src/native-inputs.js +9 -4
  50. package/dist/src/package-version.d.ts +1 -0
  51. package/dist/src/package-version.js +3 -0
  52. package/dist/src/procmon-config.d.ts +2 -0
  53. package/dist/src/procmon-config.js +15 -0
  54. package/dist/src/procmon-events.d.ts +13 -0
  55. package/dist/src/procmon-events.js +82 -0
  56. package/dist/src/procmon.d.ts +4 -0
  57. package/dist/src/procmon.js +107 -0
  58. package/dist/src/research.d.ts +11 -2
  59. package/dist/src/research.js +5 -3
  60. package/dist/src/runtime-catalog.d.ts +5 -10
  61. package/dist/src/runtime-catalog.js +4 -5
  62. package/dist/src/runtime-manager.d.ts +27 -3
  63. package/dist/src/runtime-manager.js +100 -159
  64. package/dist/src/runtime-selection.js +21 -4
  65. package/dist/src/server.d.ts +13 -0
  66. package/dist/src/server.js +21 -45
  67. package/dist/src/sevenzip.d.ts +15 -0
  68. package/dist/src/sevenzip.js +119 -0
  69. package/dist/src/strace.d.ts +10 -0
  70. package/dist/src/strace.js +71 -0
  71. package/dist/src/text-window.d.ts +11 -0
  72. package/dist/src/text-window.js +6 -0
  73. package/dist/src/tool-runtime/archives.d.ts +10 -0
  74. package/dist/src/{runtime-archives.js → tool-runtime/archives.js} +91 -24
  75. package/dist/src/tool-runtime/catalog.d.ts +3 -0
  76. package/dist/src/tool-runtime/catalog.js +13 -0
  77. package/dist/src/tool-runtime/commands.d.ts +9 -0
  78. package/dist/src/tool-runtime/commands.js +39 -0
  79. package/dist/src/tool-runtime/deadline.d.ts +11 -0
  80. package/dist/src/tool-runtime/deadline.js +32 -0
  81. package/dist/src/tool-runtime/definition.d.ts +73 -0
  82. package/dist/src/tool-runtime/definition.js +49 -0
  83. package/dist/src/tool-runtime/dotnet.d.ts +4 -0
  84. package/dist/src/tool-runtime/dotnet.js +22 -0
  85. package/dist/src/tool-runtime/identity.d.ts +6 -0
  86. package/dist/src/tool-runtime/identity.js +50 -0
  87. package/dist/src/tool-runtime/installer.d.ts +101 -0
  88. package/dist/src/tool-runtime/installer.js +180 -0
  89. package/dist/src/tool-runtime/launch-worker.d.ts +1 -0
  90. package/dist/src/tool-runtime/launch-worker.js +58 -0
  91. package/dist/src/tool-runtime/run.d.ts +51 -0
  92. package/dist/src/tool-runtime/run.js +159 -0
  93. package/dist/src/tool-runtime/store.d.ts +15 -0
  94. package/dist/src/tool-runtime/store.js +219 -0
  95. package/dist/src/tool-runtime/supervisor.d.ts +57 -0
  96. package/dist/src/tool-runtime/supervisor.js +266 -0
  97. package/dist/src/tool-runtime/windows-job.d.ts +22 -0
  98. package/dist/src/tool-runtime/windows-job.js +43 -0
  99. package/dist/src/toolbox.d.ts +84 -0
  100. package/dist/src/toolbox.js +35 -0
  101. package/dist/src/tshark.d.ts +23 -0
  102. package/dist/src/tshark.js +174 -0
  103. package/dist/src/windbg.d.ts +14 -0
  104. package/dist/src/windbg.js +119 -0
  105. package/dist/src/workspace.d.ts +1 -0
  106. package/dist/src/workspace.js +6 -0
  107. package/package.json +5 -4
  108. package/references/agent-execution.md +36 -0
  109. package/references/agent-setup.md +61 -0
  110. package/references/artifacts.md +5 -0
  111. package/references/debugger.md +22 -0
  112. package/references/ilspy.md +33 -0
  113. package/references/managed-runtime.md +48 -7
  114. package/references/native/InsightPythonWheels.java +283 -2
  115. package/references/native/InsightTraceState.java +28 -13
  116. package/references/setup.md +2 -1
  117. package/runtime/managed/insight-heap/Azure.Core.dll +0 -0
  118. package/runtime/managed/insight-heap/Azure.Identity.dll +0 -0
  119. package/runtime/managed/insight-heap/Insight.Heap.csproj +1 -0
  120. package/runtime/managed/insight-heap/Insight.Heap.deps.json +391 -0
  121. package/runtime/managed/insight-heap/Insight.Heap.dll +0 -0
  122. package/runtime/managed/insight-heap/Insight.Heap.runtimeconfig.json +13 -0
  123. package/runtime/managed/insight-heap/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  124. package/runtime/managed/insight-heap/Microsoft.Diagnostics.NETCore.Client.dll +0 -0
  125. package/runtime/managed/insight-heap/Microsoft.Diagnostics.Runtime.dll +0 -0
  126. package/runtime/managed/insight-heap/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
  127. package/runtime/managed/insight-heap/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  128. package/runtime/managed/insight-heap/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
  129. package/runtime/managed/insight-heap/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
  130. package/runtime/managed/insight-heap/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
  131. package/runtime/managed/insight-heap/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  132. package/runtime/managed/insight-heap/Microsoft.Extensions.Options.dll +0 -0
  133. package/runtime/managed/insight-heap/Microsoft.Extensions.Primitives.dll +0 -0
  134. package/runtime/managed/insight-heap/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
  135. package/runtime/managed/insight-heap/Microsoft.Identity.Client.dll +0 -0
  136. package/runtime/managed/insight-heap/Microsoft.IdentityModel.Abstractions.dll +0 -0
  137. package/runtime/managed/insight-heap/Microsoft.Security.AntiSSRF.dll +0 -0
  138. package/runtime/managed/insight-heap/NuGet.Config +1 -0
  139. package/runtime/managed/insight-heap/Program.cs +20 -0
  140. package/runtime/managed/insight-heap/README.md +16 -0
  141. package/runtime/managed/insight-heap/System.ClientModel.dll +0 -0
  142. package/runtime/managed/insight-heap/System.Memory.Data.dll +0 -0
  143. package/runtime/managed/insight-heap/System.Security.Cryptography.ProtectedData.dll +0 -0
  144. package/runtime/managed/insight-heap/dependencies.json +436 -0
  145. package/runtime/managed/insight-heap/notices/Azure.Core-LICENSE.txt +21 -0
  146. package/runtime/managed/insight-heap/notices/Azure.Identity-LICENSE.txt +21 -0
  147. package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-LICENSE.txt +23 -0
  148. package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-THIRD-PARTY-NOTICES.TXT +1418 -0
  149. package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.NETCore.Client-LICENSE.txt +23 -0
  150. package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.Runtime-LICENSE.txt +23 -0
  151. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-LICENSE.txt +23 -0
  152. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  153. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-LICENSE.txt +23 -0
  154. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  155. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-LICENSE.txt +23 -0
  156. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  157. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-LICENSE.txt +23 -0
  158. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  159. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-LICENSE.txt +23 -0
  160. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  161. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-LICENSE.txt +23 -0
  162. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  163. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-LICENSE.txt +23 -0
  164. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-THIRD-PARTY-NOTICES.TXT +1418 -0
  165. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-LICENSE.txt +23 -0
  166. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-THIRD-PARTY-NOTICES.TXT +1418 -0
  167. package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client-LICENSE.txt +21 -0
  168. package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client.Extensions.Msal-LICENSE.txt +21 -0
  169. package/runtime/managed/insight-heap/notices/Microsoft.IdentityModel.Abstractions-LICENSE.txt +21 -0
  170. package/runtime/managed/insight-heap/notices/Microsoft.Security.AntiSSRF-LICENSE.txt +21 -0
  171. package/runtime/managed/insight-heap/notices/System.ClientModel-LICENSE.txt +21 -0
  172. package/runtime/managed/insight-heap/notices/System.Memory.Data-LICENSE.txt +23 -0
  173. package/runtime/managed/insight-heap/notices/System.Memory.Data-THIRD-PARTY-NOTICES.TXT +1418 -0
  174. package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-LICENSE.TXT +23 -0
  175. package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-THIRD-PARTY-NOTICES.TXT +309 -0
  176. package/runtime/managed/insight-heap/packages.lock.json +165 -0
  177. package/runtime/managed/insight-heap/provenance.json +146 -0
  178. package/runtime/managed/insight-heap/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  179. package/runtime/managed/insight-managed/Insight.Managed.csproj +4 -0
  180. package/runtime/managed/insight-managed/Insight.Managed.deps.json +41 -0
  181. package/runtime/managed/insight-managed/Insight.Managed.dll +0 -0
  182. package/runtime/managed/insight-managed/Insight.Managed.runtimeconfig.json +13 -0
  183. package/runtime/managed/insight-managed/LICENSE.dnlib.txt +20 -0
  184. package/runtime/managed/insight-managed/NuGet.Config +1 -0
  185. package/runtime/managed/insight-managed/Program.cs +31 -0
  186. package/runtime/managed/insight-managed/README.md +16 -0
  187. package/runtime/managed/insight-managed/dnlib.dll +0 -0
  188. package/runtime/managed/insight-managed/packages.lock.json +13 -0
  189. package/runtime/managed/insight-managed/provenance.json +40 -0
  190. package/runtime/native/binary/README.md +22 -0
  191. package/runtime/native/binary/dependencies.json +166 -0
  192. package/runtime/native/binary/helper.cpp +44 -0
  193. package/runtime/native/binary/insight-binary-darwin-arm64 +0 -0
  194. package/runtime/native/binary/notices/Catch2-3.12.0--Catch2-3.12.0__LICENSE.txt +23 -0
  195. package/runtime/native/binary/notices/LIEF-LICENSE.txt +202 -0
  196. package/runtime/native/binary/notices/LIEF-attribution.txt +37 -0
  197. package/runtime/native/binary/notices/Melkor_ELF_Fuzzer-ac2495b--elf_fuzzer-master__LICENSE.txt +674 -0
  198. package/runtime/native/binary/notices/expected-1.3.1--expected-1.3.1__COPYING +121 -0
  199. package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__AUTHORS +3 -0
  200. package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__LICENSE +202 -0
  201. package/runtime/native/binary/notices/json-LICENSE.MIT +21 -0
  202. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--LICENSE +553 -0
  203. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--framework__LICENSE +553 -0
  204. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__LICENSE +552 -0
  205. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__framework__LICENSE +553 -0
  206. package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--LICENSE +26 -0
  207. package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--ext__robin_map__LICENSE +21 -0
  208. package/runtime/native/binary/notices/span-LICENSE_1_0.txt +23 -0
  209. package/runtime/native/binary/notices/span-attribution.txt +11 -0
  210. package/runtime/native/binary/notices/spdlog-1.17.0--spdlog-1.17.0__LICENSE +25 -0
  211. package/runtime/native/binary/notices/utfcpp-4.0.9--utfcpp-4.0.9__LICENSE +23 -0
  212. package/runtime/native/binary/provenance.json +48 -0
  213. package/runtime/native/child-deadline-linux-x64 +0 -0
  214. package/runtime/native/child-deadline-linux.c +24 -0
  215. package/runtime/native/child-deadline-linux.provenance.json +17 -0
  216. package/runtime/native/deadline-alarm-darwin-universal.dylib +0 -0
  217. package/runtime/native/deadline-alarm.c +33 -0
  218. package/runtime/native/deadline-alarm.provenance.json +22 -0
  219. package/runtime/native/deadline-exec-darwin-arm64 +0 -0
  220. package/runtime/native/deadline-exec.c +24 -0
  221. package/runtime/native/deadline-exec.provenance.json +17 -0
  222. package/runtime/native/dnspy-extension/Bridge.cs +58 -0
  223. package/runtime/native/dnspy-extension/Insight.DnSpy.csproj +13 -0
  224. package/runtime/native/dnspy-extension/Insight.DnSpy.x.dll +0 -0
  225. package/runtime/native/dnspy-extension/NuGet.Config +1 -0
  226. package/runtime/native/dnspy-extension/UNICODE-LOADER.md +26 -0
  227. package/runtime/native/dnspy-extension/packages.lock.json +6 -0
  228. package/runtime/native/dnspy-extension/provenance.json +27 -0
  229. package/runtime/native/dnspy-extension/upstream-public-build.snk +0 -0
  230. package/runtime/native/dnspy-extension/vendor-files.json +4341 -0
  231. package/runtime/native/file-version.ps1 +7 -0
  232. package/runtime/native/insight-registry-win-x64.dll +0 -0
  233. package/runtime/native/mitmproxy/bridge.py +180 -0
  234. package/runtime/native/mitmproxy/notices.json +476 -0
  235. package/runtime/native/sources/detours-LICENSE.md +23 -0
  236. package/runtime/native/sources/detours-e4bfd6b.tar.gz +0 -0
  237. package/runtime/native/sources/detours-provenance.json +10 -0
  238. package/runtime/native/tshark-layout.json +2247 -0
  239. package/runtime/native/windows-job/DirectoryAlias.cs +24 -0
  240. package/runtime/native/windows-job/Insight.WindowsJob.csproj +1 -0
  241. package/runtime/native/windows-job/Insight.WindowsJob.dll +0 -0
  242. package/runtime/native/windows-job/NuGet.Config +1 -0
  243. package/runtime/native/windows-job/OwnedJob.cs +79 -0
  244. package/runtime/native/windows-job/RegistryRedirect.cs +45 -0
  245. package/runtime/native/windows-job/packages.lock.json +21 -0
  246. package/runtime/native/windows-job/provenance.json +16 -0
  247. package/runtime/native/windows-job/windows-job.ps1 +8 -0
  248. package/runtime/native/windows-registry.c +21 -0
  249. package/runtime/native/windows-registry.def +3 -0
  250. package/runtime/native/windows-registry.provenance.json +14 -0
  251. package/runtime/notices/diagnostics-10.0.750501.txt +23 -0
  252. package/runtime/tool-catalog.json +290 -0
  253. package/runtime/toolbox.json +1401 -0
  254. package/skill-bundle/insight-artifacts/SKILL.md +30 -0
  255. package/skill-bundle/insight-artifacts/references/agent-execution.md +36 -0
  256. package/skill-bundle/insight-artifacts/references/artifacts.md +52 -0
  257. package/skill-bundle/insight-binary/SKILL.md +46 -0
  258. package/skill-bundle/insight-binary/references/agent-execution.md +36 -0
  259. package/skill-bundle/insight-capture/SKILL.md +56 -0
  260. package/skill-bundle/insight-capture/references/agent-execution.md +36 -0
  261. package/skill-bundle/insight-cli/SKILL.md +42 -0
  262. package/skill-bundle/insight-cli/references/agent-execution.md +36 -0
  263. package/skill-bundle/insight-cli/references/agent-setup.md +61 -0
  264. package/skill-bundle/insight-die/SKILL.md +49 -0
  265. package/skill-bundle/insight-die/references/agent-execution.md +36 -0
  266. package/skill-bundle/insight-dnspy/SKILL.md +65 -0
  267. package/skill-bundle/insight-dnspy/references/agent-execution.md +36 -0
  268. package/skill-bundle/insight-dotnet-dump/SKILL.md +46 -0
  269. package/skill-bundle/insight-dotnet-dump/references/agent-execution.md +36 -0
  270. package/skill-bundle/insight-dotnet-stack/SKILL.md +39 -0
  271. package/skill-bundle/insight-dotnet-stack/references/agent-execution.md +36 -0
  272. package/skill-bundle/insight-dotnet-trace/SKILL.md +45 -0
  273. package/skill-bundle/insight-dotnet-trace/references/agent-execution.md +36 -0
  274. package/skill-bundle/insight-frida/SKILL.md +67 -0
  275. package/skill-bundle/insight-frida/references/agent-execution.md +36 -0
  276. package/skill-bundle/insight-ghidra/SKILL.md +91 -0
  277. package/skill-bundle/insight-ghidra/references/administration.md +34 -0
  278. package/skill-bundle/insight-ghidra/references/agent-execution.md +36 -0
  279. package/skill-bundle/insight-ghidra/references/archive.md +32 -0
  280. package/skill-bundle/insight-ghidra/references/artifacts.md +52 -0
  281. package/skill-bundle/insight-ghidra/references/debugger.md +62 -0
  282. package/skill-bundle/insight-ghidra/references/extensions-and-sync.md +124 -0
  283. package/skill-bundle/insight-ghidra/references/managed-runtime.md +157 -0
  284. package/skill-bundle/insight-ghidra/references/native-workflows.md +112 -0
  285. package/skill-bundle/insight-ghidra/references/query-semantics.md +96 -0
  286. package/skill-bundle/insight-ghidra/references/recovery.md +53 -0
  287. package/skill-bundle/insight-ghidra/references/research.md +101 -0
  288. package/skill-bundle/insight-ghidra/references/setup.md +50 -0
  289. package/skill-bundle/insight-ilspy/SKILL.md +45 -0
  290. package/skill-bundle/insight-ilspy/references/agent-execution.md +36 -0
  291. package/skill-bundle/insight-ilspy/references/ilspy.md +33 -0
  292. package/skill-bundle/insight-interop/SKILL.md +54 -0
  293. package/skill-bundle/insight-interop/references/agent-execution.md +36 -0
  294. package/skill-bundle/insight-lldb/SKILL.md +54 -0
  295. package/skill-bundle/insight-lldb/references/agent-execution.md +36 -0
  296. package/skill-bundle/insight-llvm/SKILL.md +56 -0
  297. package/skill-bundle/insight-llvm/references/agent-execution.md +36 -0
  298. package/skill-bundle/insight-managed-heap/SKILL.md +43 -0
  299. package/skill-bundle/insight-managed-heap/references/agent-execution.md +36 -0
  300. package/skill-bundle/insight-managed-metadata/SKILL.md +52 -0
  301. package/skill-bundle/insight-managed-metadata/references/agent-execution.md +36 -0
  302. package/skill-bundle/insight-mitmproxy/SKILL.md +62 -0
  303. package/skill-bundle/insight-mitmproxy/references/agent-execution.md +36 -0
  304. package/skill-bundle/insight-overview/SKILL.md +79 -0
  305. package/skill-bundle/insight-overview/references/agent-execution.md +36 -0
  306. package/skill-bundle/insight-procmon/SKILL.md +49 -0
  307. package/skill-bundle/insight-procmon/references/agent-execution.md +36 -0
  308. package/skill-bundle/insight-re/SKILL.md +121 -0
  309. package/skill-bundle/insight-re/references/agent-execution.md +36 -0
  310. package/skill-bundle/insight-re/references/artifacts.md +52 -0
  311. package/skill-bundle/insight-re/references/recovery.md +53 -0
  312. package/skill-bundle/insight-sevenzip/SKILL.md +42 -0
  313. package/skill-bundle/insight-sevenzip/references/agent-execution.md +36 -0
  314. package/skill-bundle/insight-strace/SKILL.md +46 -0
  315. package/skill-bundle/insight-strace/references/agent-execution.md +36 -0
  316. package/skill-bundle/insight-tshark/SKILL.md +49 -0
  317. package/skill-bundle/insight-tshark/references/agent-execution.md +36 -0
  318. package/skill-bundle/insight-windbg/SKILL.md +46 -0
  319. package/skill-bundle/insight-windbg/references/agent-execution.md +36 -0
  320. package/skill-bundle/manifest.json +32 -0
  321. package/skills/insight-artifacts/SKILL.md +30 -0
  322. package/skills/insight-artifacts/references/agent-execution.md +36 -0
  323. package/skills/insight-artifacts/references/artifacts.md +52 -0
  324. package/skills/insight-binary/SKILL.md +46 -0
  325. package/skills/insight-binary/references/agent-execution.md +36 -0
  326. package/skills/insight-capture/SKILL.md +56 -0
  327. package/skills/insight-capture/references/agent-execution.md +36 -0
  328. package/skills/insight-die/SKILL.md +49 -0
  329. package/skills/insight-die/references/agent-execution.md +36 -0
  330. package/skills/insight-dnspy/SKILL.md +65 -0
  331. package/skills/insight-dnspy/references/agent-execution.md +36 -0
  332. package/skills/insight-dotnet-dump/SKILL.md +46 -0
  333. package/skills/insight-dotnet-dump/references/agent-execution.md +36 -0
  334. package/skills/insight-dotnet-stack/SKILL.md +39 -0
  335. package/skills/insight-dotnet-stack/references/agent-execution.md +36 -0
  336. package/skills/insight-dotnet-trace/SKILL.md +45 -0
  337. package/skills/insight-dotnet-trace/references/agent-execution.md +36 -0
  338. package/skills/insight-frida/SKILL.md +67 -0
  339. package/skills/insight-frida/references/agent-execution.md +36 -0
  340. package/skills/insight-ghidra/SKILL.md +91 -0
  341. package/skills/insight-ghidra/references/administration.md +34 -0
  342. package/skills/insight-ghidra/references/agent-execution.md +36 -0
  343. package/skills/insight-ghidra/references/archive.md +32 -0
  344. package/skills/insight-ghidra/references/artifacts.md +52 -0
  345. package/skills/insight-ghidra/references/debugger.md +62 -0
  346. package/skills/insight-ghidra/references/extensions-and-sync.md +124 -0
  347. package/skills/insight-ghidra/references/managed-runtime.md +157 -0
  348. package/skills/insight-ghidra/references/native-workflows.md +112 -0
  349. package/skills/insight-ghidra/references/query-semantics.md +96 -0
  350. package/skills/insight-ghidra/references/recovery.md +53 -0
  351. package/skills/insight-ghidra/references/research.md +101 -0
  352. package/skills/insight-ghidra/references/setup.md +50 -0
  353. package/skills/insight-ilspy/SKILL.md +45 -0
  354. package/skills/insight-ilspy/references/agent-execution.md +36 -0
  355. package/skills/insight-ilspy/references/ilspy.md +33 -0
  356. package/skills/insight-interop/SKILL.md +54 -0
  357. package/skills/insight-interop/references/agent-execution.md +36 -0
  358. package/skills/insight-lldb/SKILL.md +54 -0
  359. package/skills/insight-lldb/references/agent-execution.md +36 -0
  360. package/skills/insight-llvm/SKILL.md +56 -0
  361. package/skills/insight-llvm/references/agent-execution.md +36 -0
  362. package/skills/insight-managed-heap/SKILL.md +43 -0
  363. package/skills/insight-managed-heap/references/agent-execution.md +36 -0
  364. package/skills/insight-managed-metadata/SKILL.md +52 -0
  365. package/skills/insight-managed-metadata/references/agent-execution.md +36 -0
  366. package/skills/insight-mitmproxy/SKILL.md +62 -0
  367. package/skills/insight-mitmproxy/references/agent-execution.md +36 -0
  368. package/skills/insight-overview/SKILL.md +79 -0
  369. package/skills/insight-overview/references/agent-execution.md +36 -0
  370. package/skills/insight-procmon/SKILL.md +49 -0
  371. package/skills/insight-procmon/references/agent-execution.md +36 -0
  372. package/skills/insight-re/SKILL.md +22 -9
  373. package/skills/insight-re/references/agent-execution.md +36 -0
  374. package/skills/insight-re/references/artifacts.md +52 -0
  375. package/skills/insight-re/references/recovery.md +53 -0
  376. package/skills/insight-sevenzip/SKILL.md +42 -0
  377. package/skills/insight-sevenzip/references/agent-execution.md +36 -0
  378. package/skills/insight-strace/SKILL.md +46 -0
  379. package/skills/insight-strace/references/agent-execution.md +36 -0
  380. package/skills/insight-tshark/SKILL.md +49 -0
  381. package/skills/insight-tshark/references/agent-execution.md +36 -0
  382. package/skills/insight-windbg/SKILL.md +46 -0
  383. package/skills/insight-windbg/references/agent-execution.md +36 -0
  384. package/dist/src/runtime-archives.d.ts +0 -5
@@ -0,0 +1,157 @@
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
+ `status` without scope is passive: selection, paths, missing components, installations, retained
26
+ stages, recorded checks and live process receipts. It works before installation. It does not start
27
+ Java or create a research workspace. `status --session S --target T` retains the scoped live health
28
+ check. `server status` also works without an installed runtime and explains missing prerequisites.
29
+ `doctor` explicitly runs disposable native decompiler/server probes and checks macOS LLDB Python.
30
+ It never imports a research target or publishes research changes. Readiness recorded by a doctor
31
+ run includes its runtime fingerprint; status identifies whether that record matches the selection.
32
+
33
+ ## Local archives and external installations
34
+
35
+ ```sh
36
+ insight-cli --profile local ghidra download
37
+ insight-cli --profile local ghidra install --offline
38
+ insight-cli --profile local ghidra install --archive ./ghidra.zip
39
+ insight-cli --profile local ghidra install --archive ./ghidra.zip \
40
+ --java-archive ./jdk.tar.gz --debugger-archive ./lldb-python.tar.gz --offline
41
+ insight-cli --profile local ghidra install --executable /tools/ghidra/ghidraRun
42
+ insight-cli --profile local ghidra install --executable /tools/ghidra \
43
+ --java /tools/jdk/bin/java --debugger-archive ./lldb-python.tar.gz --offline
44
+ ```
45
+
46
+ `--executable` accepts the actual Ghidra launcher (`ghidraRun[.bat]`, or
47
+ `support/analyzeHeadless[.bat]`) or installation directory. It needs the complete compatible
48
+ installation, including host native components. A target EXE is not a Ghidra launcher.
49
+ Common Homebrew launcher wrappers are resolved through the adjacent complete `libexec` tree.
50
+ The external Ghidra tree is never modified or deleted. Java is delivered automatically unless
51
+ `--java` or `--java-archive` is supplied. Legacy profile `java`/`ghidraHome` configuration still works
52
+ when no explicit selection exists; an explicit selection takes precedence and never silently
53
+ falls back to profile paths after failure or uninstall.
54
+
55
+ Local archives are caller-selected inputs, consumed into owned hash-addressed copies before
56
+ extraction so later source edits cannot change the installed bytes. Optional `--archive-sha256` and
57
+ `--java-archive-sha256` and `--debugger-archive-sha256` check the expected bytes; the actual digests are recorded in the installation
58
+ identity. `--offline` prohibits network acquisition: provide/cache every required archive. On macOS,
59
+ an official Ghidra zip also needs the pinned prebuilt native archive in cache. The managed macOS
60
+ distribution already includes these natives. Executable modes are preserved; paths, links and
61
+ expanded sizes are checked during portable Node extraction. Downloads use exact assets retained
62
+ in `iXab3r/insight-cli` GitHub Releases, with hashes and sizes pinned in the installed package.
63
+ There is no runtime upstream/latest fallback; supplied archives and verified cache support offline use.
64
+ No external unzip, tar or Python executable is needed for extraction.
65
+
66
+ ## Server, process and data ownership
67
+
68
+ The Ghidra distribution includes Ghidra Server. It uses the selected JDK and immutable tool code;
69
+ its repository, certificates, credentials and process settings are separate profile data.
70
+ Ordinary `open` starts it automatically. `server start` explicitly starts/enables it, and
71
+ `server stop` stops the identified owned server after all contexts are closed. It refuses to stop
72
+ a server under live clients. A later open can start it again; explicit `disconnect` disables shared
73
+ operations until `connect`/`start`. `server connect/disconnect` retain their connection-management API.
74
+ An external server remains configured through profile server/repository/account fields and Factory
75
+ secrets; `server stop` cannot stop that external service.
76
+
77
+ Code/cache/installation receipts live under profile AppData `runtime/`; research remains under
78
+ `workspace/`, and saved files under `materials/`. One selected immutable installation serves many
79
+ isolated JVM contexts; each has its own projects, home, settings, cache/temp and authenticated
80
+ endpoint. No per-agent copy of the Ghidra code distribution is required. This is process and data
81
+ isolation; it does not restrict arbitrary user scripts to an OS security sandbox.
82
+
83
+ Close scoped contexts and stop the owned server before selecting/reinstalling/removing a runtime.
84
+ A live receipt conservatively blocks these operations; it never authorizes killing a PID.
85
+ Download and doctor can run without switching the current runtime. Runtime commands serialize
86
+ within the Factory owner. Changing a selected runtime invalidates cached backend handles, without
87
+ removing saved research. There is no automatic version migration or floating upstream upgrade.
88
+
89
+ ```sh
90
+ insight-cli --profile local ghidra close --session S --target T
91
+ insight-cli --profile local ghidra server stop
92
+ insight-cli --profile local permissions grant Destructive
93
+ insight-cli --profile local ghidra uninstall
94
+ # Optional cache deletion; research and external installations remain preserved:
95
+ insight-cli --profile local ghidra uninstall --purge-cache
96
+ ```
97
+
98
+ Uninstall removes only selected owned installation files. It preserves the selection as an
99
+ uninstalled receipt, so later research reports a missing runtime instead of changing bindings.
100
+ Archives remain reusable unless `--purge-cache` is selected. It removes recorded archives for
101
+ this installation, preserving other tools' cache and unrecorded legacy entries. Reinstalling the same archives restores
102
+ the same runtime identity. Sessions, private snapshots, unresolved publication journals, server
103
+ repositories and artifacts survive. Uninstall does not resolve an uncertain merge or replay it.
104
+
105
+ ## Process inventory and recovery
106
+
107
+ ```sh
108
+ insight-cli --profile local tools processes --tool ghidra
109
+ insight-cli --profile local tools processes show <process-id>
110
+ insight-cli --profile local tools processes stop <process-id>
111
+ insight-cli --profile local tools processes kill <process-id>
112
+ ```
113
+
114
+ These IDs describe executions, not new research selectors. Context records include the existing
115
+ session/target; server, GUI, debugger and helper roles remain separate. `stop` saves a selected
116
+ Ghidra context through its ordinary close path. Stopping a server requires closed contexts.
117
+ `kill` requires Destructive and explicitly interrupts verified owned work; it does not prove a
118
+ merge/save completed. Live debugger cleanup goes through the owning GUI so inferior termination
119
+ can be verified. Research and unknown journals are retained.
120
+
121
+ After an owner crash, inventory reconnects to authenticated owned endpoints without re-executing
122
+ research. macOS process birth times alone cannot prove recovered ownership; an ambiguous process
123
+ stays `unverified` and is not signalled. Original child handles and authenticated tool identities
124
+ provide the supported stop/kill authority. This is lifecycle management, not an OS security sandbox.
125
+
126
+ ## Sources and host boundary
127
+
128
+ The catalog pins Ghidra 12.1.2 and Temurin JDK 21.0.11+10. macOS uses public Homebrew-built Ghidra
129
+ bottles with native components (macOS 14+, ARM64 or x64); no installed Homebrew is used. Linux x64
130
+ and Windows x64 use the official Ghidra zip and Temurin archive. The installed `runtime/tool-catalog.json` pins mirror assets; repository
131
+ `scripts/tool-distributions/` recipes retain upstream provenance. Published tool releases include
132
+ original licenses/notices and required source/build companions, independent of CLI releases.
133
+ Unsupported platforms fail explicitly and may use compatible external profile paths. Native
134
+ acceptance for this delivery is macOS ARM64; catalog availability is not Windows/Linux native proof.
135
+
136
+ The host provides Node/npm, OS frameworks, display/keychain access and debugger authorization.
137
+ macOS LLDB and its embedded Python come from Apple's developer tools; they are OS prerequisites,
138
+ not downloaded third-party Python dependencies. `doctor` reports a missing host debugger as a partial
139
+ failure even when static analysis/server pass. No root installation, developer-tools installer,
140
+ Gatekeeper disabling, shell-profile edit or global Java/Python selection is performed. Ghidra GUI
141
+ agents receive private copies of the Ghidra SDK's pinned debugger Python wheels.
142
+
143
+ ## Managed debugger dependency
144
+
145
+ On macOS 15+ ARM64, download/install also prepares pinned LLDB 23.1.3 with its own
146
+ Python 3.15 and native library closure. It is a private Ghidra dependency; the separate
147
+ `insight-cli lldb` application retains its own installation. `--debugger-archive` supplies
148
+ the exact pinned debugger archive for offline installation, including an external Ghidra
149
+ selection. Status reports this dependency and doctor probes its actual Python interpreter.
150
+ GUI startup prepares it for legacy profiles as needed. The backend does not use Homebrew
151
+ or Python from Apple developer tools. OS debugger authorization is still a host prerequisite.
152
+
153
+ A GUI context pins the verified debugger receipt. Its supervisor verifies those code and
154
+ library bytes again before launching LLDB. Close contexts and stop the local server before
155
+ changing/removing the Ghidra runtime; uninstall removes this owned dependency while retaining
156
+ research and external installations. Existing running GUI contexts must be closed/reopened
157
+ to adopt a different backend. Other host debugger profiles retain their declared host requirements.
@@ -0,0 +1,112 @@
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
+ `formats exporters` lists compatible native exporters and their options. `formats export
48
+ --exporter 'Raw Bytes' --ranges '[{"start":"0x10001","end":"0x10003"}]'
49
+ --output-directory <new-directory>` requires a format supporting restricted address sets.
50
+ All output/companion files are hashed and retained. Existing destinations are not overwritten.
51
+ Native completion receipts permit a repeated request ID to recover completed bytes without
52
+ another export. An incomplete/uncertain export cannot be replayed blindly.
53
+
54
+ `types define-layout --path /Owned/Record --packing 1 --fields
55
+ '[{"name":"flags","type":"uint","bit_size":3},{"name":"value","type":"ushort"}]'`
56
+ uses native structures and bitfields. Packing/alignment accept -1, zero or powers of two through
57
+ 64; explicit byte offsets require packing -1. There are at most 256 fields. `types layout` returns
58
+ native source archive/universal IDs and bounded field/setting records. `types set-settings --path
59
+ /Owned/Number --settings '{"Format":1}'` uses actual definition names and native enum choices;
60
+ null clears an explicit setting. Inventory the type first; definitions differ between native types.
61
+
62
+ `types archive-export --types '["/Owned/Record"]' --output-directory <new-directory>` creates a
63
+ real GDT. `types archive-import --input <file.gdt> --types '["/Owned/Record"]'` consumes an
64
+ immutable archive up to 64 MiB and checks saved layout/source identity. A conflicting existing
65
+ layout is rejected. `types create-struct --replace-placeholder` replaces only an empty structure.
66
+
67
+ ## Version porting and library identification
68
+
69
+ `version-tracking create --source-target <id> --source-session <id>` creates a persistent native
70
+ VT session inside the destination research scope. The returned tracking ID owns the exact saved
71
+ source/destination snapshots. `list`, `matches --tracking <id>` and `markup --tracking <id>
72
+ --source-address <address> --destination-address <address>` retain native correlator/score/markup
73
+ provenance. Exact function bytes and duplicate instruction correlators are selected; instruction
74
+ matching can ignore operands. Ambiguity is retained. Unmatched means no association in these
75
+ selected policies, not proof of no equivalent function. Inputs are limited to 10000 functions;
76
+ correlation has a 60-second monitor budget, match pages have at most 1000 rows.
77
+
78
+ `decide` explicitly accepts, rejects or resets an association; native one-to-one constraints apply.
79
+ Decisions survive owner replacement. Markup is inspected before ordinary facade edits transfer
80
+ selected changes. No automatic markup application/publication is performed. Context-changed flags
81
+ warn when current programs differ from the VT snapshots. Unknown decisions block further decisions
82
+ on that object until reconciliation; the same request ID never blindly repeats a native effect.
83
+
84
+ `libraries build-fid --library <name> --library-version <version> --output-directory <new-directory>`
85
+ creates a genuine native FID database. `libraries fid-query --database <file.fidb> --function <entry>
86
+ --threshold 1` reports native scores, library/version/variant, database digest and no-match semantics.
87
+ `build-bsim --library <name> --output-directory <new-directory>` creates embedded native BSim/H2;
88
+ `bsim-query --database <database.mv.db> --function <entry> --similarity 0.9` reports signature version,
89
+ similarity and significance. Required SDK components are supplied by the pinned Ghidra install;
90
+ there is no external database service to provision for these local workflows. Inputs are bounded to
91
+ 1000 functions, output is bounded, and scores are not calibrated probabilities. Query databases
92
+ are consumed into private immutable storage; the caller's file is unchanged.
93
+
94
+ ## Live target and retained trace
95
+
96
+ `debugger write-memory --address <dynamic-address> --expect-hex <bytes> --bytes-hex <bytes>`
97
+ and `write-register --register <name> --expect-value <hex> --value <hex>` require a stopped,
98
+ selected live target at its current live time. They refresh from the target before and after the
99
+ write. Preconditions are read-before-write checks, not atomic compare-exchange. Register width
100
+ is exact. These live effects do not enter program publication. A lost write response remains
101
+ uncertain and is never replayed, even when trace bytes subsequently show the requested value.
102
+ The owned copy of Ghidra 12.1.2's Python adapter corrects its SBProcess memory-write call; the
103
+ installed SDK/wheel remains unchanged and runtime fingerprint checks still apply.
104
+
105
+ `debugger timeline --limit 100` returns snapshot keys/times/schedules and continuation.
106
+ `objects --limit 100 --max-scan 10000` returns persistent object IDs, schema, path and lifespan
107
+ at a selected snap. `object-values --object-id <id> --key <exact-key>` reads one key, optionally
108
+ over at most 1000 snapshot keys. Values preserve address/object-reference types and 64-bit integers;
109
+ unknown Java value kinds are explicit. Object iteration is budgeted, paths replace the owned
110
+ staging root with `@target`, and IDs remain scoped to the selected trace. `schedule --schedule <time>`
111
+ parses/validates native schedules and reports `executed: false`. It does not execute emulation.
112
+ 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.
@@ -0,0 +1,53 @@
1
+ # Continue saved work
2
+
3
+ Retain the session/target returned by initial open. Continue the tuple through
4
+ `insight-cli ghidra open --session <id> --target <id> --json`. Saved private snapshots and
5
+ pending scalar comparisons persist independently of a backend process. Reopening preserves
6
+ private work; it does not silently receive a newer shared version.
7
+
8
+ First-import recovery uses the same scoped `ghidra open` or the original request ID/input.
9
+ Import/analysis writes a private snapshot and completion receipt before any initial publication.
10
+ If its worker is still running, continuation reports busy; wait and continue the same scope.
11
+ If that worker stopped before completing its receipt, continuation can repeat private analysis
12
+ from the immutable input while retaining previous attempts. A completed snapshot is reused.
13
+ Initial publication first creates a uniquely named staging object. A separate read-only process
14
+ verifies its complete saved DB buffers before a conditional server move to the absent canonical
15
+ path. It never checks in a new version of an existing canonical item. Lost promotion replies
16
+ are reconciled against the retained identity, one-version history and complete saved buffers.
17
+ Interrupted staging objects remain retained and can be replaced by another private stage;
18
+ they are not adopted as the canonical model. Foreign or mismatched canonical state stays blocked.
19
+ An older direct create that is provably owned and left only an incomplete `<Recovered>` entry
20
+ can be moved aside without deletion; its bytes and original receipt remain preserved.
21
+
22
+ Legacy first-import failures are also recoverable in the original profile. Continuation first
23
+ establishes that the old owned bootstrap worker has ended, then uses an authoritative repository
24
+ probe. An absent canonical item permits private preparation; an existing first version requires
25
+ independent readback. The old project, intent and original session/target remain preserved.
26
+
27
+ If a response was lost, inspect `sessions status <session> --target <target>`. Never infer
28
+ `applied` from a connection failure. A changing command's optional request ID binds one effective
29
+ intent inside the profile. Repeating the same ID/input retrieves its recorded outcome or
30
+ unresolved state; changing input under that ID fails. Without an ID, calls are new intentions.
31
+
32
+ An unknown or partial effect retains its request intent, snapshots and native stage. Open the
33
+ same tuple to reconcile supported outcomes. A committed merge is verified against its recorded
34
+ server version and complete saved buffers through independent read authority; it is never
35
+ checked in again merely because its response was lost. Until verification succeeds, publication
36
+ for this shared target is blocked across sessions. Saved private work remains retained.
37
+
38
+ Scalar reconciliation observes and saves an already present effect; it does not execute the
39
+ setter again. Supported structural/function edits retain a candidate snapshot after an incomplete
40
+ response; continuation can verify every requested effect in that immutable snapshot and adopt it
41
+ without replay. If the complete result cannot be established, the candidate and previous saved
42
+ private view remain retained. An unproved program/script/external outcome remains unresolved. Preserve the profile
43
+ storage and credential store. Do not delete another session's project, stop a process by guessed
44
+ PID/port, or blindly repeat a script/external action to turn uncertainty into success.
45
+
46
+ The older prototype's `workers`, `findings`, `integrate` and batch `recover` commands are not the
47
+ public facade API. Its coordinator journals remain separate and are never silently migrated.
48
+
49
+ A lost UI navigation response can be verified from the live authenticated cursor without another
50
+ goto. If its original owned GUI process has exited, continuation reports the uncertain UI action
51
+ as disconnected and retains saved program work. It does not recreate the old cursor or re-enable
52
+ a previous prompt policy. Other unproved live UI effects remain retained until their outcome is
53
+ established or the original process is known to have ended.
@@ -0,0 +1,101 @@
1
+ # Research with a private context
2
+
3
+ See [query semantics and work limits](query-semantics.md) for completion/truncation, actual type
4
+ resolution, qualified heuristics, supported emulation ABIs and memory/signature input variants.
5
+
6
+ `ghidra save-all --session <id>` saves every Ghidra context in that session and reports a
7
+ separate outcome for each input. It does not publish. A partial result preserves completed saves;
8
+ repeating the same request ID retrieves those outcomes without another pass.
9
+
10
+ `ghidra changes discard --session <id> --target <id>` explicitly removes that context's pending
11
+ program edits, retains its former private snapshot and restores its own opening base. It requires
12
+ Destructive permission. Other sessions and the shared revision remain unchanged; use explicit
13
+ refresh to receive a newer shared base afterward. Close a live debugger before discarding static
14
+ edits. The saved trace remains separate from the program's opening snapshot.
15
+
16
+ Open input with `insight-cli ghidra open ./client.exe --session new --json`. Store the returned
17
+ `session` and `target` as the explicit scope for every later research call. Names are display
18
+ labels; equal filenames or addresses in different inputs do not select the same object.
19
+
20
+ Use `ghidra strings search --contains config.json`, then `ghidra xrefs to --address <string>`.
21
+ Reference results include a containing function address when available. Pass that address to
22
+ `ghidra functions get` or `ghidra functions decompile`. Add the same session/target selectors and
23
+ `--json` to each command; consult generated help for paging and exact flags.
24
+
25
+ An exported object can also have an external-entry metadata reference. That item has
26
+ `from: null`, `kind: "EXTERNAL"` and `source: "entry-point"`; it counts in the returned
27
+ page but has no source address to navigate. Ordinary references retain their hexadecimal
28
+ `from` address and containing function when available.
29
+
30
+ Use `ghidra functions rename` and `ghidra comments set` for private edits. `--clear` (or empty
31
+ text) represents a null/absent comment. Successful edits are checked by readback and saved before
32
+ `applied`. A later read sees the local result; another session remains independent. These edits
33
+ do not publish themselves. Use `ghidra merge` to publish the selected context explicitly.
34
+
35
+ Another session retains its view until `ghidra refresh`. Refresh receives safe shared changes and
36
+ preserves local work. An overlapping field retains original/local/shared values; merge publishes
37
+ nothing while any conflict remains. Resolve that field with its ordinary setter,
38
+ `--resolve-conflict --expect-shared <observed value>` (or `--expect-shared-null` for an absent
39
+ comment). A later shared change invalidates the decision and preserves your work.
40
+
41
+ Types, signatures and memory edits are saved as complete private program state. They publish
42
+ when the shared base is unchanged. After divergence, unproved structural categories remain a
43
+ conflict: retain the old session, open a new session on the current target, and transfer the desired
44
+ work through ordinary operations. A script is not replayed as a merge algorithm.
45
+
46
+ The editing groups include types/categories/layouts, labels/references, properties/bookmarks,
47
+ memory flags, functions/variables/tags and batch comments/documentation. Factory's `Destructive`
48
+ gate covers deletion and replacement operations separately from ordinary Update. These broader
49
+ edits currently use complete saved-state publication; their grouping does not grant scalar merge
50
+ semantics. Boolean fields use explicit values; the no-return setter calls its flag `--non-returning`
51
+ to keep it distinct from CLI negation syntax.
52
+
53
+ `ghidra scripts list` returns stable `installation:` and `context:` script IDs. Pass an exact ID to
54
+ `ghidra scripts run --script-name <id>`, or source to `ghidra scripts run-inline --code <source>`.
55
+ Script arguments follow the pinned whitespace-splitting convention. Execution output is returned
56
+ with the saved private state. Script file/network/process effects are immediate and are not undone
57
+ by program rollback or replayed by merge. An uncertain script remains unresolved even when some
58
+ program changes can be observed.
59
+
60
+ Additional read groups expose analysis, listings, types, documentation, memory, symbols and
61
+ emulation through typed flags. `functions inspect`, `comments inspect`, `strings list` and
62
+ `strings search-regex` cover broader selection than the convenient walkthrough commands.
63
+ Boolean options take explicit `true`/`false`; complex inputs take bounded JSON. Result variants
64
+ are under `value` with the same session/target identifiers. Generated help lists domain arguments;
65
+ the caller supplies no program/instance routing. For P-code dataflow choose an actual operation
66
+ address from `analysis get-function-pcode`; a function prologue may have no high P-code operation.
67
+
68
+ For comparisons, keep `--session`/`--target` as the first side and provide `--other-target`.
69
+ `--other-session` defaults to the first session; specify it to compare another agent's private
70
+ context. `documentation compare`, `functions diff` and the fuzzy matching commands use these
71
+ selectors. Fuzzy matching excludes candidates shorter than eight instructions. Results return
72
+ both logical scopes and preserve the selected private views.
73
+
74
+ `documentation transfer` instead selects the private receiver with `--session`/`--target` and the
75
+ source with `--source-target` and optional `--source-session`. It copies documentation at matching
76
+ addresses; it does not publish. Use `--dry-run` to preview counts. The operation requires
77
+ Destructive because transferred definitions/annotations can replace existing receiver data.
78
+ After an applied result, publish through ordinary `ghidra merge`. Retried request IDs retrieve
79
+ their recorded outcome; recovery retains the source revision actually used by that request.
80
+
81
+ Opening a second input in the same session preserves the first context. Different processes using
82
+ the same session/target share one ordered context. Independent agents choose separate sessions.
83
+ Calls return explicit scope so parallel outputs can be associated with the intended input.
84
+ `sessions status <session> --limit <n> --offset <n>` pages saved contexts; `--target` selects one.
85
+ Its `externalRequests` reports uncertain archive/session-save outcomes without conflating them
86
+ with unpublished program edits. A truncated result indicates that another page may exist.
87
+
88
+ `ghidra status` verifies the selected tool and reports saved pending work. `ghidra save` retains
89
+ private changes without publishing. `ghidra close` saves and releases the owned process; continue
90
+ with the same open selectors to retain local work. Save/close accept the optional request ID.
91
+
92
+ The `ghidra ui` commands use the same explicit scope. `cursor --type all` reads address, function,
93
+ selection and focused program; headless facets return null with an explicit reason. `tools` starts
94
+ the owned GUI when needed and lists its tools using logical program scope. `goto --address <at>`
95
+ navigates the owned browser and verifies the cursor. `prompt-policy --action enable --seconds <n>`
96
+ temporarily handles the backend's known prompts in that owned GUI for 1–300 seconds; status and
97
+ disable inspect or end the policy. Changing UI commands accept request IDs. These actions do not
98
+ publish program work. Switching modes retains private edits and other sessions keep their views.
99
+
100
+ Selected native SDK commands and their effect/budget contracts are described in
101
+ [native workflows](native-workflows.md).
@@ -0,0 +1,50 @@
1
+ # Setup
2
+
3
+ Use Node 24+ and `ghidra install` to deliver Ghidra 12.1.2, JDK 21, native components and
4
+ server support. See [managed runtime](managed-runtime.md) for download/install/offline archives,
5
+ external executable paths, status/doctor and safe removal. Existing Factory profile `java` and
6
+ `ghidraHome` paths remain supported when no managed/external selection exists.
7
+ The package contains the verified GhidraMCP 7.0.0 bridge, its Apache-2.0 license/notice and
8
+ artifact provenance. Its pinned functionality catalog is from source
9
+ `57e37a8bf388b1279cff46378f85be1554548f61`, with SHA256
10
+ `7084e2fda16dc779dd05398e48821ff3f9ace4d32757ea143b257b39689e5fbd`.
11
+ `mcpJar` optionally selects another copy of those exact verified bytes. Runtime startup needs no
12
+ bridge/Factory source checkout or Python MCP bridge. Packaged native helper sources compile
13
+ against the installed Ghidra/JDK.
14
+
15
+ Omitting `server` enables owned local startup. The facade creates profile storage, a private
16
+ repository and distinct read-only/publisher accounts with random credentials in Factory's secret
17
+ store. It manages isolated headless contexts and introduces GUI mode on demand.
18
+
19
+ For an external server profile, configure `server` (`ghidra://host:port`), `repository`,
20
+ `readerUser` and `publisherUser`. They are distinct accounts with actual read-only and write
21
+ permissions respectively. Store each password using `auth login --role reader|publisher
22
+ --password-stdin`. Passwords are stdin/secret-store values, never profile JSON or argv values.
23
+ Connecting does not transfer ownership of that external server or allow the facade to stop it.
24
+
25
+ Factory's Update permission is initially disabled. Enable it through `permissions grant Update`
26
+ in the selected profile before creating contexts or editing. Research scope is explicit; local
27
+ skill discovery and help require no authentication or native process startup.
28
+ Deletion and replacement commands also require `permissions grant Destructive`.
29
+
30
+ All target bytes, snapshots, journals, projects and process receipts derive from the selected
31
+ profile's AppData. Stop the owner through `ipc-server stop` before changing its code/runtime
32
+ configuration. Restoring a saved context preserves its private view. Server settings and initial
33
+ loader settings remain bound to the target/workspace, so changing those cannot silently replace
34
+ retained work. This revision conservatively protects retained profile research state from deletion.
35
+ Runtime identity covers installed Ghidra code, language/compiler data, native modules and Python
36
+ inputs together with JDK tools, modules and configuration. Generated Python caches are isolated.
37
+ Changing those runtime inputs requires stopping the old owner before continuing with the new build.
38
+
39
+ Native acceptance separates macOS GUI/LLDB workflows from selected headless Windows/Linux
40
+ SDK, Version Tracking and FID/BSim workflows. Native Windows/Linux debugger/GUI acceptance
41
+ remains deferred. The ordinary CI lane stays offline; disposable native CI is explicit.
42
+
43
+ On macOS 15+ ARM64, `ghidra install` delivers an owned LLDB/Python debugger backend;
44
+ OS debugger authorization remains required. Other host profiles need their supported debugger. Its
45
+ Ghidra Python dependencies are prepared from the installed SDK wheels into owned GUI storage.
46
+ `debuggerPython` optionally configures a Python-backed offer; `windbgDir` configures the Windows
47
+ debugger runtime directory when relevant. These are runtime profile settings, not research scope.
48
+
49
+ Archive exchange is opt-in through `archiveUrl`; its optional token uses Factory secrets.
50
+ See [archive](archive.md) for the service contract and submission recovery behavior.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: insight-ilspy
3
+ description: Recover C#, inspect IL/types/metadata, extract resources or export projects from managed .NET assemblies through insight-cli ILSpy. Choose native analysis for NativeAOT or ordinary PE machine code.
4
+ ---
5
+
6
+ # Insight ILSpy 0.2.1
7
+
8
+ If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
+ with the agent host's normal permission escalation, then use that route for later authorized
10
+ CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
+ retried through that route. Keep HOME, profile and owner state; see
12
+ [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
+ request/status recovery, never blind retry.
14
+
15
+ Use the project's preferred tool and evidence conventions. Use ILSpy for static managed
16
+ assemblies with CLR metadata. It does not execute the assembly, recover C# from NativeAOT,
17
+ or establish runtime behavior from pseudocode alone.
18
+
19
+ 1. `insight-cli ilspy status --json` checks the selected profile. If needed,
20
+ `insight-cli ilspy install` prepares the pinned ILSpy and private .NET runtime.
21
+ No machine-wide SDK is required. Use generated install help for local archives,
22
+ offline cache or an external executable; see [workflows](references/ilspy.md).
23
+ 2. Start with `ilspy query <input> --json` and `--view types`, then decompile one relevant type/member,
24
+ inspect its IL or metadata, or enumerate resources. Use returned target identity
25
+ across calls/tools. `--target` reuses immutable bytes without opening Ghidra.
26
+ 3. Text responses default to a 16000-character window. Page with `--limit-chars` and
27
+ `--offset-chars`; combine only pages with the same `textSha256`. The hash covers observed
28
+ native text, which may itself be incomplete. Save full bounded text with `--output`,
29
+ or extract a selected resource into new ordinary output paths.
30
+ Recover a full project only when the question calls for it. Distinguish recovered
31
+ code/names from source truth. Record commands/input identity alongside findings
32
+ according to project rules.
33
+ 4. `tools processes --tool ilspy --all` shows executions and retained diagnostics.
34
+ Inspect partial exports after failure; choose a new output path for an intentional
35
+ retry. Close only owned executions; uninstall preserves external files and research.
36
+
37
+ Execution and preparation need Factory Update permission. `ilspy --help` supplies exact
38
+ commands/options; the [workflow reference](references/ilspy.md) covers inputs, outputs,
39
+ resource/project export and continuation. Save a completed project file/folder through
40
+ `insight-cli artifacts save` when a checkpoint is useful; it is independent of Ghidra merge.
41
+
42
+ Hash extracted resource bytes themselves; the resource-list text has a different digest
43
+ and is not the extracted file. For a requested checkpoint, finish the notes/recovered files,
44
+ save their chosen containing folder, and read back the returned saved path. Include that
45
+ exact path in the final handoff; do not substitute the ordinary export path or an inferred UUID.