Scanner content and content packs
Scanners need content: nuclei templates, SAST rules, the trivy database,
wordlists. This page says where a sensor gets it, what content packs
are, how the platform serves packs to sensors by digest, and how signed
packages from the content catalog are installed.
- What a sensor scans with today
- Content packs
- Delivery to sensors by digest
- Content catalog
What a sensor scans with today
Sensors manage the content of their built-in scanners themselves. Each sensor
downloads it from its upstream, verifies it, and switches to it atomically:
| Content |
Where from |
Verified by |
| nuclei templates |
The nuclei-templates release (the default image also ships a pinned release) |
The release checksum |
| SAST rules (opengrep, semgrep) |
The signed OpenCTEM rules pack release |
Its keyless cosign signature, checked offline |
| trivy database |
Its OCI repository |
The OCI digest |
Mirrors, local paths and the refresh interval are sensor settings:
Scanner content without internet access.
The organization’s content policy (Organization settings > Tools and sensors > Content freshness)
sets refresh intervals, maximum ages and pinned versions. Check what a
sensor holds with openctemio-sensor -content-status, or in the sensor’s
sheet under Discovery > Sensors.
Content packs
A content pack is a signed, immutable archive of one kind of content:
nuclei-templates, semgrep-rules, wordlist, or a third-party kind
x-<namespace>/<kind>. The platform stores each pack once, in a canonical
form (files sorted, fixed owner, mode and time), and names it by the SHA-256
of that archive: its digest.
On ingest the platform:
- checks the archive’s limits: regular files and directories only, no
links, no absolute paths or
.., and caps on size and file count;
- lints every file for its kind. nuclei templates that use the
code,
javascript, headless or file protocols, self-contained templates
and unsafe regexes are not accepted: an organization pack with such a
file is refused; in a platform pack the file is left out and listed;
- refuses an organization pack that contains credentials, unless the
uploader acknowledges them (audited at high severity);
- signs a statement of the pack (organization, name, version, kind,
digest, size, file count) with a content key, and stores it. An unsigned
pack is never stored.
There are two kinds of packs:
| Pack |
Managed by |
Where |
| Organization pack |
People with scans:content:write (owners and administrators by default), with a recent sign-in |
API: /api/v1/content-packs (upload, list, download, revoke). Signed with the organization’s content key. |
| Platform pack |
Platform super administrators, each change with a reason and a fresh authenticator code |
Admin console, Scanning > Content packs: Add pack uploads an archive or imports a release by https URL with its expected digest. Each pack name has a stable and a canary channel. Signed with the platform content key. |
Organizations read the platform packs and channels with scans:content:read
(/api/v1/platform-content-packs). Revoking a platform pack moves every
channel that names it back to the newest older active pack of that name.
Delivery to sensors by digest
The platform serves packs to sensors over the sensor
channel, with the sensor’s own credentials:
| Route |
Returns |
GET /api/v2/sensor/content/desired |
The organization’s desired set: its active packs and the platform’s packs on the stable channel, each with digest, size and signature, plus the revoked digests. It carries an ETag; a request with If-None-Match and the current one gets 304 with no body. |
GET /api/v2/sensor/content/packs/{digest} |
The pack’s canonical archive. Immutable (ETag is the digest), with Range support to resume. |
GET /api/v2/sensor/content/packs/{digest}/index |
The pack’s files: path, SHA-256 and size. |
GET /api/v2/sensor/content/packs/{digest}/files/{sha256} |
One file of the pack. |
sequenceDiagram
autonumber
participant S as Sensor
participant P as Platform
S->>P: desired set (If-None-Match: last ETag)
alt nothing changed
P-->>S: 304, no body
else new set
P-->>S: desired set, new ETag
Note over S: skip every digest it already holds
S->>P: index of a new pack
P-->>S: path, SHA-256 and size of each file
S->>P: only the files it does not hold
P-->>S: changed files
Note over S: rebuild the archive, check digest, size<br/>and signature, then install
end
- A held digest is never fetched again. Packs are addressed by digest,
so a sensor that holds one has nothing to download.
- File-level deltas. For a new version of a pack, the sensor fetches
the index, copies the files it already holds, and downloads only the
changed ones. It rebuilds the canonical archive and checks it against the
signed digest and size, so a delta install is as safe as a full download.
Any mismatch falls back to the full archive. Measured with 3 sensors: a
new version with 2 of 40 files changed cost 92% less traffic than full
downloads.
- Conditional checks. An unchanged desired set costs a
304 with no
body.
- Signatures. The sensor installs a pack only when its statement is
signed by a key the sensor’s operator pinned (the organization’s content
key for an organization pack, the platform content key for a platform
pack), names the same digest and, for an organization pack, the sensor’s
organization. A key the platform merely sends is never trusted. The public
keys are at
/api/v1/content-packs/signing-key and
/api/v1/platform-content-packs/signing-key.
- Isolation. A sensor reads only the digests in its own organization’s
desired set. Another organization’s pack, a revoked pack, an unknown
digest, or a file that is not in the named pack all answer
404 content-not-found.
- Revocation. A revoked pack leaves the desired set within 10 seconds,
and its digest is listed as revoked.
The client side of these routes is in sdk-go (contentcache, with delta
installs, conditional requests, a jittered prefetch and hit, miss and
bytes-saved counters). A paired sensor opens the cache in content/ next to
its local store and refreshes it on a schedule and when a heartbeat answer
carries a new content_version. The pairing pins the content signing keys:
the platform key, and for a sensor of one organization that organization’s
key. A sensor paired before this has no content keys and runs no job that
names packs until it is paired again. A shared sensor reads the platform’s
stable packs only; an organization’s pack is never sent to it.
Jobs pin the packs they read. When a scan or retest job is claimed, the
platform lists the packs it needs by digest (and any lists it generated from
your own names) in the job, and the signed statement of the job names each
pack. The sensor mounts a pack only when the verified statement lists it,
checks it against the pinned keys, its digest and the archive rules, and
fetches a missing one at claim. A pack that cannot be delivered fails the job
as content_unavailable and the platform queues it again. An example is the
label list of subdomain brute force: the sensor has no list of its own, so a
job without a wordlist pack is refused. The packs a result was matched with
are recorded on its command. There is nothing to configure on the sensor for
content packs.
What the sensor manages itself is unchanged: nuclei templates, SAST rules and
the trivy database come from their upstreams as described in
What a sensor scans with today.
Two kinds of platform pack are not sent to sensors at all:
web-fingerprints and secret-rules are run by the platform on the web
content each report already carries (see
Detection rules). Wordlists are managed
under Organization settings > Tools and sensors > Wordlists (EASM).
Content catalog
The content catalog is a second, separate way to bring content in: signed
packages (rules, templates, wordlists, scan profiles, report templates,
playbooks, policy packs, feeds, tool adapters, sensors) that an organization
installs for itself. Everything is verified offline: the instance never needs
to reach a catalog server.
Trust. A signed catalog bundle is imported by a platform super
administrator (admin console, with a reason and a fresh authenticator code;
POST /api/v1/admin/content-catalog/import, audited). The import checks the
bundle against the catalog roots pinned in the release, the signed index and
the revocation list, and every package’s digests and publisher signature
(Sigstore keyless, checked offline against the trusted root embedded in the
release). With no trusted root, imports are refused. Packages whose version is
revoked are left out.
To add your own root or a newer Sigstore trusted root, set
CONTENT_TRUST_ROOT_KEY_IDS (comma-separated SHA256:<hex> key ids) or
CONTENT_SIGSTORE_TRUSTED_ROOT (path of the trusted root JSON). Setting either
writes a high-severity admin audit entry at start-up. A separate secret,
APP_CONTENT_SIGNING_KEY, is the master of each organization’s content pack
signing key; see Environment variables.
Use it. Organization settings > Tools and sensors > Content catalog (needs content:read, held by every
default role):
| Tab |
What it does |
| Catalog |
Imported packages, filtered by type or installed state. A row opens the package: versions, what each asks for (tier, side effects, network, declared hosts, credentials, data scopes), license, dependencies, and signatures and provenance. |
| Installed |
What the organization runs, with Update, Roll back, Pin (stops automatic updates) and Uninstall. |
| Requests |
Pending install requests when approval is required. |
| Settings |
Require approval: every install, update, rollback and uninstall becomes a request that another member with content:install approves or rejects. Turning it on is immediate; turning it off takes effect 24 hours later, and owners and administrators are notified meanwhile. |
Installing, updating, rolling back, uninstalling and deciding requests need
Install content (content:install: owners and administrators) and a recent
sign-in. A version whose license does not allow use as a service needs an
explicit acknowledgement, which is audited. An unpinned installation follows
the newest compatible, non-revoked version that asks for no more than the
installed one. A revoked version cannot be installed, and its installations
become revoked. An executable type (sensors, tool adapters) is refused while the
revocation list is missing or expired.
Private packages. A member with Publish private content
(content:publish) can publish a package for the own organization only
(POST /api/v1/content/private-packages); a super administrator can publish
one for every organization (POST /api/v1/admin/content-catalog/packages).
Private packages hold rules, templates or wordlists, never ask for
credentials, and become content packs of the organization or the platform.
Installed catalog packages are not yet delivered to sensors by digest;
sensors keep using their own content as described above.