Skip to main content
Version: Next

What leaves the host

bitscanner ships a description of somebody's network off the machine it runs on. That makes two questions load-bearing: what is in it, and how does it travel. This page answers both, and then states the limits of this release plainly. bitscanner itself never connects to the platform: it writes files to a local spool and bitcollector delivers them.

For what arms the probing in the first place, see Scanning, and the two switches that arm it.

What is in the telemetry​

Everything bitscanner ships is about the network around the host, never the host's own contents.

RecordFields
network_stateRoutes: destination, gateway, interface, metric, flags; and the host's primary private address, which is how the platform knows the agent's own address
neighbor_tablePer neighbour: ip_address, hardware_addr, interface, state, type (arp or ndp), vendor (offline registry lookup), deviceClass and its evidence, randomizedMac, first_seen, and a stable deviceKey (mac:<MAC> or ip:<address>)
neighbor_discoveryOnly with scanning.probes.neighbor_discovery. Per neighbour: address, MAC, vendor, device_type, is_reachable, first_seen/last_seen; plus hostname if reverse_dns is armed, services (ports, and banners if port_scan is armed), mdns_services/ssdp_info if service_discovery is armed. Plus the subnets scanned
gateway_discoveryPer gateway: address, MAC, vendor, is_default, reachability, and (only with gateway_probe) the ports that answered and any banner they presented
service_discoveryResponders: name, type, host, port, protocol, discovered_via, mDNS TXT records

Records written for an on-demand scan are separate files: an acknowledgement, a progress note and a result with one finding per open port (target, port, service, product and version when the service announced them, severity info). They exist only if you armed on_demand_scan.

Two consequences worth being explicit about:

  • The louder probes record other people's software versions. A banner from port 22 or 25 is a version string belonging to a device you may not own. That is not a side effect to discover later; it is what port_scan, gateway_probe and on-demand scans are for, and it is why they are off by default and gated behind an authorisation acknowledgement.
  • hostname only exists if you armed reverse_dns. Without it, a neighbour is an address, a MAC and a vendor guess.

What it deliberately does not collect​

network_state used to carry interfaces (name, MTU, MAC, addresses), listeners (the local socket inventory), an always-empty connections list and a dns_servers field that nothing ever populated, a null field asserting a resolver inventory that was never collected. All of them are gone, along with the code and types behind them.

The first three were bitcollector's network and port collectors restated. bitscanner does not collect host facts: no processes, no installed packages, no local accounts, no command lines. If a record about the machine itself is what you need, it comes from the collector, under the collector's privacy defaults.

Each record is wrapped in an envelope carrying a SHA-256 checksum over its header and payload. That is an integrity check, not a signature: bitscanner has no equivalent of bitcollector's signed, hash-chained evidence chain. The envelope's agent_id is empty, because the module has no platform identity: the token bitcollector delivers with is what names the agent.

How it travels: a local spool, not a network connection​

bitscanner holds no platform credential, does not enrol, sends no heartbeat, has no network client for the platform and listens on no port. Its only path out is a directory of files:

<handoff.root>/ default /var/lib/certix-bits
├── outbox/bitscanner/ bitscanner writes, bitcollector reads
└── inbox/bitscanner/ bitcollector writes, bitscanner reads
  • bitcollector attests and delivers. It reads the outbox and carries the payload to the platform unchanged, on its own authenticated channel. The same applies in the other direction: it receives the platform's commands and policy and writes them to the inbox.
  • Files are written atomically. Each one is written under a temporary name, synced, and renamed into place, so bitcollector never sees a half-written file. A file is at most 4 MiB.
  • The spool is bounded. The outbox holds at most 512 pending files. At that point bitscanner stops writing and counts it instead of filling the disk, and bitscanner status exits non-zero. A neighbour cycle that is not written is simply read again on the next cycle.
  • The location is not negotiable from outside. handoff.root is read from the configuration file only, and any BITSCANNER_HANDOFF_* variable stops the agent, because the inbox is where commands that start scans arrive.
  • A spool that is not safe means no start. If either directory is missing, is a symlink or is world-writable, the agent refuses to start rather than look healthy and deliver nothing.
  • The files are plain. Nothing in the spool is encrypted by the module, and handoff files are readable by the certix-bits group. The neighbour table is a map of your network, so treat the directory accordingly.

There is no enrolment token, agent key or token file for bitscanner to protect, and so no secret-file permission checks: the secrets belong to bitcollector.

What comes back: commands and policy​

The inbox carries four command kinds (scan_request, cancel_scan, suspend, reactivate) and one policy file, read every two seconds. Every file is checked before it is acted on, and a file that fails any check is renamed .rejected and never acted on (only the newest 64 are kept):

  • opened without following symlinks, and it must be a regular file with no group or world write bit and at most 4 MiB, checked on the opened descriptor;
  • its owner must be root, the owner of the inbox directory, or a uid you listed in handoff.inbox_allowed_uids (file only);
  • the body must be strict JSON with the expected schema, module and kind, and the kind must match the file name and the message type.

The policy can only narrow what your configuration file allows: switch passive reading off, slow the cycle, switch the armed probes off, lower the per-cycle host budget. It has no key that arms a probe, sets the authorisation or widens allowed_cidrs. The platform also sends the addresses of its own endpoints as an extra deny list for every probe and scan, and until it has done so every public target is refused. Nothing in the inbox is signature-checked by bitscanner: file ownership and mode protect it, and bitcollector is the party that authenticates the platform.

Honest limits​

Stated here rather than discovered later.

"Handed off" is not "delivered"​

The agent reports what it wrote to the spool, not what the platform stored. A line listing the records handed off is logged every cycle, including with scanning off, so that a delivery problem is never mistaken for a collector that is not running. What still waits for bitcollector, what was refused and which policy is in force are shown by bitscanner status (read only, works with the agent stopped).

Check the toolchain you actually run​

The Go toolchain version is printed by bitscanner version and recorded in the release's CycloneDX SBOM, so check the build in front of you rather than trusting a table in a page. A release is rebuilt when a standard-library advisory affects it: 0.5.1-ga, for example, was rebuilt on Go 1.26.10 for a High advisory, with no functional change.

A neighbour is reported, not verified​

A device found by bitscanner is a lead: an address, a MAC, a vendor guess and a first-seen time. It is not proof of who owns the device. That is why a discovered device can be adopted into your inventory, but can be scanned only after an owner attestation by an authorised user.

Next steps​

Was this page helpful?