# Automating compliance for the updated CISC risk guidance

The Critical Infrastructure Security Centre (CISC) updated its Critical Infrastructure Risk Management Program guidance and companion snapshot document. Responsible entities must review how these materials apply to their critical infrastructure assets and risk management arrangements. Static spreadsheets won't keep up. Automated controls cope far better with the complexity of modern supply chains and legacy systems.

Mapping supply chain and vendor risks

The Enhanced CIRMP Rules require operators to map their supply chains and assess every major supplier [1]. That includes evaluating foreign ownership, control, or influence [1]. Manual questionnaires give you little verifiable insight, and Software Bills of Materials (SBOMs) are the more reliable alternative [1].

You can automate SBOM ingestion in n8n to build a continuous monitoring pipeline. A workflow triggers when a vendor uploads a new SBOM to a repository. It parses the components and cross references them against vulnerability databases, so you get data driven supply chain visibility in place of compliance questionnaires. If a component is flagged, the workflow alerts the security team through a ticketing system. That keeps your assessment of major suppliers current.

Generating SBOMs for your own code

Ask vendors for SBOMs in one of the two common formats, SPDX [4] or CycloneDX [5], and produce the same for your own repositories. Two widely used open source generators:

# SPDX JSON with Syft (scan a source directory or a container image)
syft scan dir:./repo -o spdx-json=sbom.spdx.json

# CycloneDX JSON with cdxgen
cdxgen -t npm -o sbom.cdx.json ./repo

# Optional: sign the SBOM as an attestation on a container image with Cosign
cosign attest --key cosign.key --type spdxjson --predicate sbom.spdx.json registry.example.com/app:1.4.2

The n8n SBOM monitoring workflow

The workflow uses standard n8n nodes, so you can build it in the editor and keep the exported JSON in version control [7]:

  1. Webhook node receives the SBOM file as JSON (or a Schedule Trigger pulls new SBOMs from the vendor portal or a shared bucket).
  2. Code node flattens the SBOM into one item per component (below).
  3. HTTP Request node asks OSV.dev about each component. POST https://api.osv.dev/v1/query with a package URL returns the known vulnerabilities for that exact version; the /v1/querybatch endpoint takes up to 1,000 queries per call for larger SBOMs [9].
  4. Code node keeps findings rated high or critical and attaches the supplier name.
  5. Jira node opens a ticket per finding, and a Slack node posts to the security channel.
  6. A row per vendor in your supplier register records when its last SBOM arrived and how many open critical findings it has.

The parsing step, written for the Code node in "Run Once for All Items" mode:

// n8n Code node: turn an SPDX or CycloneDX JSON SBOM into one item per component
const out = [];
for (const item of $input.all()) {
  const sbom = item.json;
  if (Array.isArray(sbom.packages)) {
    // SPDX 2.3: packages, versionInfo, externalRefs of type purl
    for (const p of sbom.packages) {
      const ref = (p.externalRefs ?? []).find(r => r.referenceType === "purl");
      out.push({ json: { name: p.name, version: p.versionInfo, supplier: p.supplier ?? null,
                         license: p.licenseConcluded ?? null, purl: ref?.referenceLocator ?? null } });
    }
  } else if (Array.isArray(sbom.components)) {
    // CycloneDX 1.5: components, version, purl, licenses
    for (const c of sbom.components) {
      const licenses = (c.licenses ?? []).map(l => l.license?.id ?? l.license?.name ?? l.expression).filter(Boolean);
      out.push({ json: { name: c.name, version: c.version, supplier: c.supplier?.name ?? null,
                         license: licenses.join(" OR ") || null, purl: c.purl ?? null } });
    }
  }
}
// OSV wants a package URL; drop components without one and review them by hand
return out.filter(i => i.json.purl);

The body the HTTP Request node sends to OSV for each item is one line: {"package": {"purl": "{{ $json.purl }}"}}. OSV matches the version inside the purl. Upload an SBOM to the webhook with a plain curl call:

curl -X POST "https://n8n.example.com/webhook/sbom" \
  -H "Content-Type: application/json" \
  --data-binary @- < sbom.spdx.json

Addressing AI and legacy system vulnerabilities

The Security of Critical Infrastructure Legislation Amendment (Enhanced Critical Infrastructure Risk Management Program) Rules 2026 target risks from AI, legacy systems, supply chains, and insider threats. The CISC 2026 Annual Risk Review ranks AI implementation and pre positioned attacks on operational technology (OT) as top risks for plausibility and damage [2].

To secure AI implementations and legacy code, add Semgrep to your CI/CD pipelines. Its custom rules can detect insecure patterns in AI integrated code or legacy wrappers, for example by flagging deprecated functions in legacy systems exposed to the network. That gives you detection before problems ship, and it complements the holistic cyber and supply chain controls the CISC urges [3].

Starter Semgrep rules

A small rule file covering three of the patterns above. Each rule needs an id, a message, a list of languages, a severity and at least one pattern [10]. These are starting points: tune them against your own code before you let them fail a build.

# .semgrep/cirmp-starter.yaml
rules:
  - id: weak-hash-md5-sha1
    languages: [python]
    severity: ERROR
    message: MD5 and SHA-1 are broken for security use. Use SHA-256 or better.
    pattern-either:
      - pattern: hashlib.md5(...)
      - pattern: hashlib.sha1(...)

  - id: llm-prompt-built-from-request
    languages: [python]
    severity: WARNING
    message: User input is formatted straight into an LLM prompt. Keep instructions and user text in separate messages and validate the input.
    pattern-either:
      - pattern: |
          $PROMPT = f"...{request.$ATTR}..."
      - pattern: |
          $PROMPT = "..." + request.$ATTR

  - id: flask-bind-all-interfaces
    languages: [python]
    severity: WARNING
    message: Service listens on every interface. On OT networks bind to the one internal interface it needs.
    patterns:
      - pattern: $APP.run(..., host=$HOST, ...)
      - metavariable-regex:
          metavariable: $HOST
          regex: ^["']0\.0\.0\.0["']$
# Run in CI and keep a SARIF report for the audit trail
semgrep scan --config .semgrep/cirmp-starter.yaml --sarif --output semgrep.sarif

Detecting insider risks and OT threats

Insider risk from contractors and pre positioned OT attacks often bypass standard incident logs [2]. Closing that gap takes behavioral analysis and strict access controls.

Use OWASP guidance on software component verification so that only authorized code reaches your OT environments [8]. Automation can also correlate login details with physical access logs or change management tickets to spot insider threats. If a contractor accesses a critical asset without an approved ticket, a Zabbix trigger alerts the security operations center. The result is a verifiable audit trail for the insider risk concerns the CISC raised.

Wiring Zabbix to the checks

The simplest pattern is a Zabbix trapper item per check. A script you already trust (an Active Directory query, a change-ticket lookup, a flow-log comparison) computes the number and pushes it with zabbix_sender; Zabbix stores it and fires the trigger. Create the items and triggers in the frontend or through the Zabbix API, which is JSON-RPC over HTTP [6].

| Item key (trapper, numeric) | What the script sends | Trigger expression | |---|---|---| | insider.offhours.logins | Contractor logins outside agreed hours in the last 5 minutes | last(/OT Gateway/insider.offhours.logins)>0 | | insider.privileged.noticket | Privileged sessions with no approved change ticket | last(/OT Gateway/insider.privileged.noticket)>0 | | ot.config.changes | Configuration changes on OT assets in the last 15 minutes | last(/OT Gateway/ot.config.changes)>2 | | ot.network.newoutbound | New external destinations seen from the OT segment | last(/OT Gateway/ot.network.newoutbound)>0 |

# Push one value from the check script
zabbix_sender -z zabbix.example.com -s "OT Gateway" -k ot.network.newoutbound -o 1

To route alerts, add a Webhook media type in Zabbix that posts the event to an n8n Webhook node. In n8n, a Switch node sets the priority (contractor and privileged-access alerts first, OT changes next), then the Jira, email and Slack nodes open the incident and notify the right people. Keep the recipient lists in n8n variables, not typed into nodes.

Implementing a practitioner workflow for CIRMP

To line up with CISC guidance, security teams need a loop of continuous assessment. The aim is to prevent cascading failures through holistic controls [3].

Young man in eyeglasses focusing on computer screen indoors. Photo by Jonathan Borba on Pexels
Young man in eyeglasses focusing on computer screen indoors. Photo by Jonathan Borba on Pexels
  1. Asset discovery: use automated scanning to identify all critical infrastructure assets and dependencies.
  2. Supply chain mapping: automate SBOM collection and map the results to the maximum acceptable outage for critical components [1].
  3. Continuous scanning: deploy Semgrep or CodeQL to scan for vulnerabilities in AI and legacy system integrations.
  4. Behavioral monitoring: set up alerts for anomalous contractor access patterns to reduce insider risk [2].
  5. Review and update: use the CISC snapshot documents to refine your risk management arrangements periodically.

If you are struggling to implement these automated workflows, our team can help. Reach out via the /contact page.

Actions for CISC 2026 compliance

These actions cover the specific requirements of the 2026 updates:

  • Map supply chains: move from vendor questionnaires to SBOMs to identify foreign ownership or influence [1].
  • Define outage limits: document the maximum acceptable outage for every critical component in the supply chain map [1].
  • Audit AI implementations: run a risk review of all AI deployments, since these are now top risks for plausibility and damage [2].
  • Review OT access: monitor for pre positioned attacks on OT assets that standard incident logs miss [2].
  • Update risk programs: read the updated Critical Infrastructure Risk Management Program guidance and check your program against it.