From 36e1bd65548e8769be5f53ae325e55d366277a46 Mon Sep 17 00:00:00 2001 From: BlueTeamOps <1480956+blueteam0ps@users.noreply.github.com> Date: Fri, 29 Jan 2021 17:27:44 +1100 Subject: [PATCH] Added another named pipe based query Identifies default named pipes used by most popular post exploitation frameworks and sysadmin tools --- docs/tactics/lateral_movement.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/tactics/lateral_movement.md b/docs/tactics/lateral_movement.md index 600b15b..c3e146c 100644 --- a/docs/tactics/lateral_movement.md +++ b/docs/tactics/lateral_movement.md @@ -42,4 +42,11 @@ WHERE user = 'compromised.username'; SELECT datetime(mtime, 'unixepoch', 'localtime') AS EULA_accepted,path FROM registry WHERE path LIKE 'HKEY_USERS\%\Software\Sysinternals\PsExec\EulaAccepted'; -``` \ No newline at end of file +``` +## C2 & LM Named Pipes +**Description:** Identifies default named pipes used by most popular post exploitation frameworks. +**Author:** [Janantha Marasinghe](https://medium.com/@blueteamops) +**Query:** +```sql tab="Windows" +SELECT * from pipes WHERE name LIKE 'psexesvc%' OR name LIKE 'remcom%' OR name LIKE 'gruntsvc%' OR name LIKE 'msagent%' OR name LIKE 'status%' OR name LIKE 'csexecsvc%' OR name LIKE 'TestSVC%' OR name LIKE 'jaccdpqnvbrrxlaf' OR name LIKE 'Posh%'; +```