Skip to content

LUnA v1.3.0

Choose a tag to compare

@logiqum logiqum released this 07 Sep 23:04
· 14 commits to main since this release
00614e6

Turn FIPS off for a receiver that cannot do it

FIPS 140-3 is on by default. Almost every receiver works with it — syslog-ng (including mTLS), Kafka,
Loki, S3, MQTT, the ack'd relay and the control plane are all verified each release.

Splunk HEC is the exception. FIPS allows TLS 1.2 only with Extended Master Secret, and Splunk 9.4
offers neither that nor TLS 1.3 — so no handshake can succeed and delivery never starts. You would see a
healthy agent, a growing spool, and nothing arriving; events are buffered, not lost.

The best fix is enabling TLS 1.3 on the receiver, which needs no EMS. If you cannot:

service:
  fips: off        # on | off — unset runs the binary as built (the shipped build is FIPS)

The agent applies this at startup by restarting itself once, keeping the same process ID — your
service manager sees one continuous process. It takes effect at startup, so changing it needs a restart.
On Windows, set GODEBUG=fips140=off in the service environment instead.

If you would rather keep FIPS on everywhere and only relax the one requirement, set
GODEBUG=fips140ems=0 in the service environment. Those connections are then not FIPS-approved, and
the agent says so plainly — in -version and on /metrics — rather than continuing to
report unqualified FIPS.

Run the agent on pfSense, OPNsense and FreeBSD

Firewall and VPN logs are among the highest-value security telemetry on a network, and until now you could
download a FreeBSD binary but had no supported way to run it on an appliance — no supervised start, no
boot persistence, no documented home for config and state.

The documentation bundle now includes an rc.d service:

install -m 0555 deploy/freebsd/logrok-universal-agent.rc /usr/local/etc/rc.d/logrok_agent
sysrc logrok_agent_enable=YES
service logrok_agent start

It supervises and restarts the agent, runs it as an unprivileged user, and keeps state in a private
directory you can relocate with logrok_agent_statedir — appliance root filesystems are often small or
read-mostly. Verified on real FreeBSD: start, status, stop, and restart-after-crash.

Worth planning for: FreeBSD counts as an extended platform, and both that and the disk spool are paid
capabilities. Running unlicensed on an appliance still forwards, but the spool becomes drain-only — it
delivers what it already holds and buffers nothing new. On a site behind an intermittent link that is
usually the whole reason for deploying, so size the entitlement in advance.

Proxmox VE and VyOS are Debian-based, so the existing .deb installs and runs unchanged.

FIPS 140-3 is now standard on every build

Every binary in this release runs in FIPS 140-3 mode, on every platform, at no extra cost and with no
licence tier attached. If you need validated-module cryptography, it is already in the download you just
took. If you don't, nothing about the agent changes for you — it costs 36 KB of binary, no measurable
throughput, and about 2 ms of startup.

New: you can now require FIPS on a host, and a FIPS build tells you when its own cipher-suite
restrictions are what broke a connection.

service:
  fips_mode: required     # auto (default) | required | disabled

required refuses to start unless the agent is running in FIPS mode; disabled refuses if it is. This is
a check, not a switch: it asserts the posture the running agent actually has — FIPS by default, or off
where service.fips: off was set for a receiver that cannot do FIPS (see above). A FIPS agent and one
that was switched off look identical from the outside, so without this check a regulated deployment could
only discover a host running the wrong posture during an audit. disabled matters for the opposite
reason: an agent in FIPS mode refuses older cipher suites, so an estate that must reach a legacy receiver
wants to know at startup rather than at the first delivery.

And if an agent in FIPS mode cannot complete a TLS handshake because the receiver offers only ChaCha20-Poly1305 or
a CBC-SHA suite — common on older aggregators — the agent now says so. TLS on its own reports only
remote error: tls: handshake failure, which never mentions FIPS and usually appears on the first run
against the very system you are migrating away from.

There is no separate FIPS artifact to request: the validated module is in the standard download, the
same single static binary for every platform. Verify the binary you actually hold:

$ logrok-universal-agent -version
1.3.0
fips140: enabled (Go Cryptographic Module v1.0.0, CMVP certificate #5247)

That line is read from the module at runtime rather than printed from a build note, and it is absent when
FIPS has been turned off. For fleets, /metrics exports logrok_agent_fips140_enabled as 0 or 1 always —
never omitted when off, because an absent metric and a failed scrape look the same to a monitoring system,
so "alert if any agent is not in FIPS mode" would be silent exactly when it mattered.

What this means, stated plainly. The binary is built against the Go Cryptographic Module v1.0.0, which
holds CMVP certificate #5247, and that module is operating in FIPS 140-3 mode. It does not mean the
agent is itself FIPS-certified, or that deploying it makes your system compliant — the validated component
is the module, and whether that satisfies your obligations is your assessor's decision.

One limitation, disclosed rather than discovered later: SNMPv3 privacy uses CFB mode as its
specification requires, which is not FIPS-approved. It keeps working in FIPS mode, but if your
obligation is that only approved algorithms are used anywhere in the process, do not enable SNMPv3 privacy
there. Everything else is unaffected.

Licensing — four Apex modules are now actually withdrawn when unlicensed

snmptrap_in, modbus_in, bsm_audit and file_hash are Apex capabilities that were meant to be enforced
immediately (they never shipped free, so they have no notice window). They were detected and reported — an
unlicensed agent using them logged the licensing warning and read posture degraded — but they were never
removed from the pipeline, so they kept running. The same defect quota had until 1.2.0. From this release an
unlicensed agent withdraws them at startup, exactly as the licensing documentation has said all along.
Licensed and logrok-managed deployments see no change.

Solaris audit trail (bsm_audit)

Solaris deployments can now collect the BSM audit trail — logins, privilege use, process execution and,
with the right audit flags, file changes. Every record arrives with the acting user, process and session, the
same evidence linux_audit provides on Linux.

bsm_audit is an Apex capability, enforced immediately: an unlicensed agent withdraws it at startup, with a warning naming it, rather than running it through a notice period.

inputs:
  - type: bsm_audit
    # dir: /var/audit
    # read_from: end

It decodes the trail using the operating system's own praudit. The trail is a binary format, and a
hand-written decoder that misread one token layout would produce plausible but wrong values rather than
failing — not a trade worth making for audit evidence.

Two things to set up, and the second is easy to miss: the agent needs read access to /var/audit (it is
root-owned), and the audit flags decide what is in the trail — file-change records require the file
classes to be enabled. With no relevant flags there is no traffic at all, which looks exactly like a broken
input.

On restart it resumes from the end of the trail by default and keeps no byte offset, because the format can
only be re-entered at a record boundary. Anything missed remains in the trail file and can be replayed from
the beginning.

file_hash — the content half of file-integrity evidence

Your file-change events already tell you who. This adds what the file now is.

file_hash is an Apex capability, enforced immediately: an unlicensed agent withdraws it at startup, with a warning naming it, rather than running it through a notice period.

The new file_hash processor reads the path out of a change event, hashes that file, and attaches the digest.
Point it at the fields your sources use and it serves all of them at once:

- type: file_hash
  path_fields: [path, TargetFilename, ObjectName]
  roots: [/etc, /usr/bin]
  algorithm: sha256

roots is required, and it is a security control rather than a setting. The path arrives inside an event,
and on a pipeline that receives events over the network an event can be influenced by whoever sends it. Without
a bound, "hash the path in this field" would let a crafted event ask the agent to read any file its user can
open and publish a digest of it. Symlinks are resolved before the check, so a link inside an allowed directory
cannot reach outside it. There is deliberately no permissive default.

Two things stated plainly because they affect how you read the output. The digest describes the file when it
was hashed, not when it changed
— the event arrives after the write, so the file may have changed again or
gone. And every event gets a file_hash_status (ok, no_path, not_found, denied, too_large, not_regular,
unreadable), so a missing digest is always a recorded outcome, never a silently absent field.

sha1 is available alongside sha256 and sha512 so you can compare against an existing file-integrity
baseline without rehashing an estate. It is not the default.

This is still collection, not detection: the agent keeps no baseline and decides nothing about whether a
change was authorised.

File-integrity events — and a straight answer about FIM

If you have been asking whether the agent does File Integrity Monitoring, the answer is half of it,
deliberately — and that half works today with no new module.

The agent forwards file-change events, with the acting user attached. On Linux it reads auditd watch
rules; on Windows it reads Sysmon file and registry events, or native object-access auditing. Those events
travel with the same guarantees as everything else: store-and-forward across an outage, tamper-evident
spool, at-least-once delivery — so a network gap does not become an evidence gap.

It does not baseline your files, hash them, compare them against a known-good state, or decide that a
change was unauthorised. That comparison belongs where your rules and your query engine are. For PCI DSS
11.5 the agent is the feedstock for a change-detection mechanism, not the mechanism itself, and the
compliance mapping says so rather than rounding it up.

Why the audit trail rather than a filesystem watcher: audit records tell you who. "Something changed
/etc/sudoers" is a notification; "uid 1004, via sudo, at 02:14" is evidence.

Start from configs/file-integrity.example.yaml. macOS is not covered. If you are migrating from a product
whose FIM does the detection as well, read the boundary above before assuming a like-for-like swap.

Survive a control-plane CA rotation without being cut off

If your control plane rotates its agent certificate authority, it does so with an overlap period:
the old and new roots are both trusted for a while, and an agent moves onto the new root by renewing
its certificate
.

An agent holding a long-lived certificate never reaches its normal renewal window during that overlap.
It never moves. When the operator completes the rotation, the certificate it presents still chains to
the retired root and the receiver rejects it — and nothing looks wrong until that moment.

The new management.tls.max_cert_age bounds that window. Set it to renew at a fixed age regardless of
expiry:

management:
  tls:
    mode: enrolled
    max_cert_age: 168h   # 7 days

Size it below two-thirds of the lifetime your control plane issues certificates with. Two-thirds
is where ordinary renewal already happens, so a larger value never takes effect — and a value equal to
the lifetime can never be reached at all, because the certificate expires before it gets that old. The
useful range is "shorter than two-thirds, no shorter than you need": it costs one extra certificate
issuance per interval per agent.

Default is off, and for most deployments that is the right setting. If your control plane issues
short-lived certificates, ordinary renewal already moves every running agent onto the new root early
in the overlap, without any configuration. This setting is for a control plane that issues
long-lived certificates, where two-thirds of the lifetime can be months and an agent would
otherwise sit on the outgoing root for most of the rotation.


About these downloads. LUnA ships as signed binaries — the luna-* assets above are the release.
Verify them with SHA256SUMS and cosign (public key: cosign.pub in this repository).

The "Source code (zip)" / "Source code (tar.gz)" links below are added automatically by GitHub to every
release and cannot be removed. They are not the agent's source, and they are empty: this repository
publishes signed binaries and documentation only. LUnA's source is not publicly distributed.