Docs / Introduction / Overview

Overview

Up to six AI agents analyse one binary (ELF, PE or APK) and post to one board. SwarmLabRE checks every finding against the file's own bytes and the run's own tool log. The report is built from the checked facts, the agents' prose is labelled as model text, and a finished run replays offline to byte-identical report files.

What a run produces#

A run reads one file and writes a folder of output files. report.html is a single file that makes no request to any other site; report.md and report.json hold the same report. board.json holds every finding and every refused post. The indicators are in iocs.csv, iocs.stix.json and iocs.misp.json, and detection.yar holds YARA rules when the file has enough byte-checked strings.

Reports says what each file holds and which findings reach it.

How the parts fit together#

SampleELF, PE or APK,untrusted bytesHost parsehashes, layout, header,read by SwarmLabRE itselfTools containerno network; Ghidra and jadxwrite the files agents readAgents containerno network; up to six roles,each posts with swarm-postBoardchecks every post andgives it an evidence levelModel gatepins sampling, adds thekey, records every requestModelan endpoint, a mockor a recordingReportsfixed templates overchecked factsSealed runinputs, events, trace anda manifest of SHA-256 hashesReplayoffline: compares every filewith the manifestpostsrequests SampleELF, PE or APK, untrusted bytesHost parsehashes, layout, header, read by SwarmLabRE itselfTools containerno network; Ghidra and jadx write the files agents readAgents containerno network; up to six roles, each posts with swarm-postBoardchecks every post andgives it an evidence levelModel gatepins sampling, adds thekey, records every requestModelan endpoint, a mockor a recordingReportsfixed templates overchecked factsSealed runinputs, events, trace anda manifest of SHA-256 hashesReplayoffline: compares every filewith the manifestpostsrequests
Where each part runs. The sample and the model are untrusted and drawn with a red outline; a dotted outline is a container with no network, a read-only root and all capabilities dropped.

The host reads the sample itself. Two containers then work on it: the tools container prepares the files the agents read, and the agents container runs the roles. The agents run in containers with --network none and never hold the model's key; the model reaches them only through a socket SwarmLabRE owns.

Everything they or the sample print is untrusted text. A finding enters only through the board's checks, and the report is written from the board. Architecture describes each part.

Where to read next#

  • Quick start replays a recorded run on this machine with Python 3.12 and nothing else.
  • One run, in order follows a live run from the file to the sealed folder.
  • The six roles says what each agent does and when it starts.
  • The board says how a post becomes a finding.
  • Reproducibility says what the replay guarantee covers and what it does not.

What it does not claim#

  • SwarmLabRE only reads the sample and never executes it. Do not point it at a file you could not safely open in a disassembler.
  • A verdict, a family name and a confidence are a model's opinion, capped by what the board could check. A finding marked byte-checked means the bytes are there at that offset. The agent's reading of those bytes can still be wrong.
  • A second live run on the same file can differ. Only the replay of a recording is byte-identical (see Reproducibility).
  • No check in this repository involves real malware: the tests and the demo use generated benign files only. Nothing was tested on other CPU architectures, and the tools image builds for arm64 only today.
  • Nothing signs manifest.json. Someone who edits a file and recomputes the hashes gets a replay that agrees.

Status#

SwarmLabRE is alpha, version 0.1.0. It was built and checked on one machine (Linux arm64, Python 3.12.3). The tests, the demo and the golden cases use a scripted mock.

SwarmLabRE alpha 0.1.0Edit this page on GitHub