Troubleshooting
Why an industrial PC scans port 445 and what to check first
Short answer
Port 445 carries direct-hosted SMB, so an industrial PC sweeping 1,000 addresses in an hour is showing automated scan behavior, not proven infection and not proven innocence. Confirm the source address, map the connections to the owning process, and contain the machine away from office endpoints. On Windows XP, antivirus is a partial control at best; isolation and a supported platform are the fix.
On this page
Port 445 is direct-hosted SMB, the transport Windows uses for file and administrative sharing, and an industrial PC that contacted a thousand addresses through it in one hour is showing automated scan behavior. That earns containment and a real investigation: the port number alone proves neither a virus nor innocence, and years of trouble-free service prove nothing either. Work the case in order — confirm the source address really is the box PC, map the connections to the owning process, keep the machine away from office endpoints while you do, then settle the antivirus question for Windows XP against the automation vendor's compatibility data. The enclosure is industrial; the machine is a Windows computer on a network, and that is what sets the risk.
What that traffic actually is #
Microsoft's direct-hosting documentation describes NetBIOS-less SMB carried over TCP on port 445, with a four-byte header ahead of the SMB data; the same transport serves file shares, administrative shares and remote management. Two very different things sweep it across many hosts: network worms, which have propagated over SMB for two decades, and legitimate inventory, patch-management or backup tools that enumerate an address range one address at a time. The port number cannot separate those two. The owning process and the destination list can, which is why the steps below go to attribution before they go to cleanup.
Confirm the source address before touching the PC #
A report naming an IP address is a claim about network activity, not a confession from the machine. Establish the mapping first:
- Pull the underlying connection records, not just the alert summary: source address, destination addresses, timestamps, and whether each connection completed or was only attempted. Successes show what the box could actually reach; failures trace the sweep.
- Match the source address to the physical computer for the incident window: the address configured on its network adapter, the switch's MAC address table, DHCP or static-assignment records, and the asset list.
- Check for address changes or duplicates inside that window. If a second device could have held the address, resolve that ambiguity before anyone touches the box PC.
- Treat a confirmed mapping as enough to contain and enough to start endpoint work — but remember that an address identifies network activity, not the executable that generated it.
The discipline is the same one you apply when you verify SCADA data and command paths before assuming an attack: establish what actually happened on the wire before you name a cause.
Working the case: 1,000 destinations in one hour from an XP box PC #
The inputs, each with its source:
- Destinations contacted: 1,000 addresses, from the report you were handed.
- Elapsed time: one hour, which is 60 minutes or 3,600 seconds, from the same report.
- Transport: TCP to destination port 445, per the report — exactly what direct-hosted SMB uses.
- Platform: a Windows XP box PC attached to the office network.
The rule in words: a scan is a series of connection attempts spread across unrelated destinations, so turn the report into a rate and a per-attempt interval, then judge the destination set against what the application is documented to use.
The arithmetic:
- Rate: 1,000 destinations ÷ 60 minutes ≈ 17 destinations per minute.
- Interval: 3,600 seconds ÷ 1,000 attempts = 3.6 seconds per attempt.
The result: one new destination every 3.6 seconds, sustained the whole time. Nobody browsing shares produces that cadence; an inventory sweep or a worm fits it exactly.
The decision, with its threshold: any contacted destination outside the short list of servers the box PC's application is documented to use counts as unauthorized traffic. This case sits far outside that list, so contain the machine off the office network now, attribute the process next, and reconnect only after both steps are closed.
Map the connections to the owning process #
A scan is a behavior; the diagnosis comes from the process that owns the connections.
- While the traffic is live, read the operating system's connection table through its built-in network diagnostics — the view listing local address, remote address, connection state and the owning process ID — then resolve that ID to an executable path and to the service or scheduled task that starts it.
- If the sweep has already stopped, correlate the network records for the event window with the box PC's application, service and security logs instead.
- Compare the executable against your authorized software list: installation path, publisher information, service configuration, run schedule.
- Compare the destinations against the approved server list, or against the documented scope of any authorized inventory tool.
| What you find | What it means | What you do |
|---|---|---|
| Known executable, destinations match the documented servers | Normal SMB use | Check the polling frequency and tune the application if it is excessive |
| Authorized inventory tool with an excessive range | Configuration problem | Narrow its scope and re-monitor |
| Unknown executable or unexpected service, unrelated destinations | Suspected compromise | Keep containment and investigate the endpoint |
| No reliable attribution | Unexplained traffic | Collect endpoint evidence before any reconnection |
Contain the box PC away from the office network #
- Write down what the machine must reach to do its job — controllers, file servers, an engineering station — from its application configuration, before you change a single rule.
- Apply that list as an allowlist on the managed switch or firewall: required process traffic stays up, everything else toward office endpoints is denied. In IEC 62443 terms, you are putting the box PC into its own zone and shrinking the conduit to the office network down to the traffic the function needs.
- One safety rule governs the disconnect: if the box PC runs operator control or data collection, agree a controlled shutdown or an approved restricted operating mode with operations first — never pull the link mid-batch.
- Preserve the evidence as you go: export the network logs, endpoint logs and the alert, and record the time of every containment change so the timeline survives.
Blocking the traffic contains the symptom; it does not remove whatever sits on the disk generating the attempts. The allowlist discipline is the same one you use to connect a PLC to the plant network without exposing drives: permit the paths the function needs, deny the rest.
Settle the antivirus question for Windows XP #
- Accept the platform position first: Windows XP is out of security maintenance, and even the special update streams for its variants ended by May 14, 2019. An unpatched SMB stack is exactly what network worms have historically walked through.
- Antivirus on that platform is a partial control, not a fix. Vendor guidance for Windows 7 industrial systems already states that antivirus software no longer provides full protection there; XP, two generations older, earns the same statement with more force.
- Compatibility means two separate checks: the security product must still support the installed operating system with current engines and signatures — the lists covering XP name scanner builds that are themselves years old — and its configuration must coexist with the automation software rather than disrupting it.
- Run both checks through the automation vendor's compatibility tool, queried with the exact box PC model, Windows edition and service pack, automation software versions and the candidate security product. If no maintained product supports that combination — the usual result on XP — the decision is isolation plus platform migration, not an outdated scanner. That is the reasoning behind why layered OT security controls protect a network path: no single control carries the whole job.
- When the endpoint work shows the unit is due for replacement anyway, move the application to a fanless industrial mini PC on a supported operating system rather than reinstalling XP.
Questions asked
Is a port 445 scan proof of a virus?
No. That port carries direct-hosted SMB, and legitimate inventory, management and backup tools sweep it across address ranges as well. What separates a worm from an inventory job is the owning process and the destination list, so capture the connection table while the traffic is still live. A port number and a count open the investigation; attribution closes it.
Can the box PC infect the office network, or only catch something from it?
Both directions are real. A compromised XP machine on the office network is a foothold: SMB-based worms spread from an infected host to every reachable Windows computer, and the box PC also holds plant paths and credentials worth stealing. Containment protects both sides at once, the office from the box and the box from the office, until attribution is finished.
Will antivirus software break the automation application?
It can, even when the vendor lists the product as compatible. Real-time scanners quarantine application files, add latency to controller traffic and consume processor time on old hardware. Ask the automation vendor for its exclusion list covering program and data directories, schedule full scans outside production hours, and trial the configuration on a bench unit before the production machine gets it.
The scanning stopped hours ago. How do you attribute it now?
Rebuild the timeline. Export the firewall, switch and any intrusion-detection records for the event window, then match them against the box PC's system, service and scheduled-task logs: a service start aligned with the first attempt, or an executable whose creation date sits near the event, is the lead. Archive those logs before anyone reboots the machine.
The office uplink is the easiest cable to pull. Can you unplug it?
Yes, if no automation function depends on it: removing that one link ends the exposure to office endpoints while production continues untouched, and it is the fastest containment available. If something on the plant side needs that path, or the machine itself must stop, make it a planned controlled shutdown with operations instead. Record the time either way so the incident timeline stays honest.