Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0sec labs 0 Fleet Ingestion

From Leeroopedia
Knowledge Sources
Domains Binary_Analysis, Variant_Analysis, Firmware
Last Updated 2026-10-30 00:00 GMT

Overview

Technique for preparing a heterogeneous set of binaries and firmware images for variant analysis by triaging, carving firmware, resolving ABIs, and decompiling each target.

Description

Fleet ingestion is the mass-preparation stage for variant analysis. It accepts a fleet spec — a directory (all files triaged), a manifest file (one path per line), or a list of paths — and produces a FleetMember for each binary. Firmware images are carved first via binwalk to extract embedded ELF files. Each binary is triaged (format, arch, bits), its ABI is resolved, and it is optionally decompiled. When no decompiler is available, the member's decompiled dict is empty and variant detection falls back to a cheap symbol pass over raw bytes. This heterogeneous handling enables a single sweep to cover userland executables, kernel modules, and firmware blobs.

Usage

Use this principle when a variant analysis needs to process a diverse fleet — mixed architectures, firmware images, and stripped binaries — in a unified pipeline.

Theoretical Basis

The ingestion pipeline:

# Abstract algorithm (NOT real implementation)
for path in expand_spec(spec):
    if is_firmware(path):
        elfs = binwalk.carve(path, workdir)  # extract embedded ELFs
    else:
        elfs = [path]
    for elf in elfs:
        t = triage(elf)                    # format, arch, bits, mitigations
        abi = resolve_abi(t.arch, t.bits)
        decompiled = decompile(elf) if decompile else {}
        members.append(FleetMember(elf, t, abi, decompiled))

The firmware carving step uses binwalk to identify and extract embedded file systems and ELF binaries from monolithic firmware images. The ABI resolution determines calling conventions and data type sizes for the confirmation oracle.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment