Covenant SharpSC Query#

Metadata#

Contributors

Roberto Rodriguez @Cyb3rWard0g

Creation Date

2020/08/06

Modification Date

2020/08/06

Tactics

TA0008

Techniques

T1021.002

Tags

RPC EnumServiceStatusW,SMB Svcctl

Dataset Description#

This dataset represents a threat actor leveraging the RPC method EnumServiceStatusW over SMB svcctl to query the status of a service on a remote endpoint…

Simulation Metadata#

Tools#

type

Name

Module

C2

Covenant

SharpSC

Adversary View#

(wardog) > SharpSC /command:"action=query computername=WORKSTATION6 service=ikeext"

[+] Service information for IKEEXT on WORKSTATION6:

  DisplayName: IKE and AuthIP IPsec Keying Modules
  ServiceName: IKEEXT
  Status     : Stopped
  CanStop    : False

Explore Datasets#

Download & Decompress Dataset#

import requests
from zipfile import ZipFile
from io import BytesIO

url = https://raw.githubusercontent.com/OTRF/Security-Datasets/master/datasets/atomic/windows/lateral_movement/host/covenant_sharpsc_query_dcerpc_smb_svcctl.zip
zipFileRequest = requests.get(url)
zipFile = ZipFile(BytesIO(zipFileRequest.content))
datasetJSONPath = zipFile.extract(zipFile.namelist()[0])

Read JSON File#

from pandas.io import json

df = json.read_json(path_or_buf=datasetJSONPath, lines=True)

Access Security Events#

df.groupby(['Channel']).size().sort_values(ascending=False)