Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

Remote Plant Maintenance Gateway Accepts an Old SSH Key

Hypothetical industrial access advisory. A plant maintenance gateway still accepts an SSH public key assigned to a supplier engineer whose contract ended months earlier. The immediate exposure is a stale.

Hypothetical industrial access advisory. A plant maintenance gateway still accepts an SSH public key assigned to a supplier engineer whose contract ended months earlier. The immediate exposure is a stale authentication path into a support environment; it does not establish that the former contractor accessed controllers or that the vendor behaved maliciously.

Identify the exact trust boundary

An SSH key can authorise a shell on a jump host, a restricted file transfer, a port forward or a forced maintenance command. Review the account’s authorized_keys entries, restrictions and server-side configuration before characterising the capability. An expired contractor identity in a HR or procurement system may have no automatic relationship with public keys installed on industrial gateways. A leftover key becomes particularly concerning if the account can forward traffic into engineering workstations or controller networks.

Determine whether the key is unique to one engineer or shared across the supplier’s service team. A shared support identity can make attribution difficult even when each login appears in an SSH log. Check who controls the corresponding private key, whether it is protected by hardware or a managed vault, and what device posture is required before the gateway allows a connection. Do not assume a network rule alone limits what a successful session can do.

Verify authentication and subsequent activity

Collect gateway logs showing the account, key fingerprint, source address, authentication result and session time. Where session recording exists, establish which commands, file transfers or tunnels were used. Compare connection windows with work orders and the site’s maintenance schedule. A key being accepted in an authorised test demonstrates the deprovisioning failure; independent evidence is needed to claim unauthorised equipment changes.

Preserve relevant network flow records around the gateway. Correlate them with downstream jump hosts, engineering station access and any controller programming activity. Some OT devices lack detailed authentication logs. Document those blind spots rather than claiming a full reconstruction. Industrial engineers should verify approved configuration baselines with vendor-supported tooling and avoid intrusive probing on sensitive control networks.

Contain the obsolete route safely

The plant owner should authorise removal of the stale key and review related supplier accounts. Before editing a production gateway, confirm an alternative administrative path and make a verified backup of the configuration. Removing one key is preferable to disabling the entire remote-maintenance service if the latter would eliminate critical vendor support during an equipment fault.

Where SSH access uses certificates or centralised access gateways, revoke the affected principal at the authoritative control point and test that stale local permissions cannot override the decision. Existing sessions may remain open after key removal, so review active processes and tunnels. If the service cannot distinguish individual engineers, plan a controlled migration to attributable named access with a clear supplier transition.

A high-confidence unauthorised session, unexpected configuration changes or unexplained port forwarding requires escalation to the site’s OT incident lead. A dormant legacy key detected during housekeeping requires corrective action and an access review but should not be reported as a confirmed intrusion.

Confirm the access boundary with a controlled test

Use a test gateway or a narrowly authorised maintenance window. First demonstrate that an approved technician can connect to the required host and perform only the maintenance function assigned to their role. Then attempt authentication using a synthetic retired key and verify it is denied. Check direct login, automated transfer and port-forwarding paths separately where the environment supports them.

Keep the maintenance evidence: key fingerprint, responsible supplier, approved route, permitted command set, activity-log retention and expiration trigger. For a plant with multiple vendors, create a simple map of which remote identities can reach engineering systems. Include emergency access arrangements, their authoriser and post-use review requirement.

Prevent reappearance after the next contract change

Connect vendor offboarding to technical access removal rather than a closed purchasing ticket. Record the gateway, account, key fingerprints and tunnels associated with each contract. When personnel rotate, replace individual keys without giving the entire vendor team long-lived shared access. Periodically reconcile key inventories against active contracts, including keys used only during annual servicing.

OT constraints matter: a controller or gateway that cannot support modern identity integration may require a compensating jump host, session recording and a more restrictive network path. Review those measures jointly with the supplier and plant engineering. The essential evidence is that an ex-contractor’s credential no longer works while authorised maintenance remains possible without weakening safety or resilience.

Plan for a support emergency during offboarding

A gateway may be essential when an equipment fault occurs during night shift. Record the approved emergency method before removing the obsolete key, including a separately authorised supplier identity, contact verification process and scope of commands permitted during repair. Exercise that method in a vendor-approved test environment. If support fails after removing an old credential, investigate the documented dependency rather than reinstalling the credential without review. The plant should emerge with two independently demonstrated outcomes: a former contractor cannot authenticate, and a currently approved engineer can restore service without bypassing safety procedures or creating a permanent shared account.

Review the completed support ticket.

Sources and further reading

How Next Defence can help

Next Defence can help a plant verify which old SSH key remains trusted at a maintenance gateway and design a safe removal and rollback sequence. Scope the work with plant engineering under OT, IoT & Critical Infrastructure Security.

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].