mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 23:09:34 +00:00
* feat(native): describe the UniFFI library report and its read budgets Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): recover UniFFI interfaces from a library's exports Group a library's UniFFI scaffolding exports by namespace: objects named by their free and clone functions with their constructors and methods, functions, callback interfaces and runtime helpers. The contract version and each item's checksum are read from function bodies that return only that constant (x86, x86-64 with or without endbr, arm64), and NAMESPACE and UDL_FILE metadata buffers are decoded. Nothing is called; a method that two object names could own is listed under the longer and counted. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): read UniFFI libraries through an identity-checked provider The provider reads one bounded PE or ELF file, maps its export addresses through the image's own declarations and decodes the UniFFI interface. A refusal at max_entries, max_text_bytes or max_file_bytes names the budget to raise. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(analysis): summarize retained UniFFI library reports Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(analysis): bound the UniFFI summary's namespaces with boundedList Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): add the inspect_uniffi_library tool CLI inspect-uniffi-library and MCP inspect_uniffi_library recover a UniFFI library's namespaces, objects, methods, functions, callback interfaces, contract version and checksums from its exports without loading it. Large reports return the retained per-namespace summary within the agent budget. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): describe UniFFI interface recovery Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): route UniFFI libraries to inspect_uniffi_library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * ci: scope the UniFFI reader with the native formats Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * chore(schemas): record the advertised inspect_uniffi_library catalog summary Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): keep UniFFI grouping linear and its omissions visible - Namespaces, metadata owners and object owners are found by looking up each underscore-delimited prefix of a name, instead of scanning every namespace or object for every export. - A body or metadata buffer reads the longest mapped prefix, so a constant that ends at its mapping's end is still decoded. - A metadata buffer that cannot be read or decoded is counted apart from kinds this reader does not decode, and makes coverage partial. - A partial export table carries its reasons into the report. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): expose max_structure_bytes for UniFFI library inspection The export reader's table-size limit is now a caller control, and its refusal names it, as inspect_native_exports does. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(cli): honour delivery options for inspect-uniffi-library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): list the UniFFI structure budget and record its schema Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): match UniFFI namespaces and owners with a prefix trie Namespaces, metadata owners and object owners are now found by walking the name once through a trie of the known words, from the positions where UniFFI spells them. The cost per name grows with its length, not with its underscore count squared or with the number of known words. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): index UniFFI prefixes by hash instead of a character trie A character trie allocated a node and a map for every distinct prefix, so long crafted export names could exhaust the heap before the report's text checks. The prefix index now keeps one entry per known word, keyed by two polynomial hashes, and walks each name once computing the hashes of its underscore-ended prefixes; only the longest matches are compared. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): map UniFFI reads through one index and check namespace shapes - Constant and metadata reads use one file-mapping index built with the image's zero-filled ranges, so each read is a lookup and an ambiguous address reads as unknown instead of as definite bytes. - The ELF container read honours max_structure_bytes, as the export read already did. - 32-bit x86 images, which the shared readers name 386, decode their constants. - A scaffolding symbol belongs to the longest namespace whose remainder has a scaffolding shape, so a namespace ending in _fn cannot take another namespace's functions. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): carry the export reader's issues into a partial UniFFI report A partial export table now reports its first issues by code and message, counting the rest, before falling back to its limitations. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): consider every shaped namespace match for UniFFI symbols The scaffolding shape after a namespace is now checked while the name is walked, so every span followed by _fn_ or _checksum_ is a candidate, not only the longest four matches; only the chosen word is compared. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
649 lines
19 KiB
TypeScript
649 lines
19 KiB
TypeScript
import { CDP_BROWSER_PROVIDER_IDENTITY } from "../domain/comparisonEvidenceIdentity.js";
|
|
// oxlint-disable max-lines -- Keep the exhaustive static provenance bindings together; this table has no execution or host-availability logic.
|
|
import { UEFI_PROVIDER_IDENTITY } from "../uefi/UefiProviderIdentity.js";
|
|
import type { ProviderIdentity } from "../ports/AnalysisProvider.js";
|
|
import type {
|
|
TOOL_CONTRACTS,
|
|
ToolContractGroupId,
|
|
} from "../contracts/toolContracts.js";
|
|
import { ADB_PROVIDER_IDENTITY } from "../adb/AdbProviderIdentity.js";
|
|
import { JADX_PROVIDER_IDENTITY } from "../android/JadxRelease.js";
|
|
import { LABVIEW_PROVIDER_IDENTITY } from "../labview/LabviewProviderIdentity.js";
|
|
import { APK_SIGNATURE_PROVIDER_IDENTITY } from "../apkSignature/ApkSignatureRelease.js";
|
|
import { APKTOOL_PROVIDER_IDENTITY } from "../apktool/ApktoolProviderIdentity.js";
|
|
import {
|
|
HAR_CAPTURE_PROVIDER_IDENTITY,
|
|
MITMPROXY_CAPTURE_PROVIDER_IDENTITY,
|
|
QLOG_CAPTURE_PROVIDER_IDENTITY,
|
|
SAZ_CAPTURE_PROVIDER_IDENTITY,
|
|
} from "../browser/history/CaptureProviderIdentities.js";
|
|
import {
|
|
CDP_ELECTRON_PROVIDER_IDENTITY,
|
|
PLAYWRIGHT_BROWSER_SCENARIO_PROVIDER_IDENTITY,
|
|
PLAYWRIGHT_ELECTRON_ACTIVE_PROVIDER_IDENTITY,
|
|
} from "../browser/providerIdentities.js";
|
|
import { TSHARK_PROVIDER_IDENTITY } from "../captures/TsharkProviderIdentity.js";
|
|
import { CUTTER_PROVIDER_IDENTITY } from "../cutter/CutterProviderIdentity.js";
|
|
import {
|
|
ANALYSIS_VIEW_PROVIDER,
|
|
ANDROID_APPLICATION_PROVIDER,
|
|
APPLE_APPLICATION_PROVIDER,
|
|
APPLE_IPS_PROVIDER,
|
|
ARTIFACT_GRAPH_PROVIDER,
|
|
BINARY_HARDENING_PROVIDER,
|
|
BYTE_ENTROPY_PROVIDER,
|
|
DEVICETREE_PROVIDER,
|
|
DWARF_UNITS_PROVIDER,
|
|
NATIVE_TOOLCHAIN_PROVIDER,
|
|
ELF_DEBUG_LINK_PROVIDER,
|
|
ELF_DEPENDENCIES_PROVIDER,
|
|
ELF_NOTES_PROVIDER,
|
|
ELF_UNWIND_RANGES_PROVIDER,
|
|
FIRMWARE_ARCHITECTURE_CANDIDATES_PROVIDER,
|
|
HARMONY_APPLICATION_PROVIDER,
|
|
JAVASCRIPT_APPLICATION_PROVIDER,
|
|
JAVASCRIPT_APPLICATION_WORKFLOW_PROVIDER,
|
|
JAVASCRIPT_RUNTIME_RECONCILIATION_PROVIDER,
|
|
KERNEL_BUILD_CONFIG_PROVIDER,
|
|
KERNEL_MODULE_PROVIDER,
|
|
MACHO_FUNCTION_STARTS_PROVIDER,
|
|
MANAGED_STATIC_PROVIDER,
|
|
MANAGED_WORKFLOW_PROVIDER,
|
|
NATIVE_EXPORTS_PROVIDER,
|
|
NATIVE_INITIALIZERS_PROVIDER,
|
|
PE_CERTIFICATES_PROVIDER,
|
|
PE_IMPORTS_PROVIDER,
|
|
PE_LOAD_CONFIG_PROVIDER,
|
|
PE_UNWIND_RANGES_PROVIDER,
|
|
PE_OVERLAY_PROVIDER,
|
|
PE_RESOURCES_PROVIDER,
|
|
UNIFFI_LIBRARY_PROVIDER,
|
|
RELEASE_EXPOSURE_PROVIDER,
|
|
ESP_NVS_PROVIDER,
|
|
FIRMWARE_MMIO_PROVIDER,
|
|
FIRMWARE_VECTOR_TABLE_PROVIDER,
|
|
WEB_SCRIPT_EXPORT_PROVIDER,
|
|
WINDOWS_SHORTCUT_PROVIDER,
|
|
} from "../domain/investigationProviders.js";
|
|
import { SQLITE_PROVIDER_IDENTITY } from "../domain/sqlite/SqliteProviderIdentity.js";
|
|
import {
|
|
WEB_MODULE_TRACE_PROVIDER,
|
|
WEB_SOURCE_LOCATION_PROVIDER,
|
|
} from "../domain/webTraceProviders.js";
|
|
import { ELECTRON_FUSE_PROVIDER_IDENTITY } from "../electron/ElectronFuseProviderIdentity.js";
|
|
import { ERLANG_BEAM_PROVIDER_IDENTITY } from "../erlang/ErlangBeamProviderIdentity.js";
|
|
import { V8_CODE_CACHE_PROVIDER_IDENTITY } from "../v8/V8CodeCacheProviderIdentity.js";
|
|
import { MAVEN_GRADLE_METADATA_PROVIDER_IDENTITY } from "../java/MavenGradleMetadataProviderIdentity.js";
|
|
import { EVMOLE_PROVIDER_IDENTITY } from "../evm/EvmoleProviderIdentity.js";
|
|
import {
|
|
BINWALK_PROVIDER_IDENTITY,
|
|
UNBLOB_PROVIDER_IDENTITY,
|
|
} from "../firmware/FirmwareProviderIdentities.js";
|
|
import { FLUTTER_PROVIDER_IDENTITY } from "../flutter/FlutterProviderIdentity.js";
|
|
import { FRIDA_PROVIDER_IDENTITY } from "../frida/FridaProviderIdentity.js";
|
|
import { GDB_PROVIDER_IDENTITY } from "../gdb/GdbProviderIdentity.js";
|
|
import {
|
|
GHIDRA_OPERATIONS,
|
|
GHIDRA_PROVIDER_IDENTITY,
|
|
} from "../ghidra/GhidraProviderMetadata.js";
|
|
import { GO_BINARY_PROVIDER_IDENTITY } from "../go/GoBinaryProviderIdentity.js";
|
|
import { GPU_CODE_OBJECTS_PROVIDER_IDENTITY } from "../gpu/GpuCodeObjectsProviderIdentity.js";
|
|
import {
|
|
HOPPER_OPERATIONS,
|
|
HOPPER_PROVIDER_IDENTITY,
|
|
} from "../hopper/HopperProviderMetadata.js";
|
|
import {
|
|
IDA_OPERATIONS,
|
|
IDA_PROVIDER_IDENTITY,
|
|
} from "../ida/IdaProviderMetadata.js";
|
|
import { IL2CPP_METADATA_PROVIDER_IDENTITY } from "../il2cpp/Il2CppMetadataProviderIdentity.js";
|
|
import { V8_INSPECTOR_PROVIDER_IDENTITY } from "../inspector/providerIdentity.js";
|
|
import { WAKARU_PROVIDER_IDENTITY } from "../javascript/recovery/WakaruProviderIdentity.js";
|
|
import { JEB_PROVIDER_IDENTITY } from "../jeb/JebProviderIdentity.js";
|
|
import {
|
|
KUNA_OPERATIONS,
|
|
KUNA_PROVIDER_IDENTITY,
|
|
} from "../kuna/KunaProviderMetadata.js";
|
|
import { MODEL_ARTIFACT_PROVIDER_IDENTITY } from "../model/ModelArtifactProviderIdentity.js";
|
|
import { NATIVE_MACOS_PROVIDER_IDENTITY } from "../native/NativeMacosProviderIdentity.js";
|
|
import { PWNTOOLS_PROVIDER_IDENTITY } from "../native/pwntools/PwntoolsProviderIdentity.js";
|
|
import { OBJDUMP_PROVIDER_IDENTITY } from "../objdump/ObjdumpProviderIdentity.js";
|
|
import { PCAP_PROVIDER_IDENTITY } from "../pcap/PcapProviderIdentity.js";
|
|
import { NUGET_NUPKG_PROVIDER_IDENTITY } from "../nuget/NugetNupkgProviderIdentity.js";
|
|
import { VSIX_PACKAGE_PROVIDER_IDENTITY } from "../vsix/VsixPackageProviderIdentity.js";
|
|
import { OCI_IMAGE_LAYOUT_PROVIDER_IDENTITY } from "../oci/OciImageLayoutProviderIdentity.js";
|
|
import { YARA_PROVIDER_IDENTITY } from "../yara/YaraProviderIdentity.js";
|
|
import { PYTHON_PYC_PROVIDER_IDENTITY } from "../python/PythonPycProviderIdentity.js";
|
|
import { BAML_PROVIDER_IDENTITY } from "../dotnet/baml/BamlProviderIdentity.js";
|
|
import { DEB_PACKAGE_PROVIDER_IDENTITY } from "../deb/DebPackageProviderIdentity.js";
|
|
import { RIZIN_DEBUGGER_PROVIDER_IDENTITY } from "../rizin/RizinDebuggerProviderIdentity.js";
|
|
import { RIZIN_PROVIDER_IDENTITY } from "../rizin/RizinProviderIdentity.js";
|
|
import { RUST_BINARY_PROVIDER_IDENTITY } from "../rust/RustBinaryProviderIdentity.js";
|
|
import { SIGROK_PROVIDER_IDENTITY } from "../signals/SigrokProviderIdentity.js";
|
|
import { WABT_PROVIDER_IDENTITY } from "../wasm/WabtRelease.js";
|
|
|
|
type CanonicalOperationName = (typeof TOOL_CONTRACTS)[number]["name"];
|
|
|
|
/** Whole source groups grow with their canonical contracts; provider subsets stay explicit. */
|
|
export type CapabilityOperationSelection =
|
|
| readonly CanonicalOperationName[]
|
|
| { readonly group: ToolContractGroupId };
|
|
|
|
/** Static provenance bindings; host availability belongs to runtime inspection. */
|
|
export interface CapabilityDeclaration {
|
|
readonly providers: readonly {
|
|
readonly identity: ProviderIdentity;
|
|
readonly operations: CapabilityOperationSelection;
|
|
}[];
|
|
}
|
|
|
|
const providerBinding = <const Operations extends CapabilityOperationSelection>(
|
|
identity: ProviderIdentity,
|
|
operations: Operations,
|
|
) => ({ identity, operations });
|
|
|
|
const singleOperation = <const Operation extends CanonicalOperationName>(
|
|
identity: ProviderIdentity,
|
|
operation: Operation,
|
|
) => ({ providers: [providerBinding(identity, [operation])] }) as const;
|
|
|
|
/** Shared source facts, with no factory, schema or generated-catalog imports. */
|
|
export const CAPABILITY_DECLARATIONS = {
|
|
adbDevice: {
|
|
providers: [
|
|
providerBinding(ADB_PROVIDER_IDENTITY, { group: "ADB_TOOL_CONTRACTS" }),
|
|
],
|
|
},
|
|
analysisView: {
|
|
providers: [
|
|
providerBinding(ANALYSIS_VIEW_PROVIDER, {
|
|
group: "ANALYSIS_VIEW_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
android: {
|
|
providers: [
|
|
providerBinding(JADX_PROVIDER_IDENTITY, {
|
|
group: "ANDROID_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
androidApplicationGraph: singleOperation(
|
|
ANDROID_APPLICATION_PROVIDER,
|
|
"project_android_application_graph",
|
|
),
|
|
apkSignature: {
|
|
providers: [
|
|
providerBinding(APK_SIGNATURE_PROVIDER_IDENTITY, {
|
|
group: "APK_SIGNATURE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
apktool: {
|
|
providers: [
|
|
providerBinding(APKTOOL_PROVIDER_IDENTITY, {
|
|
group: "APKTOOL_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
appleApplicationGraph: singleOperation(
|
|
APPLE_APPLICATION_PROVIDER,
|
|
"project_apple_application_graph",
|
|
),
|
|
appleIps: singleOperation(APPLE_IPS_PROVIDER, "inspect_apple_ips"),
|
|
applicationWorkflows: {
|
|
providers: [
|
|
providerBinding(JAVASCRIPT_APPLICATION_WORKFLOW_PROVIDER, [
|
|
"build_reconstruction_obligation_ledger",
|
|
"compare_application_versions",
|
|
"compare_javascript_export_shapes",
|
|
"compare_source_to_bundle",
|
|
"evaluate_reconstruction_coverage",
|
|
"guided_workflows",
|
|
"read_guidance_section",
|
|
"search_guidance",
|
|
"trace_application_feature",
|
|
"trace_javascript_semantics",
|
|
]),
|
|
],
|
|
},
|
|
artifactGraph: {
|
|
providers: [
|
|
providerBinding(ARTIFACT_GRAPH_PROVIDER, {
|
|
group: "ARTIFACT_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
artifactResources: { providers: [] },
|
|
binaryLayout: singleOperation(
|
|
PWNTOOLS_PROVIDER_IDENTITY,
|
|
"inspect_binary_layout",
|
|
),
|
|
browserObservation: {
|
|
providers: [
|
|
providerBinding(CDP_BROWSER_PROVIDER_IDENTITY, {
|
|
group: "BROWSER_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
browserScenarioCapture: {
|
|
providers: [
|
|
providerBinding(PLAYWRIGHT_BROWSER_SCENARIO_PROVIDER_IDENTITY, {
|
|
group: "BROWSER_SCENARIO_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
byteEntropy: singleOperation(BYTE_ENTROPY_PROVIDER, "inspect_byte_entropy"),
|
|
cutter: {
|
|
providers: [
|
|
providerBinding(CUTTER_PROVIDER_IDENTITY, {
|
|
group: "CUTTER_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
desktopApplication: {
|
|
providers: [
|
|
providerBinding(ARTIFACT_GRAPH_PROVIDER, {
|
|
group: "DESKTOP_APPLICATION_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
desktopBuildComputers: { providers: [] },
|
|
devicetree: singleOperation(DEVICETREE_PROVIDER, "inspect_devicetree"),
|
|
dwarfUnits: singleOperation(DWARF_UNITS_PROVIDER, "inspect_dwarf_units"),
|
|
nativeToolchain: singleOperation(
|
|
NATIVE_TOOLCHAIN_PROVIDER,
|
|
"identify_native_toolchain",
|
|
),
|
|
electronActiveObservation: singleOperation(
|
|
PLAYWRIGHT_ELECTRON_ACTIVE_PROVIDER_IDENTITY,
|
|
"capture_electron_scenario",
|
|
),
|
|
electronFuses: singleOperation(
|
|
ELECTRON_FUSE_PROVIDER_IDENTITY,
|
|
"inspect_electron_fuses",
|
|
),
|
|
electronObservation: {
|
|
providers: [
|
|
providerBinding(CDP_ELECTRON_PROVIDER_IDENTITY, [
|
|
"inspect_electron_page",
|
|
"list_electron_targets",
|
|
]),
|
|
],
|
|
},
|
|
elfDependencies: singleOperation(
|
|
ELF_DEPENDENCIES_PROVIDER,
|
|
"inspect_elf_dependencies",
|
|
),
|
|
elfNotes: singleOperation(ELF_NOTES_PROVIDER, "inspect_elf_notes"),
|
|
elfDebugLink: singleOperation(
|
|
ELF_DEBUG_LINK_PROVIDER,
|
|
"inspect_elf_debug_link",
|
|
),
|
|
nativeInitializers: singleOperation(
|
|
NATIVE_INITIALIZERS_PROVIDER,
|
|
"inspect_native_initializers",
|
|
),
|
|
elfUnwindRanges: singleOperation(
|
|
ELF_UNWIND_RANGES_PROVIDER,
|
|
"inspect_elf_unwind_ranges",
|
|
),
|
|
erlangBeam: {
|
|
providers: [
|
|
providerBinding(ERLANG_BEAM_PROVIDER_IDENTITY, {
|
|
group: "ERLANG_BEAM_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
evmInterface: {
|
|
providers: [
|
|
providerBinding(EVMOLE_PROVIDER_IDENTITY, {
|
|
group: "EVM_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
firmwareAnalysis: {
|
|
providers: [
|
|
providerBinding(BINWALK_PROVIDER_IDENTITY, ["inspect_firmware_regions"]),
|
|
providerBinding(UNBLOB_PROVIDER_IDENTITY, ["extract_firmware"]),
|
|
],
|
|
},
|
|
espNvs: singleOperation(ESP_NVS_PROVIDER, "inspect_esp_nvs"),
|
|
firmwareMmio: singleOperation(
|
|
FIRMWARE_MMIO_PROVIDER,
|
|
"inspect_firmware_mmio",
|
|
),
|
|
firmwareVectorTable: singleOperation(
|
|
FIRMWARE_VECTOR_TABLE_PROVIDER,
|
|
"inspect_firmware_vector_table",
|
|
),
|
|
uefiAnalysis: {
|
|
providers: [
|
|
providerBinding(UEFI_PROVIDER_IDENTITY, { group: "UEFI_TOOL_CONTRACTS" }),
|
|
],
|
|
},
|
|
flutter: {
|
|
providers: [
|
|
providerBinding(FLUTTER_PROVIDER_IDENTITY, {
|
|
group: "FLUTTER_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
fridaInstrumentation: {
|
|
providers: [
|
|
providerBinding(FRIDA_PROVIDER_IDENTITY, {
|
|
group: "FRIDA_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
gdbSessions: {
|
|
providers: [
|
|
providerBinding(GDB_PROVIDER_IDENTITY, { group: "GDB_TOOL_CONTRACTS" }),
|
|
],
|
|
},
|
|
ghidra: {
|
|
providers: [providerBinding(GHIDRA_PROVIDER_IDENTITY, GHIDRA_OPERATIONS)],
|
|
},
|
|
goBinary: {
|
|
providers: [
|
|
providerBinding(GO_BINARY_PROVIDER_IDENTITY, {
|
|
group: "GO_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
gpuCodeObjects: {
|
|
providers: [
|
|
providerBinding(GPU_CODE_OBJECTS_PROVIDER_IDENTITY, {
|
|
group: "GPU_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
harmonyApplicationGraph: singleOperation(
|
|
HARMONY_APPLICATION_PROVIDER,
|
|
"project_harmony_application_graph",
|
|
),
|
|
hopper: {
|
|
providers: [providerBinding(HOPPER_PROVIDER_IDENTITY, HOPPER_OPERATIONS)],
|
|
},
|
|
ida: {
|
|
providers: [providerBinding(IDA_PROVIDER_IDENTITY, IDA_OPERATIONS)],
|
|
},
|
|
il2cppMetadata: {
|
|
providers: [
|
|
providerBinding(IL2CPP_METADATA_PROVIDER_IDENTITY, {
|
|
group: "IL2CPP_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
javascriptApplication: singleOperation(
|
|
JAVASCRIPT_APPLICATION_PROVIDER,
|
|
"analyze_javascript_application",
|
|
),
|
|
javascriptRecovery: {
|
|
providers: [
|
|
providerBinding(WAKARU_PROVIDER_IDENTITY, {
|
|
group: "JAVASCRIPT_RECOVERY_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
javascriptRuntimeObservation: {
|
|
providers: [
|
|
providerBinding(V8_INSPECTOR_PROVIDER_IDENTITY, {
|
|
group: "JAVASCRIPT_RUNTIME_OBSERVATION_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
javascriptRuntimeReconciliation: singleOperation(
|
|
JAVASCRIPT_RUNTIME_RECONCILIATION_PROVIDER,
|
|
"reconcile_javascript_runtime",
|
|
),
|
|
jeb: {
|
|
providers: [
|
|
providerBinding(JEB_PROVIDER_IDENTITY, { group: "JEB_TOOL_CONTRACTS" }),
|
|
],
|
|
},
|
|
kernelBuildConfig: singleOperation(
|
|
KERNEL_BUILD_CONFIG_PROVIDER,
|
|
"inspect_kernel_build_config",
|
|
),
|
|
kernelModule: singleOperation(
|
|
KERNEL_MODULE_PROVIDER,
|
|
"inspect_kernel_module",
|
|
),
|
|
kuna: {
|
|
providers: [providerBinding(KUNA_PROVIDER_IDENTITY, KUNA_OPERATIONS)],
|
|
},
|
|
machoFunctionStarts: singleOperation(
|
|
MACHO_FUNCTION_STARTS_PROVIDER,
|
|
"inspect_macho_function_starts",
|
|
),
|
|
managedStatic: {
|
|
providers: [
|
|
providerBinding(MANAGED_STATIC_PROVIDER, {
|
|
group: "MANAGED_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
managedWorkflow: {
|
|
providers: [
|
|
providerBinding(MANAGED_WORKFLOW_PROVIDER, {
|
|
group: "MANAGED_WORKFLOW_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
modelArtifact: {
|
|
providers: [
|
|
providerBinding(MODEL_ARTIFACT_PROVIDER_IDENTITY, {
|
|
group: "MODEL_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
nativeExports: singleOperation(
|
|
NATIVE_EXPORTS_PROVIDER,
|
|
"inspect_native_exports",
|
|
),
|
|
nativeMacOS: {
|
|
providers: [
|
|
providerBinding(NATIVE_MACOS_PROVIDER_IDENTITY, {
|
|
group: "NATIVE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
packetCapture: {
|
|
providers: [
|
|
providerBinding(TSHARK_PROVIDER_IDENTITY, {
|
|
group: "CAPTURE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
pcap: {
|
|
providers: [
|
|
providerBinding(PCAP_PROVIDER_IDENTITY, { group: "PCAP_TOOL_CONTRACTS" }),
|
|
],
|
|
},
|
|
peCertificates: singleOperation(
|
|
PE_CERTIFICATES_PROVIDER,
|
|
"inspect_pe_certificates",
|
|
),
|
|
peImports: singleOperation(PE_IMPORTS_PROVIDER, "inspect_pe_imports"),
|
|
peLoadConfig: singleOperation(
|
|
PE_LOAD_CONFIG_PROVIDER,
|
|
"inspect_pe_load_config",
|
|
),
|
|
peUnwindRanges: singleOperation(
|
|
PE_UNWIND_RANGES_PROVIDER,
|
|
"inspect_pe_unwind_ranges",
|
|
),
|
|
peOverlay: singleOperation(PE_OVERLAY_PROVIDER, "inspect_pe_overlay"),
|
|
binaryHardening: singleOperation(
|
|
BINARY_HARDENING_PROVIDER,
|
|
"inspect_binary_hardening",
|
|
),
|
|
peResources: singleOperation(PE_RESOURCES_PROVIDER, "inspect_pe_resources"),
|
|
uniffiLibrary: singleOperation(
|
|
UNIFFI_LIBRARY_PROVIDER,
|
|
"inspect_uniffi_library",
|
|
),
|
|
labviewArtifact: singleOperation(
|
|
LABVIEW_PROVIDER_IDENTITY,
|
|
"inspect_labview_artifact",
|
|
),
|
|
windowsShortcut: singleOperation(
|
|
WINDOWS_SHORTCUT_PROVIDER,
|
|
"inspect_windows_shortcut",
|
|
),
|
|
firmwareArchitectureCandidates: singleOperation(
|
|
FIRMWARE_ARCHITECTURE_CANDIDATES_PROVIDER,
|
|
"inspect_firmware_architecture_candidates",
|
|
),
|
|
pythonPyc: {
|
|
providers: [
|
|
providerBinding(PYTHON_PYC_PROVIDER_IDENTITY, {
|
|
group: "PYTHON_PYC_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
baml: {
|
|
providers: [
|
|
providerBinding(BAML_PROVIDER_IDENTITY, {
|
|
group: "BAML_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
debPackage: {
|
|
providers: [
|
|
providerBinding(DEB_PACKAGE_PROVIDER_IDENTITY, {
|
|
group: "DEB_PACKAGE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
nugetNupkg: {
|
|
providers: [
|
|
providerBinding(NUGET_NUPKG_PROVIDER_IDENTITY, {
|
|
group: "NUGET_NUPKG_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
vsixPackage: {
|
|
providers: [
|
|
providerBinding(VSIX_PACKAGE_PROVIDER_IDENTITY, {
|
|
group: "VSIX_PACKAGE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
ociImageLayout: {
|
|
providers: [
|
|
providerBinding(OCI_IMAGE_LAYOUT_PROVIDER_IDENTITY, {
|
|
group: "OCI_IMAGE_LAYOUT_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
yaraMatches: {
|
|
providers: [
|
|
providerBinding(YARA_PROVIDER_IDENTITY, {
|
|
group: "YARA_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
releaseExposure: {
|
|
providers: [
|
|
providerBinding(RELEASE_EXPOSURE_PROVIDER, {
|
|
group: "RELEASE_EXPOSURE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
v8CodeCache: {
|
|
providers: [
|
|
providerBinding(V8_CODE_CACHE_PROVIDER_IDENTITY, {
|
|
group: "V8_CODE_CACHE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
mavenGradleMetadata: {
|
|
providers: [
|
|
providerBinding(MAVEN_GRADLE_METADATA_PROVIDER_IDENTITY, {
|
|
group: "MAVEN_GRADLE_METADATA_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
recordedCrash: singleOperation(
|
|
PWNTOOLS_PROVIDER_IDENTITY,
|
|
"inspect_recorded_crash",
|
|
),
|
|
reverseEngineering: {
|
|
providers: [
|
|
providerBinding(OBJDUMP_PROVIDER_IDENTITY, ["inspect_with_objdump"]),
|
|
providerBinding(RIZIN_PROVIDER_IDENTITY, ["execute_rizin_command"]),
|
|
],
|
|
},
|
|
rizinDebugSessions: {
|
|
providers: [
|
|
providerBinding(RIZIN_DEBUGGER_PROVIDER_IDENTITY, {
|
|
group: "RIZIN_DEBUG_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
rustBinary: {
|
|
providers: [
|
|
providerBinding(RUST_BINARY_PROVIDER_IDENTITY, {
|
|
group: "RUST_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
signalRecording: {
|
|
providers: [
|
|
providerBinding(SIGROK_PROVIDER_IDENTITY, {
|
|
group: "SIGNAL_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
sqliteDatabase: {
|
|
providers: [
|
|
providerBinding(SQLITE_PROVIDER_IDENTITY, {
|
|
group: "SQLITE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
wasmArtifact: singleOperation(
|
|
WABT_PROVIDER_IDENTITY,
|
|
"inspect_wasm_artifact",
|
|
),
|
|
webModuleTrace: singleOperation(
|
|
WEB_MODULE_TRACE_PROVIDER,
|
|
"trace_web_module_imports",
|
|
),
|
|
webNetworkCapture: {
|
|
providers: [
|
|
providerBinding(SAZ_CAPTURE_PROVIDER_IDENTITY, {
|
|
group: "WEB_NETWORK_CAPTURE_TOOL_CONTRACTS",
|
|
}),
|
|
providerBinding(HAR_CAPTURE_PROVIDER_IDENTITY, {
|
|
group: "WEB_NETWORK_CAPTURE_TOOL_CONTRACTS",
|
|
}),
|
|
providerBinding(MITMPROXY_CAPTURE_PROVIDER_IDENTITY, {
|
|
group: "WEB_NETWORK_CAPTURE_TOOL_CONTRACTS",
|
|
}),
|
|
providerBinding(QLOG_CAPTURE_PROVIDER_IDENTITY, {
|
|
group: "WEB_NETWORK_CAPTURE_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
webRuntime: {
|
|
providers: [
|
|
providerBinding(CDP_BROWSER_PROVIDER_IDENTITY, {
|
|
group: "WEB_RUNTIME_TOOL_CONTRACTS",
|
|
}),
|
|
],
|
|
},
|
|
webScriptExport: singleOperation(
|
|
WEB_SCRIPT_EXPORT_PROVIDER,
|
|
"export_web_scripts",
|
|
),
|
|
webSourceLocation: singleOperation(
|
|
WEB_SOURCE_LOCATION_PROVIDER,
|
|
"trace_web_source_location",
|
|
),
|
|
} as const satisfies Readonly<Record<string, CapabilityDeclaration>>;
|
|
|
|
export type CapabilityDeclarationId = keyof typeof CAPABILITY_DECLARATIONS;
|