Recognising Unusual Behaviour
- Your Chromebook's fan spins up frequently even when you're not doing anything demanding, indicating high CPU usage within the container.
- The Linux terminal opens by itself or displays unfamiliar messages without your interaction.
- Applications within your Linux container crash more often than usual or refuse to launch.
- You notice new, unfamiliar files or directories appearing in your Linux file system, especially in unexpected locations like your home directory (
/home/your_username). - Your Chromebook's battery drains significantly faster when your Linux container is running, suggesting abnormal resource consumption.
Tip
Checking for Rogue Processes
- Open your Linux terminal. You can usually find this by searching for 'Terminal' in your Chromebook's app launcher.
- Type
topand press Enter to see a live view of running processes, ordered by CPU usage. Look for processes with unfamiliar names or unusually high resource consumption. - Alternatively, use
ps auxto see a snapshot of all running processes. Scroll through the output and look for any processes that you don't recognise, especially those running asrootor with unusual command lines. - To check network connections, which could indicate data being sent elsewhere, use
netstat -tuln. Look for unexpected outgoing connections, especially to unfamiliar IP addresses or ports. - If you spot anything suspicious, make a note of the process ID (PID) and the command being run, but do not terminate it yet, as this might alert an attacker.
Important
Investigating File System Integrity
- Use the command
ls -la /tmpto list the contents of the temporary directory. Look for any unexpected executable files or scripts. - Examine cron jobs, which are scheduled tasks, by typing
crontab -l. Malicious entries could allow an attacker to run commands periodically. - Check the
/etcdirectory for recently modified or unfamiliar configuration files usingls -lat /etc. Pay close attention to files ending in.confor.sh. - Review logs for suspicious activity. Common log locations include
/var/log/syslogand/var/log/auth.log(for authentication attempts). Usegrepto search for keywords like 'error', 'failed', or unfamiliar usernames. - Look for unusual executables or scripts in typical user directories like
/home/your_username/.local/binor/usr/local/bin.
Good to know
Analysing Network Activity
- Open your Linux terminal.
- To see all active network connections, use the command
ss -tulnpa. This provides a comprehensive list of TCP and UDP connections. - Look for connections to unfamiliar IP addresses or unusual port numbers. Research any suspicious IP addresses using online tools to determine their origin.
- Pay attention to processes listed as 'LISTEN' that you don't recognise, as these could indicate a backdoor allowing remote access.
- If you suspect data exfiltration, observe the 'Sent-Q' and 'Recv-Q' columns in
ssoutput for unusually high numbers on unfamiliar connections, which might suggest large amounts of data being transferred. - You can also use
ping a_suspicious_ip_addressto test connectivity to an unknown address without revealing too much information to a potential attacker.
Important
Was this guide helpful?
Know someone who needs this? Send them the guide.
Written by
Jordan DicksonFounder, CyberSecurityGuides
Founder of CyberSecurityGuides, writing practical, jargon-free guides that help everyday people recover from and protect against online attacks.
Reviewed by CSG Security Engineers