Skip to main content
Version: Next

Bits operations

Bits operations lets you see what a bits agent is doing on a host, find out why it is unhealthy and, if your plan and role allow it, fix it, without opening a shell on that host. It has three parts, all in the dashboard:

PartWhat it doesChanges the host?
LogsFetches recent log lines of one bits component, masked on the host before they leave it.No
DiagnoseRuns a fixed set of read-only health checks on the host and on the server side.No
FixesApplies one named, previewed action, then re-checks the result.Yes, one narrow action
Requires bitcollector 0.16.0-ga

Logs, host-side Diagnose and Fixes need bitcollector 0.16.0-ga or later on the host. On an older host, Diagnose still answers with the server-side checks only (connection, version, policy drift, delivery trend, stuck scans), and Logs and Fixes are not offered.

What never leaves the host​

  • Unmasked log text. Lines are masked on the host (see Masking) before they are sent. The server masks them a second time on receipt and when a support bundle is built.
  • Anything you did not ask for. Logs are fetched on demand only. Nothing is streamed.
  • Log fields that identify the machine. For each journal entry the agent reads only the time, the priority and the message. Host name, process id, user id and command line are dropped before masking.
  • Shell access, file browsing and free text. The host accepts only a short list of named actions with fixed choices (see Fixes). No path, command, URL or text typed by a person ever reaches a host.

Log sources are compiled into the agent: the journal units of bitcollector, bitmapper, bitscanner and bitenforcer on Linux with systemd. Other platforms offer the configured bitcollector log file, and otherwise report that logs are unavailable.

Logs​

Choose a component, a period (15 minutes, 1 hour, 6 hours or 24 hours), a level (all, warnings or errors) and a number of lines (100 to 2000), then fetch.

  • The host reads for at most 10 seconds and 8 MiB. If it hits a limit the result is marked partial.
  • You can fetch at most 6 times per agent per hour, with one fetch in flight per agent.
  • Each line is cut to 2048 bytes. The page shows lines as plain text and filters them in your browser.
  • The first view per hour is audited.

Masking​

Every line goes through the same ordered rules, version r1. The result is repeatable: masking an already masked line changes nothing.

What is maskedShown as
Control, escape, bidirectional and zero-width charactersremoved
Private key blocks (PEM)[REDACTED:pem]
Bearer, basic and token credentials, JSON web tokens[REDACTED:token], [REDACTED:jwt]
Values of known secret names (snake_case such as api_key, camelCase such as apiKey, command-line flags such as --password, cookies, authorization headers), to the end of the valuethe name stays, the value becomes [REDACTED:secret]
User name and password inside a URL[REDACTED:userinfo]
Well-known cloud and code-host key formats[REDACTED:key]
Long high-entropy strings[REDACTED:blob]
E-mail addresses, IP addresses and MAC addressesemail-1, mac-1, ip-1
Home folders and the user names in them/home/user-1/
Values after user, username, login, owner, accountuser-1

Numbered stand-ins are stable inside one result, so "connect to ip-1 failed" and "ip-1 answered" still read as one host. The mapping is kept in memory for that request only and is never stored or sent.

Kept as they are, because they help you read errors and are not personal data: loopback and unspecified addresses, the Cert-IX endpoints your agent is configured with, unit and component names, versions, HTTP status codes and ports. Other host names are also kept.

Masking is best effort. The rules above cover known shapes only. Secrets in other shapes, for example a short token with no label, can remain in a line. Treat fetched logs, and any support bundle that contains them, as sensitive.

Retention and AI​

  • Fetched logs are kept 7 days in the live database. After that the content is purged and the entry shows that it has expired. Only its metadata stays in the list.
  • Replicas and backups of the database may keep masked log text for their own retention period, which can be longer than the 7 days.
  • Logs, Diagnose results and support bundles are never sent to an AI model. Fix suggestions come from a fixed rule table, not from a model.

Data delivery and data gaps​

The Data delivery tile of a host shows what is happening now:

StateMeaning
DeliveringData arrives and nothing is waiting on the host.
Delivery delayedBatches are held on the host and will be sent again. Nothing is lost.
Losing dataThe host is dropping batches right now, before they reach Cert-IX.
Not deliveringThe host cannot reach Cert-IX. Its data is kept on the host for now.
Loss not measurableThe host cannot read its own loss record, so the amount lost is unknown.

A loss that is over does not keep a host in the "Losing data" state. It is kept as a data gap: a dated record with the period without data, the number of batches lost and the cause. A gap is Open while the host keeps losing data, and Recovered once no new loss was seen for 15 minutes.

  • The host dialog lists the latest gaps of the host under Data delivery, followed by the totals since the agent was installed.
  • Agent Fleet > Data gaps lists the gaps of every host for a period (24 hours, 7, 30 or 90 days), with the hosts affected and the batches lost. You can filter by state or by host, and export the list as CSV if your role allows exports.
  • A gap noted as "recorded from the host's lifetime count" is the loss a host had already counted before gap tracking began: its whole count in one record.
  • "At least" in front of a count means the host could not account for every batch: the real number can be higher.

Data lost in a gap cannot be sent again.

Diagnose​

Diagnose runs read-only checks. It carries no log text, and it is never switched off by the host owner, so it can explain a host that has remote fixes disabled.

  • On the host: DNS and TLS reachability of the gateway and the ingest endpoint (including certificate days left), clock skew against the gateway, the last delivery error, delivery queue size and age, send throughput, free disk space, memory, health of each installed module, whether the policy was applied, and whether a scan has been running for too long.
  • On the server: last heartbeat age, agent version against the latest release, policy drift, one-hour delivery trend, and scans running for more than 30 minutes (the scan list itself flags a scan after 30 minutes without progress).

Each check ends as ok, warning or failed, with the measured values. You can run at most 10 Diagnoses per agent per hour.

Fixes​

Fixes are a closed list. Each one has fixed choices and no free text.

FixWhat it does
Retry deliveryResets the retry back-off and runs one delivery pass now.
Lower a send rateReduces a module's send rate for 1, 6, 24 or 72 hours. It can only reduce, and it expires by itself.
Restart a moduleRestarts bitcollector, bitmapper or bitscanner once through bits-updater. bitenforcer is a one-shot job and has no restart.
Quarantine an itemMoves one stuck queue item to quarantine. It is never deleted and it is counted as undeliverable in the loss account.
Cancel a stuck scanAsks bitscanner to cancel that scan. You can then start the scan again.
Upgrade nowUses the existing signed upgrade path of bits-updater.

How a fix runs​

  1. A Diagnose of at most 15 minutes old is required. The page runs one if needed.
  2. You choose the fix and its fixed options, and a reason from a fixed list.
  3. A preview shows what changes before and after, and the risks. It expires after 5 minutes.
  4. You confirm and enter a fresh 6-digit code from your authenticator app (see Access).
  5. Cert-IX signs the command with a single-use number and a 5-minute expiry. The host checks the signature, the expiry and that the command is addressed to it before doing anything.
  6. The host acts, reports the result, and Cert-IX runs an automatic re-check. The outcome is resolved, improved, unchanged, worse or unknown.

A fix is refused on a suspended agent. Logs and Diagnose still work there. Cert-IX staff and admin services can never run an action on a customer host.

Limits: 10 fixes per agent per hour with one in flight, and a module can be restarted once per 5 minutes. Gateway also limits restarts to 3 per host per hour.

Access​

Plans​

PlanIncluded
FreeLogs and Diagnose
StarterLogs, Diagnose and Fixes
ProfessionalEverything in Starter, plus the masked support bundle and automatic fix suggestions

The support bundle is a ZIP of the latest Diagnose, 24 hours of delivery counters, the unexpired masked log fetches and the recent request history. It is built once, is at most 8 MiB, and can be downloaded once within 15 minutes. It needs a fresh authenticator code. Suggestions are proposals only: applying one goes through the same preview, confirmation, code and approval as any fix.

Roles and approvals​

RoleLogs and DiagnoseFixes
Owner (super admin)YesDirectly
Security managerYesDirectly
Security engineerYesAfter an approval
Other rolesNoNo

With Team Workspaces on, a security engineer's fix first needs approval from a senior approver, who sees the action, the component and the options. After approval the engineer previews again and sends the same fix. An approval is used once. Without Team Workspaces there is no approval, so only the owner and security managers can apply fixes.

2FA and step-up​

Every request needs a session signed in with two-factor authentication. Every fix and every support bundle also needs a fresh 6-digit authenticator code at the moment you confirm, tied to that one preview. The code for a support bundle is tied to that bundle request: it cannot be reused for a fix or for another bundle.

How the owner turns remote fixes off​

The owner of the host controls it locally, in /etc/cert-ix/bits-ops.conf:

remote_fixes=enabled # enabled | disabled
remote_logs=enabled # enabled | disabled
  • If the file is missing, both are enabled. The installer writes the file with both enabled.
  • Set remote_fixes=disabled to refuse every fix. Set remote_logs=disabled to refuse log fetches.
  • The agent reads the file at every command. The file is also reported in the agent heartbeat, so the dashboard shows the host as disabled.
  • It fails closed: if the file is unreadable, a symbolic link, not a regular file, not owned by root, or writable by group or others, both are treated as disabled.
  • The agent configuration may also set ops.remote_fixes: false and ops.remote_logs: false. If either source disables, it is disabled.
  • Restarting a module and upgrading additionally need enabled=true in updater.conf, which stays the separate opt-in for bits-updater. A hard local block for upgrades is enabled=false in updater.conf.
  • remote_fixes=disabled refuses restart, lower rate, quarantine and cancel on the host immediately, at the next command.
  • Cert-IX refuses Upgrade now once the host reports the switch, within one heartbeat.
  • A file with an unrecognised remote* setting (a misspelt key, or a value other than enabled or disabled) is treated as disabled: remote fixes and remote logs are both off, and the dashboard says so.

The scan timeline​

Each agent scan shows the steps it went through, with the time and, where it helps, a reason. A scan with no progress for 30 minutes is flagged as stuck, and you can then use the cancel fix.

Steps​

StepMeaning
RequestedThe scan was created.
Sent to the agentThe request was handed to the agent.
Agent collectingThe agent started and reports progress with a phase: starting, packages, configuration, services, network, accounts, system or finishing.
Result receivedThe server received the agent's result.
Result set asideThe result was received but not applied (see the reasons below).
Server analysisThe server is analysing the result.
Package matchingPackages are matched against known vulnerabilities.
Configuration checksConfiguration findings are classified.
Final stateCompleted, partial, failed, cancelled or timed out.

Reasons​

ReasonMeaning
The agent stopped reporting progressThe agent was quiet for too long.
The agent did not send a result in timeThe scan timed out waiting for the agent.
The agent reported that it could not complete the scanThe failure came from the host.
Some areas were not covered by the agentThe result is partial.
Package matching did not completeThe server could not match the packages.
The configuration checks could not be classifiedThe configuration part failed.
The evaluation did not runThe evaluation step was skipped.
This result had already been appliedA repeated delivery; nothing is lost.
The scan was no longer active when the result arrivedThe scan had already ended.
The scan was cancelled before this stepYou or an operator cancelled it.
The result was set aside because the scan was withdrawnThe scan was withdrawn.
The report could not be finalisedThe last step failed.
No result was received from the agentNothing arrived.
No report had been requested for this resultNo report was asked for.
One of the checks did not completeA sub-scan failed.
The reason is not availableThe step did not complete and no reason is known.

After a scan is cancelled, failed or timed out, you can start it again within 24 hours. The new scan is linked to the old one, and quota and charging rules are unchanged.

See also What is bits? and what bitcollector sends.

Was this page helpful?