Skip to content

Adam-KD/sql-soc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sql-soc

Learning SQL through hands-on SOC analysis - notes, structured practice, and investigative projects built around real attack scenarios.

Projects

Brute Force Investigation

Simulated investigation of a credential brute force attack against internal systems. Uses authentication logs and threat intelligence data to identify attackers, confirm breaches, and assess lateral movement.

  • Multi-table queries with JOIN and subqueries
  • Threat intel enrichment via cross-referencing
  • Full findings report with IOCs and recommendations

Brute Force

DNS Exfiltration Investigation

Simulated investigation of DNS-based data exfiltration from a compromised internal host. Uses Zeek-style DNS query logs to detect encoded subdomains, beaconing intervals, and C2 communication patterns.

  • Behavioral detection without simple pass/fail indicators
  • Window functions (LAG) for beaconing interval analysis
  • String parsing with SUBSTR and INSTR for domain extraction
  • Full findings report with IOCs, recommendations, and detection limitations

DNS Exfiltration

Skills Covered

SELECT WHERE GROUP BY COUNT ORDER BY LIMIT DISTINCT INNER JOIN LEFT JOIN Subqueries CASE WHEN Aggregate Functions Window Functions LAG SUBSTR INSTR LENGTH

Part of a broader SOC portfolio

  • soc-simulations - attack simulations documented in a controlled virtual lab
  • python-soc - Python automation tools for SOC workflows

About

Learning SQL through SOC analysis - Notes, exercises, and a publishable log investigation script.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors