UK Water Utility

Detect SQL Server spawning a command shell

From Red Team findings to SQL and SMB detections

The assessment demonstrated abuse of xp_cmdshell to execute operating-system commands through Microsoft SQL Server. I addressed and monitored SQL server coverage and built an alert for the parent-child relationship between the SQL Server process and a spawned command shell. This focuses detection on the host execution behaviour associated with the finding.

Return to the full story ←

Your exploration

Viewed history

Saved only in this browser.

Ask my portfolio

Ask about my work.

Ask about an investigation, a technology or my contribution. Answers link to the relevant case and technical detail.

Every answer links to the work.
How this works

When AI is connected, your question, recent questions and relevant published pages are sent to MiniMax to select supporting passages. Otherwise, this searches the site directly. Answers quote the saved website and link to their sources. This website does not save chat transcripts. Clearing or leaving the page clears this conversation.