Last active
February 3, 2021 13:50
-
-
Save scudette/17a882d99b0fe6368d4c314501633d54 to your computer and use it in GitHub Desktop.
VQL for following along with this https://posts.specterops.io/utilizing-rpc-telemetry-7af9ea08a1d5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Details are found here https://posts.specterops.io/utilizing-rpc-telemetry-7af9ea08a1d5 | |
| -- This comes from svcctl.idl | |
| LET MethodLookup <= dict( | |
| `0x0`="CloseServiceHandle", | |
| `0x2`="DeleteService", | |
| `0x6`="QueryServiceStatus", | |
| `0x7`="SetServiceStatus", | |
| `0xC`="CreateServiceW", | |
| -- `0x37`="0x37", | |
| `0x10`="OpenServiceW", | |
| `0x11`="QueryServiceConfigW", | |
| `0x28`="QueryServiceStatusEx", | |
| `0x2A`="EnumServicesStatusExW", | |
| `0x2E`="ScQueryServiceTagInfo" | |
| -- `0x40`="0x40" | |
| ) | |
| SELECT System.TimeStamp AS Timestamp, | |
| get(item=MethodLookup, member=EventData.ProcNum) AS Procedure, | |
| EventData.NetworkAddress AS NetworkAddress, | |
| EventData.Endpoint AS Endpoint, | |
| EventData AS _EventData | |
| FROM watch_etw(guid='{6AD52B32-D609-4BE9-AE07-CE8DAE937E39}' | |
| -- Microsoft-Windows-RPC | |
| ) | |
| WHERE System.ID = 6 | |
| AND EventData | |
| AND EventData.InterfaceUuid = "{367abb81-9844-35f1-ad32-98f038001003}" | |
| AND Procedure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample output for the following commands (run locally this is why network address is NULL).