SOC Incident Report: Investigation of a Volt Typhoon-Inspired Intrusion
A Complete Write-Up Demonstrating Real SOC Investigation Methodology
SQL (Structured Query Language) is a powerful tool used to create, interact with, and retrieve information from databases. As a cybersecurity professional, SQL queries are essential for filtering through large volumes of log data — helping with everything from threat hunting and root cause analysis, to asset enumeration.
This exercise demonstrates how to use SQL queries to retrieve specific data from log tables based on real-world scenarios.
A potential security incident was flagged due to suspicious login activity after normal business hours.
SELECT *
FROM log_in_attempts
WHERE login_time > '18:00' AND success = FALSE;
SELECT * retrieves all columns from the log_in_attempts table.WHERE login_time > '18:00' filters records to those occurring after 6 PM.AND success = FALSE ensures only failed login attempts are included.To investigate a suspicious event, I needed all login activity from a particular day and the day before.
SELECT *
FROM log_in_attempts
WHERE login_date = '2022-05-09' OR login_date = '2022-05-08';
log_in_attempts table to include only entries from May 8th or 9th, 2022.The focus of this investigation was to isolate login attempts that did not originate in Mexico.
SELECT *
FROM log_in_attempts
WHERE NOT country LIKE 'MEX%';
country column starts with “MEX”, covering entries like MEX and MEXICO.NOT ... LIKE 'MEX%' ensures we only see non-Mexico logins.For a machine update task, I needed to identify employees working in the Marketing department and located in the East office.
SELECT *
FROM employees
WHERE department = 'Marketing' AND office LIKE 'East%';
Marketing department."East" (e.g., East-170, East-320).To perform a department-specific update, I needed information about employees in either Finance or Sales.
SELECT *
FROM employees
WHERE department = 'Finance' OR department = 'Sales';
Finance or Sales departments.An update had already been rolled out to the IT department, so I needed to find all other employees.
SELECT *
FROM employees
WHERE NOT department = 'Information Technology';
Information Technology department, returning everyone else.These examples illustrate how SQL queries help cybersecurity professionals quickly extract relevant data from vast datasets. Whether it’s detecting unauthorized access, tracking login patterns, or organizing machine updates, SQL provides the precision and speed necessary for effective cybersecurity operations.