All plugins

patch-sentinel

Measures the host, not the source tree: code review asks "can an attacker exploit this code?" and this asks "is this machine running what the vendor shipped?" — the two are complements, never substitutes. Answers "are we patched?" with evidence, for whatever the host runs — an adapter chosen from the host's own /etc/os-release (apt, dnf, pacman, zypper, apk), the running kernel against the newest installed and installable, whatever advisory names the fixed version per release (Ubuntu notices, OSV per release, Bodhi, Arch's tracker, SUSE's OVAL), container image digests, nine language ecosystems through OSV plus lockfile pins, package checksums and listening sockets against a recorded baseline, and a CycloneDX SBOM. Every check has three outcomes — clean, finding, could-not-look — so an unreachable host, an unimplemented distro or a rate-limited registry reads as unknown rather than clean. The pane reads one device at a time and hands over the exact commands per device; a gated cve_apply tool stages, applies, re-measures and writes a receipt for an agent explicitly asked to patch. Linux only: any other OS answers "unsupported" with its name. Disclosure — scans run fixed read-only commands on this machine and, over your own ssh agent, on hosts you list; package names and versions go to api.osv.dev, api.first.org and the distro advisory sites (ubuntu.com, bodhi.fedoraproject.org, security.archlinux.org, ftp.suse.com, cisa.gov); cve_apply, after Hermes's approval prompt, runs the distro's full upgrade with sudo -n on the chosen host; scans, receipts and SBOMs stay under $HERMES_HOME/patch-sentinel (mode 700).

thebangarangToolsv0.1.2Updated 21 days ago

About

Measures the host, not the source tree: code review asks "can an attacker exploit this code?" and this asks "is this machine running what the vendor shipped?" — the two are complements, never substitutes. Answers "are we patched?" with evidence, for whatever the host runs — an adapter chosen from the host's own /etc/os-release (apt, dnf, pacman, zypper, apk), the running kernel against the newest installed and installable, whatever advisory names the fixed version per release (Ubuntu notices, OSV per release, Bodhi, Arch's tracker, SUSE's OVAL), container image digests, nine language ecosystems through OSV plus lockfile pins, package checksums and listening sockets against a recorded baseline, and a CycloneDX SBOM. Every check has three outcomes — clean, finding, could-not-look — so an unreachable host, an unimplemented distro or a rate-limited registry reads as unknown rather than clean. The pane reads one device at a time and hands over the exact commands per device; a gated cve_apply tool stages, applies, re-measures and writes a receipt for an agent explicitly asked to patch. Linux only: any other OS answers "unsupported" with its name. Disclosure — scans run fixed read-only commands on this machine and, over your own ssh agent, on hosts you list; package names and versions go to api.osv.dev, api.first.org and the distro advisory sites (ubuntu.com, bodhi.fedoraproject.org, security.archlinux.org, ftp.suse.com, cisa.gov); cve_apply, after Hermes's approval prompt, runs the distro's full upgrade with sudo -n on the chosen host; scans, receipts and SBOMs stay under $HERMES_HOME/patch-sentinel (mode 700).

Patch Sentinel

A Hermes plugin that answers "are we patched?" with evidence — for the machine Hermes runs on and
for any host it can reach over SSH — and hands you the exact commands to close what it finds.

The pane, after a real scan of two devices

▶ The 78-second demo — one real scan of this machine: no narration,
captions, and a synth bed written for it. (video/patch-sentinel-demo.mp4, 3.3 MB, 1080p.)

The rule the whole thing is built on: a check that could not look says so. Every surface reports
clean, finding or could not look. An unreachable host, a rate-limited registry, a distro with no
reader: none of them is ever drawn as green.

Install

git clone git@github.com:thebangarang/Patch-Sentinel.git ~/plugins/patch-sentinel
ln -s ~/plugins/patch-sentinel ~/.hermes/plugins/patch-sentinel
hermes plugins enable patch-sentinel

Restart the desktop app, open the plugin's pane, press scan all · <device>. Nothing has to be
configured: the inventory is this machine, the scan is read-only, and the registry and advisory lookups
are anonymous.

If you would rather use hermes plugins install: installing from a git URL runs Hermes's
admission scan, and this plugin is made of patch commands — the scan reports privilege_escalation
on every string that says sudo apt-get full-upgrade, 189 findings, and blocks a community source
until you pass --force. That is the product being what it claims to be, not a hidden capability: the
pane runs nothing, and the one tool that can (cve_apply) runs sudo -n on a plan built from the
host's own package manager. The clone + symlink above gives you the same plugin without the prompt.

To add machines, give the plugin label=ssh-target pairs (local is the machine Hermes runs on):

plugins:
  entries:
    patch-sentinel:
      settings:
        hosts: "beelink=local,vps=webasix"

The pane

One control, one device at a time. It reads the three surfaces in the order the page draws them —
system packages → integrity → libs & runtimes — then builds the commands. Every device keeps its own
last reading; switching devices never re-scans. A run takes ~60 s locally and 40–50 s over ssh, because
the surfaces are read one after another rather than at once: the section that animates is the section
being read, and two devices are never checked in a different sequence.

Below the readings the page answers two questions: what must be done, and the fix commands —
per device, numbered, with the risk, the downtime, how to verify each step and how to undo it. gaps
sits apart at the bottom: a caveat about the scan, not a step in it.

The pane changes nothing. It hands over commands, which is what an operator pastes into the terminal of
the device in front of them.

What it reads

surfacehow it is read
system packagesthe host's own manager — apt, dnf, pacman, zypper, apk — through its simulation output. Not filtered to -security: a fix shipped through -updates is still a fix
running kernelrunning vs newest installed vs newest installable. A kernel package that is installed but not running is the commonest false clean there is
vendor lagthe advisory that names the fixed version, per family: Ubuntu notices, OSV per release (Debian, Alpine, RHEL family), Arch's tracker, Fedora's Bodhi, SUSE's OVAL. Where no feed exists the answer is unmeasured, never "no lag"
container imagestag → digest against the registry, anonymously. An image is never started
integritypackage checksums (dpkg -V, rpm -Va, pacman -Qkk, apk audit), /etc/ld.so.preload, and listening sockets against a recorded baseline. It never says "not compromised" — only what the surfaces it read did and did not show
language stacknine ecosystems — npm, pip (global and every virtualenv), Packagist, RubyGems, crates.io, Maven, Go, NuGet, Pub — plus jars on disk and eight lockfile kinds, against OSV
SBOMCycloneDX export of what was read, for the machine or one project

Findings are split by who can act: the distro's own packages are patched by the distro, the agent's
environment by hermes update, and only the rest count as yours.

The tools

toolwhat it does
cve_scanpending updates, kernel currency, vendor lag, image drift — one host or all of them
cve_rescanevery surface of one device, in pane order, then the plan
cve_planthe commands, with risk, downtime, verify and undo
cve_explainone CVE or notice, from the vendor's own record
cve_coveragewhat this run could see, and what it could not
cve_librariesthe language stack, machine-wide or for one project's lockfiles
cve_integritychecksums, preload hook, sockets — read, re-baseline, or paste a root run
cve_imagewhat is inside one image, without starting it
cve_sbomCycloneDX export
cve_ackrecord a decision about one advisory, with a reason and an end date
cve_applythe only tool that changes a machine: Hermes' approval prompt, typed host name, sudo -n, dry run by default, receipt afterwards

Exit codes

codemeaning
0nothing to do — and every surface was read
1something to patch, as measured
2something could not be looked at, and the answer says which and why

A 2 is not a defect; it is the product. The scenario batch (19 situations, 175 assertions) exists to
hold that contract — it is what caught a run returning 2 with counts and no reason, which reads as a
complete scan.

What is verified, and on which machine

familypackagesintegrityvendor lagproven on
Ubuntu 26.04aptdpkg -VUbuntu noticesthis machine (beelink), live
Ubuntu 26.04aptssh read—a VPS (webasix), live
Debian 12aptdpkg -VOSV Debian:12lab VM, live
Fedora 45dnfrpm -VaBodhilab VM, live — 114 pending, 3-step plan
Archpacmanpacman -QkkArch trackerlab VM, live
openSUSE Leap 15.6zypperrpm -qfSUSE OVALcommand-level only: Leap ships python 3.6, the plugin needs 3.10+, so the family is not proven end to end
Alpineapkapk auditOSV Alpine:*not registered: the adapter is unit-tested against captured output, but every headless image refused the key. Such a host answers unsupported, with its name
RHEL / Rocky / Alma / Amazondnfrpm -VaOSV per releaseadapter tested against captured payloads; no live host in the lab yet

The four rows above Debian's caveat were read by copying the plugin onto the VM and running it with the
distro's own python3 — the arrangement a fresh machine has, without Hermes.

Where this stops, and how it grows

The rows marked not verified are not a disclaimer, they are a queue. Coverage grows by demand: each
distro family or ecosystem is a parser, a captured fixture and a failure-mode test, and the gap list in
the pane is the roadmap.

  • If one of these is in your way, open an issue with the output you have — a zypper -q lu, a
    pacman -Qkk, an Alpine apk version — and the case gets built against it. Real demand decides the
    order.
  • If you would rather build it, the repository is open and the work is well-bounded:
    docs/coverage.md describes how every surface was proven and what a capture looks like, and
    tests/fixtures/ holds the ones already read. A new family is a reader, a fixture, and the test that
    proves it fails loudly when the source changes shape.

Nothing is missing because it was decided against; it is missing because nobody has sent the output
yet.

No credential path

Registry and advisory reads are anonymous; remote hosts use your own SSH agent, so ssh sees the key
and the plugin never does. No secret is stored, read or forwarded, and the only thing sent anywhere is
package names and versions — to OSV, the vendor feeds and the registries. sudo prompts are not handled:
cve_apply escalates a real apply to Hermes' own approval prompt (a pre_tool_call hook: the host is
named, and cron fails closed), and then runs only where sudo -n works — otherwise it refuses with the
commands to run by hand. See
SECURITY.md.

What it touches

The catalogue asks plugins to disclose this, and it is short:

  • Network, anonymously: api.osv.dev; ubuntu.com/security/notices.json and /cves/<id> on Ubuntu
    hosts only; bodhi.fedoraproject.org on Fedora; security.archlinux.org on Arch; SUSE's OVAL
    document on SUSE; and the container registries your images already come from, through
    docker buildx imagetools. No telemetry, no analytics, no third party beyond those.
  • Local commands: uname, dpkg-query/dpkg -V, apt-cache, apt-get -s, rpm -qa/rpm -Va,
    dnf -q check-update, pacman -Q/-Qu/-Qkk, zypper -q lu, apk version/apk audit, ss,
    docker ps|inspect|buildx, and ssh <host> for remote hosts. All read-only — except cve_apply,
    which runs only sudo -n on the plan it just printed.
  • Files written: last_scan.json, rescan.json, integrity.json, acks.json and the apply
    receipts, under $HERMES_HOME/patch-sentinel (directory 700, files 600). Nothing outside it.

Limits, stated

  • CVEs inside image layers are not scanned — that needs an image scanner. Digest drift is measured;
    "these CVEs are fixed" is not claimed.
  • A project without a lockfile is not covered: a range is not a version. Eight lockfile kinds are
    parsed; a manifest alone is reported as uncovered rather than guessed at.
  • A host with no language toolchain reads as could-not-look, not clean — a bare VPS is the normal
    case, and the sentence says which tools were absent and what to check.
  • macOS and Windows answer unsupported with the OS name.
  • It is not an EDR. Integrity compares files, the preload hook and sockets against a baseline; a
    rootkit that hides from the package manager is invisible to it.

Development

python3 -m unittest discover -s tests -t .   # 348 tests
python3 scripts/scenario_batch.py            # 19 situations, 175 assertions
./scripts/pane_check.sh                      # renders every panel, both states
hermes plugins validate .                    # manifest, tools, config schema
./scripts/preview_pane.sh [--fast] [device]  # HTML + PNG of the pane, outside the repo
python3 scripts/portability_probe.py         # run the plugin on a foreign host, per-surface report

Stdlib only. The long version of this file lives in docs/reference.md; the
verified matrix per surface is docs/coverage.md, every decision including the
reversed ones is docs/design.md, and the commands that reproduce each claim are
docs/verify.md.

License

MIT.

README from the reviewed commit 70bbf9d; it updates when the author re-pins.

More by thebangarang

2 plugins by thebangarang in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section