Score a systemd service unit (with drop-ins) like `systemd-analyze security --of...
https://code.halowerk.com/v1/systemd-hardeningOverview
Score a systemd service unit (with drop-ins) like `systemd-analyze security --offline` of systemd 255: 81 weighted checks, exposure 0.0-10.0, level and the fixes with the largest effect.
Protocol
x402 (POST)
Price
$0.0030
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
code
Source
bazaar
Indexed
2026-11-20 14:09:42
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"unit": "[Unit]\nDescription=Demo\n\n[Service]\nExecStart=/usr/bin/demo\nDynamicUser=yes\nProtectHome=yes\nPrivateDevices=yes\n",
"unit_name": "demo.service"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Emulates the offline mode of systemd-analyze 255 (x86-64); other systemd versions use different checks and weights.",
"Specifiers such as %i are not expanded and user names are not resolved against /etc/passwd.",
"The exposure score rates sandboxing options only; it says nothing about vulnerabilities of the service itself."
],
"result": {
"checks": [
{
"badness": 0,
"description": "Service runs under a transient non-root user identity",
"exposure": null,
"id": "User=/DynamicUser=",
"json_field": "UserOrDynamicUser",
"range": 10,
"status": "pass",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#User=",
"weight": 2000
},
{
"badness": 0,
"description": "Service has no supplementary groups",
"exposure": null,
"id": "SupplementaryGroups=",
"json_field": "SupplementaryGroups",
"range": 1,
"status": "pass",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#SupplementaryGroups=",
"weight": 200
},
{
"badness": 0,
"description": "Service has no access to hardware devices",
"exposure": null,
"id": "PrivateDevices=",
"json_field": "PrivateDevices",
"range": 1,
"status": "pass",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateDevices=",
"weight": 1000
},
{
"badness": 0,
"description": "Service cannot install system mounts",
"exposure": null,
"id": "PrivateMounts=",
"json_field": "PrivateMounts",
"range": 1,
"status": "pass",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateMounts=",
"weight": 1000
},
{
"badness": 1,
"description": "Service has access to the host's network",
"exposure": 0.5,
"id": "PrivateNetwork=",
"json_field": "PrivateNetwork",
"range": 1,
"status": "fail",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateNetwork=",
"weight": 2500
}
],
"exposure": 7.5,
"exposure_text": "7.5",
"level": "EXPOSED",
"notes": [
"PrivateMounts= is not set: systemd 255 offline mode rates the unset tri-state value as enabled, so this check passes without a private mount namespace being con… [truncated, 168 chars]"
],
"parse_warnings": [],
"reference": "systemd v255 src/analyze/analyze-security.c",
"summary": {
"failed": 64,
"not_applicable": 0,
"passed": 17
},
"top_fixes": [
{
"description": "Service has access to the host's network",
"exposure": 0.5,
"id": "PrivateNetwork=",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#PrivateNetwork="
},
{
"description": "Service has administrator privileges",
"exposure": 0.3,
"id": "CapabilityBoundingSet=~CAP_SYS_ADMIN",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#CapabilityBoundingSet="
},
{
"description": "Service may change UID/GID identities/capabilities",
"exposure": 0.3,
"id": "CapabilityBoundingSet=~CAP_SET(UID|GID|PCAP)",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#CapabilityBoundingSet="
},
{
"description": "Service has ptrace() debugging abilities",
"exposure": 0.3,
"id": "CapabilityBoundingSet=~CAP_SYS_PTRACE",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#CapabilityBoundingSet="
},
{
"description": "Service may create user namespaces",
"exposure": 0.3,
"id": "RestrictNamespaces=~user",
"url": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RestrictNamespaces="
}
],
"unit_name": "demo.service"
},
"service": "systemd-hardening",
"status": "success"
},
"type": "json"
}