Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lateral_movement.md #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docs/tactics/lateral_movement.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ FROM processes proc
JOIN pipes pipe ON proc.pid=pipe.pid;
```

## CobaltStrike Default Named Pipes
**Description:** During various tests, it observed that the created pipe displayed the same pattern that can be detected by this regex: MSSE-[0-9]{4}-server .Cobalt Strike users cannot change the default value of these pipes without accessing and modifying the source code configuration of Cobalt Strike.

- https://www.sekoia.io/en/hunting-and-detecting-cobalt-strike/

**Author:** [@samira_hoseini](https://github.com/samisecure)

**Query:**

```sql tab="Windows"
SELECT proc.parent AS process_parent, proc.path AS process_path, proc.pid AS process_id, proc.cwd AS process_directory, pipe.pid AS pipe_pid, pipe.name AS pipe_name
FROM processes proc
JOIN pipes pipe ON proc.pid=pipe.pid;
WHERE pipe.name LIKE '*MSSE-[0-9]{4}-server*'
```
## Logged in users
**Description:** Get all logged on users. Helpful if you already suspect a compromised account and want to quickly identify where that account is in use.

Expand All @@ -42,4 +57,4 @@ WHERE user = 'compromised.username';
SELECT datetime(mtime, 'unixepoch', 'localtime') AS EULA_accepted,path
FROM registry
WHERE path LIKE 'HKEY_USERS\%\Software\Sysinternals\PsExec\EulaAccepted';
```
```