bitscanner
bitscanner finds the devices your inventory does not contain.
bitcollector reads the host it runs on. bitscanner looks outward from that host at
the segment around it, and the answer that matters is the one nothing on your asset list
explains.
| Release | 0.6.0-ga |
| Platforms | Linux amd64/arm64 only. macOS and Windows are not published, and why |
| Supply chain | Reproducible build (built twice, refused unless byte-identical), CycloneDX SBOM and cosign attestation per binary, vulnerability gate, cosign signature per binary and over SHA256SUMS |
| Inbound network surface | No service listens. No health, metrics or admin port, and no key that opens one. Measured with scanning off: zero listening sockets. service_discovery, when armed, uses short-lived unbound UDP sockets; a datagram arriving on one becomes an inventory record only if it answers the query just sent and comes from inside allowed_cidrs (see below) |
| Outbound | None to Cert-IX. bitscanner holds no platform credential and opens no connection to the platform. It writes files to a local spool (handoff.root) and bitcollector delivers them. The only packets it sends are the probes you arm |
| Writes to the host | Its own data directory (agent.data_dir: the spool sequence counter, the first-seen record and the last platform policy it accepted) and its spool outbox. It reads the spool inbox |
| Packets on the network by default | Zero. Passive discovery reads local tables only, and both arming switches for probes ship off |
Before you run it, verify the download; the bitscanner-specific steps are below.
Two things here are large enough to have their own pages: scanning and the two-switch arming model (the probe ladder, what each probe puts on the wire, and the guard that authorises each packet) and what leaves the host, including the local hand-off spool and the limits this release ships with.
In short
- Question it answers: What else is on this network that I do not know about?
- What it never does: It never inventories its own host, never captures traffic, never looks for CVEs and never changes the host.
- By plan: Free: passive discovery of neighbours and adopting a device. Starter and Pro: probes, on-demand scans and scanning adopted devices.
- Safety: Passive discovery reads the host's own neighbour tables, routes and an offline vendor list. It sends no packet and is on by default. Every probe, including reverse DNS, mDNS and SSDP, needs the written authorisation set on the host and a list of allowed address ranges (CIDR) on the host. Only you can set them, by editing the configuration file on the host: Cert-IX cannot supply or widen them, and an environment variable cannot set them. Without them nothing is sent. It holds no platform credential.
- Install and upgrade: Add it from Agent Fleet with Add modules. Cert-IX installs and upgrades it automatically, and bitcollector delivers its data. If probes are not armed yet, the Discovery page offers Prepare scanning.
The question bitcollector cannot answer
An inventory assembled from agents can only ever contain machines somebody installed an agent on. The printer, the lab switch, the contractor's laptop, the VM a team span up for a migration and never told anyone about: none of them will report themselves, and none of them are missing because of a technical failure. They are missing because nobody knew to look.
So the two binaries answer two different questions, and the boundary is the direction they face:
bitcollector | bitscanner | |
|---|---|---|
| Faces | Inward: the host it runs on | Outward: the segment that host sits on |
| Answers | "What is this machine, and what state is it in?" | "What else is on this wire, and is any of it unaccounted for?" |
| Sees a device only if | an agent is installed on it | it is visible from a host that has one |
| Sends packets | Never: it reads the host | Only if you arm it, probe by probe |
Neither replaces the other. A device bitscanner discovers is a lead: an address, a MAC, a vendor, a first-seen time. Turning that lead into an asset with an owner is work you do in Asset Management; bitscanner's job is to make sure the lead exists at all.
What it reports with scanning switched off
The default configuration arms no probe, and the agent still has something to say, because
the host's own kernel already knows its neighbours. This is passive discovery
(discovery.passive.enabled, on by default), and it needs neither the scanning authorisation
nor an allowed address list. It reads the IPv4 ARP table (/proc/net/arp), the IPv6 neighbour
cache (one netlink request to the local kernel), the routing table and the default gateway,
and looks vendors up in a registry embedded in the binary. It emits no packet at all.
At start the agent logs that active scanning is disabled and that every probe will be denied, and each cycle it logs which records it handed off.
| Record | What it carries | Needs |
|---|---|---|
network_state | The routing table: destination, gateway, interface, metric, flags | nothing |
neighbor_table | The kernel ARP/NDP cache: address, MAC, interface, state, plus vendor, device class, first seen and a stable deviceKey | nothing |
gateway_discovery | The first hops out of this host, identified from local tables, with MAC attribution | nothing (the active gateway probe needs scanning.probes.gateway_probe) |
neighbor_discovery | The enriched neighbour inventory: reachability, subnets, and the results of the louder probes | scanning.probes.neighbor_discovery |
service_discovery | mDNS/SSDP responders, attributed to the neighbour that answered | scanning.probes.service_discovery |
The platform can switch passive discovery off for a host (never on), and the Discovery page shows what it found: devices seen, devices not in your inventory, and devices new in the last 24 hours.
Every record is wrapped in the same envelope (schema_version, type, agent_id,
timestamp, sequence, payload, checksum). agent_id is empty: the module has no
platform identity, and the token bitcollector delivers with names the agent. The checksum is a SHA-256 integrity
check over schema_version, type, agent_id, timestamp and payload, not over sequence, and not a signature. bitscanner does not have
bitcollector's signed, hash-chained evidence
chain; if you need an artefact an auditor can verify offline,
that is the collector's job, not this one's.
Running it
bitscanner is a single static binary. Verify it first, then:
# What you have
bitscanner version
# BitScanner 0.6.0-ga (commit: <commit>, built: <date>, <go version>, linux/amd64)
# Write a fully commented starting configuration
bitscanner config init --config /etc/bitscanner/config.yaml
# Check it BEFORE you start anything
bitscanner config validate --config /etc/bitscanner/config.yaml
# Configuration is valid.
# Run in the foreground
bitscanner run --config /etc/bitscanner/config.yaml
# The hand-off spool: what waits for bitcollector, what was refused, which
# platform policy is in force. Read only, works with the agent stopped
bitscanner status --config /etc/bitscanner/config.yaml
# Turn up the detail while you are setting it up
bitscanner run --config /etc/bitscanner/config.yaml --log-level debug --log-format console
config init writes the same annotated file this page is describing: every scanning key,
what each probe actually sends, and why the defaults are what they are. It is meant to be
read.
--log-level and --log-format are flags, and only flagsThere is no logging: block. There used to be (level, format, output_path,
max_size, max_backups, max_age), and not one of those keys was read by any code, so
the logger was configured entirely from the command line whatever the file said. The block
is gone, and a config that still contains it is refused by name:
Error: configuration validation failed: failed to load config: logging is set but no
longer exists: the whole `logging` block was parsed and read by nobody […] Use the
flags, which do work: `--log-level` (debug|info|warn|error) and `--log-format`
(json|console). There is no replacement for output_path or for the rotation keys — log
rotation was never implemented […]
The same treatment applies to the blocks of the platform connection that was removed when
bitscanner became a module of bitcollector: enrollment:, control_plane:, telemetry: and
security:, and the BITSCANNER_ENROLLMENT_*, BITSCANNER_CONTROL_PLANE_* and
BITSCANNER_TELEMETRY_* variables. A file that still contains one is refused at start, with a
message that names handoff.root as the only transport setting, because ignoring it would leave
you believing this agent enrols and ships on its own. An unknown key anywhere in the file is
refused by name. A key that does nothing is not shipped, and its removal is announced to the
person whose file contains it rather than silently ignored.
Configuration
bitscanner is configured by a YAML file, conventionally /etc/bitscanner/config.yaml.
You do not write it from scratch: bitscanner config init generates a fully annotated
starting configuration that documents every scanning key, what each probe actually sends,
and why each default is what it is.
bitscanner config init --config /etc/bitscanner/config.yaml # write an annotated config
bitscanner config validate --config /etc/bitscanner/config.yaml # check it before starting
bitscanner run --config /etc/bitscanner/config.yaml
Every probe ships disabled, so a freshly configured bitscanner puts zero packets on the network until you arm probes deliberately. See Scanning for the two-switch arming model and for what each probe sends.
Logging is set by flags only (--log-level, --log-format); there is no logging: block in
the file. The only transport setting is handoff.root (default /var/lib/certix-bits), the
spool that bitcollector's installer creates; it is read from the file and never from the
environment. A minimal working configuration is the module configuration the platform writes:
passive discovery on and scanning off.
handoff:
root: "/var/lib/certix-bits"
discovery:
passive:
enabled: true
scanning:
enabled: false
What it costs on the host
- No inbound service. There is no health port, no metrics port, and no configuration key
that opens one. Measured on a running agent with scanning off: the process owns zero
listening sockets.
One honest qualification: with
service_discoveryarmed, the agent opens ephemeral, unbound UDP sockets to send mDNS and SSDP queries and read the replies. They exist only for the duration of a probe, but "zero listening sockets" is true of the default configuration, not of every configuration. - Cheap when it is quiet. On a host with 118 ARP neighbours across 27 attached subnets,
a full neighbour-discovery pass took 71–189 ms per cycle across four consecutive
cycles. The default
modules.network_intelligence.intervalis1m. - A cycle is one scan cycle. The per-cycle host budget and the wall-clock scan deadline reset at the start of a collection and nowhere else, so a slow or tarpitted segment cannot let one cycle's probing run into the next.
- A bounded spool, and no retry of its own. Each cycle's records are written as files into
the outbox, and bitcollector queues and delivers them. The outbox holds at most 512 pending
files and each file is at most 4 MiB. When it is full (bitcollector is not draining it) a
cycle is not written, and the next cycle reads the live tables again, so a stopped
bitcollector costs you observations, not disk. A line listing the records handed off is
logged every cycle, whether or not scanning is on, but "handed off" is not "delivered":
bitscanner statusshows what still waits, and exits non-zero when the outbox is full.
0.1.3-ga and earlierThis page used to say the discovery sockets "accept nothing you did not solicit". That check
was never implemented. The sockets are a wildcard bind, so the kernel hands them any datagram
that reaches the port, and nothing compared the sender or the contents against the query that
had just gone out: an SSDP datagram became a device on the strength of containing the text
ST:. Anything able to reach that port could add hosts that do not exist to your inventory, at
addresses of its choosing, recorded as observations this agent made.
The check exists in the current release, and it is two questions. From whom: the sender must be
inside your scanning.allowed_cidrs and pass every other rule the guard applies to a probe
target. What: the datagram must answer the query just sent: for mDNS, from port 5353 with
the response bit set and the unpredictable transaction ID this agent generated; for SSDP, an
HTTP 200 M-SEARCH reply carrying both ST and USN, never an unsolicited NOTIFY.
If you are still running 0.1.3-ga or earlier, treat
service_discovery results as unauthenticated leads: they are attributable to whoever sent the
packet, which is not necessarily the device named. Every other probe is unaffected: those
record what a connection this agent opened returned.
Unlike bitcollector, bitscanner has no
max_memory_mb / max_cpu_percent key. A periodic health check logs allocation and
goroutine counts and warns above 50 MB and 1,000 goroutines, and that is the whole of it.
Bound it with your init system's own controls (MemoryMax=, CPUQuota= in a systemd unit)
if you need a hard limit on a host that matters.
Verifying this release
The bitscanner release directory ships the binaries, SHA256SUMS, a cosign signature over
that manifest, and (per binary) a .sig, a .att attestation and a .sbom.json. Verify
the signature over the manifest first, then the checksums:
cosign verify-blob --key cosign.pub --bundle SHA256SUMS.sig \
--insecure-ignore-tlog=true SHA256SUMS
# WARNING: Skipping tlog verification is an insecure practice […]
# Verified OK
sha256sum -c SHA256SUMS
# bitscanner-linux-amd64: OK
# bitscanner-linux-arm64: OK
The negative control matters as much: altering one byte of SHA256SUMS makes the same
verify-blob command exit non-zero with invalid signature when validating ASN.1 encoded signature. A verification step you have never seen fail is not a verification step.
bitscanner is signed with the bits family key, the one bitcollector and bitenforcer use, and the one published at cosign.pub. If you already verified a bits release, you already have the trust anchor, and it should not have changed. Why the key check is the load-bearing step, including the fingerprint cross-check, is worth reading once.
bitscanner ships the same artefact set as the rest of the family (a .sig, a .att
attestation and a .sbom.json beside every binary, plus SHA256SUMS.sig over the manifest),
so every step of that page applies here, including steps 4 and 5. Releases up to 0.1.2-ga
shipped only the signed manifest; if you are verifying one of those, those two steps have
nothing to check against.
The full public key is published as a TXT record, which is useful in an install script:
dig +short TXT _cosign-key.cert-ix.com | tr -d '"' | sed 's/.*key=//' \
| base64 -d | openssl pkey -pubin -inform DER -out cosign.pub
DNS is a different system from the web server, so a key obtained this way and one downloaded
from the site are two independent sources that must agree, which is exactly the cross-check
verifying your downloads asks you to make. The companion record
_cosign.cert-ix.com carries the fingerprint alone if you only want to compare that.
Platforms
0.6.0-ga publishes two signed binaries, and the gap is deliberate:
| Platform | Published | Why |
|---|---|---|
Linux amd64 | Yes | |
Linux arm64 | Yes | |
macOS amd64/arm64 | No | Withheld (see below) |
Windows amd64 | No | Withheld (see below) |
bitscanner is Linux-only because the readers underneath it are Linux implementations. The
two records it produces with every probe switched off (neighbor_table and network_state)
come from the kernel's own ARP/NDP cache and routing table as Linux exposes them. That is what
makes the shipped default able to report something real while putting zero packets on the
network, and it is the property the whole two-switch arming model is built on.
macOS and Windows expose the same information, through entirely different interfaces. Porting those readers is a real piece of work with its own testing burden, and it has not been done. A build for those platforms would compile and then report an empty neighbour table on a host that has neighbours, indistinguishable, to anyone reading the output, from a quiet segment. An empty result that means "not implemented here" is the most dangerous output this agent could produce, because the entire point of it is to tell you when something is on the wire that your inventory does not explain.
So there is no macOS or Windows build to download. If you need to see a segment that only has macOS or Windows hosts on it, put bitscanner on any Linux host attached to it: it reports on the segment, not on itself, so one Linux host is enough to cover the broadcast domain.
Next steps
- Scanning, and the two switches that arm it: the probe ladder, exactly what each probe puts on the wire, why the acknowledgements can only be written in a file, and the guard that decides at the moment the packet leaves.
- What leaves the host: what the records contain, the local hand-off spool, and the honest limits this release ships with.
- Verifying your downloads: the trust anchor, and why it matters more than the signature.
- bitcollector: the inward-facing half of the answer.
- What is bits?: how the four jobs fit together.
Was this page helpful?