What is this computer talking to?¶
When a computer behaves strangely, switching it off stops whatever is happening and also wipes the evidence, which the bank or the police may ask for later. A few commands list which programs are connected to which addresses at that moment. Run them once on a quiet day, before anything has gone wrong, to know what the normal list looks like.
Windows¶
In a Command Prompt opened as administrator:
netstat -ano | findstr ESTABLISHED
The last column is the process number. The program behind a number:
tasklist /FI "PID eq 1234"
Mac¶
In Terminal:
lsof -i | grep ESTABLISHED
The output shows the program name, its process number and the remote address.
Linux¶
ss -tnp
Reading the list¶
There are far more connections than expected, and almost all of them belong to the browser, cloud sync, mail and update services. What stands out:
an unknown program name;
a name that looks like a system program, running from an odd folder;
a program with no open window that keeps a connection open.
A WHOIS lookup shows who an address is registered to. For most European addresses that is the RIPE Database, which names the organisation holding the address: often an internet provider, or a cloud company that lends the address to a customer. Malware also runs on large cloud providers.
Saving it¶
Save the list to a file for a report:
Windows:
netstat -ano > connections.txtMac and Linux:
lsof -i > connections.txt
Add screenshots, times and case numbers.