Read shirudo status#
shirudo status is the target’s own report on its enforcement, its
.bpf keyring, its measurement register and its signed config. It is
the first command to run on a target that misbehaves, and the keepalive
timer sends the same data to your collector. It is the target’s account
of itself: anyone with root on the target can lie to a reader of this
report, so it proves nothing to a third party. TPM-signed evidence does,
see Attest targets.
This page walks through a healthy report section by section, then explains every verdict and what to do about it.
Before you begin#
You need root on the target.
On the target,
shirudomeans the binary on the runtime image,/run/shirudo/runtime/usr/bin/shirudo. Any other copy is refused. Run shirudo on the target shows how to set this up.
Print the report#
Print the human report:
target# shirudo status Host: docs Roles: target Status: ok Version ID: d0d7aa800303439023907d1979d917d46a21bec21f816689c138728a28e84af9 Conditions: TYPE STATUS DETAIL LsmAttached OK lsm/bpf link present and pinned KeyringSealed OK bpf serial 272801410, dm-verity serial 799624487, pins match ChainIntact OK live register equals the eventlog replay UpatchesMeasured OK every pinned or archived upatch is in this boot's records TpmMeasured OK NV index 0x01818E00 readable ConfigActive OK config 6d5ed552f448.. is active XdpCovered OK every device an XDP upatch selects runs it Tamper attempts (this boot): LoadNotLoader 15 program load that is not a signed loader MapCreate 1 map creation by another executable BpfCommand 8 detach, update, delete or unclassified bpf() command BpffsUmount 1 unmount of the private bpffs SealWrite 1 write open of a sealed file SealEntry 2 entry into a sealed directory, or a sealed inode linked Integrity attempts (this boot): none Loaded upatches (1): NAME LOCATION MAPS MISSED STATUS AGE shirudo-test-basic fentry/do_nanosleep 0 0 success 1s Folded: keyrings, TPM measurement, assets (--show-full)
The report folds the sections whose condition is
OK: the keyrings, the TPM measurement and the assets. To print them all, and the system and eventlog sections with them:target# shirudo status --show-full
shirudo status lists the options, --include-system and
--include-eventlog among them.
Read the report#
This is the full report of a healthy production target with one upatch
loaded, captured from the test VM with --show-full. Without the
option the report ends after the loaded upatches and names the folded
sections, the keyrings, the TPM measurement and the assets, on its last
line; a section unfolds on its own when its condition is not OK.
target# shirudo status --show-full
Host: docs
Roles: target
Status: ok
Version ID: d0d7aa800303439023907d1979d917d46a21bec21f816689c138728a28e84af9
Conditions:
TYPE STATUS DETAIL
LsmAttached OK lsm/bpf link present and pinned
KeyringSealed OK bpf serial 272801410, dm-verity serial 799624487, pins match
ChainIntact OK live register equals the eventlog replay
UpatchesMeasured OK every pinned or archived upatch is in this boot's records
TpmMeasured OK NV index 0x01818E00 readable
ConfigActive OK config 6d5ed552f448.. is active
XdpCovered OK every device an XDP upatch selects runs it
Tamper attempts (this boot):
LoadNotLoader 15 program load that is not a signed loader
MapCreate 1 map creation by another executable
BpfCommand 8 detach, update, delete or unclassified bpf() command
BpffsUmount 1 unmount of the private bpffs
SealWrite 1 write open of a sealed file
SealEntry 2 entry into a sealed directory, or a sealed inode linked
Integrity attempts (this boot):
none
Loaded upatches (1):
NAME LOCATION MAPS MISSED STATUS AGE
shirudo-test-basic fentry/do_nanosleep 0 0 success 1s
Keyring (.bpf):
Serial: 272801410
Frozen serial: 272801410 (matches)
Certificates: 2 trusted, 0 revoked, 0 unvouched, 2 in the bpf keyring
a8be2bb837b0f052f7652f9edf446594a5465eed614d939964ddfcc96e61ba7f
CN=shirudo, ML-DSA-87, issued 2026-11-03
key 465853497 shirudo: 30dee65057025367c4c384928bcf1e4cd8fe0265 (frozen)
6bd6b1a28b631295a013102d358d371d52ab1c894587aedceaf02e472c88f858 (primary)
CN=shirudo, ML-DSA-87, issued 2026-11-03
key 91435879 shirudo: 7fa1d435249690766f8b1397122775d26f1ed92e (frozen)
Keyring (.dm-verity):
Serial: 799624487
Frozen serial: 799624487 (matches)
Certificates: 1 trusted, 1 in the dm-verity keyring
6bd6b1a28b631295a013102d358d371d52ab1c894587aedceaf02e472c88f858 (config)
CN=shirudo, ML-DSA-87, issued 2026-11-03
key 403194297 shirudo: 7fa1d435249690766f8b1397122775d26f1ed92e (frozen)
TPM measurement:
TPM: reachable (device:/dev/tpmrm0)
NV index: 0x01818E00 (anchored in PCR 9)
Chain: 7f63313a31ac8ddd3a6a16fce2038322c9c782d5787155d2dc18dfa582dff548
Register name: 000b21eb0d45ac9ee1bb0a87dbb069120e3b8cb251b3d40cc2a86a307ab73f728789
Anchored: yes, name on record
PCR before init: 0000000000000000000000000000000000000000000000000000000000000000
Phase at init: 0000000000000000000000000000000000000000000000000000000000000000 (PCR 11)
Bound in: initrd
Chain vs eventlog: matches
Eventlog: /var/lib/shirudo/eventlog (2 entries, 2324 bytes)
Eventlog:
TIME TYPE DIGEST DETAIL
2026-11-03T14:53:17Z init 377ce174fb1f set_digest=e3b0c44298fc..
2026-11-03T14:54:33Z upatch_load d979b373d4e5 shirudo-test-basic payload=8aee7072a1a1..
Assets (/var/lib/shirudo):
keys/cert.der present
keys/signing_key.pem absent
eventlog present (2324 bytes)
upatches/ 1 archived
bpffs/ mounted
System:
OS: Ubuntu 26.04.1 LTS
Kernel: 7.3.0-bpf-next+
Kernel version: #1 SMP PREEMPT Tue Nov 3 13:54:40 UTC 2026
Kernel build ID: 132d1451aab18a693c59d5b9519d25a06f2236bf
Architecture: x86_64
CPUs: 4
Memory: 314M/3.85G
Disk: 1.99G/6.61G
Uptime: 0d 0h 1m
Machine ID: 6bae4cfbc0ed04ed63cc4cf8cb0a1b6c
Boot ID: 82639935-1127-4dab-91b5-f818eabc7f13
The sections below explain each part.
Header#
HostThe host name.
Rolestargetwhen the primary certificate, thelsm/bpfpin or the keyring is present,operatorwhen/var/lib/shirudo/keys/signing_key.pemexists, both astarget, operator, ornone. A production target showstargetalone. A private signing key on a target breaks the operator and target split: remove it and treat the key as exposed, see Manage signing keys.StatusThe verdict, followed by the reason in parentheses when it is not
ok. Act on the verdict explains each verdict.Version IDThe identifier of the shirudo build that runs. Compare it with the build you deployed, see Upgrade shirudo and the kernel.
Conditions#
Seven conditions, each OK, WARN or ALERT with a detail. The
verdict is derived from them.
Condition |
What it checks |
|---|---|
|
The |
|
The live |
|
The live register is the NV index |
|
Every upatch pinned in the private bpffs or archived under
|
|
The NV index is defined, written and readable. |
|
The config PCR, the activation records and the mounted config image agree. |
|
Every device the signed class mask of a loaded XDP upatch selects runs that upatch. |
The details other than OK are below, with what each means.
status JSON lists every detail string.
Condition |
Level |
Detail |
Meaning and action |
|---|---|---|---|
|
|
|
Enforcement did not come up this boot. See lsm-off. |
|
|
|
|
|
|
The keyring and what changed, such as |
A keyring was swapped or is gone, holds a link |
|
|
|
See tampered. |
|
|
|
|
|
|
|
No TPM is reachable. |
|
|
|
What a load stopped between its pins and its extend leaves, or an
archive root brought back after its unload. The next |
|
|
|
The sealed archive of a loaded XDP upatch changed or is gone, so
|
|
|
|
A loaded upatch has fewer link pins than its signed metadata
implies, so part of it is detached, or its sealed archive is gone
or unusable. For XDP that is an |
|
|
|
The eventlog from the init record that names the live register
and the TPM’s reset count on does not give the value the TPM
reports, or a record’s digest does not follow from its fields.
The pins are not checked, and every |
|
|
|
Before |
|
|
|
A check could not run, which says nothing either way. |
|
|
|
The register is not bound this boot, or no TPM is reachable. |
|
|
|
Reboot when it suits you. See reboot-pending. |
|
|
One of three details |
See tampered. |
|
|
|
Each device that does not run it, with what it reports: |
|
|
|
The check could not run, and a device may be unfiltered. With
|
Tamper attempts#
The counters of attempts this boot, one per guard point, each refused
there except SealSignal, which is let through and counted, with the
counters that are not zero listed by name, count and meaning. none
means every counter is zero. none recorded before init means
init did not get as far as pinning the counters, and unavailable:
<error> that they could not be read.
Read the tamper and integrity counters explains how to read them.
Integrity attempts#
The counters of the changes and reads of the running kernel refused this
boot, one per way in: an unsigned module, /dev/mem, a PCI
configuration write, /proc/kcore and the others lockdown in
integrity mode names. They are listed, and read, as the tamper attempts
above are.
Keyrings#
Two sections, Keyring (.bpf) for the keys that verify signed
loaders and Keyring (.dm-verity) for the key that verifies config
roots, read the same way.
SerialThe serial of the kernel’s keyring.
Frozen serialThe serial
initrecorded when it sealed the keyring, followed by(matches),(swapped)or(gone).CertificatesThe certificates the keyring should hold, and how many keys it holds. For
.bpfthis is the trusted set: the runtime image’s primary certificate and the vouched certificates of the active signed config, less its revocations;unvouchedcounts certificates in the config without a valid vouch, which are therefore not members. Manage signing keys explains the set. For.dm-verityit is the config certificate the runtime image names, marked(config).Each certificate follows with its public key fingerprint, the runtime image’s
.bpfcertificate marked(primary), and two lines below it. The first gives the subject, the key algorithm and the date the certificate was issued, the start of its validity period. The end of that period is not shown: neither the kernel nor shirudo compares it with the clock, and a certificate stays trusted until a signed config revokes it. The second is the key that holds the certificate in the keyring, by serial and the kernel’s description,(frozen)wheninitrecorded it.not in the keyring (enrolled at the next boot)marks a.bpfcertificate a config update added after the boot;not in the keyring (MISSING)under.dm-veritymeans the config key is gone.Other linksShown only when the keyring holds a link that is no certificate’s key. Each line names the kind of link,
keyfor a public key or the kernel’s type such askeyring, its serial and description, and(not frozen)wheninitdid not record it. The kernel trusts every key such a link reaches, soKeyringSealedisALERTand the verdicttampered.
Loaded upatches#
One row per upatch pinned in the private bpffs: its name, the attach
location resolved from kernel BTF, its number of maps, the runs of its
programs the kernel skipped, success and the time since it was
loaded. MISSED is - for an upatch of no attach kind the kernel
counts skipped runs of, such as lsm, xdp or a uprobe, and ?
when they cannot be read. A count that grows means the upatch misses
events it is meant to see; Runs the kernel skips says when that
happens, and shirudo upatch get splits the count by program. A
loaded Java agent follows them with the location java, no maps and
- for MISSED. Loaded upatches (0): followed by
none means nothing is loaded.
TPM measurement#
TPMWhether a TPM answered, and the TCTI that reached it.
NV indexThe measurement register,
0x01818E00, and the PCR its name is anchored in.ChainThe register’s value. It moves with every measured load, unload, revocation and tree operation.
Register nameThe TPM name of the NV index, which binds its attributes and policy.
Anchoredyes, name on recordwhen the index is the oneinitbound and recorded.no, the index is not the one init boundotherwise.PCR before initandPhase at initThe values of PCR 9 and PCR 11 that
initbound the register to. A verifier pins them with--expect-bind-pcr, see Attest targets. In the capture above both are zero because the test VM boots its kernel and initrd directly, without a measured UKI. On a production target booted from a measured UKI, PCR 11 holds theenter-initrdphase measurement.initwarns in the journal when it finds PCR 11 unmeasured.Bound ininitrdorroot file system. A production target showsinitrd.root file systemmeans the firstinitof this boot ran after the initrd.Init recordsPrinted only when the register was bound more than once for this TPM reset:
<n> for this TPM reset, rebound after init.Chain vs eventlogmatches,mismatchornot evaluatedwhen there is no register to compare.EventlogThe path of the eventlog, its number of entries over all boots and its size.
Assets#
keys/cert.derWhether the primary certificate is present. On a production target this is the runtime image’s
keys/cert.der.keys/signing_key.pemabsenton every target.presentmeans a private signing key is on the target.eventlogWhether
/var/lib/shirudo/eventlogexists, and its size.upatches/The number of archived upatches that
initrestores at the next boot.bpffs/Whether the private bpffs is mounted.
Eventlog#
With --include-eventlog the report adds an Eventlog section with
every record of the eventlog, of all boots, after the loaded upatches,
or between the TPM measurement and Assets sections when those
are printed. This target recorded its boot, then one load and one
unload:
target# shirudo status --include-eventlog
...
Eventlog:
TIME TYPE DIGEST DETAIL
2026-11-03T14:53:17Z init 377ce174fb1f set_digest=e3b0c44298fc..
2026-11-03T14:54:33Z upatch_load d979b373d4e5 shirudo-test-basic payload=8aee7072a1a1..
2026-11-03T14:54:35Z upatch_unload 26dae981e9bb shirudo-test-basic payload=8aee7072a1a1..
...
The init record comes from the initrd run. Every later record is a
state change that extended the register. Eventlog events
describes the records. A line that does not parse as a record, one
that holds a NUL byte among them, is listed as unparseable in its
place, and the records after it follow: the section shows the file line
by line, where the replay behind ChainIntact refuses such a log as a
whole. A last line without its newline, an append that did not finish,
is not listed.
Act on the verdict#
status derives one verdict from the conditions, in this order of
precedence: tampered, lsm-off, init-pending,
reboot-pending, degraded, ok. The first that applies wins.
Verdict |
Meaning |
What to do |
|---|---|---|
|
Enforcement is up, the keyring is the sealed one, the register replays from the eventlog and the config is active. |
Nothing. Verify with the TPM regularly, see Attest targets. |
|
Enforcement is up, but this report has no register to check, or a device an XDP upatch selects runs without it. |
Read the reason. See degraded. |
|
A config activation is pending until the next reboot. Every
command except |
Reboot when it suits you. See reboot-pending. |
|
The |
Read the journal of |
|
The |
See lsm-off. |
|
The register, the keyring or the config is not what |
Handle it as an incident. See tampered. |
tampered#
A tampered verdict has one of twelve reasons, which the Status
line prints in parentheses. Each comes with a condition at ALERT,
whose detail says more. Verdicts gives them in the
order status checks them.
Reason |
Condition |
What happened |
|---|---|---|
|
|
Something extended or replaced the register without a matching
eventlog record, the eventlog of this boot was altered or hidden,
or the index is not the one |
|
|
The sealed archive of a loaded XDP upatch changed or is gone.
|
|
|
A loaded upatch has fewer link pins than its signed metadata implies, so part of it is detached, or its sealed archive is gone or unusable. |
|
|
A load stopped between its pins and its extend, so the upatch runs
while the register does not cover it, an unload stopped after its
extend, or an archive came back after its unload. The next
|
|
|
The eventlog from the init record on does not give the value the
TPM reports, or a record’s digest does not follow from its
fields. Every |
|
|
The detail names the cause, see below. |
|
|
The |
|
|
The live |
|
|
The same for |
|
|
The same for |
|
|
The kernel trusts that link for signatures from then on. The
keyring section lists it under |
|
|
The config key is gone from |
The lines below are what status prints for the first reason, cut to
the verdict and the condition that raised it:
Status: tampered (live register differs from the eventlog replay)
...
ChainIntact ALERT live register differs from the eventlog replay
The detail of ConfigActive names the cause:
the config PCR, activation records and mounted config disagree: the config PCR does not hold the value the activation records predict. Something extended the PCR after this boot’s config measurement, or a TPM restart without a reboot cleared it. Software that measures into the same PCR causes this too, see Hardening checklist for the PCR choice.the config activation record does not belong to this TPM boot: the TPM’s reset count changed since the config was measured, by a TPM reset orTPM2_Clearwithout a reboot.the mounted config does not match the selected root: the config image mounted at/run/shirudo/configis not the one the records select.
In each of the config states every command except status and
image status refuses with shirudo: image state: and the error,
see Troubleshoot by symptom.
For every reason, do not retry anything and do not reboot first: the journal and the state of this boot are the evidence. Follow Respond to a tampered target.
lsm-off#
Status: lsm-off (LSM not attached, enforcement off)
...
LsmAttached ALERT lsm/bpf link absent, enforcement off
Enforcement is not up. Root can load BPF, and the seal on shirudo’s
state is not enforced. A failure of init in the initrd does not stop
the boot, so a target whose shirudo-initrd.service failed comes up
in this state. So does a target booted without the shirudo initrd.
Read the journal of the initrd run:
target# journalctl -b -u shirudo-initrd.service
Fix the cause that Initialize a target lists for the failed step.
Reboot.
reboot-pending#
Status: reboot-pending (a config activation is pending until the next reboot)
...
ConfigActive WARN the activation of config <root>.. is pending until the next reboot
A config activation was recorded as pending and did not complete. This
happens when shirudo image update is interrupted after it saved the
pending selection, and when init fails after it recorded this boot’s
config measurement, while restoring the archived upatches or binding the
register. In the second case ChainIntact and TpmMeasured also
show WARN. Every command except status and image status
refuses with shirudo: image state: Operation now in progress until
the next boot.
A re-run of init refuses too. shirudo never reboots the target on
its own.
Read the journal to learn which step failed:
target# journalctl -b -t shirudo
Reboot. The next boot verifies the pending config and records a fresh measurement for it.
Check the verdict again. A
reboot-pendingverdict after the next boot, withboot-restoreerrors in the journal, means an archived upatch fails to load at every boot. An archived upatch no longer loads at boot describes what works in that case.
degraded#
Status: degraded (no register bound this boot)
...
ChainIntact WARN no register bound this boot (init incomplete)
UpatchesMeasured WARN no record of this boot to check the pins against
TpmMeasured WARN NV index 0x01818E00 not bound this boot
Enforcement is up, but the TPM holds no written measurement register, or
status could not read it. The Chain line of the TPM
measurement section, which unfolds in this state, tells the two
apart: unavailable, register not bound this boot or unavailable,
TPM error: <error>.
A failure of init while binding the register leaves the config
activation pending, which shows as reboot-pending. A degraded
verdict whose Chain line says unavailable, register not bound this
boot therefore means the register was bound and then disappeared. Undefining
the index takes TPM owner authorization, which root has on a TPM whose
owner authorization is empty. Collect the evidence as for tampered,
see Respond to a tampered target, then reboot.
The reason a device an XDP upatch selects does not run it comes with
an XdpCovered warning that names each device and why. A device
listed in one report and gone from the next was new and has been
attached since. One that stays has no filter. Restore what took its XDP
away, such as an LRO setting, a smaller queue count or another XDP
program, and the next upatch reconcile attaches it. Where the
device cannot run XDP at all, sign the upatch with a class mask that
leaves the device out.
A device listed as another XDP program attached because a second
loaded upatch holds it does not wait for a reconcile pass alone: the
next boot restore fails on it, init stops with the register unbound
and the host comes up reboot-pending. Unload one of the two upatches
before the next reboot.
A device that stays listed also costs the target work on every
reconcile pass. The pass takes the register lock, checks the archive
again, retries the attach and logs a warning, every 60 seconds and on
each udev event for the device, for as long as the device stays as it
is. shirudo does not stop retrying on its own, because a pass has no
memory of the last one. Treat a lasting XdpCovered warning as an
alert. End it by undoing what makes the device refuse, or, if the device
is meant to stay that way, by unloading the upatch (upatch unload
with its unload directive, bpm uninstall, or retracting it from the
upatch tree) and loading one signed with a class mask that leaves the
device out.
The reason no TPM answered means the TPM stopped answering while
status ran. On a production target every command first checks that
the TPM is the one init bound, so a TPM that does not answer at all
makes status itself fail with shirudo: image state:.
Read the tamper and integrity counters#
Each counter counts the attempts at one guard point this boot, refused
there except SealSignal. A refusal worked, so a counter alone does
not change any condition or the verdict. It tells you that something on
the host tried. A SealSignal tells you that a shirudo command was
signalled from outside; a load stopped that way shows under
UpatchesMeasured until the next upatch load or unload undoes it.
These four attempts, made as root without shirudo’s runtime authority, were each refused:
# cat /run/shirudo/bpffs/tamper
cat: /run/shirudo/bpffs/tamper: Permission denied
# rm /run/shirudo/bpffs/identity
rm: cannot remove '/run/shirudo/bpffs/identity': Operation not permitted
# umount /run/shirudo/bpffs
umount: /run/shirudo/bpffs: must be superuser to unmount.
# echo x >> /var/lib/shirudo/eventlog
sh: 4: cannot create /var/lib/shirudo/eventlog: Permission denied
umount prints must be superuser to unmount for the EPERM the
LSM returns. The report afterwards lists one more count under
ObjGet, PinUnlink, BpffsUmount and SealWrite:
target# shirudo status
...
Tamper attempts (this boot):
LoadNotLoader 39 program load that is not a signed loader
MapCreate 1 map creation by another executable
BpfCommand 16 detach, update, delete or unclassified bpf() command
PinUnlink 1 unlink of a pin in the private bpffs
BpffsUmount 1 unmount of the private bpffs
SealWrite 1 write open of a sealed file
ObjGet 1 pin, map or link opened by another executable
...
Read the counters with these rules:
Learn the baseline of your hosts. Software other than shirudo that uses BPF or inspects processes is refused too. A freshly booted test VM shows counts for
LoadNotLoader,MapCreateandBpfCommandbefore any upatch is loaded.Alert on a counter that moves beyond the baseline, and on any count of a counter that stays at zero on your hosts.
Find the actor in the journal and on the host. The counter does not record who tried.
A zero count does not prove that nothing tried. Some refusals have no counter, among them those of the runtime and config image mounts, of device-mapper control commands and of a read-mode ptrace check, such as journald reading
/proc/<pid>/exeof a shirudo command.
Tamper counters lists every counter and the guard point that raises it.
The integrity counters count the attempts on the running kernel the
same way. These three, made as root, were each refused: a module whose
signature the kernel cannot verify, /dev/mem and /proc/kcore:
# insmod ./unsigned.ko
insmod: ERROR: could not insert module ./unsigned.ko: Operation not permitted
# dd if=/dev/mem of=/dev/null count=1
dd: failed to open '/dev/mem': Operation not permitted
# cat /proc/kcore >/dev/null
cat: /proc/kcore: Operation not permitted
The report afterwards lists them under their own heading, after the tamper attempts:
target# shirudo status
...
Integrity attempts (this boot):
ModuleSignature 1 module load without a valid signature
DevMem 1 /dev/mem or /dev/port
Kcore 1 /proc/kcore, the kernel's memory
...
Read them with the same rules, with a baseline here too: a tool that
opens a writable debugfs file only to read it moves Debugfs.
Integrity counters lists every counter and the
condition that raises it.
Monitor with status --json#
status --json prints the same data as one JSON document. The
keepalive timer sends a compact record of it, the keepalive body that
status --keepalive prints, to your collector with the TPM’s quote,
see Monitor and export telemetry.
Warning
shirudo status exits 0 whatever the verdict, tampered
included, unless you pass --check, which exits 1 on tampered
and 0 on every other verdict. It exits 1 also when it cannot load its
configuration, runs out of memory, or cannot quote or send a
keepalive, and 2
on a usage error or an invalid map_export setting. Alert on the
status field of the JSON document, not on the exit code.
Read the verdict:
target# shirudo status --json | jq -r .status
ok
The fields that matter for monitoring:
Field |
Alert when |
|---|---|
|
It is not |
|
Any condition is |
|
It rises beyond your baseline. It is |
|
It rises beyond your baseline. It is |
|
It is |
|
It is not |
|
It is |
|
Either is |
|
Any is |
|
Either is |
|
It is |
|
It is |
|
It is not |
|
It is |
|
It differs from the build you deployed. |
|
It is |
upatches_loaded lists each loaded upatch with its
payload_sha256, which you can compare with the artifacts you
shipped. status JSON describes every field.
tamper_attempts and integrity_attempts name every counter, zeros
included, so that a collector sees the same keys in every record. The
counters that moved, after the three attempts above:
target# shirudo status --json |
jq '.integrity_attempts.counters | with_entries(select(.value > 0))'
{
"ModuleSignature": 1,
"DevMem": 1,
"Kcore": 1
}
The keepalive carries the same counters as the lists tamper and
integrity, in the order of Tamper counters and
Integrity counters, which the TPM’s quote covers with
the rest of the body:
target# shirudo status --keepalive | jq -c .integrity
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0]
Alert separately when status does not run at all. A target that
refuses every command, status included, prints shirudo: image
state: with an error and exits 1, and a target whose keepalive stops
arriving may be in that state.
Check a copy outside the runtime image#
Only the runtime image’s binary has runtime authority. Any other copy of the binary is refused before it reads anything:
target# /usr/local/bin/shirudo status
shirudo: image state: Permission denied
It exits 1. The refusal also shows as one more ObjGet count, because
the copy tried to open the identity pin. A monitoring agent that reports
this error is running the wrong binary, see Run shirudo on the target.
Verify#
Confirm that your monitoring reads the verdict from the JSON document:
on a healthy target, shirudo status --json | jq -r .status prints
ok and your alert stays quiet.
Next steps#
Attest targets to have the TPM confirm what the report says
Respond to a tampered target for a
tamperedverdictTroubleshoot by symptom for refused commands and failure categories
Monitor and export telemetry to send the report to a collector
shirudo status for every option