Python script / CSV / Docs (ZIP + PDF)
Keep one CSV of what you run, where, at which version and whether it is internet-exposed. exposure_patch.py matches it against the Agent Field Kit advisories feed and known-bad releases and tells you plainly: you run the affected version, you are patched, or check this one by hand. Exposed assets are blocking, internal ones are warnings, malicious packages and platform incidents are blocking either way. Optional webhook alerts, an optional one-request header check of hosts you own, a manifest guide and a patch runbook. Plugs into the Agent Cyber Defense Dashboard.
What's inside
01_Inventory_Guide.md02_Alert_and_Patch_Runbook.mdexposure_manifest.csvfixed_versions.csvbad_versions.csvsample_headlines.jsonexposure_patch.pymodule.json23_Exposure_Patch_Alerts_Kit.pdf: every document in one printable guide
Verify it works
python3 exposure_patch.py --selftestprintsselftest ok. It checks every version rule against a snapshot of the feed (sample_headlines.json), the sample manifest results, and the probe against a local mock host (and that a host marked owned=no is never contacted).python3 exposure_patch.py --manifest exposure_manifest.csv --feed sample_headlines.jsonlists the Sample data assets running affected versions and exits 1.- Drop
--feedto use the live public feed. - Replace the sample manifest with your own (see 01) and schedule it (see 02).
- Dashboard: add
--afk-jsonand save toresults/exposure-patch.json. Python 3.9+, no installs. Read-only unless you pass --webhook-url (one POST to your own webhook) or --probe (one GET per owned host).
Preview
First part of the main document, shown as-is:
01 Build your exposure manifest
The fastest way to shorten the time between "a fix is out" and "we are fixed" is to know, before the advisory lands, what you run and where. This kit keeps that list in one CSV and checks it against the Agent Field Kit advisories feed every time you run it.
Columns in exposure_manifest.csv
| Column | Meaning |
|---|---|
| asset | What it is: "MCP server", "marketing site", "model gateway" |
| url | Public URL if it has one (used only by the optional probe) |
| internet_exposed | yes if anyone on the internet can reach it. Vulnerable versions on exposed assets are blocking; internal ones are warnings. Malicious packages and platform incidents are blocking either way |
| owned | yes only if you own or are authorized to test the host. The probe skips everything else |
| component | Feed-style id: package:npm/next, package:pypi/litellm, runtime:nodejs, bot:openclaw, platform:railway |
| version | Exact version you run. Leave blank only if unknown (you will get a "check" item) |
| owner | Who upgrades it |
One row per component per asset. The sample file is labeled Sample data; replace it.
Filling it quickly
- npm:
npm ls --depth=0 --jsonin each deployed app; Python:pip freezeinside each deployed image or venv; Node.js runtime:node --versionon each host and in each container base image. - Hosting platforms: one
platform:row per platform you deploy to (version blank). - Agents and bots you self-host: one
bot:row with the version you run. - Check images and CI runners too, not just servers.
How matching works
For every advisory in the feed, the script compares your component ids with the advisory's component list, then applies the version rule in fixed_versions.csv:
- bad: that exact release is known bad (also cross-checked against bad_versions.csv).
- fixed with a branch: below the fix on the same major line means affected; a branch with no listed fix gives a "check" item.
- any: applies regardless of version (malicious packages, platform incidents, issues with no fixed release yet).
A component named in an advisory with no rule in the file gives a "check" item, so a newer feed is never silently ignored. The script also prints feed items that have no rules yet.
fixed_versions.csv is written from each advisory's title and first step. It is a convenience, not the authority: confirm the affected range on the linked source before you close an item.