status JSON#
shirudo status --json prints one JSON object on one line. The
status keepalive that status --otel sends carries a smaller record,
the keepalive body that status --keepalive prints, see
Keepalive body. Options and exit status are in
shirudo status. How to read a report is in
Read shirudo status.
target# shirudo status --json
status exits 0 for every verdict, tampered included, unless
--check is given, which exits 1 for tampered. A monitor
reads status and the fields in Fields to alert on, never the
exit status alone.
Top-level fields#
Fields appear in this order. null stands for a value that cannot be
determined, as noted.
Field |
Type |
Value |
|---|---|---|
|
integer |
|
|
string |
The binary’s |
|
string |
The host name, with U+FFFD for each byte that is no UTF-8. |
|
boolean |
|
|
boolean |
|
|
string |
The verdict, see Verdicts. |
|
string or |
The reason the human report prints after the verdict, |
|
array of object |
Seven conditions, each with |
|
boolean |
|
|
string |
|
|
boolean |
|
|
integer or |
Serial of the live |
|
integer or |
Serial |
|
boolean or |
|
|
boolean |
The primary certificate exists: on an image target
|
|
array of object |
The trusted certificate set, each with |
|
integer |
Certificates under |
|
integer |
Certificates under |
|
integer or |
Asymmetric keys in the |
|
object |
The |
|
object |
The |
|
boolean |
Same value as |
|
array of object |
One object per upatch pinned under
|
|
object |
Persistent state, see assets. |
|
object or |
Attempts counted this boot, refused except |
|
object or |
Changes or reads of the running kernel refused this boot, see
integrity_attempts. |
|
object or |
Config image activation, see config. |
|
object |
Only with |
|
object |
The measurement register, see tpm. |
|
object |
The upatch tree, see upatch_tree. |
Verdicts#
status takes the first verdict in this order whose condition holds,
and reason names the first of its causes that applies, in the order
of the table. reason is null for ok. The third column names
the condition that is not OK with it.
|
|
Condition |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No condition at |
Conditions#
conditions always holds these seven types, in this order. status
is OK, WARN or ALERT. <serial>, <n> and <root>
stand for a keyring serial, a number of links and the first 12 hex
digits of the config root hash. KeyringSealed reports the first of
its details that applies, in the order listed. A detail is at most 191
bytes: a longer one, such as a long list of names, is cut and ends with
....
|
|
|
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Keyrings#
bpf_keyring and dm_verity_keyring have the same shape. A link
is one entry of the keyring: the key of a certificate, or anything else
the keyring holds, another keyring included (see
Kernel keyrings). A link is frozen when init
recorded its serial: every key of .bpf and the config key of
.dm-verity.
Field |
Type |
Value |
|---|---|---|
|
boolean |
|
|
integer or |
Serial of the live keyring. |
|
integer or |
Serial |
|
boolean or |
|
|
array of object |
The certificates the keyring should hold: the trusted set for
|
|
array of object |
Every link that holds none of |
Each entry of certs:
Field |
Type |
Value |
|---|---|---|
|
string |
SHA-256 of the certificate’s DER file. |
|
string |
SHA-256 of its public key. |
|
boolean |
In |
|
boolean |
In |
|
string or |
The certificate’s subject on one line, for example
|
|
string or |
The public key algorithm, for example |
|
string or |
The date the certificate was issued, the start of its validity
period, |
|
integer or |
Serial of the key in the keyring that holds the certificate.
|
|
string or |
The kernel’s description of that key, |
|
boolean or |
|
subject, algorithm and the dates are null when the
certificate cannot be parsed.
upatches_loaded#
Field |
Type |
Value |
|---|---|---|
|
string |
The upatch name. |
|
string |
The attach point, for example |
|
string |
|
|
integer |
Maps pinned for the upatch. |
|
integer or |
Runs of the upatch’s programs the kernel skipped since the load,
a lower bound. |
|
string |
Change time of the upatch’s pin directory, or of a Java agent’s jar, ISO 8601 UTC. |
|
integer or |
Seconds since |
|
string or |
The loaded payload’s digest, as in the eventlog. |
assets#
Field |
Type |
Value |
|---|---|---|
|
string |
|
|
boolean |
Same test as |
|
boolean |
Same test as |
|
boolean |
|
|
integer |
Its size, all boots. |
|
integer or |
|
|
boolean |
|
tamper_attempts#
Field |
Type |
Value |
|---|---|---|
|
integer |
Sum of all counters. |
|
object |
Every counter by name, zero or not, so the keys are the same in every report. Tamper counters lists them. |
The counters live in a pinned BPF map under /run/shirudo/bpffs and
start at zero at every boot.
integrity_attempts#
The same two fields as tamper_attempts, total and counters,
for the integrity counters, which Integrity counters
lists. They live in their own pinned map and start at zero at every
boot.
config#
Field |
Type |
Value |
|---|---|---|
|
string |
Root hash of the selected config image, 64 hex digits. |
|
boolean |
|
|
string or |
Why the selected config cannot be verified, as an |
tpm#
Field |
Type |
Value |
|---|---|---|
|
boolean |
A TPM answered. |
|
string |
|
|
string or |
The live register value. |
|
string or |
The register’s TPM name. |
|
boolean |
The NV index is defined and written. |
|
boolean |
The register’s name equals the name this boot’s |
|
integer |
|
|
boolean |
Two |
|
integer |
|
|
integer |
|
|
string or |
PCR 9 before the binding, from the |
|
string or |
PCR 11 at the binding, from the |
|
string or |
|
|
boolean or |
The register is anchored, not rebound, and equals this boot’s
eventlog replay. |
|
object |
|
Eventlog events defines the records and the replay.
upatch_tree#
Field |
Type |
Value |
|---|---|---|
|
boolean |
A tree configuration exists, in the config image on an image target. |
|
boolean |
|
|
string, integer, integer, string, string |
The tree state, present when it can be read. |
|
|
Present instead of the five fields above when there is no tree state. |
|
string or |
Replay of the tree’s projection log. |
|
boolean or |
The replay equals |
upatch tree defines the tree state.
Optional blocks#
--show-full turns on both blocks below.
Option |
Adds |
|---|---|
|
|
|
|
status sizes its output buffer from the options, the eventlog size
and the number of loaded upatches, at most 8 MiB. A document that does
not fit is not printed: status writes status: json encode failed:
<reason> to standard error, nothing to standard output, and exits 1.
With --otel the keepalive is sent all the same: it does not carry
this document.
Fields to alert on#
Field |
Alert when |
Next step |
|---|---|---|
|
|
Handle as an incident: Respond to a tampered target. |
|
any value but |
|
|
|
The |
|
rises |
The counter that moved names the refused action, Tamper counters. |
|
|
|
|
rises |
The counter that moved names the refused change of the running kernel, Integrity counters. |
|
|
|
|
|
Enforcement is off. |
|
|
The |
|
|
The keyring was replaced. |
|
|
A link |
|
|
The register and the eventlog disagree. |
|
|
The register was bound twice in one TPM reset period. |
|
|
The register was bound after the initrd. |
|
not |
The selected config cannot be verified. |
|
|
Every command but |
|
|
The tree state and its projection log disagree. |
|
differs from the expected build |
A different shirudo build runs on the target. |
A collector that stops receiving the keepalive from a target has lost the target or its export, see Keepalive.
Example#
shirudo status --json on a test target with one upatch loaded,
indented here:
{
"schema": 1,
"version_id": "d0d7aa800303439023907d1979d917d46a21bec21f816689c138728a28e84af9",
"host": "docs",
"is_target": true,
"is_operator": false,
"status": "ok",
"reason": null,
"conditions": [
{
"type": "LsmAttached",
"status": "OK",
"detail": "lsm/bpf link present and pinned"
},
{
"type": "KeyringSealed",
"status": "OK",
"detail": "bpf serial 272801410, dm-verity serial 799624487, pins match"
},
{
"type": "ChainIntact",
"status": "OK",
"detail": "live register equals the eventlog replay"
},
{
"type": "UpatchesMeasured",
"status": "OK",
"detail": "every pinned or archived upatch is in this boot's records"
},
{
"type": "TpmMeasured",
"status": "OK",
"detail": "NV index 0x01818E00 readable"
},
{
"type": "ConfigActive",
"status": "OK",
"detail": "config 6d5ed552f448.. is active"
},
{
"type": "XdpCovered",
"status": "OK",
"detail": "every device an XDP upatch selects runs it"
}
],
"lsm_attached": true,
"keyring_mode": "bpf",
"keyring_present": true,
"keyring_serial": 272801410,
"keyring_serial_pinned": 272801410,
"keyring_serial_matches": true,
"cert_present": true,
"certs": [
{
"sha256": "79b04130628135a03630a0ed9e92a574f8701847404ec281469348a09b9b3b45",
"fingerprint": "a8be2bb837b0f052f7652f9edf446594a5465eed614d939964ddfcc96e61ba7f",
"primary": false
},
{
"sha256": "c00c2d9a30c11dd98bb53200ac79c744b063a50489e5780968ea97bcb5745eb1",
"fingerprint": "6bd6b1a28b631295a013102d358d371d52ab1c894587aedceaf02e472c88f858",
"primary": true
}
],
"certs_revoked": 0,
"certs_unvouched": 0,
"certs_enrolled": 2,
"bpf_keyring": {
"present": true,
"serial": 272801410,
"serial_pinned": 272801410,
"serial_matches": true,
"certs": [
{
"sha256": "79b04130628135a03630a0ed9e92a574f8701847404ec281469348a09b9b3b45",
"fingerprint": "a8be2bb837b0f052f7652f9edf446594a5465eed614d939964ddfcc96e61ba7f",
"primary": false,
"subject": "CN=shirudo",
"algorithm": "ML-DSA-87",
"not_before": "2026-11-03",
"key_serial": 465853497,
"key_description": "shirudo: 30dee65057025367c4c384928bcf1e4cd8fe0265",
"frozen": true
},
{
"sha256": "c00c2d9a30c11dd98bb53200ac79c744b063a50489e5780968ea97bcb5745eb1",
"fingerprint": "6bd6b1a28b631295a013102d358d371d52ab1c894587aedceaf02e472c88f858",
"primary": true,
"subject": "CN=shirudo",
"algorithm": "ML-DSA-87",
"not_before": "2026-11-03",
"key_serial": 91435879,
"key_description": "shirudo: 7fa1d435249690766f8b1397122775d26f1ed92e",
"frozen": true
}
],
"other_links": []
},
"dm_verity_keyring": {
"present": true,
"serial": 799624487,
"serial_pinned": 799624487,
"serial_matches": true,
"certs": [
{
"sha256": "c00c2d9a30c11dd98bb53200ac79c744b063a50489e5780968ea97bcb5745eb1",
"fingerprint": "6bd6b1a28b631295a013102d358d371d52ab1c894587aedceaf02e472c88f858",
"config": true,
"subject": "CN=shirudo",
"algorithm": "ML-DSA-87",
"not_before": "2026-11-03",
"key_serial": 403194297,
"key_description": "shirudo: 7fa1d435249690766f8b1397122775d26f1ed92e",
"frozen": true
}
],
"other_links": []
},
"signing_key_present": false,
"upatches_loaded": [
{
"name": "shirudo-test-basic",
"location": "fentry/do_nanosleep",
"status": "success",
"n_maps": 0,
"missed_runs": 0,
"loaded_at": "2026-11-03T14:54:33Z",
"age_sec": 1,
"payload_sha256": "8aee7072a1a15e4dddc93ad6b253a0e2e70ad6cdf767442aa8a1c1997bc3069f"
}
],
"assets": {
"root": "/var/lib/shirudo",
"cert": true,
"signing_key": false,
"eventlog": true,
"eventlog_bytes": 2324,
"upatches": 1,
"bpffs_mounted": true
},
"tamper_attempts": {
"total": 28,
"counters": {
"LoadNotLoader": 15,
"LoadUnsigned": 0,
"LoadUnverified": 0,
"LoadKeyringKind": 0,
"LoadKeyring": 0,
"MapCreate": 1,
"MapWrite": 0,
"MapFdWrite": 0,
"ProgRun": 0,
"ProgAttach": 0,
"ObjPin": 0,
"BpfCommand": 8,
"ExeIdentity": 0,
"KeyringWrite": 0,
"PinUnlink": 0,
"PinRename": 0,
"PinXattr": 0,
"BpffsUmount": 1,
"BpffsUmountAbove": 0,
"BpffsMount": 0,
"SealWrite": 1,
"SealUnlink": 0,
"SealRename": 0,
"SealSetattr": 0,
"SealXattr": 0,
"SealLabel": 0,
"SealPtrace": 0,
"SealPerf": 0,
"ExecTraced": 0,
"SealEntry": 2,
"PerfAttach": 0,
"PinEntry": 0,
"SealCopyUp": 0,
"Kexec": 0,
"TpmExtend": 0,
"ObjGet": 0,
"SealSignal": 0,
"SealCoreDump": 0,
"SealUprobe": 0,
"ExecShared": 0,
"XattrHandle": 0,
"Lockdown": 0,
"SealRlimit": 0
}
},
"config": {
"root_hash": "6d5ed552f4487728d1ccec8604ddb44b66b18e3430614c20bb4d284995f99f63",
"activation_pending": false,
"error": null
},
"tpm": {
"reachable": true,
"nv_index": "0x01818E00",
"chain": "7f63313a31ac8ddd3a6a16fce2038322c9c782d5787155d2dc18dfa582dff548",
"nv_name": "000b21eb0d45ac9ee1bb0a87dbb069120e3b8cb251b3d40cc2a86a307ab73f728789",
"register_bound": true,
"register_anchored": true,
"init_records": 1,
"register_rebound": false,
"pcr": 9,
"phase_pcr": 11,
"pcr_before": "0000000000000000000000000000000000000000000000000000000000000000",
"phase_before": "0000000000000000000000000000000000000000000000000000000000000000",
"bound_in": "initrd",
"chain_matches_eventlog": true,
"eventlog": {
"present": true,
"entries": 2,
"bytes": 2324
}
},
"upatch_tree": {
"configured": false,
"pending": false,
"state": null,
"eventlog_projection_root": null,
"eventlog_matches_state": null
}
}
After refused tamper attempts as root (reading and removing a pin, unmounting the private bpffs, appending to the eventlog), the counters of the same target read:
{
"total": 44,
"counters": {
"LoadNotLoader": 27, "LoadUnsigned": 0, "LoadUnverified": 0, "LoadKeyringKind": 0,
"LoadKeyring": 0, "MapCreate": 1, "MapWrite": 0, "MapFdWrite": 0,
"ProgRun": 0, "ProgAttach": 0, "ObjPin": 0, "BpfCommand": 12,
"ExeIdentity": 0, "KeyringWrite": 0, "PinUnlink": 1, "PinRename": 0,
"PinXattr": 0, "BpffsUmount": 1, "BpffsUmountAbove": 0, "BpffsMount": 0,
"SealWrite": 1, "SealUnlink": 0, "SealRename": 0, "SealSetattr": 0,
"SealXattr": 0, "SealLabel": 0, "SealPtrace": 0, "SealPerf": 0,
"ExecTraced": 0, "SealEntry": 0, "PerfAttach": 0, "PinEntry": 0,
"SealCopyUp": 0, "Kexec": 0, "TpmExtend": 0, "ObjGet": 1,
"SealSignal": 0, "SealCoreDump": 0, "SealUprobe": 0,
"ExecShared": 0, "XattrHandle": 0, "Lockdown": 0, "SealRlimit": 0
}
}