mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
ssa test ci cd
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
11/24/2021 2:28:14 AM
|
||||
LogName=Security
|
||||
SourceName=Microsoft Windows security auditing.
|
||||
EventCode=4688
|
||||
EventType=0
|
||||
Type=Information
|
||||
ComputerName=win-dc-725.attackrange.local
|
||||
TaskCategory=Process Creation
|
||||
OpCode=Info
|
||||
RecordNumber=257876
|
||||
Keywords=Audit Success
|
||||
Message=A new process has been created.
|
||||
|
||||
Creator Subject:
|
||||
Security ID: ATTACKRANGE\Administrator
|
||||
Account Name: Administrator
|
||||
Account Domain: ATTACKRANGE
|
||||
Logon ID: 0x55E621
|
||||
|
||||
Target Subject:
|
||||
Security ID: NULL SID
|
||||
Account Name: -
|
||||
Account Domain: -
|
||||
Logon ID: 0x0
|
||||
|
||||
Process Information:
|
||||
New Process ID: 0xca4
|
||||
New Process Name: C:\Windows\System32\cmd.exe
|
||||
Token Elevation Type: %%1936
|
||||
Mandatory Label: Mandatory Label\High Mandatory Level
|
||||
Creator Process ID: 0x13a4
|
||||
Creator Process Name: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
|
||||
Process Command Line: "C:\Windows\system32\cmd.exe" /c "pypykatz live registry"
|
||||
|
||||
Token Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.
|
||||
|
||||
Type 1 is a full token with no privileges removed or groups disabled. A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.
|
||||
|
||||
Type 2 is an elevated token with no privileges removed or groups disabled. An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator. An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.
|
||||
|
||||
Type 3 is a limited token with administrative privileges removed and administrative groups disabled. The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator.
|
||||
11/24/2021 2:28:15 AM
|
||||
LogName=Security
|
||||
SourceName=Microsoft Windows security auditing.
|
||||
EventCode=4688
|
||||
EventType=0
|
||||
Type=Information
|
||||
ComputerName=win-dc-725.attackrange.local
|
||||
TaskCategory=Process Creation
|
||||
OpCode=Info
|
||||
RecordNumber=257875
|
||||
Keywords=Audit Success
|
||||
Message=A new process has been created.
|
||||
|
||||
Creator Subject:
|
||||
Security ID: ATTACKRANGE\Administrator
|
||||
Account Name: Administrator
|
||||
Account Domain: ATTACKRANGE
|
||||
Logon ID: 0x55E621
|
||||
|
||||
Target Subject:
|
||||
Security ID: NULL SID
|
||||
Account Name: -
|
||||
Account Domain: -
|
||||
Logon ID: 0x0
|
||||
|
||||
Process Information:
|
||||
New Process ID: 0x62c
|
||||
New Process Name: C:\Windows\System32\reg.exe
|
||||
Token Elevation Type: %%1936
|
||||
Mandatory Label: Mandatory Label\High Mandatory Level
|
||||
Creator Process ID: 0xf6c
|
||||
Creator Process Name: C:\Windows\System32\cmd.exe
|
||||
Process Command Line: reg save HKLM\security C:\Users\ADMINI~1\AppData\Local\Temp\security
|
||||
|
||||
Token Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.
|
||||
|
||||
Type 1 is a full token with no privileges removed or groups disabled. A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.
|
||||
|
||||
Type 2 is an elevated token with no privileges removed or groups disabled. An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator. An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.
|
||||
|
||||
Type 3 is a limited token with administrative privileges removed and administrative groups disabled. The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator.
|
||||
11/24/2021 2:28:16 AM
|
||||
LogName=Security
|
||||
SourceName=Microsoft Windows security auditing.
|
||||
EventCode=4688
|
||||
EventType=0
|
||||
Type=Information
|
||||
ComputerName=win-dc-725.attackrange.local
|
||||
TaskCategory=Process Creation
|
||||
OpCode=Info
|
||||
RecordNumber=257874
|
||||
Keywords=Audit Success
|
||||
Message=A new process has been created.
|
||||
|
||||
Creator Subject:
|
||||
Security ID: ATTACKRANGE\Administrator
|
||||
Account Name: Administrator
|
||||
Account Domain: ATTACKRANGE
|
||||
Logon ID: 0x55E621
|
||||
|
||||
Target Subject:
|
||||
Security ID: NULL SID
|
||||
Account Name: -
|
||||
Account Domain: -
|
||||
Logon ID: 0x0
|
||||
|
||||
Process Information:
|
||||
New Process ID: 0x1258
|
||||
New Process Name: C:\Windows\System32\reg.exe
|
||||
Token Elevation Type: %%1936
|
||||
Mandatory Label: Mandatory Label\High Mandatory Level
|
||||
Creator Process ID: 0xf6c
|
||||
Creator Process Name: C:\Windows\System32\cmd.exe
|
||||
Process Command Line: reg save HKLM\system C:\Users\ADMINI~1\AppData\Local\Temp\system
|
||||
|
||||
Token Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.
|
||||
|
||||
Type 1 is a full token with no privileges removed or groups disabled. A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.
|
||||
|
||||
Type 2 is an elevated token with no privileges removed or groups disabled. An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator. An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.
|
||||
|
||||
Type 3 is a limited token with administrative privileges removed and administrative groups disabled. The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator.
|
||||
@@ -20,7 +20,7 @@ SLEEP_TIME_SEND_DATA = 30
|
||||
WAIT_CYCLE = 20
|
||||
MAX_EXECUTION_TIME_LIMIT = 600 # per detection test
|
||||
|
||||
TEST_DATASET = 'windows-security_small.txt'
|
||||
TEST_DATASET = 'windows-security_debug.txt'
|
||||
|
||||
|
||||
class SSADetectionTesting:
|
||||
|
||||
@@ -126,6 +126,8 @@ def read_data(file_path):
|
||||
if i == count and tmp_counter > 10:
|
||||
data.append(event)
|
||||
|
||||
print("data parsed into individual events:")
|
||||
print(data)
|
||||
return data
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user