windows-exe-decompiler-mcp-server 0.1.0 → 0.1.3

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 (134) hide show
  1. package/CLAUDE_INSTALLATION.md +129 -0
  2. package/CODEX_INSTALLATION.md +25 -1
  3. package/COPILOT_INSTALLATION.md +29 -1
  4. package/LICENSE +21 -21
  5. package/README.md +232 -110
  6. package/dist/analysis-provenance.d.ts +50 -2
  7. package/dist/analysis-provenance.js +1 -0
  8. package/dist/analysis-task-runner.js +92 -0
  9. package/dist/config.d.ts +35 -16
  10. package/dist/config.js +37 -3
  11. package/dist/database.js +115 -115
  12. package/dist/decompiler-worker.d.ts +10 -5
  13. package/dist/decompiler-worker.js +240 -58
  14. package/dist/dynamic-trace.d.ts +6 -0
  15. package/dist/dynamic-trace.js +52 -1
  16. package/dist/ghidra-config.js +17 -1
  17. package/dist/index.js +38 -8
  18. package/dist/pe-runtime-functions.d.ts +90 -0
  19. package/dist/pe-runtime-functions.js +452 -0
  20. package/dist/prompts/module-reconstruction-review.d.ts +5 -0
  21. package/dist/prompts/module-reconstruction-review.js +65 -0
  22. package/dist/runtime-correlation.d.ts +5 -0
  23. package/dist/runtime-correlation.js +179 -2
  24. package/dist/sample-workspace.d.ts +28 -0
  25. package/dist/sample-workspace.js +186 -0
  26. package/dist/semantic-name-suggestion-artifacts.d.ts +56 -0
  27. package/dist/semantic-name-suggestion-artifacts.js +87 -0
  28. package/dist/server.js +1 -1
  29. package/dist/setup-guidance.d.ts +73 -0
  30. package/dist/setup-guidance.js +211 -0
  31. package/dist/tools/artifact-read.d.ts +10 -10
  32. package/dist/tools/artifacts-diff.d.ts +8 -8
  33. package/dist/tools/artifacts-list.d.ts +16 -16
  34. package/dist/tools/attack-map.d.ts +8 -8
  35. package/dist/tools/binary-role-profile.d.ts +1197 -0
  36. package/dist/tools/binary-role-profile.js +575 -0
  37. package/dist/tools/code-function-explain-apply.d.ts +12 -12
  38. package/dist/tools/code-function-explain-prepare.d.ts +12 -12
  39. package/dist/tools/code-function-explain-review.d.ts +58 -58
  40. package/dist/tools/code-function-rename-apply.d.ts +12 -12
  41. package/dist/tools/code-function-rename-prepare.d.ts +14 -14
  42. package/dist/tools/code-function-rename-review.d.ts +66 -66
  43. package/dist/tools/code-functions-define.d.ts +337 -0
  44. package/dist/tools/code-functions-define.js +337 -0
  45. package/dist/tools/code-functions-list.js +1 -1
  46. package/dist/tools/code-functions-rank.js +1 -1
  47. package/dist/tools/code-functions-reconstruct.d.ts +368 -58
  48. package/dist/tools/code-functions-reconstruct.js +130 -10
  49. package/dist/tools/code-functions-smart-recover.d.ts +352 -0
  50. package/dist/tools/code-functions-smart-recover.js +190 -0
  51. package/dist/tools/code-module-review-apply.d.ts +233 -0
  52. package/dist/tools/code-module-review-apply.js +209 -0
  53. package/dist/tools/code-module-review-prepare.d.ts +756 -0
  54. package/dist/tools/code-module-review-prepare.js +343 -0
  55. package/dist/tools/code-module-review.d.ts +474 -0
  56. package/dist/tools/code-module-review.js +566 -0
  57. package/dist/tools/code-reconstruct-export.d.ts +193 -21
  58. package/dist/tools/code-reconstruct-export.js +578 -21
  59. package/dist/tools/code-reconstruct-plan.d.ts +20 -20
  60. package/dist/tools/com-role-profile.d.ts +353 -0
  61. package/dist/tools/com-role-profile.js +186 -0
  62. package/dist/tools/dll-export-profile.d.ts +625 -0
  63. package/dist/tools/dll-export-profile.js +230 -0
  64. package/dist/tools/dotnet-metadata-extract.d.ts +122 -122
  65. package/dist/tools/dotnet-reconstruct-export.d.ts +49 -49
  66. package/dist/tools/dotnet-types-list.d.ts +66 -66
  67. package/dist/tools/dynamic-dependencies.d.ts +144 -8
  68. package/dist/tools/dynamic-dependencies.js +20 -1
  69. package/dist/tools/dynamic-memory-import.js +105 -2
  70. package/dist/tools/ghidra-analyze.d.ts +20 -0
  71. package/dist/tools/ghidra-analyze.js +10 -2
  72. package/dist/tools/ghidra-health.d.ts +177 -0
  73. package/dist/tools/ghidra-health.js +28 -0
  74. package/dist/tools/ioc-export.d.ts +8 -8
  75. package/dist/tools/packer-detect.d.ts +14 -14
  76. package/dist/tools/packer-detect.js +6 -9
  77. package/dist/tools/pe-exports-extract.d.ts +8 -8
  78. package/dist/tools/pe-exports-extract.js +6 -9
  79. package/dist/tools/pe-fingerprint.d.ts +36 -36
  80. package/dist/tools/pe-imports-extract.d.ts +8 -8
  81. package/dist/tools/pe-imports-extract.js +6 -9
  82. package/dist/tools/pe-pdata-extract.d.ts +448 -0
  83. package/dist/tools/pe-pdata-extract.js +219 -0
  84. package/dist/tools/pe-symbols-recover.d.ts +227 -0
  85. package/dist/tools/pe-symbols-recover.js +316 -0
  86. package/dist/tools/report-generate.d.ts +15 -1
  87. package/dist/tools/report-generate.js +139 -16
  88. package/dist/tools/report-summarize.d.ts +2242 -8
  89. package/dist/tools/report-summarize.js +246 -10
  90. package/dist/tools/runtime-detect.d.ts +8 -8
  91. package/dist/tools/runtime-detect.js +2 -12
  92. package/dist/tools/rust-binary-analyze.d.ts +2047 -0
  93. package/dist/tools/rust-binary-analyze.js +443 -0
  94. package/dist/tools/sample-profile-get.d.ts +135 -16
  95. package/dist/tools/sample-profile-get.js +35 -32
  96. package/dist/tools/sandbox-execute.d.ts +10 -10
  97. package/dist/tools/strings-extract.d.ts +8 -8
  98. package/dist/tools/strings-extract.js +2 -12
  99. package/dist/tools/strings-floss-decode.d.ts +8 -8
  100. package/dist/tools/system-health.d.ts +172 -36
  101. package/dist/tools/system-health.js +14 -0
  102. package/dist/tools/system-setup-guide.d.ts +179 -0
  103. package/dist/tools/system-setup-guide.js +62 -0
  104. package/dist/tools/tool-help.d.ts +16 -16
  105. package/dist/tools/tool-help.js +172 -0
  106. package/dist/tools/yara-scan.d.ts +8 -8
  107. package/dist/types.d.ts +2 -0
  108. package/dist/workflows/function-explanation-review.d.ts +3034 -76
  109. package/dist/workflows/function-explanation-review.js +172 -42
  110. package/dist/workflows/function-index-recover.d.ts +333 -0
  111. package/dist/workflows/function-index-recover.js +291 -0
  112. package/dist/workflows/module-reconstruction-review.d.ts +3537 -0
  113. package/dist/workflows/module-reconstruction-review.js +354 -0
  114. package/dist/workflows/reconstruct.d.ts +2182 -223
  115. package/dist/workflows/reconstruct.js +575 -32
  116. package/dist/workflows/semantic-name-review.d.ts +1436 -85
  117. package/dist/workflows/semantic-name-review.js +150 -58
  118. package/dist/workflows/triage.d.ts +8 -8
  119. package/ghidra_scripts/DecompileFunction.java +487 -487
  120. package/ghidra_scripts/ExtractCFG.java +256 -256
  121. package/ghidra_scripts/ExtractFunctions.java +442 -442
  122. package/ghidra_scripts/README.md +112 -112
  123. package/ghidra_scripts/SearchFunctionReferences.java +380 -380
  124. package/helpers/DotNetMetadataProbe/DotNetMetadataProbe.csproj +9 -9
  125. package/helpers/DotNetMetadataProbe/Program.cs +566 -566
  126. package/install-to-claude.ps1 +432 -0
  127. package/install-to-codex.ps1 +256 -178
  128. package/install-to-copilot.ps1 +389 -303
  129. package/package.json +4 -2
  130. package/requirements.txt +9 -9
  131. package/workers/requirements-dynamic.txt +11 -11
  132. package/workers/requirements.txt +8 -8
  133. package/workers/speakeasy_compat.py +175 -175
  134. package/workers/static_worker.py +3474 -3474
@@ -0,0 +1,1197 @@
1
+ import { z } from 'zod';
2
+ import type { ToolArgs, ToolDefinition, WorkerResult } from '../types.js';
3
+ import type { WorkspaceManager } from '../workspace-manager.js';
4
+ import type { DatabaseManager } from '../database.js';
5
+ import type { CacheManager } from '../cache-manager.js';
6
+ export declare const BinaryRoleProfileInputSchema: z.ZodObject<{
7
+ sample_id: z.ZodString;
8
+ max_exports: z.ZodDefault<z.ZodNumber>;
9
+ max_strings: z.ZodDefault<z.ZodNumber>;
10
+ force_refresh: z.ZodDefault<z.ZodBoolean>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ sample_id: string;
13
+ force_refresh: boolean;
14
+ max_strings: number;
15
+ max_exports: number;
16
+ }, {
17
+ sample_id: string;
18
+ force_refresh?: boolean | undefined;
19
+ max_strings?: number | undefined;
20
+ max_exports?: number | undefined;
21
+ }>;
22
+ export declare const ExportSurfaceSchema: z.ZodObject<{
23
+ total_exports: z.ZodNumber;
24
+ total_forwarders: z.ZodNumber;
25
+ notable_exports: z.ZodArray<z.ZodString, "many">;
26
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
27
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
28
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
29
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ total_exports: number;
32
+ total_forwarders: number;
33
+ notable_exports: string[];
34
+ com_related_exports: string[];
35
+ service_related_exports: string[];
36
+ plugin_related_exports: string[];
37
+ forwarded_exports: string[];
38
+ }, {
39
+ total_exports: number;
40
+ total_forwarders: number;
41
+ notable_exports: string[];
42
+ com_related_exports: string[];
43
+ service_related_exports: string[];
44
+ plugin_related_exports: string[];
45
+ forwarded_exports: string[];
46
+ }>;
47
+ export declare const ImportSurfaceSchema: z.ZodObject<{
48
+ dll_count: z.ZodNumber;
49
+ notable_dlls: z.ZodArray<z.ZodString, "many">;
50
+ com_related_imports: z.ZodArray<z.ZodString, "many">;
51
+ service_related_imports: z.ZodArray<z.ZodString, "many">;
52
+ network_related_imports: z.ZodArray<z.ZodString, "many">;
53
+ process_related_imports: z.ZodArray<z.ZodString, "many">;
54
+ }, "strip", z.ZodTypeAny, {
55
+ dll_count: number;
56
+ notable_dlls: string[];
57
+ com_related_imports: string[];
58
+ service_related_imports: string[];
59
+ network_related_imports: string[];
60
+ process_related_imports: string[];
61
+ }, {
62
+ dll_count: number;
63
+ notable_dlls: string[];
64
+ com_related_imports: string[];
65
+ service_related_imports: string[];
66
+ network_related_imports: string[];
67
+ process_related_imports: string[];
68
+ }>;
69
+ export declare const RoleIndicatorSchema: z.ZodObject<{
70
+ likely: z.ZodBoolean;
71
+ confidence: z.ZodNumber;
72
+ evidence: z.ZodArray<z.ZodString, "many">;
73
+ }, "strip", z.ZodTypeAny, {
74
+ confidence: number;
75
+ evidence: string[];
76
+ likely: boolean;
77
+ }, {
78
+ confidence: number;
79
+ evidence: string[];
80
+ likely: boolean;
81
+ }>;
82
+ export declare const ExportDispatchProfileSchema: z.ZodObject<{
83
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
84
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
85
+ registration_exports: z.ZodArray<z.ZodString, "many">;
86
+ ordinal_only_exports: z.ZodNumber;
87
+ likely_dispatch_model: z.ZodString;
88
+ confidence: z.ZodNumber;
89
+ }, "strip", z.ZodTypeAny, {
90
+ confidence: number;
91
+ command_like_exports: string[];
92
+ callback_like_exports: string[];
93
+ registration_exports: string[];
94
+ ordinal_only_exports: number;
95
+ likely_dispatch_model: string;
96
+ }, {
97
+ confidence: number;
98
+ command_like_exports: string[];
99
+ callback_like_exports: string[];
100
+ registration_exports: string[];
101
+ ordinal_only_exports: number;
102
+ likely_dispatch_model: string;
103
+ }>;
104
+ export declare const ComProfileSchema: z.ZodObject<{
105
+ clsid_strings: z.ZodArray<z.ZodString, "many">;
106
+ progid_strings: z.ZodArray<z.ZodString, "many">;
107
+ interface_hints: z.ZodArray<z.ZodString, "many">;
108
+ registration_strings: z.ZodArray<z.ZodString, "many">;
109
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
110
+ class_factory_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
111
+ confidence: z.ZodNumber;
112
+ }, "strip", z.ZodTypeAny, {
113
+ confidence: number;
114
+ clsid_strings: string[];
115
+ progid_strings: string[];
116
+ interface_hints: string[];
117
+ registration_strings: string[];
118
+ class_factory_exports: string[];
119
+ class_factory_surface: string[];
120
+ }, {
121
+ confidence: number;
122
+ clsid_strings: string[];
123
+ progid_strings: string[];
124
+ interface_hints: string[];
125
+ registration_strings: string[];
126
+ class_factory_exports: string[];
127
+ class_factory_surface?: string[] | undefined;
128
+ }>;
129
+ export declare const HostInteractionProfileSchema: z.ZodObject<{
130
+ likely_hosted: z.ZodBoolean;
131
+ host_hints: z.ZodArray<z.ZodString, "many">;
132
+ callback_exports: z.ZodArray<z.ZodString, "many">;
133
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
134
+ callback_strings: z.ZodArray<z.ZodString, "many">;
135
+ service_hooks: z.ZodArray<z.ZodString, "many">;
136
+ confidence: z.ZodNumber;
137
+ }, "strip", z.ZodTypeAny, {
138
+ confidence: number;
139
+ callback_surface: string[];
140
+ likely_hosted: boolean;
141
+ host_hints: string[];
142
+ callback_exports: string[];
143
+ callback_strings: string[];
144
+ service_hooks: string[];
145
+ }, {
146
+ confidence: number;
147
+ likely_hosted: boolean;
148
+ host_hints: string[];
149
+ callback_exports: string[];
150
+ callback_strings: string[];
151
+ service_hooks: string[];
152
+ callback_surface?: string[] | undefined;
153
+ }>;
154
+ export declare const BinaryRoleProfileDataSchema: z.ZodObject<{
155
+ sample_id: z.ZodString;
156
+ original_filename: z.ZodNullable<z.ZodString>;
157
+ binary_role: z.ZodString;
158
+ role_confidence: z.ZodNumber;
159
+ runtime_hint: z.ZodObject<{
160
+ is_dotnet: z.ZodNullable<z.ZodBoolean>;
161
+ dotnet_version: z.ZodNullable<z.ZodString>;
162
+ target_framework: z.ZodNullable<z.ZodString>;
163
+ primary_runtime: z.ZodNullable<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ is_dotnet: boolean | null;
166
+ dotnet_version: string | null;
167
+ target_framework: string | null;
168
+ primary_runtime: string | null;
169
+ }, {
170
+ is_dotnet: boolean | null;
171
+ dotnet_version: string | null;
172
+ target_framework: string | null;
173
+ primary_runtime: string | null;
174
+ }>;
175
+ export_surface: z.ZodObject<{
176
+ total_exports: z.ZodNumber;
177
+ total_forwarders: z.ZodNumber;
178
+ notable_exports: z.ZodArray<z.ZodString, "many">;
179
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
180
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
181
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
182
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
183
+ }, "strip", z.ZodTypeAny, {
184
+ total_exports: number;
185
+ total_forwarders: number;
186
+ notable_exports: string[];
187
+ com_related_exports: string[];
188
+ service_related_exports: string[];
189
+ plugin_related_exports: string[];
190
+ forwarded_exports: string[];
191
+ }, {
192
+ total_exports: number;
193
+ total_forwarders: number;
194
+ notable_exports: string[];
195
+ com_related_exports: string[];
196
+ service_related_exports: string[];
197
+ plugin_related_exports: string[];
198
+ forwarded_exports: string[];
199
+ }>;
200
+ import_surface: z.ZodObject<{
201
+ dll_count: z.ZodNumber;
202
+ notable_dlls: z.ZodArray<z.ZodString, "many">;
203
+ com_related_imports: z.ZodArray<z.ZodString, "many">;
204
+ service_related_imports: z.ZodArray<z.ZodString, "many">;
205
+ network_related_imports: z.ZodArray<z.ZodString, "many">;
206
+ process_related_imports: z.ZodArray<z.ZodString, "many">;
207
+ }, "strip", z.ZodTypeAny, {
208
+ dll_count: number;
209
+ notable_dlls: string[];
210
+ com_related_imports: string[];
211
+ service_related_imports: string[];
212
+ network_related_imports: string[];
213
+ process_related_imports: string[];
214
+ }, {
215
+ dll_count: number;
216
+ notable_dlls: string[];
217
+ com_related_imports: string[];
218
+ service_related_imports: string[];
219
+ network_related_imports: string[];
220
+ process_related_imports: string[];
221
+ }>;
222
+ packed: z.ZodBoolean;
223
+ packing_confidence: z.ZodNumber;
224
+ indicators: z.ZodObject<{
225
+ com_server: z.ZodObject<{
226
+ likely: z.ZodBoolean;
227
+ confidence: z.ZodNumber;
228
+ evidence: z.ZodArray<z.ZodString, "many">;
229
+ }, "strip", z.ZodTypeAny, {
230
+ confidence: number;
231
+ evidence: string[];
232
+ likely: boolean;
233
+ }, {
234
+ confidence: number;
235
+ evidence: string[];
236
+ likely: boolean;
237
+ }>;
238
+ service_binary: z.ZodObject<{
239
+ likely: z.ZodBoolean;
240
+ confidence: z.ZodNumber;
241
+ evidence: z.ZodArray<z.ZodString, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ confidence: number;
244
+ evidence: string[];
245
+ likely: boolean;
246
+ }, {
247
+ confidence: number;
248
+ evidence: string[];
249
+ likely: boolean;
250
+ }>;
251
+ plugin_binary: z.ZodObject<{
252
+ likely: z.ZodBoolean;
253
+ confidence: z.ZodNumber;
254
+ evidence: z.ZodArray<z.ZodString, "many">;
255
+ }, "strip", z.ZodTypeAny, {
256
+ confidence: number;
257
+ evidence: string[];
258
+ likely: boolean;
259
+ }, {
260
+ confidence: number;
261
+ evidence: string[];
262
+ likely: boolean;
263
+ }>;
264
+ driver_binary: z.ZodObject<{
265
+ likely: z.ZodBoolean;
266
+ confidence: z.ZodNumber;
267
+ evidence: z.ZodArray<z.ZodString, "many">;
268
+ }, "strip", z.ZodTypeAny, {
269
+ confidence: number;
270
+ evidence: string[];
271
+ likely: boolean;
272
+ }, {
273
+ confidence: number;
274
+ evidence: string[];
275
+ likely: boolean;
276
+ }>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ com_server: {
279
+ confidence: number;
280
+ evidence: string[];
281
+ likely: boolean;
282
+ };
283
+ service_binary: {
284
+ confidence: number;
285
+ evidence: string[];
286
+ likely: boolean;
287
+ };
288
+ plugin_binary: {
289
+ confidence: number;
290
+ evidence: string[];
291
+ likely: boolean;
292
+ };
293
+ driver_binary: {
294
+ confidence: number;
295
+ evidence: string[];
296
+ likely: boolean;
297
+ };
298
+ }, {
299
+ com_server: {
300
+ confidence: number;
301
+ evidence: string[];
302
+ likely: boolean;
303
+ };
304
+ service_binary: {
305
+ confidence: number;
306
+ evidence: string[];
307
+ likely: boolean;
308
+ };
309
+ plugin_binary: {
310
+ confidence: number;
311
+ evidence: string[];
312
+ likely: boolean;
313
+ };
314
+ driver_binary: {
315
+ confidence: number;
316
+ evidence: string[];
317
+ likely: boolean;
318
+ };
319
+ }>;
320
+ export_dispatch_profile: z.ZodObject<{
321
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
322
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
323
+ registration_exports: z.ZodArray<z.ZodString, "many">;
324
+ ordinal_only_exports: z.ZodNumber;
325
+ likely_dispatch_model: z.ZodString;
326
+ confidence: z.ZodNumber;
327
+ }, "strip", z.ZodTypeAny, {
328
+ confidence: number;
329
+ command_like_exports: string[];
330
+ callback_like_exports: string[];
331
+ registration_exports: string[];
332
+ ordinal_only_exports: number;
333
+ likely_dispatch_model: string;
334
+ }, {
335
+ confidence: number;
336
+ command_like_exports: string[];
337
+ callback_like_exports: string[];
338
+ registration_exports: string[];
339
+ ordinal_only_exports: number;
340
+ likely_dispatch_model: string;
341
+ }>;
342
+ lifecycle_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
343
+ com_profile: z.ZodObject<{
344
+ clsid_strings: z.ZodArray<z.ZodString, "many">;
345
+ progid_strings: z.ZodArray<z.ZodString, "many">;
346
+ interface_hints: z.ZodArray<z.ZodString, "many">;
347
+ registration_strings: z.ZodArray<z.ZodString, "many">;
348
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
349
+ class_factory_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
350
+ confidence: z.ZodNumber;
351
+ }, "strip", z.ZodTypeAny, {
352
+ confidence: number;
353
+ clsid_strings: string[];
354
+ progid_strings: string[];
355
+ interface_hints: string[];
356
+ registration_strings: string[];
357
+ class_factory_exports: string[];
358
+ class_factory_surface: string[];
359
+ }, {
360
+ confidence: number;
361
+ clsid_strings: string[];
362
+ progid_strings: string[];
363
+ interface_hints: string[];
364
+ registration_strings: string[];
365
+ class_factory_exports: string[];
366
+ class_factory_surface?: string[] | undefined;
367
+ }>;
368
+ host_interaction_profile: z.ZodObject<{
369
+ likely_hosted: z.ZodBoolean;
370
+ host_hints: z.ZodArray<z.ZodString, "many">;
371
+ callback_exports: z.ZodArray<z.ZodString, "many">;
372
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
373
+ callback_strings: z.ZodArray<z.ZodString, "many">;
374
+ service_hooks: z.ZodArray<z.ZodString, "many">;
375
+ confidence: z.ZodNumber;
376
+ }, "strip", z.ZodTypeAny, {
377
+ confidence: number;
378
+ callback_surface: string[];
379
+ likely_hosted: boolean;
380
+ host_hints: string[];
381
+ callback_exports: string[];
382
+ callback_strings: string[];
383
+ service_hooks: string[];
384
+ }, {
385
+ confidence: number;
386
+ likely_hosted: boolean;
387
+ host_hints: string[];
388
+ callback_exports: string[];
389
+ callback_strings: string[];
390
+ service_hooks: string[];
391
+ callback_surface?: string[] | undefined;
392
+ }>;
393
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
394
+ strings_considered: z.ZodNumber;
395
+ }, "strip", z.ZodTypeAny, {
396
+ sample_id: string;
397
+ indicators: {
398
+ com_server: {
399
+ confidence: number;
400
+ evidence: string[];
401
+ likely: boolean;
402
+ };
403
+ service_binary: {
404
+ confidence: number;
405
+ evidence: string[];
406
+ likely: boolean;
407
+ };
408
+ plugin_binary: {
409
+ confidence: number;
410
+ evidence: string[];
411
+ likely: boolean;
412
+ };
413
+ driver_binary: {
414
+ confidence: number;
415
+ evidence: string[];
416
+ likely: boolean;
417
+ };
418
+ };
419
+ export_surface: {
420
+ total_exports: number;
421
+ total_forwarders: number;
422
+ notable_exports: string[];
423
+ com_related_exports: string[];
424
+ service_related_exports: string[];
425
+ plugin_related_exports: string[];
426
+ forwarded_exports: string[];
427
+ };
428
+ packed: boolean;
429
+ binary_role: string;
430
+ original_filename: string | null;
431
+ packing_confidence: number;
432
+ analysis_priorities: string[];
433
+ role_confidence: number;
434
+ runtime_hint: {
435
+ is_dotnet: boolean | null;
436
+ dotnet_version: string | null;
437
+ target_framework: string | null;
438
+ primary_runtime: string | null;
439
+ };
440
+ import_surface: {
441
+ dll_count: number;
442
+ notable_dlls: string[];
443
+ com_related_imports: string[];
444
+ service_related_imports: string[];
445
+ network_related_imports: string[];
446
+ process_related_imports: string[];
447
+ };
448
+ export_dispatch_profile: {
449
+ confidence: number;
450
+ command_like_exports: string[];
451
+ callback_like_exports: string[];
452
+ registration_exports: string[];
453
+ ordinal_only_exports: number;
454
+ likely_dispatch_model: string;
455
+ };
456
+ lifecycle_surface: string[];
457
+ com_profile: {
458
+ confidence: number;
459
+ clsid_strings: string[];
460
+ progid_strings: string[];
461
+ interface_hints: string[];
462
+ registration_strings: string[];
463
+ class_factory_exports: string[];
464
+ class_factory_surface: string[];
465
+ };
466
+ host_interaction_profile: {
467
+ confidence: number;
468
+ callback_surface: string[];
469
+ likely_hosted: boolean;
470
+ host_hints: string[];
471
+ callback_exports: string[];
472
+ callback_strings: string[];
473
+ service_hooks: string[];
474
+ };
475
+ strings_considered: number;
476
+ }, {
477
+ sample_id: string;
478
+ indicators: {
479
+ com_server: {
480
+ confidence: number;
481
+ evidence: string[];
482
+ likely: boolean;
483
+ };
484
+ service_binary: {
485
+ confidence: number;
486
+ evidence: string[];
487
+ likely: boolean;
488
+ };
489
+ plugin_binary: {
490
+ confidence: number;
491
+ evidence: string[];
492
+ likely: boolean;
493
+ };
494
+ driver_binary: {
495
+ confidence: number;
496
+ evidence: string[];
497
+ likely: boolean;
498
+ };
499
+ };
500
+ export_surface: {
501
+ total_exports: number;
502
+ total_forwarders: number;
503
+ notable_exports: string[];
504
+ com_related_exports: string[];
505
+ service_related_exports: string[];
506
+ plugin_related_exports: string[];
507
+ forwarded_exports: string[];
508
+ };
509
+ packed: boolean;
510
+ binary_role: string;
511
+ original_filename: string | null;
512
+ packing_confidence: number;
513
+ analysis_priorities: string[];
514
+ role_confidence: number;
515
+ runtime_hint: {
516
+ is_dotnet: boolean | null;
517
+ dotnet_version: string | null;
518
+ target_framework: string | null;
519
+ primary_runtime: string | null;
520
+ };
521
+ import_surface: {
522
+ dll_count: number;
523
+ notable_dlls: string[];
524
+ com_related_imports: string[];
525
+ service_related_imports: string[];
526
+ network_related_imports: string[];
527
+ process_related_imports: string[];
528
+ };
529
+ export_dispatch_profile: {
530
+ confidence: number;
531
+ command_like_exports: string[];
532
+ callback_like_exports: string[];
533
+ registration_exports: string[];
534
+ ordinal_only_exports: number;
535
+ likely_dispatch_model: string;
536
+ };
537
+ com_profile: {
538
+ confidence: number;
539
+ clsid_strings: string[];
540
+ progid_strings: string[];
541
+ interface_hints: string[];
542
+ registration_strings: string[];
543
+ class_factory_exports: string[];
544
+ class_factory_surface?: string[] | undefined;
545
+ };
546
+ host_interaction_profile: {
547
+ confidence: number;
548
+ likely_hosted: boolean;
549
+ host_hints: string[];
550
+ callback_exports: string[];
551
+ callback_strings: string[];
552
+ service_hooks: string[];
553
+ callback_surface?: string[] | undefined;
554
+ };
555
+ strings_considered: number;
556
+ lifecycle_surface?: string[] | undefined;
557
+ }>;
558
+ export declare const BinaryRoleProfileOutputSchema: z.ZodObject<{
559
+ ok: z.ZodBoolean;
560
+ data: z.ZodOptional<z.ZodObject<{
561
+ sample_id: z.ZodString;
562
+ original_filename: z.ZodNullable<z.ZodString>;
563
+ binary_role: z.ZodString;
564
+ role_confidence: z.ZodNumber;
565
+ runtime_hint: z.ZodObject<{
566
+ is_dotnet: z.ZodNullable<z.ZodBoolean>;
567
+ dotnet_version: z.ZodNullable<z.ZodString>;
568
+ target_framework: z.ZodNullable<z.ZodString>;
569
+ primary_runtime: z.ZodNullable<z.ZodString>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ is_dotnet: boolean | null;
572
+ dotnet_version: string | null;
573
+ target_framework: string | null;
574
+ primary_runtime: string | null;
575
+ }, {
576
+ is_dotnet: boolean | null;
577
+ dotnet_version: string | null;
578
+ target_framework: string | null;
579
+ primary_runtime: string | null;
580
+ }>;
581
+ export_surface: z.ZodObject<{
582
+ total_exports: z.ZodNumber;
583
+ total_forwarders: z.ZodNumber;
584
+ notable_exports: z.ZodArray<z.ZodString, "many">;
585
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
586
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
587
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
588
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ total_exports: number;
591
+ total_forwarders: number;
592
+ notable_exports: string[];
593
+ com_related_exports: string[];
594
+ service_related_exports: string[];
595
+ plugin_related_exports: string[];
596
+ forwarded_exports: string[];
597
+ }, {
598
+ total_exports: number;
599
+ total_forwarders: number;
600
+ notable_exports: string[];
601
+ com_related_exports: string[];
602
+ service_related_exports: string[];
603
+ plugin_related_exports: string[];
604
+ forwarded_exports: string[];
605
+ }>;
606
+ import_surface: z.ZodObject<{
607
+ dll_count: z.ZodNumber;
608
+ notable_dlls: z.ZodArray<z.ZodString, "many">;
609
+ com_related_imports: z.ZodArray<z.ZodString, "many">;
610
+ service_related_imports: z.ZodArray<z.ZodString, "many">;
611
+ network_related_imports: z.ZodArray<z.ZodString, "many">;
612
+ process_related_imports: z.ZodArray<z.ZodString, "many">;
613
+ }, "strip", z.ZodTypeAny, {
614
+ dll_count: number;
615
+ notable_dlls: string[];
616
+ com_related_imports: string[];
617
+ service_related_imports: string[];
618
+ network_related_imports: string[];
619
+ process_related_imports: string[];
620
+ }, {
621
+ dll_count: number;
622
+ notable_dlls: string[];
623
+ com_related_imports: string[];
624
+ service_related_imports: string[];
625
+ network_related_imports: string[];
626
+ process_related_imports: string[];
627
+ }>;
628
+ packed: z.ZodBoolean;
629
+ packing_confidence: z.ZodNumber;
630
+ indicators: z.ZodObject<{
631
+ com_server: z.ZodObject<{
632
+ likely: z.ZodBoolean;
633
+ confidence: z.ZodNumber;
634
+ evidence: z.ZodArray<z.ZodString, "many">;
635
+ }, "strip", z.ZodTypeAny, {
636
+ confidence: number;
637
+ evidence: string[];
638
+ likely: boolean;
639
+ }, {
640
+ confidence: number;
641
+ evidence: string[];
642
+ likely: boolean;
643
+ }>;
644
+ service_binary: z.ZodObject<{
645
+ likely: z.ZodBoolean;
646
+ confidence: z.ZodNumber;
647
+ evidence: z.ZodArray<z.ZodString, "many">;
648
+ }, "strip", z.ZodTypeAny, {
649
+ confidence: number;
650
+ evidence: string[];
651
+ likely: boolean;
652
+ }, {
653
+ confidence: number;
654
+ evidence: string[];
655
+ likely: boolean;
656
+ }>;
657
+ plugin_binary: z.ZodObject<{
658
+ likely: z.ZodBoolean;
659
+ confidence: z.ZodNumber;
660
+ evidence: z.ZodArray<z.ZodString, "many">;
661
+ }, "strip", z.ZodTypeAny, {
662
+ confidence: number;
663
+ evidence: string[];
664
+ likely: boolean;
665
+ }, {
666
+ confidence: number;
667
+ evidence: string[];
668
+ likely: boolean;
669
+ }>;
670
+ driver_binary: z.ZodObject<{
671
+ likely: z.ZodBoolean;
672
+ confidence: z.ZodNumber;
673
+ evidence: z.ZodArray<z.ZodString, "many">;
674
+ }, "strip", z.ZodTypeAny, {
675
+ confidence: number;
676
+ evidence: string[];
677
+ likely: boolean;
678
+ }, {
679
+ confidence: number;
680
+ evidence: string[];
681
+ likely: boolean;
682
+ }>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ com_server: {
685
+ confidence: number;
686
+ evidence: string[];
687
+ likely: boolean;
688
+ };
689
+ service_binary: {
690
+ confidence: number;
691
+ evidence: string[];
692
+ likely: boolean;
693
+ };
694
+ plugin_binary: {
695
+ confidence: number;
696
+ evidence: string[];
697
+ likely: boolean;
698
+ };
699
+ driver_binary: {
700
+ confidence: number;
701
+ evidence: string[];
702
+ likely: boolean;
703
+ };
704
+ }, {
705
+ com_server: {
706
+ confidence: number;
707
+ evidence: string[];
708
+ likely: boolean;
709
+ };
710
+ service_binary: {
711
+ confidence: number;
712
+ evidence: string[];
713
+ likely: boolean;
714
+ };
715
+ plugin_binary: {
716
+ confidence: number;
717
+ evidence: string[];
718
+ likely: boolean;
719
+ };
720
+ driver_binary: {
721
+ confidence: number;
722
+ evidence: string[];
723
+ likely: boolean;
724
+ };
725
+ }>;
726
+ export_dispatch_profile: z.ZodObject<{
727
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
728
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
729
+ registration_exports: z.ZodArray<z.ZodString, "many">;
730
+ ordinal_only_exports: z.ZodNumber;
731
+ likely_dispatch_model: z.ZodString;
732
+ confidence: z.ZodNumber;
733
+ }, "strip", z.ZodTypeAny, {
734
+ confidence: number;
735
+ command_like_exports: string[];
736
+ callback_like_exports: string[];
737
+ registration_exports: string[];
738
+ ordinal_only_exports: number;
739
+ likely_dispatch_model: string;
740
+ }, {
741
+ confidence: number;
742
+ command_like_exports: string[];
743
+ callback_like_exports: string[];
744
+ registration_exports: string[];
745
+ ordinal_only_exports: number;
746
+ likely_dispatch_model: string;
747
+ }>;
748
+ lifecycle_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
749
+ com_profile: z.ZodObject<{
750
+ clsid_strings: z.ZodArray<z.ZodString, "many">;
751
+ progid_strings: z.ZodArray<z.ZodString, "many">;
752
+ interface_hints: z.ZodArray<z.ZodString, "many">;
753
+ registration_strings: z.ZodArray<z.ZodString, "many">;
754
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
755
+ class_factory_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
756
+ confidence: z.ZodNumber;
757
+ }, "strip", z.ZodTypeAny, {
758
+ confidence: number;
759
+ clsid_strings: string[];
760
+ progid_strings: string[];
761
+ interface_hints: string[];
762
+ registration_strings: string[];
763
+ class_factory_exports: string[];
764
+ class_factory_surface: string[];
765
+ }, {
766
+ confidence: number;
767
+ clsid_strings: string[];
768
+ progid_strings: string[];
769
+ interface_hints: string[];
770
+ registration_strings: string[];
771
+ class_factory_exports: string[];
772
+ class_factory_surface?: string[] | undefined;
773
+ }>;
774
+ host_interaction_profile: z.ZodObject<{
775
+ likely_hosted: z.ZodBoolean;
776
+ host_hints: z.ZodArray<z.ZodString, "many">;
777
+ callback_exports: z.ZodArray<z.ZodString, "many">;
778
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
779
+ callback_strings: z.ZodArray<z.ZodString, "many">;
780
+ service_hooks: z.ZodArray<z.ZodString, "many">;
781
+ confidence: z.ZodNumber;
782
+ }, "strip", z.ZodTypeAny, {
783
+ confidence: number;
784
+ callback_surface: string[];
785
+ likely_hosted: boolean;
786
+ host_hints: string[];
787
+ callback_exports: string[];
788
+ callback_strings: string[];
789
+ service_hooks: string[];
790
+ }, {
791
+ confidence: number;
792
+ likely_hosted: boolean;
793
+ host_hints: string[];
794
+ callback_exports: string[];
795
+ callback_strings: string[];
796
+ service_hooks: string[];
797
+ callback_surface?: string[] | undefined;
798
+ }>;
799
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
800
+ strings_considered: z.ZodNumber;
801
+ }, "strip", z.ZodTypeAny, {
802
+ sample_id: string;
803
+ indicators: {
804
+ com_server: {
805
+ confidence: number;
806
+ evidence: string[];
807
+ likely: boolean;
808
+ };
809
+ service_binary: {
810
+ confidence: number;
811
+ evidence: string[];
812
+ likely: boolean;
813
+ };
814
+ plugin_binary: {
815
+ confidence: number;
816
+ evidence: string[];
817
+ likely: boolean;
818
+ };
819
+ driver_binary: {
820
+ confidence: number;
821
+ evidence: string[];
822
+ likely: boolean;
823
+ };
824
+ };
825
+ export_surface: {
826
+ total_exports: number;
827
+ total_forwarders: number;
828
+ notable_exports: string[];
829
+ com_related_exports: string[];
830
+ service_related_exports: string[];
831
+ plugin_related_exports: string[];
832
+ forwarded_exports: string[];
833
+ };
834
+ packed: boolean;
835
+ binary_role: string;
836
+ original_filename: string | null;
837
+ packing_confidence: number;
838
+ analysis_priorities: string[];
839
+ role_confidence: number;
840
+ runtime_hint: {
841
+ is_dotnet: boolean | null;
842
+ dotnet_version: string | null;
843
+ target_framework: string | null;
844
+ primary_runtime: string | null;
845
+ };
846
+ import_surface: {
847
+ dll_count: number;
848
+ notable_dlls: string[];
849
+ com_related_imports: string[];
850
+ service_related_imports: string[];
851
+ network_related_imports: string[];
852
+ process_related_imports: string[];
853
+ };
854
+ export_dispatch_profile: {
855
+ confidence: number;
856
+ command_like_exports: string[];
857
+ callback_like_exports: string[];
858
+ registration_exports: string[];
859
+ ordinal_only_exports: number;
860
+ likely_dispatch_model: string;
861
+ };
862
+ lifecycle_surface: string[];
863
+ com_profile: {
864
+ confidence: number;
865
+ clsid_strings: string[];
866
+ progid_strings: string[];
867
+ interface_hints: string[];
868
+ registration_strings: string[];
869
+ class_factory_exports: string[];
870
+ class_factory_surface: string[];
871
+ };
872
+ host_interaction_profile: {
873
+ confidence: number;
874
+ callback_surface: string[];
875
+ likely_hosted: boolean;
876
+ host_hints: string[];
877
+ callback_exports: string[];
878
+ callback_strings: string[];
879
+ service_hooks: string[];
880
+ };
881
+ strings_considered: number;
882
+ }, {
883
+ sample_id: string;
884
+ indicators: {
885
+ com_server: {
886
+ confidence: number;
887
+ evidence: string[];
888
+ likely: boolean;
889
+ };
890
+ service_binary: {
891
+ confidence: number;
892
+ evidence: string[];
893
+ likely: boolean;
894
+ };
895
+ plugin_binary: {
896
+ confidence: number;
897
+ evidence: string[];
898
+ likely: boolean;
899
+ };
900
+ driver_binary: {
901
+ confidence: number;
902
+ evidence: string[];
903
+ likely: boolean;
904
+ };
905
+ };
906
+ export_surface: {
907
+ total_exports: number;
908
+ total_forwarders: number;
909
+ notable_exports: string[];
910
+ com_related_exports: string[];
911
+ service_related_exports: string[];
912
+ plugin_related_exports: string[];
913
+ forwarded_exports: string[];
914
+ };
915
+ packed: boolean;
916
+ binary_role: string;
917
+ original_filename: string | null;
918
+ packing_confidence: number;
919
+ analysis_priorities: string[];
920
+ role_confidence: number;
921
+ runtime_hint: {
922
+ is_dotnet: boolean | null;
923
+ dotnet_version: string | null;
924
+ target_framework: string | null;
925
+ primary_runtime: string | null;
926
+ };
927
+ import_surface: {
928
+ dll_count: number;
929
+ notable_dlls: string[];
930
+ com_related_imports: string[];
931
+ service_related_imports: string[];
932
+ network_related_imports: string[];
933
+ process_related_imports: string[];
934
+ };
935
+ export_dispatch_profile: {
936
+ confidence: number;
937
+ command_like_exports: string[];
938
+ callback_like_exports: string[];
939
+ registration_exports: string[];
940
+ ordinal_only_exports: number;
941
+ likely_dispatch_model: string;
942
+ };
943
+ com_profile: {
944
+ confidence: number;
945
+ clsid_strings: string[];
946
+ progid_strings: string[];
947
+ interface_hints: string[];
948
+ registration_strings: string[];
949
+ class_factory_exports: string[];
950
+ class_factory_surface?: string[] | undefined;
951
+ };
952
+ host_interaction_profile: {
953
+ confidence: number;
954
+ likely_hosted: boolean;
955
+ host_hints: string[];
956
+ callback_exports: string[];
957
+ callback_strings: string[];
958
+ service_hooks: string[];
959
+ callback_surface?: string[] | undefined;
960
+ };
961
+ strings_considered: number;
962
+ lifecycle_surface?: string[] | undefined;
963
+ }>>;
964
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
965
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
966
+ metrics: z.ZodOptional<z.ZodObject<{
967
+ elapsed_ms: z.ZodNumber;
968
+ tool: z.ZodString;
969
+ cached: z.ZodOptional<z.ZodBoolean>;
970
+ cache_key: z.ZodOptional<z.ZodString>;
971
+ cache_tier: z.ZodOptional<z.ZodString>;
972
+ cache_created_at: z.ZodOptional<z.ZodString>;
973
+ cache_expires_at: z.ZodOptional<z.ZodString>;
974
+ cache_hit_at: z.ZodOptional<z.ZodString>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ elapsed_ms: number;
977
+ tool: string;
978
+ cached?: boolean | undefined;
979
+ cache_key?: string | undefined;
980
+ cache_tier?: string | undefined;
981
+ cache_created_at?: string | undefined;
982
+ cache_expires_at?: string | undefined;
983
+ cache_hit_at?: string | undefined;
984
+ }, {
985
+ elapsed_ms: number;
986
+ tool: string;
987
+ cached?: boolean | undefined;
988
+ cache_key?: string | undefined;
989
+ cache_tier?: string | undefined;
990
+ cache_created_at?: string | undefined;
991
+ cache_expires_at?: string | undefined;
992
+ cache_hit_at?: string | undefined;
993
+ }>>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ ok: boolean;
996
+ data?: {
997
+ sample_id: string;
998
+ indicators: {
999
+ com_server: {
1000
+ confidence: number;
1001
+ evidence: string[];
1002
+ likely: boolean;
1003
+ };
1004
+ service_binary: {
1005
+ confidence: number;
1006
+ evidence: string[];
1007
+ likely: boolean;
1008
+ };
1009
+ plugin_binary: {
1010
+ confidence: number;
1011
+ evidence: string[];
1012
+ likely: boolean;
1013
+ };
1014
+ driver_binary: {
1015
+ confidence: number;
1016
+ evidence: string[];
1017
+ likely: boolean;
1018
+ };
1019
+ };
1020
+ export_surface: {
1021
+ total_exports: number;
1022
+ total_forwarders: number;
1023
+ notable_exports: string[];
1024
+ com_related_exports: string[];
1025
+ service_related_exports: string[];
1026
+ plugin_related_exports: string[];
1027
+ forwarded_exports: string[];
1028
+ };
1029
+ packed: boolean;
1030
+ binary_role: string;
1031
+ original_filename: string | null;
1032
+ packing_confidence: number;
1033
+ analysis_priorities: string[];
1034
+ role_confidence: number;
1035
+ runtime_hint: {
1036
+ is_dotnet: boolean | null;
1037
+ dotnet_version: string | null;
1038
+ target_framework: string | null;
1039
+ primary_runtime: string | null;
1040
+ };
1041
+ import_surface: {
1042
+ dll_count: number;
1043
+ notable_dlls: string[];
1044
+ com_related_imports: string[];
1045
+ service_related_imports: string[];
1046
+ network_related_imports: string[];
1047
+ process_related_imports: string[];
1048
+ };
1049
+ export_dispatch_profile: {
1050
+ confidence: number;
1051
+ command_like_exports: string[];
1052
+ callback_like_exports: string[];
1053
+ registration_exports: string[];
1054
+ ordinal_only_exports: number;
1055
+ likely_dispatch_model: string;
1056
+ };
1057
+ lifecycle_surface: string[];
1058
+ com_profile: {
1059
+ confidence: number;
1060
+ clsid_strings: string[];
1061
+ progid_strings: string[];
1062
+ interface_hints: string[];
1063
+ registration_strings: string[];
1064
+ class_factory_exports: string[];
1065
+ class_factory_surface: string[];
1066
+ };
1067
+ host_interaction_profile: {
1068
+ confidence: number;
1069
+ callback_surface: string[];
1070
+ likely_hosted: boolean;
1071
+ host_hints: string[];
1072
+ callback_exports: string[];
1073
+ callback_strings: string[];
1074
+ service_hooks: string[];
1075
+ };
1076
+ strings_considered: number;
1077
+ } | undefined;
1078
+ metrics?: {
1079
+ elapsed_ms: number;
1080
+ tool: string;
1081
+ cached?: boolean | undefined;
1082
+ cache_key?: string | undefined;
1083
+ cache_tier?: string | undefined;
1084
+ cache_created_at?: string | undefined;
1085
+ cache_expires_at?: string | undefined;
1086
+ cache_hit_at?: string | undefined;
1087
+ } | undefined;
1088
+ warnings?: string[] | undefined;
1089
+ errors?: string[] | undefined;
1090
+ }, {
1091
+ ok: boolean;
1092
+ data?: {
1093
+ sample_id: string;
1094
+ indicators: {
1095
+ com_server: {
1096
+ confidence: number;
1097
+ evidence: string[];
1098
+ likely: boolean;
1099
+ };
1100
+ service_binary: {
1101
+ confidence: number;
1102
+ evidence: string[];
1103
+ likely: boolean;
1104
+ };
1105
+ plugin_binary: {
1106
+ confidence: number;
1107
+ evidence: string[];
1108
+ likely: boolean;
1109
+ };
1110
+ driver_binary: {
1111
+ confidence: number;
1112
+ evidence: string[];
1113
+ likely: boolean;
1114
+ };
1115
+ };
1116
+ export_surface: {
1117
+ total_exports: number;
1118
+ total_forwarders: number;
1119
+ notable_exports: string[];
1120
+ com_related_exports: string[];
1121
+ service_related_exports: string[];
1122
+ plugin_related_exports: string[];
1123
+ forwarded_exports: string[];
1124
+ };
1125
+ packed: boolean;
1126
+ binary_role: string;
1127
+ original_filename: string | null;
1128
+ packing_confidence: number;
1129
+ analysis_priorities: string[];
1130
+ role_confidence: number;
1131
+ runtime_hint: {
1132
+ is_dotnet: boolean | null;
1133
+ dotnet_version: string | null;
1134
+ target_framework: string | null;
1135
+ primary_runtime: string | null;
1136
+ };
1137
+ import_surface: {
1138
+ dll_count: number;
1139
+ notable_dlls: string[];
1140
+ com_related_imports: string[];
1141
+ service_related_imports: string[];
1142
+ network_related_imports: string[];
1143
+ process_related_imports: string[];
1144
+ };
1145
+ export_dispatch_profile: {
1146
+ confidence: number;
1147
+ command_like_exports: string[];
1148
+ callback_like_exports: string[];
1149
+ registration_exports: string[];
1150
+ ordinal_only_exports: number;
1151
+ likely_dispatch_model: string;
1152
+ };
1153
+ com_profile: {
1154
+ confidence: number;
1155
+ clsid_strings: string[];
1156
+ progid_strings: string[];
1157
+ interface_hints: string[];
1158
+ registration_strings: string[];
1159
+ class_factory_exports: string[];
1160
+ class_factory_surface?: string[] | undefined;
1161
+ };
1162
+ host_interaction_profile: {
1163
+ confidence: number;
1164
+ likely_hosted: boolean;
1165
+ host_hints: string[];
1166
+ callback_exports: string[];
1167
+ callback_strings: string[];
1168
+ service_hooks: string[];
1169
+ callback_surface?: string[] | undefined;
1170
+ };
1171
+ strings_considered: number;
1172
+ lifecycle_surface?: string[] | undefined;
1173
+ } | undefined;
1174
+ metrics?: {
1175
+ elapsed_ms: number;
1176
+ tool: string;
1177
+ cached?: boolean | undefined;
1178
+ cache_key?: string | undefined;
1179
+ cache_tier?: string | undefined;
1180
+ cache_created_at?: string | undefined;
1181
+ cache_expires_at?: string | undefined;
1182
+ cache_hit_at?: string | undefined;
1183
+ } | undefined;
1184
+ warnings?: string[] | undefined;
1185
+ errors?: string[] | undefined;
1186
+ }>;
1187
+ export declare const binaryRoleProfileToolDefinition: ToolDefinition;
1188
+ interface BinaryRoleProfileDependencies {
1189
+ exportsHandler?: (args: ToolArgs) => Promise<WorkerResult>;
1190
+ importsHandler?: (args: ToolArgs) => Promise<WorkerResult>;
1191
+ stringsHandler?: (args: ToolArgs) => Promise<WorkerResult>;
1192
+ runtimeHandler?: (args: ToolArgs) => Promise<WorkerResult>;
1193
+ packerHandler?: (args: ToolArgs) => Promise<WorkerResult>;
1194
+ }
1195
+ export declare function createBinaryRoleProfileHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, dependencies?: BinaryRoleProfileDependencies): (args: ToolArgs) => Promise<WorkerResult>;
1196
+ export {};
1197
+ //# sourceMappingURL=binary-role-profile.d.ts.map