If You Want to Become a SOC Analyst, Learn These Linux Commands First
Every single day at Inhok, I use Linux. Not as a hobby. As core SOC work. Log analysis, process monitoring, threat hunting, incident investigation — all Linux command line.
Most SOC training focuses on SIEM tools (Splunk, Wazuh). Nobody teaches Linux. But 70% of real SOC work happens in the terminal, not the GUI. You need to know Linux deeply.
This post covers 40+ Linux commands I use constantly. Not theoretical knowledge. Real commands, real use cases, real impact on SOC work.
Log Analysis Commands (The Core of SOC Work)
Real use case: Attacker attempted 500+ failed logins last night. This command found them immediately.
Real use case: Monitoring SSH brute force attack in real-time during incident response.
Real use case: Found top 10 source IPs attacking web server. 1 IP had 10,000 requests.
Real use case: Extracted specific time range from syslog without loading entire file.
Figure 1. Log analysis is one of the most common tasks in a Security Operations Center (SOC). Commands such as grep, tail -f, and awk help analysts quickly locate failed logins, authentication errors, and suspicious events within large Linux log files.
Process Investigation Commands
Real use case: Found suspicious process using 90% CPU. Killed it immediately.
Real use case: Found unauthorized SSH service running on non-standard port.
Real use case: Traced suspicious process and found it was exfiltrating data to C2 server.
Figure 2. During incident response, SOC analysts use commands such as ps, top, htop, and lsof to identify suspicious processes, monitor resource usage, and determine which applications are communicating over the network.
File Analysis Commands
Real use case: Found "PDF" that was actually a Windows executable.
Real use case: Checked hash against VirusTotal database. Found it was known ransomware.
Real use case: Found C2 server URL hidden in malware binary.
Network Investigation Commands
Real use case: Found 5 services listening on 0.0.0.0 (all interfaces). 2 shouldn't be exposed.
Real use case: Quickly identified all HTTPS listeners during incident response.
Real use case: Captured traffic from compromised system. Found data exfiltration to attacker IP.
Figure 3. Network investigation commands such as netstat, ss, and tcpdump help analysts identify open ports, monitor active connections, and capture packets during security investigations and incident response.
Figure 4. A typical SOC investigation begins with an alert, followed by log analysis, process investigation, network analysis, evidence collection, and incident response. Linux command-line tools play a central role throughout each stage of the investigation.
0 Comments