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

Workflow:7onez Cti expert Binary Artifact Analysis

From Leeroopedia
Knowledge Sources
Domains Malware_Analysis, OSINT, Attribution
Last Updated 2026-10-28 14:00 GMT

Overview

Static IOC extraction from binary artifacts (APK, .exe, .dmg, .zip, .jar) pulled off scam or fraud infrastructure, feeding the file-half of a scam funnel into the same KB ingester and case graph as WebPivot's domain collection.

Description

This workflow is invoked by /cti <file-or-url> when the seed is a binary artifact — a sideloaded APK, a desktop "trading terminal" .exe/.dmg, or a bundled .zip/.jar. The BinaryPivot skill's analyze_artifact tool statically extracts indicators of compromise and operator-identifying pivots without detonating the sample, then emits WebPivot-shaped JSON so the same KB ingester and case graph consume it. Sandbox submission (ANY.RUN) is a separate, gated step that runs only in an authorized spending run.

Goal: A WebPivot-shaped JSON artifact report containing file hashes, APK signing certificates, embedded backend hosts/C2 URLs, cloud-tenant identifiers, crypto wallets, and social handles — all pivots that link the binary to the operator's web infrastructure.

Scope: From downloading or opening a binary, through static IOC extraction and packer triage, to optional gated sandbox submission and KB ingestion. No dynamic execution occurs in the static phase.

Strategy: Static analysis always runs (stdlib-only, zero required deps); sandbox submission runs only when an ANY.RUN key is configured and the run is authorized. The signing certificate is the single best cross-app operator key — the keystore the operator generated once and re-signs every build with clusters every app signed by it.

Usage

Execute this workflow when:

  • Input State: You have a URL pointing to a downloadable binary (APK, .exe, .dmg, .zip, .jar) hosted on infrastructure you are authorized to investigate, or a local file path to the artifact.
  • Desired Output: A structured artifact report with static IOCs and operator pivots, ingested into the KB, clustering the binary with any related web infrastructure.
  • When to use: When a scam or fraud case includes a downloadable client application ("trading terminal", "mobile app", "investment tool") and you need to attribute the operator behind the binary, or link it to web infrastructure already in the case.

Execution Steps

Step 1: Artifact Acquisition and Triage

The artifact is downloaded (from an authorized target URL) or opened from a local path. It is hashed (MD5/SHA1/SHA256) and typed via file(1). The hash set is immediately usable for VirusTotal, MalwareBazaar, and Triage lookups when keys are present. Authorization is required: only pull artifacts from infra you are authorized to investigate; run from non-attributable egress.

Key considerations:

  • Static analysis only — no detonation. The sample is never executed.
  • Hashes are the first pivot — a known-bad hash links the binary to existing malware corpora immediately.

Step 2: Static IOC Extraction

The analyzer statically pulls indicators from the binary. For APKs: package name, version, permissions, activities, and the APK signing certificate SHA256 (the developer key — the best operator pivot, clustering every app signed by one keystore). For all binaries: embedded backend hosts, C2 URLs, IP:port endpoints (which feed back into WebPivot as web-infra seeds), Firebase project IDs, appspot domains, API keys, S3 bucket names (operator-owned cloud tenant), crypto wallet addresses, and Telegram/WhatsApp/support handles (social pivots). Files of interest inside the container (google-services.json, config.json, .env, extra dex/so) are extracted and catalogued.

Key considerations:

  • The signing certificate is the single best cross-app operator key — it is the keystore the operator generated once and re-signs every build with.
  • Embedded backend hosts and C2 URLs feed back into WebPivot as seeds for the web-infrastructure leg of the investigation.
  • Cloud-tenant identifiers (Firebase, S3, appspot) point to operator-owned infrastructure, not shared platform noise.

Step 3: Packer and Obfuscation Triage

The analyzer performs packer/protector triage using entropy analysis and section/member signatures. A named protector (UPX, VMProtect, Qihoo Jiagu, Tencent Legu) is a weak kit-level clustering hint — it tells you the operator's toolchain, not their identity. Protected samples are routed to the dynamic sandbox step; the triage output explains why a protected sample's static sweep is thin.

Key considerations:

  • A named packer is kit-level, not operator-level — it clusters toolchain, not identity.
  • The triage output documents the gap: if the static sweep is thin because of packing, the analyst knows why and can authorize a sandbox run.

Step 4: Optional Gated Sandbox Submission

When an ANY.RUN API key is configured and the run is authorized, the binary is submitted to the ANY.RUN sandbox for dynamic analysis. This step is gated: it is outbound, attributable, and spends credits. The submission proves private entitlement and checks applied privacy. A submission without a returned task ID is never retried automatically (the POST may have succeeded even when the response was lost). Without a key or authorization, this step is skipped and the static report stands alone.

Key considerations:

  • Sandbox submission is gated the same way as the Engage engage() call — outbound, attributable, irreversible.
  • A lost-response submission is never retried — it may have succeeded on the server side.

Step 5: WebPivot-Shaped JSON Output

The artifact report is emitted in WebPivot-shaped JSON ({meta, artifacts, pivots}) — the same schema as pivot_extract's output. This is the integration contract: the same ingest_webpivot KB adapter, the same case graph, and the same visualization tools consume it without any special handling.

Key considerations:

  • The schema compatibility is what makes the binary leg of a case cluster with the web leg — one KB, one graph, one attribution.
  • Embedded web endpoints in the artifact report seed new WebPivot collection targets, closing the cross-type loop.

Step 6: KB Ingestion and Cross-Type Correlation

The artifact report is ingested into the KB via the same ingest_webpivot adapter. Embedded backend hosts, signing certificates, cloud-tenant IDs, and wallet addresses become indicator entities. If any of these indicators are already present in the KB (from prior web collection on the same case or a different case), the binary is auto-linked to that infrastructure. The cross-type harness loop can then run: web endpoints discovered in the binary seed new WebPivot collection, and new web artifacts feed back into the binary's cluster.

Key considerations:

  • Cross-type correlation is where the binary and web legs meet — a signing cert that matches an app already in the KB, or a backend host that matches a domain already collected, closes the loop.
  • The rung table governs which artifact types may seed attribution edges (owner) versus which are collected as facts only (kit, neighbour).

Execution Diagram