intellicrack.core.analysis_aggregator

Bridge analysis aggregator for Intellicrack.

Queries connected bridges and aggregates their output into a unified BridgeAnalysisSummary by delegating all actual analysis to the bridge layer.

class AnalysisAggregator[source]

Bases: object

Aggregates analysis data from connected bridges.

Queries GhidraBridge and CutterBridge for strings, imports, exports, functions, and sections, then packages everything into a single BridgeAnalysisSummary.

__init__(tools)[source]

Initialize the AnalysisAggregator with a tool registry.

Parameters:

tools (ToolRegistry) – ToolRegistry providing access to bridge instances.

Return type:

None

async aggregate(binary_name, binary_info)[source]

Aggregate analysis data from all connected bridges.

Starts with data already present in BinaryInfo (sections, imports, exports, file_type, architecture), then queries connected bridges for additional data (strings, functions). The returned summary’s complete flag is True only when at least one real analysis bridge contributed data; consumers (notably AI report generation) must check complete before treating the summary as authoritative.

Parameters:
  • binary_name (str) – Display name of the binary being analyzed.

  • binary_info (BinaryInfo) – Pre-loaded binary metadata from the binary bridge.

Returns:

Aggregated data from all contributing bridges.

Return type:

BridgeAnalysisSummary