Skip to main content
Version: Next

Privacy and local accounts

bitcollector ships telemetry off the host every cycle, so what it declines to collect matters as much as what it collects. Process command lines are off by default; the process collector never reads environment variables or file contents; nothing derived from a password hash is ever carried; and the local-account collector publishes UIDs rather than login names unless you opt in. Process records follow the same rule since bitcollector 0.9.0-ga: the collectors.process.identity setting defaults to minimal, so they carry the owning account's uid and not its login name, unless you opt in with username. See what process records carry below, which is the section to read if login names are personal data in your assessment.

One collector goes the other way since bitcollector 0.18.0-ga: for each SSH login attempt, the auth activity collector sends the full source address and the login name. It is on by default and has its own switch. See SSH login attempts below, which is the section to read if you have recorded anywhere that no source address and no login name leaves your hosts.

This page covers those defaults, and the local-account collector they bear on most. For everything else the agent gathers, see the bitcollector overview.

Privacy defaults​

Data minimisation is the default state, not a hardening step you have to remember. This is what makes bitcollector deployable in France without an argument.

Process command lines are off by default. Command lines routinely carry plaintext credentials (mysqldump -pSECRET, --token=…, a DSN with an embedded password), and this agent ships telemetry off the host every cycle.

collectors:
process:
command_line: "off" # off | redacted | full
i_accept_secret_exposure: false
ModeBehaviour
offDefault. Command lines are never collected.
redactedCollected with known secrets stripped at capture, before the record exists.
fullCollected verbatim. The agent refuses to start unless i_accept_secret_exposure: true is also set.

And the rules around it:

  • The process collector never collects environment variables or file contents, in any command-line mode.
  • A mode that cannot honestly be delivered on a platform is refused, not faked. Windows has no faithful argv, so redacted refuses there rather than pretending to redact.
  • Each record states which mode produced it, so absence is legible: an auditor can tell "nothing was there" from "we chose not to look".

SSH login attempts​

Since 0.18.0-ga, the auth activity collector sends one record for each SSH login attempt it reads in the host's authentication log. It is the one place where the agent sends a full source address and a login name by default, so everything about it is stated here.

This changes what leaves the host

Before 0.18.0-ga, the agent sent counts of logins and the networks they came from (a /24 for IPv4, a /48 for IPv6), never a full address and never a login name, and the console said so. A source address and a login name can be personal data. If you recorded in a DPIA, a record of processing or a customer answer that neither leaves your hosts, that is the statement to revisit once a host runs 0.18.0-ga or later. The collection is on by default: it starts on a host when its agent is upgraded.

What is sent​

For each login attempt:

FieldWhat it holds
TimeWhen the host logged the attempt.
Source address and portThe full IPv4 or IPv6 address the connection came from, and its port.
Login nameThe name the peer asked to log in as, as the host logged it (at most 64 bytes, control characters removed).
MethodHow the login was tried, as sshd logged it: for example password, keyboard-interactive or public key.
ResultFailed, failed with a name the host does not know, or accepted.

The same fields are sent for connection probes: connections that end before a login is tried or completed (no SSH identification, a bad protocol version, no common algorithm, too many attempts, or a connection closed before authentication finished).

Three limits:

  • A failed public key attempt is not recorded, and sudo activity produces no such record.
  • When a host receives more attempts in one collection window (60 seconds) than the agent sends one by one (400), the rest is summarised per source address for up to 100 addresses (counts, first and last time, number of different login names), and anything beyond that is only counted.
  • Agents older than 0.18.0-ga keep sending network prefixes only. Nothing changes for a host until its agent runs 0.18.0-ga or later.

Why​

A count of failed logins says that an attack happened. To investigate it, you need to know which addresses tried, with which names, in what order, and whether one of them got in. Pulse builds the login history of an investigation from these records.

What is still never sent​

The password offered at a login, raw log lines, key fingerprints and command text are never sent. The text a peer sent in place of a valid SSH version line is not kept either.

The login name is whatever the peer typed

The login name is chosen by whoever connects. A person who types a password in the name field by mistake puts that password in the host's log, and from there in the record. Masking the login name (see below) avoids keeping it in Pulse.

Where it is kept and who can read it​

  • The records are stored as Pulse events and kept for 90 days.
  • They can be read by the users of your own tenant who have access to Pulse, and by no other tenant. Every read is audited.
  • The same records, as the agent sent them, are also held in the platform's telemetry archive.

Turn it off on a host​

In the agent configuration on that host:

collectors:
auth_activity:
attempts: false # true (default) | false

With attempts: false, the agent sends no record per attempt from that host. The aggregate counts of the auth activity collector (failed and accepted logins per window, with the source networks as prefixes) keep working, and so do the login alerts built on them. The agent reads its configuration when it starts: restart it after the change.

Stop the attempt records on many hosts, and keep the login alerts​

An agent policy stops the records per attempt on every host it is assigned to, and the login alerts keep working. In the console, open Agent Fleet > Agent Policies, create or edit a policy for the module bitcollector, set Login attempt records to Off, and assign the policy to the hosts.

  • What stops: the record per attempt, which carries the exact source address and the login name of each SSH login attempt.
  • What keeps working: the aggregate counts of the auth activity collector and the login alerts built on them.
  • It needs agent 0.19.0 or later. An older agent ignores this setting and keeps sending the records.
  • It applies without a restart. When the policy is removed, the records come back at the next collection. Attempts that happened while the policy was in force are not sent afterwards.
  • A policy can only reduce what a host collects. A host whose own configuration says attempts: false stays off, whatever the policy says.

Turn the login collector off for many hosts​

An agent policy turns the login collector off on every host it is assigned to. In the console, open Agent Fleet > Agent Policies, create or edit a policy for the module bitcollector, tick Login activity (SSH) under Collectors to turn off, and assign the policy to the hosts.

  • The whole collector stops on those hosts: no record per attempt, no aggregate counts and no login alert. To keep the alerts and stop only the records per attempt, see Stop the attempt records on many hosts, and keep the login alerts.
  • It needs agent 0.15.0 or later. An older agent refuses a policy that names this collector.
  • A policy can only reduce what a host collects. When the policy is removed or switched off, the host collects again what its own configuration allows.

Mask the address or the login name for a whole tenant​

An ingestion policy of type Mask replaces a field before the record is stored in Pulse, for every host of your tenant. In the console, open Pulse > Investigations > Ingestion policies, create a policy of type Mask on the Telemetry data type, add the field conditions kind is auth.attempt and lobe is identity, and choose the fields to mask:

To maskFields
The source addressentity and data.src
The login namedata.user
  • Redact replaces the value with a fixed marker. Hash replaces it with a keyed hash: the same address gives the same hash, so attempts can still be counted per source.
  • The network of the address (data.src_prefix, a /24 for IPv4, a /48 for IPv6) is a separate field. Add it if you want it masked too.
  • A mask on these fields reaches further than the login history. The live view and the entity history cannot check the kind of an event, so the same policy also masks the identity entities shown there: their name when entity is masked, and an attribute that has the name of a masked data field. The condition on lobe keeps the other entities as they are. Check the simulation counts before you enforce the policy.
  • A policy starts in simulation and masks nothing until you enforce it. It then applies to the records stored from that moment: records already stored keep their values until they expire.
  • Ingestion policies depend on your plan.
  • A policy shapes what Pulse stores. The telemetry archive holds the records as the agent sent them. To keep an address or a login name from leaving a host at all, turn the collection off on that host.

Privileged and dormant accounts​

Which accounts on this host can become root, whether their password can be used, and how long since anyone logged in as them, without anyone having to SSH in.

  • Privilege is counted from UID 0 plus sudo/wheel/admin/root membership, taken both from the group member list and from primary GIDs. An account whose primary group is sudo appears in no member list at all, and is exactly the one you would miss.
  • Dormancy is flagged past a configurable threshold: dormant_after: 2160h (90 days) by default, which is PCI DSS 8.1.4 and the usual ISO 27001 control. The threshold that produced each verdict is carried in the record.
No password hashes, ever

The /etc/shadow password field is handed to a single classifier that returns one of six constants (set, locked, no_password_login, empty, unrecognised, unknown). Nothing derived from the hash is carried, and the hashing algorithm is deliberately not collected either, because the algorithm identifier is a prefix of the hash. The record says so in its hash_algorithm field rather than leaving you to notice the absence.

The local-account collector publishes UIDs rather than login names by default.

collectors:
accounts:
identity: minimal # minimal (default) | username

minimal publishes UIDs only; the record's own remedy string tells the operator to run getent passwd <uid> locally. identity: username publishes login names, is opt-in, is refused if mistyped, and stamps every record it produces. GECOS (full name, office, phone) and home directories are never read in either mode, and this collector drops the tty and the source address of a last login at capture. (The auth activity collector is a separate code path: since 0.18.0-ga it sends the source address of each SSH login attempt, see SSH login attempts.) On one reference host, 34 local accounts reduced to 2 published records.

What process records carry about the owning account​

The control above governs the accounts collector only. The process collector is a separate code path with its own setting, collectors.process.identity. Since 0.9.0-ga it defaults to minimal: a process record publishes the uid of the owning account and not its login name. With the opt-in identity: username, a record also carries the login name:

{ "pid": 1421, "name": "nginx", "owner": "www-data", "…": "…" }
Correction: a per-collector suppression for owner now exists

An earlier version of this page carried a warning headed "This is not gated, and there is no key that turns it off". It said owner was set unconditionally on every process record, that collectors.accounts.identity did not apply to it, and (the sentence to re-read) that "a per-collector suppression for owner does not exist yet", leaving you two options: disable the process collector entirely, or accept and document the processing.

That last sentence has stopped being true. collectors.process.identity exists since 0.9.0-ga, it defaults to minimal, and in that mode the owning account's login name is never read at all. Every version in the Cert-IX download catalog (0.9.0-ga and later) has the key: run bitcollector version and confirm you are on 0.9.0-ga or later before you rely on it.

This is corrected in place rather than quietly reworded, because it is the kind of statement you may have acted on. If you turned the process collector off to keep login names on your hosts, or recorded in a DPIA or a customer answer that this processing could not be suppressed, that is the decision to revisit once you are running a build that has the key.

An earlier version of this page also said login names "stay on the host unless you opt in". That was true of the accounts collector and wrong about the agent as a whole, and it is corrected here rather than quietly reworded: a data-protection statement you relied on should not change without being told.

Since 0.9.0-ga, collectors.process.identity decides whether the login name leaves the host: deliberately the same key name, the same two values and the same fail-closed refusal as collectors.accounts.identity, so it is one concept on two collectors rather than two settings that look alike:

collectors:
process:
identity: minimal # minimal (default) | username
ModeWhat a process record carries
minimalDefault. owner_uid only (the owning account's uid). The login name is never read, so it reaches no exporter, no log and no in-memory copy of a record. Resolve a uid on the host itself with getent passwd <uid>.
usernameowner (the login name, personal data under GDPR) and owner_uid. Opt-in, and stamped in every record it produces.

And the rules around it:

  • Any other value refuses to start, in EN and FR. A privacy control that cannot be established fails closed rather than being resolved silently in either direction: a typo must not hide your explicit request for names, nor ship names nobody asked for.
  • Every record stamps the mode that produced it in owner_identity_mode: minimal, username, unsupported or unavailable. The last two are per-record stamps the agent writes; they are not values you can set, and the refusal above rejects them if you try.
  • If a dashboard or a query of yours reads owner, it will find it empty after you upgrade. That is this setting, not a broken collector. Set identity: username to publish names again.
minimal does not mean the same thing on Windows

Windows has no POSIX uid, so on Windows minimal publishes no owner identifier at all: owner_uid is -1 and every record is stamped owner_identity_mode: "unsupported", so the absence is legible rather than blank. Windows does have a pseudonymous account identifier (the user SID in the process token), and bitcollector deliberately does not collect it: nothing ships for a platform this project has not verified on. A Windows operator who needs owner attribution sets identity: username, and accepts that a Windows account name is personal data.

owner_uid no longer defaults to root​

In 0.2.0-ga, owner_uid is left at Go's zero value whenever the uid is not read, and that value is 0, which is root. Every process record collected on Windows carried it, as did every record whose uid read was refused, with nothing to say the number had never been observed. Since 0.9.0-ga the unobserved value is -1, and owner_identity_mode says how the record was produced: unsupported when minimal runs on a platform with no uid, unavailable when the owner of that one process could not be read (in either mode). With username on Windows the uid is -1 and the stamp stays username. If you alert on owner_uid == 0, expect the count to fall.

Two honest limits, stated where you read them rather than discovered later:

  • An unprivileged agent cannot read /etc/shadow (root:shadow 0640), so it reports password_status: unknown for every account and says why. The least-privilege fix is to add the agent's user to the shadow group.
  • "No dormant accounts" and "we could not read last-login" are never the same answer. If lastlog is absent (shadow 4.16+ / Ubuntu 25.04+ replaced it with lastlog2), every account reports dormancy unknown and the record names the replacement.

Next steps​

Was this page helpful?