Unrecognized remote access in the log of a relay, a gateway or a server is not automatically an attack: it may be a vendor, an automatic task or an unrecorded change. Until proven otherwise, it is treated as an incident. Classify it by account, source, time and actions, preserve the evidence before restarting anything, contain it by revoking the account or the route, and close out the cause.
Symptom
While reviewing the log of a relay, a gateway, a remote access server or a firewall, you find a session nobody recognizes: an account that does not belong to whoever worked that day, a connection outside working hours, an unknown source, a successful login after several failed attempts, or a configuration change nobody remembers making. The first reaction is usually alarm or, the opposite, to play it down. Neither helps. What is needed is a short method that classifies the event without destroying the evidence. To understand how remote access to a substation should be designed, see secure remote access to substations.
Likely causes, from most to least likely
| Cause | How to recognize it | What confirms or rules it out |
|---|---|---|
| Legitimate access that was not logged (vendor, contractor, operator) | The account, source and time match a known person or company | Compare with work orders, emails, the logbook and the day’s permits |
| Shared, vendor or service account that is still active | The account has existed for a long time and has not been reviewed | Review the account list and last use; see account and password management in IEDs |
| Automatic task or maintenance tool that connects on its own | Periodic sessions at the same time with the same pattern | Review scheduled tasks, monitoring agents and the vendor’s remote services |
| Factory or weak credentials exploited | Successful access with a default account or a known password | Check whether the account still has the initial password |
| Remote service or port open that should not be | The access came in through a route the design does not allow for | Review firewall rules and listening ports; see remote port left open that nobody configured |
| Credentials of a real user stolen or reused | Legitimate account from an unusual source, country or time | Contact the account holder and compare the source with their usual access |
| Wrong device clock making the access look out of hours | The “overnight” access matches a time offset | Compare the device clock with real time; see event time offset between the relay and SCADA |
| Scanning or brute-force attempt that did not get in | Many failed attempts, none successful | Confirm in the log that there is no successful login |
| Real intrusion | Several of the indicators above, abnormal actions, configuration or setting changes | Full analysis of logs and traffic by specialists |
How to diagnose it
- Note the time and do not restart anything. Restarting devices, rotating logs or resetting passwords before exporting can erase the evidence that lets you decide whether it was legitimate.
- Preserve the evidence. Export the logs of the device, the firewall, the remote access server and SCADA that cover the period, with their timestamps. Calculate and keep their verification hash if the site’s procedure requires it, and store them away from the compromised device.
- Answer five questions from the log: which account, from what source, at what time and for how long, to which device, and what it did (commands, files downloaded, setting changes, operations).
- Tell an attempt from an access. A failed attempt shows that something is knocking at the door; a successful login shows that someone got in. The consequences differ.
- Cross-check against what is known: work orders, maintenance windows, vendor emails, staff shifts, scheduled tasks. Many cases close here.
- Ask the account holder through a channel other than the same system whether they used the access.
- Review what changed after the access: settings, users, firewall rules, programs, operations executed. Compare with the last approved configuration backup.
- Verify the device clocks before drawing conclusions about “out of hours”.
- Decide the classification: legitimate but undocumented, poor practice (shared or uncontrolled account), unsuccessful attempt, or possible intrusion. This decision does or does not trigger the incident response plan; see OT incident response plan.
Illustrative example
The log of a remote access server shows a successful session from a vendor account, on a Saturday at three in the morning, lasting forty minutes and touching a gateway. Nobody had scheduled it. The work orders do not mention it, but the vendor confirms by email that its monitoring tool connects every week at that time to download diagnostics, and that staff were never told. It is classified as legitimate but undocumented access. The action is not just to close the case: the window is formalized, the account is limited to that function and the agreement is recorded. This is an illustrative example.
What to do
- Legitimate access not logged: document it, limit the account to its function, define windows and prior approval, and record each session in the access logbook.
- Shared or service account: create individual accounts, remove the shared ones, rotate the credentials and review privileges.
- Weak or factory credentials: change them and check whether other devices are in the same situation.
- Unplanned route: close the route, correct the firewall rule and verify that access goes only through the controlled point.
- Stolen credentials: revoke them, require a second factor where possible and review what the account did.
- Possible intrusion: activate the response plan, isolate by segment, not by powering off, and bring in specialists; assess the incident reporting that applies to your installation.
- In all cases: check the settings and configurations of the devices that were touched against their approved copy; network segmentation limits the scope, see OT network segmentation: zones and conduits.
Field checklist
- I noted the detection time and did not restart or reset anything.
- I exported the logs of the device, the firewall and the remote access server.
- I know the account, source, time, duration, device and actions of the session.
- I told a failed attempt from a successful session.
- I cross-checked against work orders, the logbook and scheduled tasks.
- I verified with the account holder through another channel.
- I compared configuration and settings with the last approved copy.
- I checked that the device clocks are correct.
- I classified the case and informed the security officer.
- I closed out the cause: account, route, credential or procedure.
What not to do
- Do not power off or disconnect protection or control devices in service to “cut” the access without operations authorization: it can leave the installation without protection or supervision.
- Do not reset or restart before preserving the logs.
- Do not confront or accuse a person or vendor before cross-checking the log.
- Do not change passwords live on devices in service without coordination, because it can cut SCADA communications.
- Do not use the same compromised channel to coordinate the response.
- Do not consider the case closed just because the session ended: confirm what changed and that the route is now controlled.
- Do not attempt a counterattack or investigate the source on your own with tools that touch other people’s systems.
When to call us
Call us when the access comes from an unknown source, when there are setting changes or operations nobody made, when logs are missing, or when you need to redesign remote access with individual accounts, windows and segmentation. We review the configuration of the devices and of the access, and leave the procedure documented. We configure it remotely: request configuration support.
Frequent problems
Login from an unknown location
How it shows up. The remote access server, the VPN or the gateway flags a login with a legitimate account from a country, city or network that does not match that user, or from two distant places within an impossible interval.
Likely causes, in order.
- Approximate or wrong location. IP geolocation is an estimate: mobile networks, internet providers and VPN services often show a place different from the real one. Many alerts end here.
- The user themselves on another route: mobile data, a personal VPN, a trip or a contractor’s access.
- Shared account or one used by an authorized third party connecting from their office.
- Stolen or guessed credential. It shows up as earlier failed attempts from the same source or from many sources, unusual hours and actions the user would not take.
How to diagnose. First, ask the user through a channel other than the system (a call or message to a known number) whether it was them. Check whether there were failures before the success, what the session did (devices touched, files downloaded, changes) and whether authentication included a second factor.
What to do. If the user recognizes it, document the source and, where appropriate, restrict access to a known source or range. If they do not, close the sessions, reset the credential, require a second factor and review what the session did before closing the case; if field devices were accessed, follow the incident plan and compare their configuration with the backup. For account protection in relays, see Relay access levels and passwords; for the general framework, Cybersecurity of substations and plants.
Related guides
- Secure remote access to substations
- Remote port left open on an IED that nobody configured
- Account and password management in IEDs
- OT incident response plan
- Event logging and SIEM in substations
References
- NIST, SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security, 2023.
- IEC 62443-3-3, Industrial communication networks: Network and system security: Part 3-3: System security requirements and security levels.
Frequently asked questions
Is access that nobody recognizes always an attack?
No. It is often a vendor with an account that is still active, a maintenance tool that connects on its own, a contractor whose work was not logged, or a failed scanning attempt. But until proven otherwise, it is treated as a possible incident and the evidence is kept.
What should be done first?
Preserve the evidence: export the logs of the device, the firewall and the remote access server before restarting, resetting or changing anything, and note the time. Then classify the access and contain it through the account or route that allowed it, following the site's response plan.
Does it have to be reported?
It depends on the classification and on which rules apply to your installation, such as the grid code or utility requirements. The site security officer decides, together with the response plan, whether the case triggers a report.