Scenario note: The scenario is illustrative and is not a report of a confirmed Next Defence customer incident.
Locate the control boundary between build and plant
An engineering change for an energy site may begin in a corporate repository and reach a field application through a supplier pipeline. Map who can merge code, approve a deployment manifest, sign the artifact and activate it on the operational network. Keep the application boundary distinct from controllers, protection relays and safety systems; deployment processes that can alter those functions require explicit engineering authority. The exercise concerns a fictional release to a safe simulator, not a live change to energy delivery equipment.
Use a real release identifier throughout
Choose one test commit and record its reviewed change request, dependency snapshot, build environment, signing identity, artifact digest and deployment authorisation. Compare those records with the exact binary or container digest observed at the staging endpoint. If a job fetches dependencies after approval, document how integrity is re-established. An unchanged version label is not sufficient when the underlying artifact can be replaced. The goal is to prove a chain of custody from the approved engineering intent to the system that actually runs.
Exercise a compromised pipeline credential
Within a disconnected CI test environment, simulate a credential that can publish a new artifact but is not authorised to approve its deployment. Attempt to promote a harmless modified build with an unapproved digest. Verify the deployment controller denies it even when the package has the expected file name. Repeat with an old signed artifact to check rollback rules. A healthy control should prevent both a substituted modern build and an unsupported legacy configuration from silently entering the field.
Constrain engineering secrets by job and purpose
Service credentials for telemetry ingestion, asset inventory and plant maintenance should not be available to every build runner. List secrets injected into each job, how long they persist and which outbound services the runner can reach. Review whether a pull-request job from an untrusted branch can print secrets into logs or upload artifacts outside the approved registry. Rotate exposed tokens only after identifying the dependent site processes so a seemingly simple security fix does not disable remote diagnostics during a fault.
Accept operating conditions imposed by OT
Deployment windows may coincide with planned equipment outages, permit-to-work approvals or a requirement for two-person engineering review. These are design inputs, not excuses to bypass security. If the site is disconnected, pre-position approved signed packages and validate them locally using a trusted key store. Decide which function can trigger rollback without a new internet connection. Test that reverting application code does not overwrite calibrated settings, historian data or site-specific engineering configuration.
Measure both operational and security evidence
For an accepted test release, capture the deployment receipt, digest match, configuration checksum, engineering sign-off and synthetic sensor response. For a rejected package, retain the exact denial reason and confirm that no endpoint began executing it. Compare controller health checks with application results; a green pipeline does not demonstrate that the plant’s data remained trustworthy. Review logging paths that remain available during WAN failure, because central monitoring can be absent when local enforcement matters most.
Give the supplier a narrow exception process
When a contractor requests emergency software publication, the site engineer should decide whether the proposed change is needed for safety or continuity. The supplier must identify the artifact, affected assets, validity period and rollback plan. Permit a time-limited approval for the named release, not permanent ability to change deployment policy. Require a second-party review after the event and an explicit record of any control that was bypassed. This preserves accountability without implying that every urgent plant change can follow a normal corporate sprint.
Evidence for release acceptance
Treat the exercise as incomplete if the team cannot retrieve a signed artifact after the registry is unavailable, identify a compromised signing key or prevent a supplier account from promoting a build outside its authorised site. The acceptance packet should contain one passing release, one rejected substitution, one denied unauthorised operator and a tested safe rollback. The energy service owner can then distinguish successful software delivery from the stronger claim that engineering release integrity is enforced.
Handling trust in build tooling
Inspect self-hosted runners and temporary workers that a contractor can influence. A pipeline approved on paper may execute jobs with long-lived secrets, write access to the signing store or permission to amend release tags. Compare permissions for source review, artifact creation and field deployment; the same service identity should not silently combine all three. A simulated compromised runner can demonstrate whether a build is trusted because its provenance verifies or merely because it arrived from an internal network. Ask how signing keys are revoked after suspected exposure and how sites will identify already deployed releases signed by that key. A revocation plan without a list of installed artifact digests cannot support targeted containment.
An engineering decision beyond the CI dashboard
Release tooling cannot determine whether a software change is safe for the operational process. The site engineer should identify the affected plant mode, approved maintenance conditions, test data and compatibility with existing configuration. A package may be correctly signed but unsuitable for an older gateway whose sensor mappings differ. Include a negative test where a validly signed release targets the wrong asset class. A secure deployment controller should refuse it or require explicit site-specific authority; a cryptographic signature authenticates a package but does not certify engineering fitness.
Exercise what happens when a build pipeline and a site log disagree. A central record may show “deployment successful” because the agent accepted a job while the field application retained the old version. Collect the local running digest, configuration version and synthetic output to settle the discrepancy. Include a forced rollback in the simulator and verify that pending writes are replayed safely rather than duplicated. Ask the control engineer to approve the restored operating state, with cybersecurity confirming that the revoked deployment credential cannot initiate another package.
At handover, record the pipeline’s accountable owner, who can change release policies, which supplier identities may issue artifacts and how a suspect signer is blocked across offline sites. Test the escalation contact list during an assumed weekend outage. The best security policy has little practical value if a contractor can persuade a local technician to bypass it because no authorised approver is reachable.
Finally, inspect the approved configuration manifest independently of the executable artifact. A clean build can still carry an incorrect site identifier or unreviewed network route. The release gate should check which settings may change locally and who authorises them. Confirm that remote supplier access granted for a test expires even if the deployment job is rescheduled for the following shift.
A deployment approval should also identify the intended observation period after installation. Check telemetry integrity, the status of queued configuration changes and the expiry of privileged maintenance sessions during that period. If the plant behaves unexpectedly, engineering should know which signed release to restore and which site-specific settings must not be overwritten by rollback. Record the time of operational acceptance separately from the time the pipeline reported completion.
Proving a field update is authorised and safe
Construct a two-part staging exercise using a fictional energy-site maintenance application. The legitimate change updates a reporting service and produces expected synthetic readings. The unwanted change replaces a signed package after approval or attempts to push it to a different site where the configuration is incompatible. Ensure the release identity, installed digest and site assignment are all enforced at the field endpoint. A signature proves the bytes were signed by a particular key; it does not by itself confirm that the release is approved for a specific asset or maintenance window.
Add a second event: the supplier’s CI service account can read a deployment secret stored for a different project. Verify that the pipeline denies the secret request, that the account cannot change release approval policy and that the access attempt reaches an appropriate security log. If a legitimate job needs credentials to publish a telemetry image, use a narrowly scoped temporary identity that cannot operate plant control devices. Record the effective service permissions rather than relying on a diagram of where the job was expected to run.
A safe rollback demonstration should use compatible configuration fixtures and a simulated communications outage. Have the site engineer choose the prior approved release, verify its digest locally and restore the application without contacting the compromised build service. The exercise must prove that historian tags and time-series readings remain consistent after the old code resumes. Any step requiring live protection relay changes or disabling safety monitoring is outside this test and needs separate engineering authorisation.
Handover should include the site’s acceptance criteria, validated emergency contact chain and an inventory of each installed package. If a signing credential is later compromised, the operator needs to know which releases may have been affected and which replacements can safely be installed. The engineering and security owners should agree how to pause releases while urgent repairs continue through documented alternatives. That decision is more useful than a report that simply says the build pipeline ran without errors.
Operational evidence and decision details
A worked test for plant release pipeline
A mining operator’s deployment pipeline may update a scheduling application but should not automatically obtain credentials for a control network. Map the release account, signing or artefact verification, package repository and remote-support route. Test a change with the correct approval and a second unapproved attempt that must be denied. A vendor-certified industrial system may require slower, engineered release windows than an ordinary SaaS product. Evidence should connect the reviewed source to the running package and the operating team’s acceptance.
Field checklist for the scenario
- Obtain a business-approved purpose and technical access matrix from Engineering release owner and OT security manager.
- Capture the baseline logs and permissions: Source approvals, build runner identity, artefact hash, secret store, release gate and plant integration map.
- Implement the narrowest control that prevents a pipeline token deploys unreviewed code or exposes a service identity that reaches plant-support environments.
- Validate the permitted operation: Engineers release reviewed configuration updates under approved operational change windows.
- Rehearse safe containment and recovery while accounting for: Never deploy a security test package to a live control system without engineering sign-off.
- Collect a denied request, verified business acceptance and next review date.
Sources and further reading
- https://owasp.org/API-Security/editions/2023/en/0x00-header/
- https://csrc.nist.gov/pubs/sp/800/218/final
- https://www.nist.gov/cyberframework
Next steps with Next Defence
Next Defence can assess engineering software supply chains from repository to staged site installation, including isolated artifact-substitution tests and a safety-aware rollback plan.