memdiver 0.5.6__tar.gz

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 (362) hide show
  1. memdiver-0.5.6/CHANGELOG.md +92 -0
  2. memdiver-0.5.6/LICENSE +201 -0
  3. memdiver-0.5.6/MANIFEST.in +6 -0
  4. memdiver-0.5.6/PKG-INFO +234 -0
  5. memdiver-0.5.6/README.md +177 -0
  6. memdiver-0.5.6/__init__.py +8 -0
  7. memdiver-0.5.6/algorithms/__init__.py +1 -0
  8. memdiver-0.5.6/algorithms/base.py +62 -0
  9. memdiver-0.5.6/algorithms/known_key/__init__.py +1 -0
  10. memdiver-0.5.6/algorithms/known_key/exact_match.py +47 -0
  11. memdiver-0.5.6/algorithms/patterns/__init__.py +1 -0
  12. memdiver-0.5.6/algorithms/patterns/boringssl_tls13.json +28 -0
  13. memdiver-0.5.6/algorithms/patterns/openssh_ssh2.json +28 -0
  14. memdiver-0.5.6/algorithms/patterns/openssl_tls12.json +28 -0
  15. memdiver-0.5.6/algorithms/registry.py +74 -0
  16. memdiver-0.5.6/algorithms/unknown_key/__init__.py +1 -0
  17. memdiver-0.5.6/algorithms/unknown_key/change_point.py +223 -0
  18. memdiver-0.5.6/algorithms/unknown_key/constraint_validator.py +248 -0
  19. memdiver-0.5.6/algorithms/unknown_key/differential.py +238 -0
  20. memdiver-0.5.6/algorithms/unknown_key/entropy_scan.py +83 -0
  21. memdiver-0.5.6/algorithms/unknown_key/pattern_match.py +124 -0
  22. memdiver-0.5.6/algorithms/unknown_key/structure_scan.py +126 -0
  23. memdiver-0.5.6/algorithms/unknown_key/user_regex.py +62 -0
  24. memdiver-0.5.6/api/__init__.py +0 -0
  25. memdiver-0.5.6/api/config.py +84 -0
  26. memdiver-0.5.6/api/dependencies.py +48 -0
  27. memdiver-0.5.6/api/main.py +177 -0
  28. memdiver-0.5.6/api/models.py +111 -0
  29. memdiver-0.5.6/api/routers/__init__.py +0 -0
  30. memdiver-0.5.6/api/routers/analysis.py +372 -0
  31. memdiver-0.5.6/api/routers/architect.py +131 -0
  32. memdiver-0.5.6/api/routers/consensus.py +182 -0
  33. memdiver-0.5.6/api/routers/dataset.py +160 -0
  34. memdiver-0.5.6/api/routers/dumps.py +58 -0
  35. memdiver-0.5.6/api/routers/experiment.py +101 -0
  36. memdiver-0.5.6/api/routers/inspect.py +600 -0
  37. memdiver-0.5.6/api/routers/oracles.py +142 -0
  38. memdiver-0.5.6/api/routers/path.py +141 -0
  39. memdiver-0.5.6/api/routers/pipeline.py +419 -0
  40. memdiver-0.5.6/api/routers/sessions.py +107 -0
  41. memdiver-0.5.6/api/routers/structures.py +122 -0
  42. memdiver-0.5.6/api/routers/tasks.py +64 -0
  43. memdiver-0.5.6/api/services/__init__.py +0 -0
  44. memdiver-0.5.6/api/services/analysis_service.py +312 -0
  45. memdiver-0.5.6/api/services/artifact_store.py +288 -0
  46. memdiver-0.5.6/api/services/consensus_session.py +141 -0
  47. memdiver-0.5.6/api/services/oracle_registry.py +417 -0
  48. memdiver-0.5.6/api/services/progress_bus.py +189 -0
  49. memdiver-0.5.6/api/services/reader_cache.py +337 -0
  50. memdiver-0.5.6/api/services/session_service.py +86 -0
  51. memdiver-0.5.6/api/services/task_manager.py +666 -0
  52. memdiver-0.5.6/api/ws/__init__.py +0 -0
  53. memdiver-0.5.6/api/ws/progress.py +94 -0
  54. memdiver-0.5.6/architect/__init__.py +0 -0
  55. memdiver-0.5.6/architect/json_exporter.py +71 -0
  56. memdiver-0.5.6/architect/pattern_generator.py +171 -0
  57. memdiver-0.5.6/architect/static_checker.py +73 -0
  58. memdiver-0.5.6/architect/volatility3_exporter.py +323 -0
  59. memdiver-0.5.6/architect/yara_exporter.py +70 -0
  60. memdiver-0.5.6/cli.py +1204 -0
  61. memdiver-0.5.6/config.json +18 -0
  62. memdiver-0.5.6/core/__init__.py +8 -0
  63. memdiver-0.5.6/core/alignment_filter.py +67 -0
  64. memdiver-0.5.6/core/binary_formats/__init__.py +1 -0
  65. memdiver-0.5.6/core/binary_formats/elf_core_reader.py +361 -0
  66. memdiver-0.5.6/core/binary_formats/elf_defs.py +34 -0
  67. memdiver-0.5.6/core/binary_formats/kaitai_adapter.py +208 -0
  68. memdiver-0.5.6/core/binary_formats/kaitai_compiled/__init__.py +1 -0
  69. memdiver-0.5.6/core/binary_formats/kaitai_compiled/elf.py +329 -0
  70. memdiver-0.5.6/core/binary_formats/kaitai_compiled/mach_o.py +316 -0
  71. memdiver-0.5.6/core/binary_formats/kaitai_compiled/microsoft_pe.py +339 -0
  72. memdiver-0.5.6/core/binary_formats/kaitai_compiled/msl.py +197 -0
  73. memdiver-0.5.6/core/binary_formats/kaitai_registry.py +143 -0
  74. memdiver-0.5.6/core/binary_formats/macho_defs.py +30 -0
  75. memdiver-0.5.6/core/binary_formats/navigator.py +227 -0
  76. memdiver-0.5.6/core/binary_formats/pe_defs.py +42 -0
  77. memdiver-0.5.6/core/classify.py +40 -0
  78. memdiver-0.5.6/core/config_schema.py +113 -0
  79. memdiver-0.5.6/core/constants.py +39 -0
  80. memdiver-0.5.6/core/dataset_metadata.py +186 -0
  81. memdiver-0.5.6/core/discovery.py +468 -0
  82. memdiver-0.5.6/core/display_labels.py +23 -0
  83. memdiver-0.5.6/core/dump_driver.py +204 -0
  84. memdiver-0.5.6/core/dump_io.py +108 -0
  85. memdiver-0.5.6/core/dump_search.py +70 -0
  86. memdiver-0.5.6/core/dump_source.py +364 -0
  87. memdiver-0.5.6/core/entropy.py +168 -0
  88. memdiver-0.5.6/core/format_detect.py +136 -0
  89. memdiver-0.5.6/core/input_schemas.py +62 -0
  90. memdiver-0.5.6/core/kdf.py +196 -0
  91. memdiver-0.5.6/core/kdf_base.py +74 -0
  92. memdiver-0.5.6/core/kdf_registry.py +80 -0
  93. memdiver-0.5.6/core/kdf_ssh.py +176 -0
  94. memdiver-0.5.6/core/kdf_tls.py +181 -0
  95. memdiver-0.5.6/core/keylog.py +87 -0
  96. memdiver-0.5.6/core/keylog_templates.py +108 -0
  97. memdiver-0.5.6/core/log.py +49 -0
  98. memdiver-0.5.6/core/models.py +153 -0
  99. memdiver-0.5.6/core/msl_helpers.py +26 -0
  100. memdiver-0.5.6/core/phase_normalizer.py +147 -0
  101. memdiver-0.5.6/core/proc_maps_parser.py +113 -0
  102. memdiver-0.5.6/core/protocols.py +150 -0
  103. memdiver-0.5.6/core/region_align.py +218 -0
  104. memdiver-0.5.6/core/region_analysis.py +122 -0
  105. memdiver-0.5.6/core/strings.py +143 -0
  106. memdiver-0.5.6/core/structure_defs.py +157 -0
  107. memdiver-0.5.6/core/structure_library.py +105 -0
  108. memdiver-0.5.6/core/structure_library_ssh.py +42 -0
  109. memdiver-0.5.6/core/structure_library_tls.py +169 -0
  110. memdiver-0.5.6/core/structure_loader.py +43 -0
  111. memdiver-0.5.6/core/structure_overlay.py +241 -0
  112. memdiver-0.5.6/core/structure_schema.py +119 -0
  113. memdiver-0.5.6/core/variance.py +195 -0
  114. memdiver-0.5.6/engine/__init__.py +0 -0
  115. memdiver-0.5.6/engine/batch.py +196 -0
  116. memdiver-0.5.6/engine/batch_task_runner.py +210 -0
  117. memdiver-0.5.6/engine/brute_force.py +446 -0
  118. memdiver-0.5.6/engine/cancellation.py +36 -0
  119. memdiver-0.5.6/engine/candidate_pipeline.py +337 -0
  120. memdiver-0.5.6/engine/consensus.py +329 -0
  121. memdiver-0.5.6/engine/consensus_msl.py +182 -0
  122. memdiver-0.5.6/engine/convergence.py +181 -0
  123. memdiver-0.5.6/engine/correlator.py +179 -0
  124. memdiver-0.5.6/engine/derived_keys.py +70 -0
  125. memdiver-0.5.6/engine/diff_store.py +195 -0
  126. memdiver-0.5.6/engine/experiment_task_runner.py +458 -0
  127. memdiver-0.5.6/engine/nsweep.py +324 -0
  128. memdiver-0.5.6/engine/oracle.py +145 -0
  129. memdiver-0.5.6/engine/pipeline.py +250 -0
  130. memdiver-0.5.6/engine/pipeline_runner.py +586 -0
  131. memdiver-0.5.6/engine/progress.py +104 -0
  132. memdiver-0.5.6/engine/project_db.py +193 -0
  133. memdiver-0.5.6/engine/results.py +79 -0
  134. memdiver-0.5.6/engine/serializer.py +165 -0
  135. memdiver-0.5.6/engine/session_store.py +234 -0
  136. memdiver-0.5.6/engine/verification.py +131 -0
  137. memdiver-0.5.6/engine/vol3_emit.py +245 -0
  138. memdiver-0.5.6/engine/worker.py +57 -0
  139. memdiver-0.5.6/frontend/dist/assets/EntropyChart-8M8HrU-B.js +1 -0
  140. memdiver-0.5.6/frontend/dist/assets/EntropyChart-DAtoAJCY.js +1 -0
  141. memdiver-0.5.6/frontend/dist/assets/SurvivorCurve-BY20wrM1.js +1 -0
  142. memdiver-0.5.6/frontend/dist/assets/SurvivorCurve-D9JxV81S.js +1 -0
  143. memdiver-0.5.6/frontend/dist/assets/analysis-store-BpQfEZUW.js +1 -0
  144. memdiver-0.5.6/frontend/dist/assets/client-CNl5BiOS.js +1 -0
  145. memdiver-0.5.6/frontend/dist/assets/dump-store-Dwu_Tzhp.js +1 -0
  146. memdiver-0.5.6/frontend/dist/assets/hex-store-CpkAyGnC.js +1 -0
  147. memdiver-0.5.6/frontend/dist/assets/hex-store-gtC9qvXO.js +1 -0
  148. memdiver-0.5.6/frontend/dist/assets/index-CkDrSf6P.js +87 -0
  149. memdiver-0.5.6/frontend/dist/assets/index-PoxQeNeU.css +2 -0
  150. memdiver-0.5.6/frontend/dist/assets/jsx-runtime-sPcSWLTJ.js +1 -0
  151. memdiver-0.5.6/frontend/dist/assets/normalize-plot-twAkls4V.js +4030 -0
  152. memdiver-0.5.6/frontend/dist/assets/primitives-CAn_uvh6.js +1 -0
  153. memdiver-0.5.6/frontend/dist/assets/react-BcFANYnC.js +1 -0
  154. memdiver-0.5.6/frontend/dist/assets/react-CYzKIDNi.js +1 -0
  155. memdiver-0.5.6/frontend/dist/assets/results-store-BSf3LrQV.js +1 -0
  156. memdiver-0.5.6/frontend/dist/assets/strings-store-CicX0gXn.js +1 -0
  157. memdiver-0.5.6/frontend/dist/assets/survivor-traces-DyBxrQCs.js +1 -0
  158. memdiver-0.5.6/frontend/dist/assets/useChartTheme-7Z3828aq.js +1 -0
  159. memdiver-0.5.6/frontend/dist/favicon.svg +1 -0
  160. memdiver-0.5.6/frontend/dist/icons.svg +24 -0
  161. memdiver-0.5.6/frontend/dist/index.html +30 -0
  162. memdiver-0.5.6/frontend/dist/memdiver-logo.svg +352 -0
  163. memdiver-0.5.6/harvester/__init__.py +0 -0
  164. memdiver-0.5.6/harvester/ingestor.py +90 -0
  165. memdiver-0.5.6/harvester/metadata_store.py +83 -0
  166. memdiver-0.5.6/harvester/sidecar.py +78 -0
  167. memdiver-0.5.6/legacy_app.py +145 -0
  168. memdiver-0.5.6/mcp_server/__init__.py +12 -0
  169. memdiver-0.5.6/mcp_server/server.py +208 -0
  170. memdiver-0.5.6/mcp_server/session.py +67 -0
  171. memdiver-0.5.6/mcp_server/tools.py +125 -0
  172. memdiver-0.5.6/mcp_server/tools_inspect.py +352 -0
  173. memdiver-0.5.6/mcp_server/tools_pipeline.py +226 -0
  174. memdiver-0.5.6/mcp_server/tools_xref.py +86 -0
  175. memdiver-0.5.6/memdiver.egg-info/PKG-INFO +234 -0
  176. memdiver-0.5.6/memdiver.egg-info/SOURCES.txt +586 -0
  177. memdiver-0.5.6/memdiver.egg-info/dependency_links.txt +1 -0
  178. memdiver-0.5.6/memdiver.egg-info/entry_points.txt +2 -0
  179. memdiver-0.5.6/memdiver.egg-info/requires.txt +37 -0
  180. memdiver-0.5.6/memdiver.egg-info/top_level.txt +1 -0
  181. memdiver-0.5.6/msl/__init__.py +53 -0
  182. memdiver-0.5.6/msl/block_iter.py +57 -0
  183. memdiver-0.5.6/msl/block_tree.py +81 -0
  184. memdiver-0.5.6/msl/compress.py +73 -0
  185. memdiver-0.5.6/msl/decoders.py +590 -0
  186. memdiver-0.5.6/msl/decoders_ext.py +287 -0
  187. memdiver-0.5.6/msl/enums.py +184 -0
  188. memdiver-0.5.6/msl/hashing.py +45 -0
  189. memdiver-0.5.6/msl/importer.py +122 -0
  190. memdiver-0.5.6/msl/integrity.py +72 -0
  191. memdiver-0.5.6/msl/key_extract.py +168 -0
  192. memdiver-0.5.6/msl/page_map.py +135 -0
  193. memdiver-0.5.6/msl/reader.py +256 -0
  194. memdiver-0.5.6/msl/session_extract.py +156 -0
  195. memdiver-0.5.6/msl/string_extract.py +139 -0
  196. memdiver-0.5.6/msl/types.py +387 -0
  197. memdiver-0.5.6/msl/writer.py +217 -0
  198. memdiver-0.5.6/msl/xref_resolver.py +125 -0
  199. memdiver-0.5.6/pyproject.toml +118 -0
  200. memdiver-0.5.6/run.py +874 -0
  201. memdiver-0.5.6/setup.cfg +4 -0
  202. memdiver-0.5.6/tests/test_aes_e2e.py +210 -0
  203. memdiver-0.5.6/tests/test_algorithms.py +53 -0
  204. memdiver-0.5.6/tests/test_alignment_filter.py +72 -0
  205. memdiver-0.5.6/tests/test_analysis_service.py +161 -0
  206. memdiver-0.5.6/tests/test_api.py +284 -0
  207. memdiver-0.5.6/tests/test_api_analysis.py +186 -0
  208. memdiver-0.5.6/tests/test_api_architect.py +175 -0
  209. memdiver-0.5.6/tests/test_api_consensus.py +104 -0
  210. memdiver-0.5.6/tests/test_api_msl_endpoints.py +164 -0
  211. memdiver-0.5.6/tests/test_api_oracles.py +299 -0
  212. memdiver-0.5.6/tests/test_api_pipeline.py +212 -0
  213. memdiver-0.5.6/tests/test_api_sessions.py +163 -0
  214. memdiver-0.5.6/tests/test_api_structures.py +176 -0
  215. memdiver-0.5.6/tests/test_architect.py +258 -0
  216. memdiver-0.5.6/tests/test_artifact_store.py +132 -0
  217. memdiver-0.5.6/tests/test_auto_export_aslr_regression.py +339 -0
  218. memdiver-0.5.6/tests/test_batch.py +338 -0
  219. memdiver-0.5.6/tests/test_benchmarks.py +138 -0
  220. memdiver-0.5.6/tests/test_block_iter.py +98 -0
  221. memdiver-0.5.6/tests/test_block_tree.py +102 -0
  222. memdiver-0.5.6/tests/test_bookmark_store.py +66 -0
  223. memdiver-0.5.6/tests/test_brute_force.py +163 -0
  224. memdiver-0.5.6/tests/test_candidate_pipeline.py +74 -0
  225. memdiver-0.5.6/tests/test_change_point.py +91 -0
  226. memdiver-0.5.6/tests/test_classify.py +111 -0
  227. memdiver-0.5.6/tests/test_cli.py +416 -0
  228. memdiver-0.5.6/tests/test_config_schema.py +92 -0
  229. memdiver-0.5.6/tests/test_consensus.py +97 -0
  230. memdiver-0.5.6/tests/test_consensus_msl.py +162 -0
  231. memdiver-0.5.6/tests/test_consensus_msl_incremental.py +79 -0
  232. memdiver-0.5.6/tests/test_constraint_validator.py +238 -0
  233. memdiver-0.5.6/tests/test_convergence.py +141 -0
  234. memdiver-0.5.6/tests/test_correlator.py +47 -0
  235. memdiver-0.5.6/tests/test_dataset_metadata.py +101 -0
  236. memdiver-0.5.6/tests/test_decoders_ext.py +131 -0
  237. memdiver-0.5.6/tests/test_derived_keys.py +104 -0
  238. memdiver-0.5.6/tests/test_diff_store.py +158 -0
  239. memdiver-0.5.6/tests/test_differential.py +124 -0
  240. memdiver-0.5.6/tests/test_discovery.py +123 -0
  241. memdiver-0.5.6/tests/test_display_labels.py +47 -0
  242. memdiver-0.5.6/tests/test_dump_driver.py +166 -0
  243. memdiver-0.5.6/tests/test_dump_search.py +66 -0
  244. memdiver-0.5.6/tests/test_dump_source.py +175 -0
  245. memdiver-0.5.6/tests/test_e2e_real_dumps.py +527 -0
  246. memdiver-0.5.6/tests/test_elf_core_reader.py +94 -0
  247. memdiver-0.5.6/tests/test_entropy.py +105 -0
  248. memdiver-0.5.6/tests/test_ext_collectors.py +157 -0
  249. memdiver-0.5.6/tests/test_extract_strings_chunked.py +207 -0
  250. memdiver-0.5.6/tests/test_format_detect.py +155 -0
  251. memdiver-0.5.6/tests/test_format_endpoint.py +70 -0
  252. memdiver-0.5.6/tests/test_gcore_dump_source.py +90 -0
  253. memdiver-0.5.6/tests/test_hex_navigator.py +80 -0
  254. memdiver-0.5.6/tests/test_hex_pager.py +39 -0
  255. memdiver-0.5.6/tests/test_ingestor.py +95 -0
  256. memdiver-0.5.6/tests/test_input_schemas.py +85 -0
  257. memdiver-0.5.6/tests/test_integration.py +153 -0
  258. memdiver-0.5.6/tests/test_json_exporter.py +60 -0
  259. memdiver-0.5.6/tests/test_kaitai_and_features.py +522 -0
  260. memdiver-0.5.6/tests/test_kdf.py +107 -0
  261. memdiver-0.5.6/tests/test_kdf_base.py +64 -0
  262. memdiver-0.5.6/tests/test_kdf_registry.py +60 -0
  263. memdiver-0.5.6/tests/test_kdf_ssh.py +144 -0
  264. memdiver-0.5.6/tests/test_kdf_tls.py +105 -0
  265. memdiver-0.5.6/tests/test_key_extract.py +168 -0
  266. memdiver-0.5.6/tests/test_keylog.py +126 -0
  267. memdiver-0.5.6/tests/test_keylog_templates.py +41 -0
  268. memdiver-0.5.6/tests/test_mcp_tools.py +243 -0
  269. memdiver-0.5.6/tests/test_mcp_tools_pipeline.py +214 -0
  270. memdiver-0.5.6/tests/test_metadata_store.py +145 -0
  271. memdiver-0.5.6/tests/test_models.py +119 -0
  272. memdiver-0.5.6/tests/test_msl_compress.py +54 -0
  273. memdiver-0.5.6/tests/test_msl_enums.py +97 -0
  274. memdiver-0.5.6/tests/test_msl_importer.py +110 -0
  275. memdiver-0.5.6/tests/test_msl_integrity.py +100 -0
  276. memdiver-0.5.6/tests/test_msl_kaitai.py +104 -0
  277. memdiver-0.5.6/tests/test_msl_reader.py +183 -0
  278. memdiver-0.5.6/tests/test_msl_types.py +103 -0
  279. memdiver-0.5.6/tests/test_msl_writer.py +276 -0
  280. memdiver-0.5.6/tests/test_nsweep.py +136 -0
  281. memdiver-0.5.6/tests/test_oracle.py +103 -0
  282. memdiver-0.5.6/tests/test_page_map.py +152 -0
  283. memdiver-0.5.6/tests/test_path_router.py +91 -0
  284. memdiver-0.5.6/tests/test_pattern_generator.py +121 -0
  285. memdiver-0.5.6/tests/test_pattern_match.py +100 -0
  286. memdiver-0.5.6/tests/test_phase_integration.py +97 -0
  287. memdiver-0.5.6/tests/test_phase_normalizer.py +142 -0
  288. memdiver-0.5.6/tests/test_pipeline.py +29 -0
  289. memdiver-0.5.6/tests/test_pipeline_runner.py +267 -0
  290. memdiver-0.5.6/tests/test_proc_maps_parser.py +89 -0
  291. memdiver-0.5.6/tests/test_progress_bus.py +150 -0
  292. memdiver-0.5.6/tests/test_progress_callbacks.py +302 -0
  293. memdiver-0.5.6/tests/test_project_db.py +286 -0
  294. memdiver-0.5.6/tests/test_protocol_helpers.py +112 -0
  295. memdiver-0.5.6/tests/test_protocols.py +100 -0
  296. memdiver-0.5.6/tests/test_reader_cache.py +344 -0
  297. memdiver-0.5.6/tests/test_region_align.py +127 -0
  298. memdiver-0.5.6/tests/test_region_analysis.py +112 -0
  299. memdiver-0.5.6/tests/test_regioned_raw_source.py +96 -0
  300. memdiver-0.5.6/tests/test_serializer.py +115 -0
  301. memdiver-0.5.6/tests/test_session_extract.py +172 -0
  302. memdiver-0.5.6/tests/test_session_roundtrip.py +136 -0
  303. memdiver-0.5.6/tests/test_session_service.py +132 -0
  304. memdiver-0.5.6/tests/test_session_store.py +150 -0
  305. memdiver-0.5.6/tests/test_setup_wizard.py +125 -0
  306. memdiver-0.5.6/tests/test_sidecar.py +78 -0
  307. memdiver-0.5.6/tests/test_ssh_protocol.py +157 -0
  308. memdiver-0.5.6/tests/test_static_checker.py +74 -0
  309. memdiver-0.5.6/tests/test_string_extract.py +263 -0
  310. memdiver-0.5.6/tests/test_strings.py +127 -0
  311. memdiver-0.5.6/tests/test_structure_defs.py +176 -0
  312. memdiver-0.5.6/tests/test_structure_library.py +137 -0
  313. memdiver-0.5.6/tests/test_structure_overlay.py +230 -0
  314. memdiver-0.5.6/tests/test_structure_scan.py +73 -0
  315. memdiver-0.5.6/tests/test_table_decoders.py +508 -0
  316. memdiver-0.5.6/tests/test_task_manager.py +310 -0
  317. memdiver-0.5.6/tests/test_variance.py +125 -0
  318. memdiver-0.5.6/tests/test_vas_decoder.py +144 -0
  319. memdiver-0.5.6/tests/test_vas_view.py +118 -0
  320. memdiver-0.5.6/tests/test_verification.py +105 -0
  321. memdiver-0.5.6/tests/test_vol3_emit.py +147 -0
  322. memdiver-0.5.6/tests/test_volatility3_exporter.py +108 -0
  323. memdiver-0.5.6/tests/test_xref_resolver.py +161 -0
  324. memdiver-0.5.6/tests/test_yara_exporter.py +43 -0
  325. memdiver-0.5.6/ui/__init__.py +0 -0
  326. memdiver-0.5.6/ui/adapters.py +56 -0
  327. memdiver-0.5.6/ui/components/__init__.py +0 -0
  328. memdiver-0.5.6/ui/components/bookmark_store.py +70 -0
  329. memdiver-0.5.6/ui/components/color_scheme.py +70 -0
  330. memdiver-0.5.6/ui/components/header.py +67 -0
  331. memdiver-0.5.6/ui/components/hex_pager.py +52 -0
  332. memdiver-0.5.6/ui/components/hex_renderer.py +117 -0
  333. memdiver-0.5.6/ui/components/html_builder.py +89 -0
  334. memdiver-0.5.6/ui/components/progress_helper.py +54 -0
  335. memdiver-0.5.6/ui/components/setup_wizard.py +158 -0
  336. memdiver-0.5.6/ui/controls/__init__.py +0 -0
  337. memdiver-0.5.6/ui/controls/analysis_panel.py +139 -0
  338. memdiver-0.5.6/ui/controls/config_panel.py +101 -0
  339. memdiver-0.5.6/ui/controls/selector_panel.py +169 -0
  340. memdiver-0.5.6/ui/locales.py +37 -0
  341. memdiver-0.5.6/ui/mode.py +107 -0
  342. memdiver-0.5.6/ui/nicegui/__init__.py +1 -0
  343. memdiver-0.5.6/ui/nicegui/api_routes.py +74 -0
  344. memdiver-0.5.6/ui/nicegui/theme.py +74 -0
  345. memdiver-0.5.6/ui/nicegui/wizard.py +104 -0
  346. memdiver-0.5.6/ui/nicegui/workspace.py +84 -0
  347. memdiver-0.5.6/ui/state.py +137 -0
  348. memdiver-0.5.6/ui/views/__init__.py +0 -0
  349. memdiver-0.5.6/ui/views/block_navigator.py +288 -0
  350. memdiver-0.5.6/ui/views/consensus_view.py +71 -0
  351. memdiver-0.5.6/ui/views/cross_library.py +69 -0
  352. memdiver-0.5.6/ui/views/differential_diff.py +90 -0
  353. memdiver-0.5.6/ui/views/entropy_chart.py +82 -0
  354. memdiver-0.5.6/ui/views/heatmap.py +97 -0
  355. memdiver-0.5.6/ui/views/hex_comparison.py +116 -0
  356. memdiver-0.5.6/ui/views/hex_navigator.py +171 -0
  357. memdiver-0.5.6/ui/views/hex_viewer.py +125 -0
  358. memdiver-0.5.6/ui/views/investigation_panel.py +122 -0
  359. memdiver-0.5.6/ui/views/phase_lifecycle.py +76 -0
  360. memdiver-0.5.6/ui/views/session_view.py +135 -0
  361. memdiver-0.5.6/ui/views/variance_map.py +80 -0
  362. memdiver-0.5.6/ui/views/vas_view.py +185 -0
@@ -0,0 +1,92 @@
1
+ # Changelog
2
+
3
+ All notable changes to MemDiver are documented here.
4
+ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ### Changed
9
+ - **Extras collapsed** to two groups: `[experiment]` (frida-tools + memslicer)
10
+ and `[dev]` (pytest, pytest-asyncio, httpx). `marimo`, `nicegui`, `mcp`, and
11
+ `kaitaistruct` are now part of the base install — the `[notebook]`,
12
+ `[nicegui]`, `[ai]`, `[formats]`, and `[all]` extras were removed.
13
+ - `memdiver experiment` now surfaces an actionable install hint
14
+ (`pip install memdiver[experiment]`) when the experiment extras are missing,
15
+ instead of raising a bare ImportError.
16
+ - `LICENSE` file replaced with the canonical Apache License 2.0 text (was
17
+ previously MIT). The `pyproject.toml` classifier was updated to
18
+ `License :: OSI Approved :: Apache Software License` to match.
19
+ - Install-hint messages in `memdiver app` / `memdiver mcp` updated to the new
20
+ single-profile install story.
21
+
22
+ ### Added
23
+ - `pip install memdiver[experiment]` extra, pinning `frida-tools>=12.0` and
24
+ `memslicer` for the dump-collection flow.
25
+ - GitHub Actions workflows:
26
+ - `ci.yml` — pytest matrix (Python 3.11 / 3.12) on push / PR.
27
+ - `publish.yml` — OIDC trusted publishing to PyPI on `v*` tag push, plus
28
+ TestPyPI dry-runs via `workflow_dispatch`. Includes a `npm ci && npm run
29
+ build` step so the React bundle is baked into every wheel.
30
+ - `MANIFEST.in` — ensures `LICENSE`, `README.md`, `CHANGELOG.md`, algorithm
31
+ patterns, and the full `frontend/dist/` tree ship in the sdist.
32
+ - `frontend/dist/**/*` added to `[tool.setuptools.package-data]` so
33
+ `pip install memdiver` ships a working web UI out of the box.
34
+ - Sphinx documentation site under `docs/` (Read the Docs theme, MyST-parser),
35
+ published to <https://memoryslice.github.io/MemDiver/> via GitHub Pages.
36
+ Covers quickstart, full user guide, ten-subsystem architecture walkthrough,
37
+ eight algorithm reference pages, nine visualization pages, `.msl` v1.1.0
38
+ file-format spec, Oracle interface + examples, and a 12-module Python API
39
+ reference generated via `autodoc` + `napoleon`.
40
+ - `.github/workflows/docs.yml` — strict Sphinx build on every push and PR,
41
+ Pages deploy gated to `main` (re-enabled after one-time repo Settings
42
+ configuration).
43
+ - `.github/workflows/docs-screenshots.yml` — nightly Playwright refresh of
44
+ the 11 baseline screenshots under `docs/_static/screenshots/`, opening a
45
+ pull request on visual drift.
46
+ - Logo pipeline: `docs/_static/{logo,logo_simple}.svg` (both with `<title>`,
47
+ `<desc>`, `role="img"` for accessibility), `docs/_static/favicon.ico`
48
+ (multi-resolution 16/32/48), `docs/_static/logo_readme.png` (PyPI-safe
49
+ 512×512 raster), regenerator at `scripts/build_logo.py --check`.
50
+ - Playwright screenshot harness under `docs/screenshots/` — `capture.py`
51
+ (deterministic Chromium driver with 10 flake-reduction techniques),
52
+ `seed_data.py` (wraps the six `tests/fixtures/generate_*.py` generators),
53
+ `captions.json` (per-slug alt text + viewport), and
54
+ `generate_placeholders.py` for fresh clones.
55
+ - `docs` extra (`pip install memdiver[docs]`) pinning Sphinx 7.4,
56
+ `sphinx-rtd-theme`, `myst-parser`, `sphinx-copybutton`, `sphinx-design`,
57
+ `sphinxcontrib-mermaid`, `sphinx-argparse`, `cairosvg`, `pillow`.
58
+ - `cli.py` — public `build_parser()` alias exposed for `sphinx-argparse` and
59
+ external tooling.
60
+ - Repo-root `__init__.py` — `__version__` now resolves dynamically via
61
+ `importlib.metadata.version("memdiver")` instead of the drifted hard-coded
62
+ `"0.1.0"`.
63
+ - `pyproject.toml` — canonical project URLs updated to
64
+ `github.com/MemorySlice/MemDiver`; added a `Documentation` URL pointing at
65
+ the GitHub Pages site.
66
+ - README overhaul — accurate capability counts (8 algorithms, 20 CLI
67
+ subcommands, 12 FastAPI routers, 15 MCP tools), Apache-2.0 badge, MCP
68
+ one-line wiring snippet, IMF research framing, thumbnail gallery linking
69
+ into the docs site.
70
+
71
+ ### Deferred follow-ups
72
+ - **React i18n retrofit** — NiceGUI was localized via `ui/locales.py` +
73
+ `ui/locales/en.json` in this pass; the React SPA still hardcodes
74
+ user-facing strings (e.g. `frontend/src/components/wizard/Wizard.tsx`,
75
+ panel labels, button text). Recommend `react-i18next` with JSON namespaces
76
+ sharing the `locales/` convention. Out of scope for the remediation pass.
77
+ - **`user_regex` confidence calibration** —
78
+ `algorithms/unknown_key/user_regex.py:48` returns `min(total / 10.0, 1.0)`,
79
+ an arbitrary heuristic that inflates confidence on dense matches.
80
+ Track a calibration task: parameterize the divisor via context, or
81
+ compute confidence per-pattern from match density × pattern complexity.
82
+ - **e2e dataset gate** — 24 of 25 Playwright specs in `tests/e2e/specs/`
83
+ skip when no private dataset is mounted (`test.skip(!datasetAvailable, ...)`).
84
+ CI cannot exercise the SPA without it. Track a task to either (a) build a
85
+ minimal synthetic `.msl` fixture under `tests/e2e/fixtures/synthetic_msl/`
86
+ or (b) tag specs `requires-dataset` and document the CI strategy.
87
+
88
+ ## [0.5.1] — 2026-04-14
89
+
90
+ - TLS polymorphic structures + FTUE tour framework
91
+ (841 tests).
92
+ - (packaging/ops) resolved — MemDiver is now PyPI-publishable.
memdiver-0.5.6/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Support. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or support.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed" page as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024-2026 Anonymous
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ include LICENSE
2
+ include README.md
3
+ include CHANGELOG.md
4
+ include config.json
5
+ recursive-include algorithms/patterns *.json
6
+ recursive-include frontend/dist *
@@ -0,0 +1,234 @@
1
+ Metadata-Version: 2.4
2
+ Name: memdiver
3
+ Version: 0.5.6
4
+ Summary: Interactive platform for identifying and analyzing data structures in memory dumps
5
+ Author: Anonymous
6
+ License: Apache 2.0
7
+ Project-URL: Homepage, https://github.com/MemorySlice/MemDiver
8
+ Project-URL: Issues, https://github.com/MemorySlice/MemDiver/issues
9
+ Project-URL: Documentation, https://memoryslice.github.io/MemDiver/
10
+ Keywords: memory-analysis,forensics,cryptography,tls,security,binary-analysis
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Security
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: plotly>=5.18.0
23
+ Requires-Dist: polars>=1.0.0
24
+ Requires-Dist: duckdb>=1.0.0
25
+ Requires-Dist: ibis-framework[duckdb]>=9.0.0
26
+ Requires-Dist: blake3
27
+ Requires-Dist: zstandard
28
+ Requires-Dist: lz4
29
+ Requires-Dist: pyahocorasick>=2.0.0
30
+ Requires-Dist: numpy>=1.24.0
31
+ Requires-Dist: fastapi>=0.115.0
32
+ Requires-Dist: uvicorn[standard]>=0.30.0
33
+ Requires-Dist: pydantic-settings>=2.0.0
34
+ Requires-Dist: marimo>=0.8.0
35
+ Requires-Dist: nicegui>=3.0.0
36
+ Requires-Dist: mcp>=1.0.0
37
+ Requires-Dist: kaitaistruct>=0.10
38
+ Provides-Extra: experiment
39
+ Requires-Dist: frida-tools>=12.0; extra == "experiment"
40
+ Requires-Dist: memslicer; extra == "experiment"
41
+ Provides-Extra: dev
42
+ Requires-Dist: pytest>=8.0; extra == "dev"
43
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
44
+ Requires-Dist: httpx>=0.27; extra == "dev"
45
+ Provides-Extra: docs
46
+ Requires-Dist: sphinx<9,>=7.3; extra == "docs"
47
+ Requires-Dist: sphinx-rtd-theme<4,>=2.0; extra == "docs"
48
+ Requires-Dist: myst-parser<5,>=3.0; extra == "docs"
49
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "docs"
50
+ Requires-Dist: sphinx-design>=0.6.0; extra == "docs"
51
+ Requires-Dist: sphinxcontrib-mermaid>=0.9.2; extra == "docs"
52
+ Requires-Dist: sphinx-argparse>=0.5; extra == "docs"
53
+ Requires-Dist: linkify-it-py>=2.0.3; extra == "docs"
54
+ Requires-Dist: cairosvg>=2.7; extra == "docs"
55
+ Requires-Dist: pillow>=10.4; extra == "docs"
56
+ Dynamic: license-file
57
+
58
+ <p align="center">
59
+ <img src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/wordmark.svg"
60
+ alt="MemDiver" height="90" align="middle"/>
61
+ <img src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/logo_readme.png"
62
+ alt="MemDiver logo: a diver descending toward a golden key inside a teal memory blob"
63
+ width="220" align="middle"/>
64
+ </p>
65
+
66
+ <p align="center"><em>Interactive platform for identifying and analyzing data structures in memory dumps.</em></p>
67
+
68
+ <p align="center">
69
+ <a href="https://github.com/MemorySlice/MemDiver/actions/workflows/ci.yml"><img alt="CI status on main" src="https://github.com/MemorySlice/MemDiver/actions/workflows/ci.yml/badge.svg"></a>
70
+ <a href="https://pypi.org/project/memdiver/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/memdiver.svg"></a>
71
+ <a href="https://pypi.org/project/memdiver/"><img alt="Supported Python versions" src="https://img.shields.io/pypi/pyversions/memdiver.svg"></a>
72
+ <a href="LICENSE"><img alt="License Apache-2.0" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg"></a>
73
+ <a href="https://memoryslice.github.io/MemDiver/"><img alt="Documentation" src="https://img.shields.io/badge/docs-gh--pages-brightgreen.svg"></a>
74
+ <img alt="MCP enabled" src="https://img.shields.io/badge/MCP-enabled-8A2BE2.svg">
75
+ </p>
76
+
77
+ <p align="center">
78
+ <img src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/12_workspace_loaded_dark.png"
79
+ alt="MemDiver workspace with an MSL capture loaded — dark theme" width="49%"/>
80
+ <img src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/13_workspace_loaded_light.png"
81
+ alt="MemDiver workspace with an MSL capture loaded — light theme" width="49%"/>
82
+ </p>
83
+ <p align="center"><sub>MemDiver workspace with a sample <code>.msl</code> capture loaded — dark and light themes side by side.</sub></p>
84
+
85
+ # MemDiver
86
+
87
+ MemDiver is a browser-based workbench for exploring binary memory dumps. A FastAPI backend drives a React dockable workspace, with an optional Marimo sandbox for deeper research workflows and an MCP server that exposes the same analysis engine to AI assistants. For automation and integration into existing pipelines, MemDiver also runs in headless mode via a CLI.
88
+
89
+ It combines known-key search, entropy scanning, change-point detection, structural parsing, and cross-run differential analysis to locate and classify data structures in memory.
90
+
91
+ ## Features
92
+
93
+ - **Interactive workspace** — React-based dockable UI for hands-on exploration
94
+ - **Research sandbox** — Optional Marimo environment for reproducible notebooks and custom analysis
95
+ - **AI-assisted analysis** — MCP server integration for use with Claude and other assistants
96
+ - **Headless mode** — CLI interface for CI/CD, batch processing, and integration into forensic pipelines
97
+ - **Analysis engine** — Known-key search, entropy scanning, change-point detection, structural parsing, and cross-run differential analysis
98
+
99
+
100
+ ## Install
101
+
102
+ ```bash
103
+ pip install memdiver # web UI + CLI + MCP server (everything runtime-side)
104
+ pip install "memdiver[experiment]" # + frida-tools, memslicer for dump collection
105
+ pip install "memdiver[docs]" # + Sphinx toolchain for building the docs site
106
+ pip install "memdiver[dev]" # + pytest and contributor tooling
107
+ ```
108
+
109
+ LLDB is installed via your operating system — Xcode Command Line Tools on macOS, `apt install lldb` on Debian/Ubuntu. `memdiver experiment` exits gracefully with an install hint when no backend is present.
110
+
111
+ ## Quick start
112
+
113
+ ```bash
114
+ # 1. Web app (FastAPI + React SPA, opens on http://127.0.0.1:8080)
115
+ memdiver # or: memdiver web
116
+
117
+ # 2. One-shot CLI analysis
118
+ memdiver analyze <library_dirs> --phase pre_abort --protocol-version TLS13
119
+
120
+ # 3. MCP server (stdio transport) — wire into AI assistants
121
+ memdiver mcp
122
+
123
+ # 4. Collect fresh dumps from a target process
124
+ memdiver experiment --target path/to/target.py --num-runs 10
125
+
126
+ # 5. Marimo research sandbox (houses the 5 deeper visualization views)
127
+ memdiver ui
128
+ ```
129
+
130
+ ## At a glance
131
+
132
+ | Surface | Count | Location |
133
+ |---|---|---|
134
+ | Detection algorithms | **8** | [`algorithms/`](algorithms/) — `exact_match`, `entropy_scan`, `change_point`, `differential`, `constraint_validator`, `user_regex`, `pattern_match`, `structure_scan` |
135
+ | CLI subcommands | **20** | [`cli.py`](cli.py) |
136
+ | FastAPI routers | **12** + WebSocket | [`api/routers/`](api/routers/) |
137
+ | MCP tools | **15** | [`mcp_server/`](mcp_server/) |
138
+ | Exporters | YARA · JSON · Volatility3 | [`architect/`](architect/) |
139
+ | Dump backends | `memslicer` · `lldb` · `fridump` (Frida; *not* friTap) | [`core/dump_driver.py`](core/dump_driver.py) |
140
+ | Visualization views | 4 SPA + 5 Marimo research-mode | [`frontend/`](frontend/) + [`ui/`](ui/) |
141
+
142
+ Under the hood: DuckDB `ProjectDB`, `.memdiver` `SessionStore`, Welford incremental consensus, Aho-Corasick multi-pattern scan, Kaitai Struct binary-format parsers, ASLR-aware region alignment, auto-discovered KDF plugins, BYO decryption oracles, first-class Volatility3 plugin emission.
143
+
144
+ ### Wire MemDiver into Claude Desktop / Claude Code
145
+
146
+ Add this block to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or the equivalent on your OS:
147
+
148
+ ```json
149
+ {
150
+ "mcpServers": {
151
+ "memdiver": { "command": "memdiver", "args": ["mcp"] }
152
+ }
153
+ }
154
+ ```
155
+
156
+ Restart the MCP client — the 15 MemDiver tools (`scan_dataset`, `analyze_library`, `get_entropy`, `brute_force`, `emit_plugin`, …) appear in the tool picker.
157
+
158
+ ## Power-user CLI
159
+
160
+ All 20 subcommands exposed by [`cli.py`](cli.py):
161
+
162
+ | Detection &amp; analysis | Consensus (Welford) | Pipeline (Phase-25) | Format conversion | Runtime shells |
163
+ |---|---|---|---|---|
164
+ | `analyze` · `scan` · `batch` · `verify` | `consensus` · `consensus-begin` · `consensus-add` · `consensus-finalize` | `search-reduce` · `brute-force` · `n-sweep` · `emit-plugin` | `export` · `import` · `import-dir` | `web` · `ui` · `app` · `mcp` · `experiment` |
165
+
166
+ Run `memdiver <cmd> --help` for any of them, or see the full [CLI reference](https://memoryslice.github.io/MemDiver/user_guide/cli_reference.html).
167
+
168
+ ## Screenshots
169
+
170
+ | [Workspace](https://memoryslice.github.io/MemDiver/user_guide/web_ui_tour.html#workspace-default-layout) | [Hex + overlay](https://memoryslice.github.io/MemDiver/visualizations/hex.html) | [Entropy](https://memoryslice.github.io/MemDiver/visualizations/entropy.html) | [Consensus](https://memoryslice.github.io/MemDiver/visualizations/consensus.html) |
171
+ |---|---|---|---|
172
+ | <img alt="Workspace thumbnail" src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/04_workspace_default.png" width="220"> | <img alt="Hex viewer thumbnail" src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/05_hex_with_overlay.png" width="220"> | <img alt="Entropy profile thumbnail" src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/06_entropy_tab.png" width="220"> | <img alt="Consensus view thumbnail" src="https://raw.githubusercontent.com/MemorySlice/MemDiver/main/docs/_static/screenshots/07_consensus_tab.png" width="220"> |
173
+
174
+ Screenshots regenerate deterministically via the Playwright harness under [`docs/screenshots/`](docs/screenshots/). Pipeline shots 09 and 10 use precomputed n-sweep fixtures produced by [`scripts/precompute_pipeline_fixtures.py`](scripts/precompute_pipeline_fixtures.py) against the gocryptfs reference dataset.
175
+
176
+ ### Chart backend
177
+
178
+ The four analysis charts — Entropy, Variance Map, VAS, and the Pipeline Survivor Curve — ship with two interchangeable renderers:
179
+
180
+ - **Plotly** (default) — full interactive experience with pan/zoom/legend-toggle and a ~2.3 MB bundle.
181
+ - **SVG** — hand-rolled React + SVG with hover tooltips but no pan/zoom, zero runtime dependencies, code-split so users who stay on SVG never download the Plotly chunk.
182
+
183
+ Switch via **Settings → Display → Chart backend**. The preference persists per-browser. No reload required. Both backends share the same theme tokens so dark/light/high-contrast behaviour is identical.
184
+
185
+ ## Where to go next
186
+
187
+ - **Full documentation** — <https://memoryslice.github.io/MemDiver/>
188
+ - **Architecture deep-dive** — <https://memoryslice.github.io/MemDiver/architecture/index.html>
189
+ - **Algorithm reference** — <https://memoryslice.github.io/MemDiver/algorithms/index.html>
190
+ - **Contributing** — <https://memoryslice.github.io/MemDiver/contributing/index.html>
191
+ - **Changelog** — [CHANGELOG.md](CHANGELOG.md)
192
+
193
+ ## Architecture
194
+
195
+ ```
196
+ api/ FastAPI backend — 12 routers + WebSocket, OpenAPI docs at /docs
197
+ frontend/ React + Vite SPA (TypeScript, Tailwind, Zustand) — dockable workspace
198
+ core/ Stdlib-only data layer (models, discovery, parsing, entropy, KDF, variance, ASLR alignment)
199
+ engine/ Differential Engine — ConsensusVector (Welford), SearchCorrelator, DiffStore,
200
+ ProjectDB (DuckDB), SessionStore (.memdiver), oracle loader, Vol3 plugin emission
201
+ algorithms/ 8 algorithms auto-discovered via pkgutil registry
202
+ harvester/ Data ingestion — DumpIngestor, SidecarParser, MetadataStore
203
+ architect/ Pattern Architect — static checker + generator + YARA / JSON / Volatility3 exporters
204
+ msl/ Memory Slice (.msl) v1.1.0 — hand-rolled container with BLAKE3 integrity chain
205
+ mcp_server/ MCP server — 15 tools exposed to AI assistants
206
+ ui/ Marimo research sandbox (houses the 5 deeper views) + legacy NiceGUI shell
207
+ docs/ Sphinx site (Read the Docs theme), published to GitHub Pages via docs.yml
208
+ ```
209
+
210
+ ## Release process (maintainers)
211
+
212
+ 1. Bump `version` in `pyproject.toml` and move the `[Unreleased]` block in `CHANGELOG.md` under a new version heading.
213
+ 2. Commit and tag: `git tag vX.Y.Z && git push origin vX.Y.Z`.
214
+ 3. `.github/workflows/publish.yml` builds the React bundle, runs `python -m build`, and publishes to PyPI via OIDC trusted publishing (no token).
215
+ 4. `.github/workflows/docs.yml` rebuilds the Sphinx site and deploys to <https://memoryslice.github.io/MemDiver/>.
216
+ 5. For a pre-release dry run: `gh workflow run publish.yml` — the `workflow_dispatch` trigger publishes to test.pypi.org via the `testpypi` environment.
217
+
218
+ ## License
219
+
220
+ Apache License 2.0 — see [LICENSE](LICENSE).
221
+
222
+ ## Citation
223
+
224
+ If MemDiver supports your research, please cite the accompanying IMF conference submission. Author attribution is withheld during double-blind review; this entry will be updated once camera-ready.
225
+
226
+ ```bibtex
227
+ @software{memdiver2026,
228
+ author = {Anonymous},
229
+ title = {MemDiver: Interactive Memory-Dump Structure Analysis},
230
+ year = {2026},
231
+ url = {https://github.com/MemorySlice/MemDiver},
232
+ note = {Artifact accompanying an IMF (IT Security Incident Management \& IT Forensics) conference submission}
233
+ }
234
+ ```