Mining operators depend on software supporting workforce scheduling, equipment data and operational reports. A compromised build pipeline can distribute a malicious change through an otherwise trusted deployment process, even when the developer’s source code appears normal.
Trace mining software from repository to site
Trust boundaries extend through repositories, build runners, dependency registries, signing keys and deployment accounts. Production credentials should not be available to untrusted test jobs or personal developer accounts.
Keep signing keys away from build workers
- Map every identity from commit to production deployment.
- Require protected branches and peer review.
- Detect exposed secrets and record dependencies.
- Sign and verify release artifacts.
- Test revoking compromised pipeline credentials and rebuilding from trusted source.
Prove an engineering release cannot be silently substituted
Use a harmless code change in a test repository and follow it through signing and approval. Rotate the pipeline secret then attempt the original credential again. A passing workflow blocks the old credential and supports rollback independent of a potentially compromised runner.
Trace mining software from repository to site — test safety
Choose a non-production software change that affects a simulated mine dispatch report or equipment dataset. Record the repository, reviewer group, build runner identity, dependency source and release artefact digest. Establish who authorises deployment to a remote site and how a site operator can recognise the approved version. Use fabricated telemetry and a test release channel; do not deploy unverified code into an operating production network or connect a scanner to live industrial controllers.
Keep signing keys away from build workers — records
Introduce a harmless altered build package bearing the same human-readable release label as the approved package. Show that signature verification, pinned artefact digest or admission checks reject it before promotion. Separately attempt an out-of-scope API call from the test application, and record the server-side denial. Preserve the source-review decision, pipeline logs, signing or attestation result and the site’s receipt of the expected version. An engineer seeing a green pipeline badge should still be able to trace the artefact actually installed.
Prove an engineering release cannot be silently substituted — sign-off
The release manager should demonstrate how a compromised build identity is revoked without blocking the safe operation of existing mining services. For a remote site with limited connectivity, the response may involve stopping new deployments while preserving approved software. Agree the conditions for rollback, the record of software already distributed and the means of verifying a replacement package. An exception for a legacy engineer workstation must have a named technical owner and a date for retesting the protected handoff.
Map the engineering deployment chain
Start at the point a change is proposed and follow it to the mine’s production-support environment. Identify source repositories, development workstations, code review, build runners, package registries, third-party libraries, signing systems, artefact storage and deployment approval. Separate systems that support planning, dispatch or reporting from those whose failure could affect plant operations. Record ownership and vendor dependencies at each step. Ask where a compromised developer account could insert a change, where an attacker could replace a build artefact and who could approve a release without peer review. A pipeline diagram should show identities and trust boundaries as well as software components. Validate it with a recent real but approved release record. The objective is to locate the points where the integrity of engineering software can be changed silently, not merely list the security features available in a development platform.
Protect developer and build identities differently
Review how engineers authenticate to repositories and how automated jobs authenticate to registries, cloud resources and deployment targets. Require stronger controls around administrators and release approvers than ordinary read-only users. Use short-lived credentials or tightly scoped workload identities where supported; keep secret values out of source code, debug output and developer chat. Confirm that a developer can propose a change without automatically having authority to publish it into operational systems. Test the removal of a departing contractor’s access and check whether cached tokens survive the change. A successful test has an attributable release action, a separate approval where required and no unattended broad credential that can reach unrelated mine systems. Document temporary exceptions with owners and expiry rather than accepting permanent shared build credentials.
Make source review substantive for risky changes
Define which changes require an independent reviewer: authentication logic, API permissions, safety-related data transformations, deployment scripts and network configuration. Review should ask how the change affects trust boundaries, error handling and rollback, not only whether the code compiles. Include test cases for malformed input, unexpected permissions and invalid upstream data. Review third-party dependencies for origin, maintenance and permitted version ranges before adoption. Require a change record linking the business purpose, reviewer, tests and deployment target. Avoid automatically approving low-line-count changes; one line that broadens a service token’s permissions can be more consequential than a large routine refactor. A controlled build process depends on human judgement informed by repeatable checks.
Restrict build runners and artefact publication
Keep build workers isolated from unnecessary operational networks and prevent untrusted pull requests from obtaining production deployment secrets. Document which jobs are authorised to publish packages, which branches or tags may trigger a release and how an approved artefact is identified downstream. Test whether an unauthorised repository user can modify a build configuration or substitute a package without a verified approval. Use hashes, signatures or supported provenance features as appropriate to the engineering environment, and ensure the deployment system checks the intended artefact rather than blindly trusting a filename. Retain logs showing source revision, build job identity, dependencies and published output. A clean vulnerability scan does not prove an artefact came from the approved source or that its publishing credentials were protected.
Assess dependencies and software components
Create an inventory of direct and material transitive dependencies for the representative application. Identify where components originate, who maintains them and how updates are evaluated. Apply vulnerability scanning as one input rather than a substitute for architecture review; packages without a published vulnerability can still be malicious or unsuitable. Flag abandoned components and unexpected package changes for human review. Document how the organisation reacts when a library must be updated urgently but a mine-site integration has narrow compatibility windows. Prefer staged verification and approved compensating controls over untested deployment to operational environments. A useful software bill of materials or dependency record should be tied to the actual released artefact and refreshed when the build changes, not produced once for a procurement pack.
Test API permissions and data integrity
Mining applications often exchange equipment status, maintenance work orders, production summaries or workforce scheduling information through APIs. Select approved synthetic records and test that a user or service can read and change only the fields required for its role. Verify object-level authorisation and rejection of changes outside a valid workflow, not simply whether an API endpoint requires authentication. Test malformed payloads and duplicate messages in a controlled environment to check reconciliation and error handling. Define how the receiving system validates the origin and integrity of data before making a business decision. If a function influences operations, include the operational owner in test approval. The key control is that a compromised application identity cannot freely alter maintenance or production information just because it can reach the API.
Separate development, testing and operational deployment
Maintain clear boundaries between environments, with distinct identities, configurations and approval roles. Avoid copying live personnel data, operational secrets or engineering credentials into test environments. When a release must reach a remote site with intermittent connectivity, define a reliable distribution mechanism, integrity check and fallback when the update cannot be confirmed. Require the site to verify compatibility with its equipment and existing operations before activation. Consider a staged rollout to one representative non-critical service before wider adoption. Document the authority to halt a release and the conditions that trigger rollback. A pipeline that is technically automated but lacks a dependable local acceptance process can move mistakes or malicious changes to many sites very quickly.
Create a safe rollback and incident-response route
Test a fictional release that fails integrity verification or causes unexpected application behaviour after deployment. The team should identify which artefact was released, who approved it, which systems received it and what safe previous version can be restored. Preserve relevant build, source and deployment records before removing suspect artefacts. Define how to revoke compromised signing or deployment credentials without locking out necessary operational maintenance. If software supports a sensitive plant process, involve site engineers and safety personnel before disconnecting or rolling back systems. The recovery plan should include monitoring after restoration and verification that a compromised dependency has not been reintroduced. The test is complete when the responsible team can reconstruct the release path and demonstrate a safe return to authorised operation.
Define measurable pipeline acceptance checks
Use a release checklist with attributable source changes, approved review, controlled dependencies, isolated build identity, validated artefact, bounded deployment permissions and site acceptance. Record the test result, evidence location and owner for every control. Where a control is not available, document the alternative measure and the decision-maker accepting the exposure. Include a negative test: an unauthorised identity attempts a synthetic publication and must fail without altering the target. A passing result should show both that legitimate releases work and that disallowed paths do not. Collect metrics on failed approvals, stale credentials, unexpected dependencies and rollback tests, but focus decisions on the consequences of each issue rather than treating a lower raw count as proof of safety.
Maintain assurance with suppliers and engineering leaders
Review pipeline trust boundaries when a new vendor builds software, an application moves to another cloud, a plant adds remote support or the release process changes. Require suppliers to identify how they protect build identities, verify third-party components and provide traceable release artefacts. Avoid asking for a generic statement of secure development without access to relevant evidence. Include engineering and operations leaders in deciding how much automation is appropriate for the deployed system. Rehearse at least one compromised-artefact scenario with the teams responsible for build and release. Assign a specific owner to every unresolved control gap and a realistic path to prove it has been fixed. The programme is successful when a mine can trust and verify the software it actually receives.
Sources and further reading
- OWASP — API Security Top 10, 2023
- NIST — Guide to Computer Security Log Management (SP 800-92)
- ASD’s ACSC — Essential Eight Maturity Model
Strengthen your security with Next Defence
Next Defence supports mining, energy & resources organisations with practical assessment, technical implementation and validation through its Application Security & DevSecOps practice.