@eyeauras/insight-cli 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli-package-build.json +1 -1
- package/SKILL.md +1 -1
- package/dist/src/contexts.d.ts +2 -0
- package/dist/src/contexts.js +20 -1
- package/dist/src/legacy-migration.js +3 -2
- 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 +8 -3
- package/dist/src/workspace.d.ts +11 -0
- package/dist/src/workspace.js +35 -4
- package/package.json +1 -1
- package/references/native/InsightNativeFingerprint.java +39 -0
- package/references/native/InsightNativeMigration.java +11 -3
- package/references/native/InsightNativeRead.java +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":"9d685fbcf5fa502643d996322ec2063d1efa89795328055005a5e9405ab5f471"}
|
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.2
|
|
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;
|
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
|
}
|
|
@@ -178,7 +178,8 @@ export async function migrateLegacy(workspace, port, selected, dryRun) {
|
|
|
178
178
|
const snapshot = original.workingSnapshot, retained = await workspace.artifacts.verify(snapshot);
|
|
179
179
|
const record = { session: original.session, target: target.id, snapshot, state: 'retained', reason: 'Packed detached work has no provable native checkout ancestry/change sets; native conversion is refused. No scalar or script replay was performed.' };
|
|
180
180
|
const observed = inspections.get(snapshot.id) ?? await port.write({ operation: 'snapshot', snapshot: retained });
|
|
181
|
-
const matches = (v) => v !== undefined && observed.
|
|
181
|
+
const matches = (v) => v !== undefined && observed.programIdentity === v.programIdentity &&
|
|
182
|
+
(observed.fingerprint === v.fingerprint || typeof observed.content === 'string' && observed.content === v.content);
|
|
182
183
|
const clean = !original.scalars.length && !original.complexChanges.length && !original.debugger?.traces.length && !original.debugger?.connected &&
|
|
183
184
|
original.state !== 'needs_recovery' && !workspace.unresolved(original).length && !workspace.uncertainOutcome(original);
|
|
184
185
|
let equal = accepted.some(matches);
|
|
@@ -189,7 +190,7 @@ export async function migrateLegacy(workspace, port, selected, dryRun) {
|
|
|
189
190
|
}
|
|
190
191
|
else if (equal && clean) {
|
|
191
192
|
record.state = dryRun ? 'convertible_unchanged' : 'converted_unchanged';
|
|
192
|
-
record.reason = '
|
|
193
|
+
record.reason = 'Saved program content equals a verified server version; the next open creates its native checkout.';
|
|
193
194
|
if (!dryRun) {
|
|
194
195
|
await mkdir(root, { recursive: true, mode: 0o700 });
|
|
195
196
|
await migrationDurable(join(root, original.id + '-detached.json'), { schema: 1, original, observed });
|
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
|
@@ -230,7 +230,7 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
230
230
|
keep(checkout.root, 'Native release was refused: ' + String(error.message).slice(0, 300));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
const known = new Set(contexts.map(c => c.id)), captured = new Set();
|
|
233
|
+
const known = new Set(contexts.map(c => c.id)), captured = new Set(), discarded = new Set();
|
|
234
234
|
for (const context of contexts)
|
|
235
235
|
if (context.workingSnapshot)
|
|
236
236
|
captured.add(context.id);
|
|
@@ -243,6 +243,10 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
243
243
|
if (!missing(error))
|
|
244
244
|
throw error;
|
|
245
245
|
}
|
|
246
|
+
// Only detached roots are reached by the project rule, and a discarded context holds no others.
|
|
247
|
+
for (const context of contexts)
|
|
248
|
+
if (workspace.legacyDiscarded(context))
|
|
249
|
+
discarded.add(context.id);
|
|
246
250
|
for (const kind of ['context', 'shared', 'candidate']) {
|
|
247
251
|
const parent = join(native, kind);
|
|
248
252
|
for (const owner of await directories(parent)) {
|
|
@@ -297,11 +301,12 @@ export async function collectStorage(workspace, port, dryRun, progress = () => {
|
|
|
297
301
|
await remove(join(root, 'saved.gzf'), 'duplicate-exports');
|
|
298
302
|
// Facade edits are captured as they complete; a GUI save is captured only by an explicit close.
|
|
299
303
|
const stop = worker && await stopReceipt(root, worker);
|
|
300
|
-
|
|
304
|
+
const given = kind === 'context' && discarded.has(owner);
|
|
305
|
+
if (!given && (!stop || worker?.mode !== 'headless' && stop.reason !== 'explicit_close')) {
|
|
301
306
|
keep(join(root, 'view.rep'), 'Project has no clean stop receipt that proves capture.');
|
|
302
307
|
continue;
|
|
303
308
|
}
|
|
304
|
-
if (kind === 'context' && !captured.has(owner)) {
|
|
309
|
+
if (kind === 'context' && !given && !captured.has(owner)) {
|
|
305
310
|
keep(join(root, 'view.rep'), 'Project has no verified saved or migrated view.');
|
|
306
311
|
continue;
|
|
307
312
|
}
|
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
|
@@ -10,5 +10,44 @@ public final class InsightNativeFingerprint {
|
|
|
10
10
|
if(p.isChanged())throw new IllegalStateException("Program has unsaved changes");
|
|
11
11
|
return InsightBlockTransfer.fingerprint(((ProgramDB)p).getDBHandle().getBufferMgr().getSourceFile());
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Every saved record except what opening a program writes by itself: the derived Metadata table, rebuilt
|
|
15
|
+
* from options on save, and the GUI's "Should Ask To Analyze" flag. Stored file bytes are included; memory
|
|
16
|
+
* block bytes are in chained buffers too, so callers also require an equal program identity.
|
|
17
|
+
*/
|
|
18
|
+
public static String content(Program p)throws Exception {
|
|
19
|
+
DBHandle db=((ProgramDB)p).getDBHandle();
|
|
20
|
+
var hash=java.security.MessageDigest.getInstance("SHA-256");
|
|
21
|
+
var tables=new java.util.TreeMap<String,Table>();
|
|
22
|
+
for(Table table:db.getTables())if(!table.getName().equals("Metadata"))tables.put(table.getName(),table);
|
|
23
|
+
for(Table table:tables.values()){
|
|
24
|
+
boolean properties=table.getName().equals("Property Table");Schema schema=table.getSchema();
|
|
25
|
+
add(hash,table.getName().getBytes(java.nio.charset.StandardCharsets.UTF_8));
|
|
26
|
+
add(hash,(schema.getVersion()+"|"+schema.getKeyName()+"|"+String.join("|",schema.getFieldNames())+"|"+java.util.Arrays.stream(schema.getFields()).map(f->f.getClass().getName()).toList()).getBytes(java.nio.charset.StandardCharsets.UTF_8));
|
|
27
|
+
var records=table.iterator();
|
|
28
|
+
while(records.hasNext()){
|
|
29
|
+
DBRecord record=records.next();
|
|
30
|
+
if(properties&&record.getKeyField() instanceof StringField key&&"Program Information.Should Ask To Analyze".equals(key.getString()))continue;
|
|
31
|
+
add(hash,record.getKeyField().getBinaryData());
|
|
32
|
+
for(int i=0;i<record.getColumnCount();i++){Field field=record.getFieldValue(i);add(hash,field==null||field.isNull()?null:field.getBinaryData());}
|
|
33
|
+
}
|
|
34
|
+
hash.update((byte)2);
|
|
35
|
+
}
|
|
36
|
+
var files=p.getMemory().getAllFileBytes();
|
|
37
|
+
for(int i=0;i<files.size();i++){
|
|
38
|
+
var file=files.get(i);long size=file.getSize();
|
|
39
|
+
add(hash,(i+"|"+file.getFilename()+"|"+size).getBytes(java.nio.charset.StandardCharsets.UTF_8));
|
|
40
|
+
for(long at=0;at<size;at+=1<<20){
|
|
41
|
+
byte[] original=new byte[(int)Math.min(1<<20,size-at)],modified=new byte[original.length];
|
|
42
|
+
if(file.getOriginalBytes(at,original)!=original.length||file.getModifiedBytes(at,modified)!=modified.length)throw new java.io.IOException("Incomplete stored file bytes");
|
|
43
|
+
add(hash,original);add(hash,modified);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return java.util.HexFormat.of().formatHex(hash.digest());
|
|
47
|
+
}
|
|
48
|
+
private static void add(java.security.MessageDigest hash,byte[] value){
|
|
49
|
+
hash.update((byte)(value==null?0:1));if(value==null)return;
|
|
50
|
+
hash.update(java.nio.ByteBuffer.allocate(4).putInt(value.length).array());hash.update(value);
|
|
51
|
+
}
|
|
13
52
|
public static String of(DBHandle db)throws Exception{return InsightBlockTransfer.fingerprint(db.getBufferMgr().getSourceFile());}
|
|
14
53
|
}
|
|
@@ -35,6 +35,14 @@ public final class InsightNativeMigration {
|
|
|
35
35
|
require(p.getExecutableSHA256().equals(text(q,"sourceSha")),"Migration source SHA256 differs");
|
|
36
36
|
require(programIdentity(p).equals(text(q,"programIdentity")),"Migration program bytes or load identity differ");
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* A process born after its import/publication receipt is presumed to reuse that PID; a missing birth blocks.
|
|
40
|
+
* Those workers also hold their target lock until exit, checked above. process.json always uses the bare PID.
|
|
41
|
+
*/
|
|
42
|
+
static boolean mayBeWorker(long pid,java.time.Instant receipt){
|
|
43
|
+
return ProcessHandle.of(pid).filter(ProcessHandle::isAlive).map(process->process.info().startInstant()
|
|
44
|
+
.map(birth->receipt.equals(java.time.Instant.MAX)||!birth.isAfter(receipt.plusSeconds(60))).orElse(true)).orElse(false);
|
|
45
|
+
}
|
|
38
46
|
static void quiescent(Path root)throws Exception {
|
|
39
47
|
if(!Files.exists(root))return;
|
|
40
48
|
var channels=new ArrayList<FileChannel>();var locks=new ArrayList<FileLock>();
|
|
@@ -55,7 +63,7 @@ public final class InsightNativeMigration {
|
|
|
55
63
|
stopped=receipt.get("pid").equals(saved.get("pid"))&&receipt.get("tokenSecret").equals(saved.get("tokenSecret"));
|
|
56
64
|
}
|
|
57
65
|
long pid=receipt.get("pid").getAsLong();require(pid>0,"Invalid retained worker PID");
|
|
58
|
-
require(stopped||!
|
|
66
|
+
require(stopped||!mayBeWorker(pid,name.equals("process.json")?java.time.Instant.MAX:Files.getLastModifiedTime(path).toInstant()),"Retained native worker is live; no takeover");
|
|
59
67
|
}
|
|
60
68
|
}finally{for(var lock:locks)lock.close();for(var channel:channels)channel.close();}
|
|
61
69
|
}
|
|
@@ -72,7 +80,7 @@ public final class InsightNativeMigration {
|
|
|
72
80
|
for(JsonElement path:q.getAsJsonArray("snapshots")){
|
|
73
81
|
var db=ghidra.framework.store.db.PackedDatabase.getPackedDatabase(Path.of(path.getAsString()).toFile(),true,MONITOR).open(MONITOR);
|
|
74
82
|
var p=new ghidra.program.database.ProgramDB(db,ghidra.framework.data.OpenMode.IMMUTABLE,MONITOR,CONSUMER);
|
|
75
|
-
try{items.add(Map.of("state","verified","fingerprint",InsightNativeFingerprint.of(p),"sourceSha",p.getExecutableSHA256(),"programIdentity",programIdentity(p)));}finally{p.release(CONSUMER);}
|
|
83
|
+
try{items.add(Map.of("state","verified","fingerprint",InsightNativeFingerprint.of(p),"content",InsightNativeFingerprint.content(p),"sourceSha",p.getExecutableSHA256(),"programIdentity",programIdentity(p)));}finally{p.release(CONSUMER);}
|
|
76
84
|
}
|
|
77
85
|
output.println(new Gson().toJson(Map.of("state","verified","items",items)));System.exit(0);
|
|
78
86
|
}
|
|
@@ -80,7 +88,7 @@ public final class InsightNativeMigration {
|
|
|
80
88
|
Application.initializeApplication(new GhidraApplicationLayout(),new HeadlessGhidraApplicationConfiguration());
|
|
81
89
|
var db=ghidra.framework.store.db.PackedDatabase.getPackedDatabase(Path.of(text(q,"snapshot")).toFile(),true,MONITOR).open(MONITOR);
|
|
82
90
|
var p=new ghidra.program.database.ProgramDB(db,ghidra.framework.data.OpenMode.IMMUTABLE,MONITOR,CONSUMER);
|
|
83
|
-
try{output.println(new Gson().toJson(Map.of("state","verified","fingerprint",InsightNativeFingerprint.of(p),"sourceSha",p.getExecutableSHA256(),"programIdentity",programIdentity(p))));}finally{p.release(CONSUMER);}
|
|
91
|
+
try{output.println(new Gson().toJson(Map.of("state","verified","fingerprint",InsightNativeFingerprint.of(p),"content",InsightNativeFingerprint.content(p),"sourceSha",p.getExecutableSHA256(),"programIdentity",programIdentity(p))));}finally{p.release(CONSUMER);}
|
|
84
92
|
System.exit(0);
|
|
85
93
|
}
|
|
86
94
|
Path root=Path.of(text(q,"root")).toRealPath(),ownerPath=root.resolve("migration-owner.json"),journal=root.resolve("native-migration.json");
|
|
@@ -40,7 +40,7 @@ public final class InsightNativeRead {
|
|
|
40
40
|
if(!op.equals("migration-probe")&&!program.getOptions("Insight").getString("Publication Engine","").equals("native-checkout-v1"))throw new InsightNativeMigration.Required();
|
|
41
41
|
if(q.has("fingerprint")&&!fingerprint.equals(q.get("fingerprint").getAsString()))throw new SecurityException("Exact native buffers differ");
|
|
42
42
|
result.put("state","verified");result.put("version",version);result.put("fileId",item.getFileID());result.put("fingerprint",fingerprint);
|
|
43
|
-
if(op.equals("migration-probe")){result.put("engine",program.getOptions("Insight").getString("Publication Engine",""));result.put("programIdentity",InsightNativeMigration.programIdentity(program));var functions=program.getFunctionManager().getFunctions(true);int samples=0;String sample=null;
|
|
43
|
+
if(op.equals("migration-probe")){result.put("content",InsightNativeFingerprint.content(program));result.put("engine",program.getOptions("Insight").getString("Publication Engine",""));result.put("programIdentity",InsightNativeMigration.programIdentity(program));var functions=program.getFunctionManager().getFunctions(true);int samples=0;String sample=null;
|
|
44
44
|
while(functions.hasNext()&&samples++<1000){var f=functions.next();var block=program.getMemory().getBlock(f.getEntryPoint());if(!f.isThunk()&&block!=null&&block.isInitialized()&&block.isExecute()){if(sample==null)sample=f.getEntryPoint().toString();if(program.getReferenceManager().getReferencesTo(f.getEntryPoint()).hasNext()){sample=f.getEntryPoint().toString();break;}}}result.put("sampleFunction",sample);
|
|
45
45
|
result.put("language",program.getLanguageID().toString());result.put("compiler",program.getCompilerSpec().getCompilerSpecID().toString());result.put("imageBase",program.getImageBase().toString());result.put("versions",Arrays.stream(repository.getVersions("/",name)).map(v->Map.of("version",v.getVersion(),"comment",Objects.toString(v.getComment(),""))).toList());}
|
|
46
46
|
else if(op.equals("inspect"))result.put("value",InsightSnapshotInspect.inspect(program,q.getAsJsonObject("parameters")));
|
|
@@ -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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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.2
|
|
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
|