Remote Scheduled Task Creation
Contents
Remote Scheduled Task Creation¶
Metadata¶
Contributors |
Roberto Rodriguez @Cyb3rWard0g |
Creation Date |
2020/12/19 |
Modification Date |
2020/12/19 |
Tactics |
|
Techniques |
|
Tags |
None |
Dataset Description¶
This dataset represents a threat actor creating a scheduled task remotely using schtasks.
Datasets Downloads¶
Type |
Link |
---|---|
Host |
|
Network |
Adversary View¶
PS C:\windows\system32> C:\Windows\system32\cmd.exe /C schtasks /create /F /tn "\Microsoft\Windows\SoftwareProtectionPlatform\EventCacheManager" /tr "C:\Windows\system32\cmd.exe /C C:\Windows\System32\notepad.exe" /sc ONSTART /ru system /S WORKSTATION6
SUCCESS: The scheduled task "\Microsoft\Windows\SoftwareProtectionPlatform\EventCacheManager" has successfully been created.
PS C:\windows\system32>
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/schtask_create.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)