@eyeauras/insight-cli 0.6.1 → 0.6.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.
- package/.cli-package-build.json +1 -1
- package/SKILL.md +1 -1
- package/dist/src/contexts.d.ts +8 -0
- package/dist/src/contexts.js +63 -11
- package/dist/src/lifecycle.d.ts +2 -0
- package/dist/src/lifecycle.js +40 -1
- package/dist/src/research.d.ts +1 -0
- package/dist/src/storage-gc.js +12 -3
- package/dist/src/workspace.d.ts +11 -0
- package/dist/src/workspace.js +35 -4
- package/package.json +1 -1
- package/skill-bundle/insight-artifacts/SKILL.md +1 -1
- package/skill-bundle/insight-binary/SKILL.md +1 -1
- package/skill-bundle/insight-capture/SKILL.md +1 -1
- package/skill-bundle/insight-cli/SKILL.md +1 -1
- package/skill-bundle/insight-die/SKILL.md +1 -1
- package/skill-bundle/insight-dnspy/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-dump/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-stack/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-trace/SKILL.md +1 -1
- package/skill-bundle/insight-frida/SKILL.md +1 -1
- package/skill-bundle/insight-ghidra/SKILL.md +1 -1
- package/skill-bundle/insight-ilspy/SKILL.md +1 -1
- package/skill-bundle/insight-interop/SKILL.md +1 -1
- package/skill-bundle/insight-lldb/SKILL.md +1 -1
- package/skill-bundle/insight-llvm/SKILL.md +1 -1
- package/skill-bundle/insight-managed-heap/SKILL.md +1 -1
- package/skill-bundle/insight-managed-metadata/SKILL.md +1 -1
- package/skill-bundle/insight-mitmproxy/SKILL.md +1 -1
- package/skill-bundle/insight-overview/SKILL.md +1 -1
- package/skill-bundle/insight-procmon/SKILL.md +1 -1
- package/skill-bundle/insight-re/SKILL.md +1 -1
- package/skill-bundle/insight-sevenzip/SKILL.md +1 -1
- package/skill-bundle/insight-strace/SKILL.md +1 -1
- package/skill-bundle/insight-tshark/SKILL.md +1 -1
- package/skill-bundle/insight-windbg/SKILL.md +1 -1
- package/skill-bundle/manifest.json +1 -1
- package/skills/insight-artifacts/SKILL.md +1 -1
- package/skills/insight-binary/SKILL.md +1 -1
- package/skills/insight-capture/SKILL.md +1 -1
- package/skills/insight-die/SKILL.md +1 -1
- package/skills/insight-dnspy/SKILL.md +1 -1
- package/skills/insight-dotnet-dump/SKILL.md +1 -1
- package/skills/insight-dotnet-stack/SKILL.md +1 -1
- package/skills/insight-dotnet-trace/SKILL.md +1 -1
- package/skills/insight-frida/SKILL.md +1 -1
- package/skills/insight-ghidra/SKILL.md +1 -1
- package/skills/insight-ilspy/SKILL.md +1 -1
- package/skills/insight-interop/SKILL.md +1 -1
- package/skills/insight-lldb/SKILL.md +1 -1
- package/skills/insight-llvm/SKILL.md +1 -1
- package/skills/insight-managed-heap/SKILL.md +1 -1
- package/skills/insight-managed-metadata/SKILL.md +1 -1
- package/skills/insight-mitmproxy/SKILL.md +1 -1
- package/skills/insight-overview/SKILL.md +1 -1
- package/skills/insight-procmon/SKILL.md +1 -1
- package/skills/insight-re/SKILL.md +1 -1
- package/skills/insight-sevenzip/SKILL.md +1 -1
- package/skills/insight-strace/SKILL.md +1 -1
- package/skills/insight-tshark/SKILL.md +1 -1
- package/skills/insight-windbg/SKILL.md +1 -1
package/.cli-package-build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"artifact":"
|
|
1
|
+
{"version":1,"artifact":"f4db353a202c2b3c6aacef612601b76a5fb0dff4ec7150e1c8b99f540d365661"}
|
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: insight-cli
|
|
|
3
3
|
description: Choose and prepare reverse-engineering capabilities from the insight-cli toolbox for binary, managed-code and runtime investigations. Use to discover the appropriate tool or its packaged skill before installing native runtimes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# insight-cli 0.6.
|
|
6
|
+
# insight-cli 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
package/dist/src/contexts.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ export declare class GhidraContexts {
|
|
|
143
143
|
releaseUnchanged(scope: Scope): Promise<boolean>;
|
|
144
144
|
/** A missing current receipt means no worker was ever started; any other missing receipt is unproved. */
|
|
145
145
|
private neverStartedOrClosed;
|
|
146
|
+
/** A pending checkout intent may own a server checkout, so it is never treated as detached work. */
|
|
147
|
+
detachedStopped(scope: Scope): Promise<boolean>;
|
|
146
148
|
collect(dryRun: boolean): Promise<{
|
|
147
149
|
retained: {
|
|
148
150
|
path: string;
|
|
@@ -218,6 +220,12 @@ export declare class GhidraContexts {
|
|
|
218
220
|
projectOutcome(requestId: string, expected: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
|
|
219
221
|
private debuggerMetadataChanges;
|
|
220
222
|
close(scope: Scope): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* The worker that last used a context root. A start records process.json first and current.json only once its
|
|
225
|
+
* program is open, so a failed start leaves an older current receipt. It is superseded only by a receipt of the
|
|
226
|
+
* same context and root, and only after the older worker is proved gone.
|
|
227
|
+
*/
|
|
228
|
+
private lastWorker;
|
|
221
229
|
closed(scope: Scope): Promise<boolean>;
|
|
222
230
|
latest(targetId: string): Promise<{
|
|
223
231
|
revision: number;
|
package/dist/src/contexts.js
CHANGED
|
@@ -745,7 +745,7 @@ export class GhidraContexts {
|
|
|
745
745
|
async releaseUnchanged(scope) {
|
|
746
746
|
const context = this.workspace.context(scope), checkout = context.nativeCheckout;
|
|
747
747
|
if (!checkout || checkout.state === 'dropped' || checkout.conflict || context.scalars.length || context.complexChanges.length || context.debugger?.traces.length || context.debugger?.connected ||
|
|
748
|
-
this.workspace.activePublication(scope.target)?.session === scope.session || !this.workspace.unchangedNative(context) || this.workspace.uncertainOutcome(scope) || this.workspace.checkoutReferenced(context) || !await this.
|
|
748
|
+
this.workspace.activePublication(scope.target)?.session === scope.session || !this.workspace.unchangedNative(context) || this.workspace.uncertainOutcome(scope) || this.workspace.checkoutReferenced(context) || !await this.neverStartedOrClosed(context))
|
|
749
749
|
return false;
|
|
750
750
|
if (checkout.state === 'verified') {
|
|
751
751
|
await this.dropNative(scope);
|
|
@@ -771,6 +771,25 @@ export class GhidraContexts {
|
|
|
771
771
|
}
|
|
772
772
|
return this.closed(c);
|
|
773
773
|
}
|
|
774
|
+
/** A pending checkout intent may own a server checkout, so it is never treated as detached work. */
|
|
775
|
+
async detachedStopped(scope) {
|
|
776
|
+
const context = this.workspace.context(scope);
|
|
777
|
+
let pending = true;
|
|
778
|
+
try {
|
|
779
|
+
await readFile(join(this.directory(), 'context', context.id, 'checkout.json'));
|
|
780
|
+
}
|
|
781
|
+
catch (error) {
|
|
782
|
+
if (error.code !== 'ENOENT')
|
|
783
|
+
throw error;
|
|
784
|
+
pending = false;
|
|
785
|
+
}
|
|
786
|
+
if (pending || context.nativeCheckout)
|
|
787
|
+
fail('blocked', 'A native checkout belongs to this context; it is not detached work.');
|
|
788
|
+
// A worker whose owner died before its current receipt is still found by its process receipt.
|
|
789
|
+
if ((await runtimeProcesses(dirname(this.workspace.directory))).some(p => p.kind !== 'server' && (p.sessionContext ?? context.id) === context.id))
|
|
790
|
+
return false;
|
|
791
|
+
return this.neverStartedOrClosed(context);
|
|
792
|
+
}
|
|
774
793
|
async collect(dryRun) {
|
|
775
794
|
return collectStorage(this.workspace, { closed: c => this.neverStartedOrClosed(c), release: c => this.releaseUnchanged(c) }, dryRun, message => this.c.progress(message));
|
|
776
795
|
}
|
|
@@ -854,9 +873,9 @@ export class GhidraContexts {
|
|
|
854
873
|
const context = this.workspace.context(scope), target = this.workspace.target(scope.target);
|
|
855
874
|
if (this.workspace.unresolved(scope).some(intent => intent.id !== request && intent.operation !== 'ghidra.open'))
|
|
856
875
|
fail('blocked', 'This context retains an unresolved operation; reconcile its recorded outcome before continuing.');
|
|
857
|
-
let binding;
|
|
876
|
+
let binding, unfinished = false;
|
|
858
877
|
try {
|
|
859
|
-
binding =
|
|
878
|
+
({ binding, unfinished } = await this.lastWorker(context.id));
|
|
860
879
|
}
|
|
861
880
|
catch (error) {
|
|
862
881
|
if (error.code !== 'ENOENT')
|
|
@@ -875,12 +894,14 @@ export class GhidraContexts {
|
|
|
875
894
|
}
|
|
876
895
|
if (context.workingSnapshot && !context.nativeCheckout)
|
|
877
896
|
fail('migration', 'This context contains legacy detached work; run ghidra migrate --target ' + scope.target + ' --dry-run, then ghidra migrate --target ' + scope.target + '. Its data is retained.');
|
|
878
|
-
if (binding && !stopped && alive(binding.pid) && (
|
|
897
|
+
if (binding && unfinished && !stopped && alive(binding.pid) && !await this.retiredWorker(binding))
|
|
898
|
+
fail('busy', 'A worker of this context has not finished starting; it is retained.');
|
|
899
|
+
if (binding && !unfinished && !stopped && alive(binding.pid) && ((binding.viewEpoch ?? 0) !== (context.viewEpoch ?? 0) ||
|
|
879
900
|
binding.baseRevision !== context.baseRevision && context.baseRevision !== undefined)) {
|
|
880
901
|
await this.stopRecord(await this.verified(binding, target), true, false, 'view_replaced');
|
|
881
902
|
stopped = true;
|
|
882
903
|
}
|
|
883
|
-
if (binding && !stopped && alive(binding.pid)) {
|
|
904
|
+
if (binding && !unfinished && !stopped && alive(binding.pid)) {
|
|
884
905
|
if (binding.context !== context.id)
|
|
885
906
|
fail('binding', 'Native process belongs to a different working context.');
|
|
886
907
|
try {
|
|
@@ -899,7 +920,7 @@ export class GhidraContexts {
|
|
|
899
920
|
await this.model(target);
|
|
900
921
|
if (binding && !stopped && !alive(binding.pid))
|
|
901
922
|
await recordLifecycle(this.workspace, context.id, { at: new Date().toISOString(), event: 'stop', reason: 'unknown', pid: binding.pid });
|
|
902
|
-
if (binding && (stopped || !alive(binding.pid))) {
|
|
923
|
+
if (binding && (stopped || unfinished || !alive(binding.pid))) {
|
|
903
924
|
if (binding.context !== context.id || binding.target !== scope.target)
|
|
904
925
|
fail('binding', 'Retired native credential belongs to another context.');
|
|
905
926
|
await releaseStoppedContextCredential(this.directory(), binding, this.c.secrets, alive, () => this.retiredWorker(binding));
|
|
@@ -1414,9 +1435,32 @@ public class ${name} extends GhidraScript {
|
|
|
1414
1435
|
this.workspace.saveContext(scope, context.generation, { state: 'stopped', workingSnapshot: snapshot, complexChanges, ...(debuggerState ? { debugger: { ...debuggerState, connected: false, traces: debuggerState.traces.map(trace => ({ ...trace, connected: false })) } } : {}) });
|
|
1415
1436
|
await this.stopRecord(record, true, true, 'explicit_close');
|
|
1416
1437
|
}
|
|
1438
|
+
/**
|
|
1439
|
+
* The worker that last used a context root. A start records process.json first and current.json only once its
|
|
1440
|
+
* program is open, so a failed start leaves an older current receipt. It is superseded only by a receipt of the
|
|
1441
|
+
* same context and root, and only after the older worker is proved gone.
|
|
1442
|
+
*/
|
|
1443
|
+
async lastWorker(context) {
|
|
1444
|
+
const binding = JSON.parse(await readFile(join(this.directory(), 'context', context, 'current.json'), 'utf8'));
|
|
1445
|
+
let started;
|
|
1446
|
+
try {
|
|
1447
|
+
started = JSON.parse(await readFile(join(binding.root, 'process.json'), 'utf8'));
|
|
1448
|
+
}
|
|
1449
|
+
catch (error) {
|
|
1450
|
+
if (error.code === 'ENOENT')
|
|
1451
|
+
return { binding, unfinished: false };
|
|
1452
|
+
throw error;
|
|
1453
|
+
}
|
|
1454
|
+
const identity = (b) => stable({ context: b.context ?? null, target: b.target, session: b.session ?? null, kind: b.kind, root: b.root, program: b.program });
|
|
1455
|
+
if (stable(started) === stable(binding) || binding.context !== context || identity(started) !== identity(binding) ||
|
|
1456
|
+
!Number.isSafeInteger(started.pid) || started.pid < 1 || !started.tokenSecret || started.tokenSecret === binding.tokenSecret ||
|
|
1457
|
+
alive(binding.pid) && !await this.retiredWorker(binding))
|
|
1458
|
+
return { binding, unfinished: false };
|
|
1459
|
+
return { binding: started, unfinished: true };
|
|
1460
|
+
}
|
|
1417
1461
|
async closed(scope) {
|
|
1418
|
-
const context = this.workspace.context(scope)
|
|
1419
|
-
const binding =
|
|
1462
|
+
const context = this.workspace.context(scope);
|
|
1463
|
+
const { binding, unfinished } = await this.lastWorker(context.id), root = await realpath(binding.root);
|
|
1420
1464
|
if (!ownedDirectory(root, this.directory(), [binding.kind, binding.context ?? binding.target, basename(root)]) || binding.context !== context.id || binding.target !== scope.target ||
|
|
1421
1465
|
stable(JSON.parse(await readFile(join(root, 'process.json'), 'utf8'))) !== stable(binding))
|
|
1422
1466
|
fail('binding', 'Closed context receipt changed.');
|
|
@@ -1431,8 +1475,10 @@ public class ${name} extends GhidraScript {
|
|
|
1431
1475
|
if (error.code !== 'ENOENT')
|
|
1432
1476
|
throw error;
|
|
1433
1477
|
}
|
|
1434
|
-
if (!alive(binding.pid))
|
|
1478
|
+
if (!alive(binding.pid) || unfinished && await this.retiredWorker(binding))
|
|
1435
1479
|
return true;
|
|
1480
|
+
if (unfinished)
|
|
1481
|
+
return false;
|
|
1436
1482
|
await this.verified(binding, this.workspace.target(scope.target));
|
|
1437
1483
|
return false;
|
|
1438
1484
|
}
|
|
@@ -1592,9 +1638,9 @@ public class ${name} extends GhidraScript {
|
|
|
1592
1638
|
for (const entry of entries) {
|
|
1593
1639
|
if (!entry.isDirectory())
|
|
1594
1640
|
continue;
|
|
1595
|
-
let binding;
|
|
1641
|
+
let binding, unfinished = false;
|
|
1596
1642
|
try {
|
|
1597
|
-
binding =
|
|
1643
|
+
({ binding, unfinished } = await this.lastWorker(entry.name));
|
|
1598
1644
|
}
|
|
1599
1645
|
catch (error) {
|
|
1600
1646
|
if (error.code === 'ENOENT')
|
|
@@ -1613,6 +1659,12 @@ public class ${name} extends GhidraScript {
|
|
|
1613
1659
|
throw error;
|
|
1614
1660
|
}
|
|
1615
1661
|
if (!stopped && alive(binding.pid)) {
|
|
1662
|
+
// An unfinished start is never adopted; its own context reports it, others keep working.
|
|
1663
|
+
if (unfinished) {
|
|
1664
|
+
if (!await this.retiredWorker(binding))
|
|
1665
|
+
this.capacity.slots.add(entry.name);
|
|
1666
|
+
continue;
|
|
1667
|
+
}
|
|
1616
1668
|
if (binding.mode === 'headless' && await this.retiredInventoryWorker(binding))
|
|
1617
1669
|
continue;
|
|
1618
1670
|
// A replacement owner must also release contexts it has not read yet.
|
package/dist/src/lifecycle.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export declare class Lifecycle {
|
|
|
57
57
|
}>;
|
|
58
58
|
change(selected: Scope, operation: 'save' | 'close', callerId?: string): Promise<unknown>;
|
|
59
59
|
discard(selected: Scope, callerId?: string): Promise<unknown>;
|
|
60
|
+
/** Gives up detached work that has no native continuation. Nothing is replayed or published; a journal keeps its identity. */
|
|
61
|
+
discardLegacy(selected: Scope, acknowledged: boolean, callerId?: string): Promise<unknown>;
|
|
60
62
|
saveAll(session: string, callerId?: string): Promise<unknown>;
|
|
61
63
|
}
|
|
62
64
|
export declare function lifecycleCommands(service: (context: CommandContext) => Lifecycle, runtimeStatus?: (context: CommandContext) => Promise<unknown>): CommandDefinition[];
|
package/dist/src/lifecycle.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { command, Permission, CliError } from '@eyeauras/cli-factory';
|
|
2
2
|
import { scope } from './research.js';
|
|
3
|
+
import { legacyDiscardOperation } from './workspace.js';
|
|
3
4
|
import { id, fail, object, digest } from './model.js';
|
|
4
5
|
import { selectedOptions } from './arguments.js';
|
|
6
|
+
import { mkdir } from 'node:fs/promises';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { migrationDurable } from './legacy-migration.js';
|
|
5
9
|
export class Lifecycle {
|
|
6
10
|
workspace;
|
|
7
11
|
research;
|
|
@@ -145,6 +149,40 @@ export class Lifecycle {
|
|
|
145
149
|
return result;
|
|
146
150
|
});
|
|
147
151
|
}
|
|
152
|
+
/** Gives up detached work that has no native continuation. Nothing is replayed or published; a journal keeps its identity. */
|
|
153
|
+
async discardLegacy(selected, acknowledged, callerId) {
|
|
154
|
+
if (!acknowledged)
|
|
155
|
+
fail('invalid', 'Explicit --acknowledge-lost-work is required.');
|
|
156
|
+
const reserved = this.workspace.reserveRequest(selected, legacyDiscardOperation, {}, callerId);
|
|
157
|
+
return this.research.ordered(selected, async () => {
|
|
158
|
+
const request = this.workspace.request(reserved.request.id);
|
|
159
|
+
if (request.state === 'applied')
|
|
160
|
+
return request.result;
|
|
161
|
+
// The database transaction is the only effect, so an interrupted run is simply repeated.
|
|
162
|
+
if (!['accepted', 'running'].includes(request.state))
|
|
163
|
+
fail('unknown', 'Legacy discard did not complete; repeat it with a new request.', request.result);
|
|
164
|
+
const current = this.workspace.context(selected);
|
|
165
|
+
if (current.nativeCheckout)
|
|
166
|
+
fail('unsupported', 'This context uses a native checkout; use ghidra changes discard.');
|
|
167
|
+
if (this.workspace.activePublication(selected.target))
|
|
168
|
+
fail('blocked', 'Publication must be reconciled before discarding detached work.');
|
|
169
|
+
if (this.workspace.model(selected.target).state !== 'ready')
|
|
170
|
+
fail('blocked', 'Initial publication of this model must be reconciled before discarding detached work.');
|
|
171
|
+
if (current.debugger?.connected)
|
|
172
|
+
fail('busy', 'Close the live debugger context before discarding it.');
|
|
173
|
+
const backend = await this.backend();
|
|
174
|
+
if (!backend.detachedStopped || !await backend.detachedStopped(selected))
|
|
175
|
+
fail('busy', 'The detached worker must be stopped before its work is discarded.');
|
|
176
|
+
const unresolved = this.workspace.unfinished(selected).filter(pending => pending.id !== request.id);
|
|
177
|
+
const root = join(this.workspace.directory, 'legacy-migrations', selected.target);
|
|
178
|
+
await mkdir(root, { recursive: true, mode: 0o700 });
|
|
179
|
+
await migrationDurable(join(root, current.id + '-discarded-' + request.id + '.json'), { schema: 1, request: request.id, original: current, unresolved });
|
|
180
|
+
if (request.state === 'accepted')
|
|
181
|
+
this.workspace.startRequest(request.id, { kind: 'legacy-discard', generation: current.generation });
|
|
182
|
+
return this.workspace.discardLegacy(selected, request.id, current.generation, { ...selected, state: 'discarded', discardedChanges: current.scalars.length + current.complexChanges.length,
|
|
183
|
+
discardedRequests: unresolved.map(pending => pending.callerId ?? pending.id), ...(current.workingSnapshot ? { discardedSha256: current.workingSnapshot.sha256 } : {}), pendingChanges: 0 });
|
|
184
|
+
});
|
|
185
|
+
}
|
|
148
186
|
async saveAll(session, callerId) {
|
|
149
187
|
this.workspace.session(session);
|
|
150
188
|
const reserved = this.workspace.reserveAdministration('session.ghidra.save', { session }, callerId), request = this.workspace.administration(reserved.request.id);
|
|
@@ -187,7 +225,8 @@ export class Lifecycle {
|
|
|
187
225
|
}
|
|
188
226
|
export function lifecycleCommands(service, runtimeStatus) {
|
|
189
227
|
return [command('changes', 'Manage unpublished edits in the selected context', [
|
|
190
|
-
command('discard', 'Retain native keep data, discard private edits and check out the current server version', ({ options: o }, c) => service(c).discard(scope(o), o.requestId === undefined ? undefined : id(o.requestId)), { permission: 'Destructive', options: [...selectedOptions, { flags: '--request-id <id>', description: 'Retrieve the same local discard result' }] })
|
|
228
|
+
command('discard', 'Retain native keep data, discard private edits and check out the current server version', ({ options: o }, c) => service(c).discard(scope(o), o.requestId === undefined ? undefined : id(o.requestId)), { permission: 'Destructive', options: [...selectedOptions, { flags: '--request-id <id>', description: 'Retrieve the same local discard result' }] }),
|
|
229
|
+
command('discard-legacy', 'Give up detached work of an older engine; gc then reclaims it and the next open starts a native checkout', ({ options: o }, c) => service(c).discardLegacy(scope(o), Boolean(o.acknowledgeLostWork), o.requestId === undefined ? undefined : id(o.requestId)), { permission: 'Destructive', options: [...selectedOptions, { flags: '--acknowledge-lost-work', description: 'Accept that unpublished edits and unknown outcomes of this context are dropped' }, { flags: '--request-id <id>', description: 'Retrieve the same discard result' }] })
|
|
191
230
|
]),
|
|
192
231
|
command('save-all', 'Save every Ghidra context in the explicit session; outcomes are per context', ({ options: o }, c) => service(c).saveAll(id(o.session), o.requestId === undefined ? undefined : id(o.requestId)), { permission: Permission.Update, options: [{ flags: '--session <id>', description: 'Explicit session whose contexts are saved', required: true }, { flags: '--request-id <id>', description: 'Retrieve the recorded session save outcomes' }] }),
|
|
193
232
|
command('status', 'Inspect the installed runtime, or verify a selected context', ({ options: o }, c) => {
|
package/dist/src/research.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface ResearchBackend {
|
|
|
12
12
|
migrate?(target: string | undefined, dryRun: boolean): Promise<unknown>;
|
|
13
13
|
collect?(dryRun: boolean): Promise<unknown>;
|
|
14
14
|
releaseUnchanged?(scope: Scope): Promise<boolean>;
|
|
15
|
+
detachedStopped?(scope: Scope): Promise<boolean>;
|
|
15
16
|
updateNative?(scope: Scope, request: string): Promise<{
|
|
16
17
|
state: 'ready' | 'empty';
|
|
17
18
|
revision: number;
|
package/dist/src/storage-gc.js
CHANGED
|
@@ -207,6 +207,10 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
207
207
|
keep(checkout.root, 'An unresolved operation in another context references this checkout.');
|
|
208
208
|
continue;
|
|
209
209
|
}
|
|
210
|
+
if (checkout.state === 'active' && !await present(checkout.root)) {
|
|
211
|
+
keep(checkout.root, 'Native checkout project is missing; its server checkout is retained.');
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
210
214
|
const project = join(checkout.root, 'view.rep');
|
|
211
215
|
if (dryRun) {
|
|
212
216
|
if (workspace.unchangedNative(context))
|
|
@@ -230,7 +234,7 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
230
234
|
keep(checkout.root, 'Native release was refused: ' + String(error.message).slice(0, 300));
|
|
231
235
|
}
|
|
232
236
|
}
|
|
233
|
-
const known = new Set(contexts.map(c => c.id)), captured = new Set();
|
|
237
|
+
const known = new Set(contexts.map(c => c.id)), captured = new Set(), discarded = new Set();
|
|
234
238
|
for (const context of contexts)
|
|
235
239
|
if (context.workingSnapshot)
|
|
236
240
|
captured.add(context.id);
|
|
@@ -243,6 +247,10 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
243
247
|
if (!missing(error))
|
|
244
248
|
throw error;
|
|
245
249
|
}
|
|
250
|
+
// Only detached roots are reached by the project rule, and a discarded context holds no others.
|
|
251
|
+
for (const context of contexts)
|
|
252
|
+
if (workspace.legacyDiscarded(context))
|
|
253
|
+
discarded.add(context.id);
|
|
246
254
|
for (const kind of ['context', 'shared', 'candidate']) {
|
|
247
255
|
const parent = join(native, kind);
|
|
248
256
|
for (const owner of await directories(parent)) {
|
|
@@ -297,11 +305,12 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
297
305
|
await remove(join(root, 'saved.gzf'), 'duplicate-exports');
|
|
298
306
|
// Facade edits are captured as they complete; a GUI save is captured only by an explicit close.
|
|
299
307
|
const stop = worker && await stopReceipt(root, worker);
|
|
300
|
-
|
|
308
|
+
const given = kind === 'context' && discarded.has(owner);
|
|
309
|
+
if (!given && (!stop || worker?.mode !== 'headless' && stop.reason !== 'explicit_close')) {
|
|
301
310
|
keep(join(root, 'view.rep'), 'Project has no clean stop receipt that proves capture.');
|
|
302
311
|
continue;
|
|
303
312
|
}
|
|
304
|
-
if (kind === 'context' && !captured.has(owner)) {
|
|
313
|
+
if (kind === 'context' && !given && !captured.has(owner)) {
|
|
305
314
|
keep(join(root, 'view.rep'), 'Project has no verified saved or migrated view.');
|
|
306
315
|
continue;
|
|
307
316
|
}
|
package/dist/src/workspace.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ export interface ResearchRequest {
|
|
|
116
116
|
execution?: unknown;
|
|
117
117
|
createdAt: string;
|
|
118
118
|
updatedAt: string;
|
|
119
|
+
/** Its owner explicitly gave up this detached intent; it no longer owns evidence. */
|
|
120
|
+
dropped?: true;
|
|
119
121
|
}
|
|
120
122
|
export interface Publication extends Scope {
|
|
121
123
|
id: string;
|
|
@@ -137,6 +139,7 @@ export interface OpenReservation {
|
|
|
137
139
|
}
|
|
138
140
|
type ContextPatch = Partial<Pick<GhidraContext, 'state' | 'baseRevision' | 'baseSnapshot' | 'workingSnapshot' | 'viewEpoch' | 'scalars' | 'complexChanges' | 'debugger' | 'syncPolicy' | 'nativeCheckout'>>;
|
|
139
141
|
/** Profile root state, deliberately separate from the earlier coordinator.sqlite journals. */
|
|
142
|
+
export declare const legacyDiscardOperation = "ghidra.changes.discard-legacy";
|
|
140
143
|
export declare class Workspace {
|
|
141
144
|
readonly profile: string;
|
|
142
145
|
readonly directory: string;
|
|
@@ -169,6 +172,14 @@ export declare class Workspace {
|
|
|
169
172
|
scopedRequest(scope: Scope, identity: string): ResearchRequest | undefined;
|
|
170
173
|
allContexts(): GhidraContext[];
|
|
171
174
|
allArtifacts(): Artifact[];
|
|
175
|
+
legacyDiscarded(context: GhidraContext): boolean;
|
|
176
|
+
/** Every started or reserved intent of a context, without the display bound of unresolved(). */
|
|
177
|
+
unfinished(scope: Scope): ResearchRequest[];
|
|
178
|
+
/**
|
|
179
|
+
* Explicitly gives up one detached context. Every intent it had so far becomes terminal, so none can run later on
|
|
180
|
+
* a native checkout, and exactly those non-applied rows stop owning evidence. Their own outcomes stay readable.
|
|
181
|
+
*/
|
|
182
|
+
discardLegacy(scope: Scope, request: string, generation: number, result: Record<string, unknown>): unknown;
|
|
172
183
|
/** An abandoned or otherwise unknown terminal effect keeps all of its native evidence. */
|
|
173
184
|
uncertainOutcome(scope: Scope): boolean;
|
|
174
185
|
/** Receipt-only comparison; native state is verified separately before any release. */
|
package/dist/src/workspace.js
CHANGED
|
@@ -48,6 +48,7 @@ function page(limit, offset) {
|
|
|
48
48
|
fail('invalid', 'Pagination requires a limit of 1–100 and a nonnegative offset.');
|
|
49
49
|
}
|
|
50
50
|
/** Profile root state, deliberately separate from the earlier coordinator.sqlite journals. */
|
|
51
|
+
export const legacyDiscardOperation = 'ghidra.changes.discard-legacy';
|
|
51
52
|
export class Workspace {
|
|
52
53
|
profile;
|
|
53
54
|
directory;
|
|
@@ -270,10 +271,37 @@ export class Workspace {
|
|
|
270
271
|
}
|
|
271
272
|
allContexts() { return this.db.prepare('SELECT data FROM contexts ORDER BY rowid').all().map(row => JSON.parse(String(row.data))); }
|
|
272
273
|
allArtifacts() { return this.db.prepare('SELECT data FROM artifacts ORDER BY rowid').all().map(row => JSON.parse(String(row.data))); }
|
|
274
|
+
legacyDiscarded(context) {
|
|
275
|
+
return this.db.prepare("SELECT data FROM requests WHERE context=? AND state='applied'").all(context.id).some(row => JSON.parse(String(row.data)).operation === legacyDiscardOperation);
|
|
276
|
+
}
|
|
277
|
+
/** Every started or reserved intent of a context, without the display bound of unresolved(). */
|
|
278
|
+
unfinished(scope) {
|
|
279
|
+
return this.db.prepare("SELECT data FROM requests WHERE context=? AND state IN ('accepted','running','unknown') ORDER BY rowid").all(this.context(scope).id).map(row => JSON.parse(String(row.data)));
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Explicitly gives up one detached context. Every intent it had so far becomes terminal, so none can run later on
|
|
283
|
+
* a native checkout, and exactly those non-applied rows stop owning evidence. Their own outcomes stay readable.
|
|
284
|
+
*/
|
|
285
|
+
discardLegacy(scope, request, generation, result) {
|
|
286
|
+
return this.transaction(() => {
|
|
287
|
+
const context = this.context(scope), intent = this.request(request), model = this.model(scope.target);
|
|
288
|
+
if (context.generation !== generation || context.nativeCheckout || this.activePublication(scope.target) || context.debugger?.connected || model.state !== 'ready' ||
|
|
289
|
+
intent.context !== context.id || intent.operation !== legacyDiscardOperation || intent.state !== 'running')
|
|
290
|
+
fail('blocked', 'Only an unchanged, stopped detached context can be discarded.');
|
|
291
|
+
for (const pending of this.unfinished(scope))
|
|
292
|
+
if (pending.id !== request)
|
|
293
|
+
this.writeRequest(pending.id, 'failed', { ...scope, state: 'discarded', reason: 'explicit_legacy_discard' });
|
|
294
|
+
for (const row of this.db.prepare("SELECT id,data FROM requests WHERE context=? AND state='failed'").all(context.id))
|
|
295
|
+
this.db.prepare('UPDATE requests SET data=? WHERE id=?').run(bounded({ ...JSON.parse(String(row.data)), dropped: true }), String(row.id));
|
|
296
|
+
this.writeContext(scope, generation, { state: 'stopped', workingSnapshot: undefined, baseSnapshot: undefined, baseRevision: undefined, debugger: undefined,
|
|
297
|
+
scalars: [], complexChanges: [], viewEpoch: (context.viewEpoch ?? 0) + 1 });
|
|
298
|
+
return this.writeRequest(request, 'applied', result).result;
|
|
299
|
+
});
|
|
300
|
+
}
|
|
273
301
|
/** An abandoned or otherwise unknown terminal effect keeps all of its native evidence. */
|
|
274
302
|
uncertainOutcome(scope) {
|
|
275
|
-
return this.db.prepare("SELECT data FROM requests WHERE context=? AND state='failed'").all(this.context(scope).id)
|
|
276
|
-
.some(row =>
|
|
303
|
+
return this.db.prepare("SELECT data FROM requests WHERE context=? AND state='failed'").all(this.context(scope).id).map(row => JSON.parse(String(row.data)))
|
|
304
|
+
.some(row => !row.dropped && row.result?.outcome === 'unknown');
|
|
277
305
|
}
|
|
278
306
|
/** Receipt-only comparison; native state is verified separately before any release. */
|
|
279
307
|
unchangedNative(context) {
|
|
@@ -317,8 +345,11 @@ export class Workspace {
|
|
|
317
345
|
scan(String(row.data));
|
|
318
346
|
for (const row of this.db.prepare("SELECT data FROM publications WHERE state<>'verified'").all())
|
|
319
347
|
scan(String(row.data));
|
|
320
|
-
for (const row of this.db.prepare('SELECT state,data FROM requests').all())
|
|
321
|
-
|
|
348
|
+
for (const row of this.db.prepare('SELECT state,data FROM requests').all()) {
|
|
349
|
+
const request = JSON.parse(String(row.data));
|
|
350
|
+
if (!request.dropped)
|
|
351
|
+
scan(row.state === 'applied' ? stable(request.result ?? null) : String(row.data));
|
|
352
|
+
}
|
|
322
353
|
return roots;
|
|
323
354
|
}
|
|
324
355
|
forgetArtifact(artifact) { this.db.prepare('DELETE FROM artifacts WHERE id=?').run(artifact); }
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ name: insight-artifacts
|
|
|
3
3
|
description: Retain a completed reverse-engineering evidence file or directory as an ordinary checkpoint using insight-cli artifacts save. Use after Ghidra or any external tool; preserve existing project formats and source of truth.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Artifacts 0.6.
|
|
6
|
+
# Insight Artifacts 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-binary
|
|
|
3
3
|
description: Query structured PE, ELF and thin Mach-O headers, sections, imports and exports, or make an explicitly guarded new PE subsystem copy through insight-cli binary. Use for scoped binary structure, linkage and copy-only header edits without target execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Binary 0.6.
|
|
6
|
+
# Insight Binary 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-capture
|
|
|
3
3
|
description: Capture one explicitly authorized native program run, exact stdout/stderr and declared file snapshots through insight-cli capture, then inspect or compare retained reports without replay. Use for controlled input/output research, preserving original files and interrupted or unknown outcomes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Capture 0.6.
|
|
6
|
+
# Insight Capture 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-cli
|
|
|
3
3
|
description: Choose and prepare reverse-engineering capabilities from the insight-cli toolbox for binary, managed-code and runtime investigations. Use to discover the appropriate tool or its packaged skill before installing native runtimes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# insight-cli 0.6.
|
|
6
|
+
# insight-cli 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-die
|
|
|
3
3
|
description: Classify unknown executable or container inputs by format, architecture and compiler/runtime/packer signatures with Detect It Easy before choosing managed or native analysis. Use insight-cli die for static triage and preserve scan uncertainty.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Detect It Easy 0.6.
|
|
6
|
+
# Insight Detect It Easy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dnspy
|
|
|
3
3
|
description: Debug a managed Windows EXE at an IL breakpoint and read primitive arguments, or change one expected IL Int32 constant in a new assembly copy through insight-cli dnspy. Use when C# decompilation needs observed execution or a controlled binary edit.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight dnSpyEx 0.6.
|
|
6
|
+
# Insight dnSpyEx 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-dump
|
|
|
3
3
|
description: Capture a managed heap dump or inspect compatible .NET dumps with SOS to recover waiting stacks, objects, fields and retention evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Dump 0.6.
|
|
6
|
+
# Insight .NET Dump 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-stack
|
|
|
3
3
|
description: Inspect live managed thread stacks to identify active or waiting work in an explicitly selected .NET process without taking a dump.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Stack 0.6.
|
|
6
|
+
# Insight .NET Stack 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-trace
|
|
|
3
3
|
description: Collect and inspect bounded .NET EventPipe traces to identify sampled thread work, waits or runtime activity; distinguish wall-clock samples from CPU consumption.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Trace 0.6.
|
|
6
|
+
# Insight .NET Trace 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-frida
|
|
|
3
3
|
description: Observe native call arguments/results or inspect runtime modules and exports in an explicitly selected authorized process with bounded Frida scripts. Use insight-cli frida to corroborate static findings with actual execution on macOS ARM64.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Frida 0.6.
|
|
6
|
+
# Insight Frida 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-ghidra
|
|
|
3
3
|
description: Inspect or edit native binaries with Ghidra through insight-cli; use isolated contexts, multi-agent merge/refresh, server, GUI or debugger workflows. Choose this for static native behavior and references, not C# recovery from managed IL.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Ghidra 0.6.
|
|
6
|
+
# Insight Ghidra 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-ilspy
|
|
|
3
3
|
description: Recover C#, inspect IL/types/metadata, extract resources or export projects from managed .NET assemblies through insight-cli ILSpy. Choose native analysis for NativeAOT or ordinary PE machine code.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight ILSpy 0.6.
|
|
6
|
+
# Insight ILSpy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-interop
|
|
|
3
3
|
description: Trace a .NET P/Invoke declaration to an explicitly supplied native library export and Ghidra function through insight-cli ilspy query, binary query and scoped ghidra APIs. Use for managed/native linkage evidence while keeping static correspondence separate from observed loading or execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Interop 0.6.
|
|
6
|
+
# Insight Interop 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-lldb
|
|
|
3
3
|
description: Observe native runtime arguments, return values, registers, stacks and bounded memory at a selected breakpoint using an owned LLDB launch. Use insight-cli lldb on macOS ARM64 when static findings need a concrete execution check.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight LLDB 0.6.
|
|
6
|
+
# Insight LLDB 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-llvm
|
|
|
3
3
|
description: Inspect PE, ELF and Mach-O headers, dependencies, exports and symbols; query PDB debug information or a small instruction window with insight-cli LLVM utilities before opening a full analysis project.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight LLVM 0.6.
|
|
6
|
+
# Insight LLVM 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-managed-heap
|
|
|
3
3
|
description: Query structured .NET heap objects, primitive fields and managed stacks from a retained CoreCLR dump through insight-cli dotnet-dump query. Use for bounded offline dump investigation with an explicit matching DAC, preserving uncertainty and immutable input identity.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Managed Heap 0.6.
|
|
6
|
+
# Insight Managed Heap 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-managed-metadata
|
|
|
3
3
|
description: Query managed assembly metadata, MethodDef tokens, P/Invoke declarations and bounded IL, or compare two C#/.NET assemblies through insight-cli ilspy query/compare. Use for structured static evidence and changed-method research without executing the target.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Managed Metadata 0.6.
|
|
6
|
+
# Insight Managed Metadata 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-mitmproxy
|
|
|
3
3
|
description: Record, inspect and compare HTTP request/response evidence with insight-cli mitmproxy. Use when an owned client can explicitly use a loopback proxy; read native flow archives or HAR without replaying traffic. System interception and global certificate trust are outside this facade.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight mitmproxy 0.6.
|
|
6
|
+
# Insight mitmproxy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-overview
|
|
|
3
3
|
description: Choose bounded tool overviews and focused drilldown through insight-cli without flooding agent context with whole-program code, traces or dumps. Use for tool discovery, scoped evidence paging and keeping native partial coverage separate from complete results.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Overview 0.6.
|
|
6
|
+
# Insight Overview 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-procmon
|
|
|
3
3
|
description: Observe actual file and registry access by an authorized running Windows process through insight-cli procmon. Use when static paths or configuration guesses need runtime evidence; inspect retained captures without collecting again.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight ProcMon 0.6.
|
|
6
|
+
# Insight ProcMon 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-re
|
|
|
3
3
|
description: Investigate shipped programs and binary artifacts with insight-cli and other available tools; retain ordinary research files, coordinate independent agents and publish Ghidra annotations. Use for reverse engineering behavior, not ordinary source-repository browsing.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight RE 0.6.
|
|
6
|
+
# Insight RE 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-sevenzip
|
|
|
3
3
|
description: Inventory, integrity-check and recover files from archives and supported containers with insight-cli 7-Zip, then hand recovered binaries or configuration to the appropriate research tool.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight 7-Zip 0.6.
|
|
6
|
+
# Insight 7-Zip 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-strace
|
|
|
3
3
|
description: Observe actual file reads, writes, process creation and network syscalls in an authorized owned native Linux launch using insight-cli strace. Use when static inference needs concrete operating-system interaction evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight strace 0.6.
|
|
6
|
+
# Insight strace 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-tshark
|
|
|
3
3
|
description: Inspect an offline PCAP or PCAPNG with insight-cli tshark to identify protocols, HTTP/DNS/TLS fields, packet evidence and reconstructed TCP/UDP streams. Use for captured traffic questions; live acquisition and TLS decryption are separate tasks.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight TShark 0.6.
|
|
6
|
+
# Insight TShark 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-windbg
|
|
|
3
3
|
description: Investigate Windows native user-mode minidumps using bounded stacks, threads, registers, modules, memory and disassembly through insight-cli windbg. Use on Windows x64 when a captured runtime state needs native debugger evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight WinDbg 0.6.
|
|
6
|
+
# Insight WinDbg 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-artifacts
|
|
|
3
3
|
description: Retain a completed reverse-engineering evidence file or directory as an ordinary checkpoint using insight-cli artifacts save. Use after Ghidra or any external tool; preserve existing project formats and source of truth.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Artifacts 0.6.
|
|
6
|
+
# Insight Artifacts 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-binary
|
|
|
3
3
|
description: Query structured PE, ELF and thin Mach-O headers, sections, imports and exports, or make an explicitly guarded new PE subsystem copy through insight-cli binary. Use for scoped binary structure, linkage and copy-only header edits without target execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Binary 0.6.
|
|
6
|
+
# Insight Binary 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-capture
|
|
|
3
3
|
description: Capture one explicitly authorized native program run, exact stdout/stderr and declared file snapshots through insight-cli capture, then inspect or compare retained reports without replay. Use for controlled input/output research, preserving original files and interrupted or unknown outcomes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Capture 0.6.
|
|
6
|
+
# Insight Capture 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-die
|
|
|
3
3
|
description: Classify unknown executable or container inputs by format, architecture and compiler/runtime/packer signatures with Detect It Easy before choosing managed or native analysis. Use insight-cli die for static triage and preserve scan uncertainty.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Detect It Easy 0.6.
|
|
6
|
+
# Insight Detect It Easy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dnspy
|
|
|
3
3
|
description: Debug a managed Windows EXE at an IL breakpoint and read primitive arguments, or change one expected IL Int32 constant in a new assembly copy through insight-cli dnspy. Use when C# decompilation needs observed execution or a controlled binary edit.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight dnSpyEx 0.6.
|
|
6
|
+
# Insight dnSpyEx 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-dump
|
|
|
3
3
|
description: Capture a managed heap dump or inspect compatible .NET dumps with SOS to recover waiting stacks, objects, fields and retention evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Dump 0.6.
|
|
6
|
+
# Insight .NET Dump 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-stack
|
|
|
3
3
|
description: Inspect live managed thread stacks to identify active or waiting work in an explicitly selected .NET process without taking a dump.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Stack 0.6.
|
|
6
|
+
# Insight .NET Stack 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-dotnet-trace
|
|
|
3
3
|
description: Collect and inspect bounded .NET EventPipe traces to identify sampled thread work, waits or runtime activity; distinguish wall-clock samples from CPU consumption.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight .NET Trace 0.6.
|
|
6
|
+
# Insight .NET Trace 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-frida
|
|
|
3
3
|
description: Observe native call arguments/results or inspect runtime modules and exports in an explicitly selected authorized process with bounded Frida scripts. Use insight-cli frida to corroborate static findings with actual execution on macOS ARM64.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Frida 0.6.
|
|
6
|
+
# Insight Frida 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-ghidra
|
|
|
3
3
|
description: Inspect or edit native binaries with Ghidra through insight-cli; use isolated contexts, multi-agent merge/refresh, server, GUI or debugger workflows. Choose this for static native behavior and references, not C# recovery from managed IL.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Ghidra 0.6.
|
|
6
|
+
# Insight Ghidra 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-ilspy
|
|
|
3
3
|
description: Recover C#, inspect IL/types/metadata, extract resources or export projects from managed .NET assemblies through insight-cli ILSpy. Choose native analysis for NativeAOT or ordinary PE machine code.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight ILSpy 0.6.
|
|
6
|
+
# Insight ILSpy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-interop
|
|
|
3
3
|
description: Trace a .NET P/Invoke declaration to an explicitly supplied native library export and Ghidra function through insight-cli ilspy query, binary query and scoped ghidra APIs. Use for managed/native linkage evidence while keeping static correspondence separate from observed loading or execution.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Interop 0.6.
|
|
6
|
+
# Insight Interop 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-lldb
|
|
|
3
3
|
description: Observe native runtime arguments, return values, registers, stacks and bounded memory at a selected breakpoint using an owned LLDB launch. Use insight-cli lldb on macOS ARM64 when static findings need a concrete execution check.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight LLDB 0.6.
|
|
6
|
+
# Insight LLDB 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-llvm
|
|
|
3
3
|
description: Inspect PE, ELF and Mach-O headers, dependencies, exports and symbols; query PDB debug information or a small instruction window with insight-cli LLVM utilities before opening a full analysis project.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight LLVM 0.6.
|
|
6
|
+
# Insight LLVM 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-managed-heap
|
|
|
3
3
|
description: Query structured .NET heap objects, primitive fields and managed stacks from a retained CoreCLR dump through insight-cli dotnet-dump query. Use for bounded offline dump investigation with an explicit matching DAC, preserving uncertainty and immutable input identity.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Managed Heap 0.6.
|
|
6
|
+
# Insight Managed Heap 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-managed-metadata
|
|
|
3
3
|
description: Query managed assembly metadata, MethodDef tokens, P/Invoke declarations and bounded IL, or compare two C#/.NET assemblies through insight-cli ilspy query/compare. Use for structured static evidence and changed-method research without executing the target.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Managed Metadata 0.6.
|
|
6
|
+
# Insight Managed Metadata 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-mitmproxy
|
|
|
3
3
|
description: Record, inspect and compare HTTP request/response evidence with insight-cli mitmproxy. Use when an owned client can explicitly use a loopback proxy; read native flow archives or HAR without replaying traffic. System interception and global certificate trust are outside this facade.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight mitmproxy 0.6.
|
|
6
|
+
# Insight mitmproxy 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-overview
|
|
|
3
3
|
description: Choose bounded tool overviews and focused drilldown through insight-cli without flooding agent context with whole-program code, traces or dumps. Use for tool discovery, scoped evidence paging and keeping native partial coverage separate from complete results.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight Overview 0.6.
|
|
6
|
+
# Insight Overview 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-procmon
|
|
|
3
3
|
description: Observe actual file and registry access by an authorized running Windows process through insight-cli procmon. Use when static paths or configuration guesses need runtime evidence; inspect retained captures without collecting again.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight ProcMon 0.6.
|
|
6
|
+
# Insight ProcMon 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-re
|
|
|
3
3
|
description: Investigate shipped programs and binary artifacts with insight-cli and other available tools; retain ordinary research files, coordinate independent agents and publish Ghidra annotations. Use for reverse engineering behavior, not ordinary source-repository browsing.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight RE 0.6.
|
|
6
|
+
# Insight RE 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-sevenzip
|
|
|
3
3
|
description: Inventory, integrity-check and recover files from archives and supported containers with insight-cli 7-Zip, then hand recovered binaries or configuration to the appropriate research tool.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight 7-Zip 0.6.
|
|
6
|
+
# Insight 7-Zip 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-strace
|
|
|
3
3
|
description: Observe actual file reads, writes, process creation and network syscalls in an authorized owned native Linux launch using insight-cli strace. Use when static inference needs concrete operating-system interaction evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight strace 0.6.
|
|
6
|
+
# Insight strace 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-tshark
|
|
|
3
3
|
description: Inspect an offline PCAP or PCAPNG with insight-cli tshark to identify protocols, HTTP/DNS/TLS fields, packet evidence and reconstructed TCP/UDP streams. Use for captured traffic questions; live acquisition and TLS decryption are separate tasks.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight TShark 0.6.
|
|
6
|
+
# Insight TShark 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -3,7 +3,7 @@ name: insight-windbg
|
|
|
3
3
|
description: Investigate Windows native user-mode minidumps using bounded stacks, threads, registers, modules, memory and disassembly through insight-cli windbg. Use on Windows x64 when a captured runtime state needs native debugger evidence.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Insight WinDbg 0.6.
|
|
6
|
+
# Insight WinDbg 0.6.3
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|