And here's the account creation event
{
"_index": ".ds-winlogbeat-8.0.0-2024.07.30-000570",
"_id": "Fsz7BJEBTE3soZyKZrkQ",
"_version": 1,
"_score": 0,
"_source": {
"agent": {
"name": "XXXXXXXX",
"id": "82295858-5992-45e2-bce1-966e78fb8d42",
"type": "winlogbeat",
"ephemeral_id": "fd18652b-adeb-49b1-a2e2-97239f97df8a",
"version": "8.0.0"
},
"@timestamp": "2024-07-30T18:50:59.547Z",
"winlog": {
"computer_name": "XXXXXX.XXXXXXXXXX.XXX",
"process": {
"pid": 672,
"thread": {
"id": 1096
}
},
"keywords": [
"Audit Success"
],
"logon": {
"id": "0x3e7"
},
"channel": "Security",
"event_data": {
"TargetSid": "S-1-5-21-2366788312-814031040-1301217162-1086",
"NewUACList": [
"LOCKOUT",
"SCRIPT"
],
"SidHistory": "-",
"LogonHours": "%%1797",
"ScriptPath": "%%1793",
"DisplayName": "%%1793",
"HomePath": "%%1793",
"SubjectDomainName": "XXXXXXXXXX",
"AllowedToDelegateTo": "-",
"TargetDomainName": "XXXXXXXXX",
"PrivilegeList": "-",
"UserWorkstations": "%%1793",
"SamAccountName": "lenovo_tmp_ygauCNFY",
"UserParameters": "%%1793",
"HomeDirectory": "%%1793",
"OldUacValue": "0x0",
"SubjectLogonId": "0x3e7",
"NewUacValue": "0x15",
"PrimaryGroupId": "513",
"AccountExpires": "%%1794",
"ProfilePath": "%%1793",
"UserAccountControl": [
"2080",
"2082",
"2084"
],
"SubjectUserName": "XXXXXXXX",
"PasswordLastSet": "%%1794",
"UserPrincipalName": "-",
"TargetUserName": "lenovo_tmp_ygauCNFY",
"SubjectUserSid": "S-1-5-18"
},
"opcode": "Info",
"record_id": "529299",
"event_id": "4720",
"task": "User Account Management",
"provider_guid": "{54849625-5478-4994-a5ba-3e3b0328c30d}",
"activity_id": "{41b78ff5-d8e1-0002-f890-b741e1d8da01}",
"api": "wineventlog",
"provider_name": "Microsoft-Windows-Security-Auditing"
},
"ecs": {
"version": "1.12.0"
},
"related": {
"user": [
"XXXXXXXXXXX",
"lenovo_tmp_ygauCNFY"
]
},
"log": {
"level": "information"
},
"host": {
"name": "XXXXXXXX.XXXXXXXXXX.XXX"
},
"event": {
"ingested": "2024-07-30T18:51:10.223631818Z",
"code": "4720",
"provider": "Microsoft-Windows-Security-Auditing",
"created": "2024-07-30T18:51:10.110Z",
"kind": "event",
"action": "added-user-account",
"type": [
"user",
"creation"
],
"category": [
"iam"
],
"outcome": "success"
},
"message": "A user account was created.\n\nSubject:\n\tSecurity ID:\t\tS-1-5-18\n\tAccount Name:\t\tXXXXXXXXXXX\n\tAccount Domain:\t\tXXXXXXXXXXXX\n\tLogon ID:\t\t0x3E7\n\nNew Account:\n\tSecurity ID:\t\tS-1-5-21-2366788312-814031040-1301217162-1086\n\tAccount Name:\t\tlenovo_tmp_ygauCNFY\n\tAccount Domain:\t\tXXXXXXXXXX\n\nAttributes:\n\tSAM Account Name:\tlenovo_tmp_ygauCNFY\n\tDisplay Name:\t\t<value not set>\n\tUser Principal Name:\t-\n\tHome Directory:\t\t<value not set>\n\tHome Drive:\t\t<value not set>\n\tScript Path:\t\t<value not set>\n\tProfile Path:\t\t<value not set>\n\tUser Workstations:\t<value not set>\n\tPassword Last Set:\t<never>\n\tAccount Expires:\t\t<never>\n\tPrimary Group ID:\t513\n\tAllowed To Delegate To:\t-\n\tOld UAC Value:\t\t0x0\n\tNew UAC Value:\t\t0x15\n\tUser Account Control:\t\n\t\tAccount Disabled\n\t\t'Password Not Required' - Enabled\n\t\t'Normal Account' - Enabled\n\tUser Parameters:\t<value not set>\n\tSID History:\t\t-\n\tLogon Hours:\t\tAll\n\nAdditional Information:\n\tPrivileges\t\t-",
"user": {
"domain": "XXXXXXXXXXXXX",
"name": "XXXXXXXX",
"id": "S-1-5-18",
"target": {
"domain": "XXXXXXXXX",
"name": "lenovo_tmp_ygauCNFY",
"id": "S-1-5-21-2366788312-814031040-1301217162-1086"
}
},
"tags": [
"forwarded"
]
},
"fields": {
"winlog.event_data.UserAccountControl": [
"2080",
"2082",
"2084"
],
"winlog.event_data.SidHistory": [
"-"
],
"event.category": [
"iam"
],
"winlog.event_data.NewUACList": [
"LOCKOUT",
"SCRIPT"
],
"winlog.provider_guid": [
"{54849625-5478-4994-a5ba-3e3b0328c30d}"
],
"winlog.provider_name": [
"Microsoft-Windows-Security-Auditing"
],
"winlog.computer_name": [
"XXXXXXXX.XXXXXXXXXXXXX.XXX"
],
"user.target.id": [
"S-1-5-21-2366788312-814031040-1301217162-1086"
],
"winlog.process.pid": [
672
],
"winlog.event_data.UserParameters": [
"%%1793"
],
"winlog.keywords": [
"Audit Success"
],
"winlog.record_id": [
"529299"
],
"winlog.logon.id": [
"0x3e7"
],
"log.level": [
"information"
],
"agent.name": [
"XXXXXXXX"
],
"winlog.event_data.AllowedToDelegateTo": [
"-"
],
"winlog.event_data.HomePath": [
"%%1793"
],
"host.name": [
"XXXXXXXX.XXXXXXXXXXXX.XXX"
],
"user.target.name.text": [
"lenovo_tmp_ygauCNFY"
],
"event.kind": [
"event"
],
"winlog.activity_id": [
"{41b78ff5-d8e1-0002-f890-b741e1d8da01}"
],
"event.outcome": [
"success"
],
"winlog.event_data.OldUacValue": [
"0x0"
],
"winlog.event_data.UserWorkstations": [
"%%1793"
],
"winlog.event_data.TargetUserName": [
"lenovo_tmp_ygauCNFY"
],
"user.id": [
"S-1-5-18"
],
"agent.hostname": [
"XXXXXXX"
],
"related.user": [
"XXXXXXXXXXX",
"lenovo_tmp_ygauCNFY"
],
"tags": [
"forwarded"
],
"user.target.name": [
"lenovo_tmp_ygauCNFY"
],
"event.provider": [
"Microsoft-Windows-Security-Auditing"
],
"event.code": [
"4720"
],
"agent.id": [
"82295858-5992-45e2-bce1-966e78fb8d42"
],
"ecs.version": [
"1.12.0"
],
"event.created": [
"2024-07-30T18:51:10.110Z"
],
"winlog.event_data.ScriptPath": [
"%%1793"
],
"agent.version": [
"8.0.0"
],
"winlog.event_data.SubjectUserSid": [
"S-1-5-18"
],
"winlog.process.thread.id": [
1096
],
"winlog.event_data.PrivilegeList": [
"-"
],
"user.name": [
"XXXXXXXXX"
],
"winlog.event_data.SamAccountName": [
"lenovo_tmp_ygauCNFY"
],
"winlog.event_data.PrimaryGroupId": [
"513"
],
"winlog.event_data.AccountExpires": [
"%%1794"
],
"winlog.event_data.DisplayName": [
"%%1793"
],
"agent.type": [
"winlogbeat"
],
"winlog.event_data.SubjectLogonId": [
"0x3e7"
],
"winlog.event_data.TargetSid": [
"S-1-5-21-2366788312-814031040-1301217162-1086"
],
"winlog.event_data.ProfilePath": [
"%%1793"
],
"winlog.api": [
"wineventlog"
],
"winlog.event_data.NewUacValue": [
"0x15"
],
"user.target.domain": [
"XXXXXXXXX"
],
"user.domain": [
"XXXXXXXXXXXXXX"
],
"winlog.event_data.UserPrincipalName": [
"-"
],
"winlog.task": [
"User Account Management"
],
"winlog.event_data.HomeDirectory": [
"%%1793"
],
"winlog.event_data.SubjectUserName": [
"XXXXXXXXXXX"
],
"message": [
"A user account was created.\n\nSubject:\n\tSecurity ID:\t\tS-1-5-18\n\tAccount Name:\t\tXXXXXXXX\n\tAccount Domain:\t\tXXXXXXXXXXXXXX\n\tLogon ID:\t\t0x3E7\n\nNew Account:\n\tSecurity ID:\t\tS-1-5-21-2366788312-814031040-1301217162-1086\n\tAccount Name:\t\tlenovo_tmp_ygauCNFY\n\tAccount Domain:\t\tXXXXXXXXX\n\nAttributes:\n\tSAM Account Name:\tlenovo_tmp_ygauCNFY\n\tDisplay Name:\t\t<value not set>\n\tUser Principal Name:\t-\n\tHome Directory:\t\t<value not set>\n\tHome Drive:\t\t<value not set>\n\tScript Path:\t\t<value not set>\n\tProfile Path:\t\t<value not set>\n\tUser Workstations:\t<value not set>\n\tPassword Last Set:\t<never>\n\tAccount Expires:\t\t<never>\n\tPrimary Group ID:\t513\n\tAllowed To Delegate To:\t-\n\tOld UAC Value:\t\t0x0\n\tNew UAC Value:\t\t0x15\n\tUser Account Control:\t\n\t\tAccount Disabled\n\t\t'Password Not Required' - Enabled\n\t\t'Normal Account' - Enabled\n\tUser Parameters:\t<value not set>\n\tSID History:\t\t-\n\tLogon Hours:\t\tAll\n\nAdditional Information:\n\tPrivileges\t\t-"
],
"winlog.event_id": [
"4720"
],
"winlog.event_data.LogonHours": [
"%%1797"
],
"event.action": [
"added-user-account"
],
"event.ingested": [
"2024-07-30T18:51:10.223Z"
],
"@timestamp": [
"2024-07-30T18:50:59.547Z"
],
"winlog.channel": [
"Security"
],
"event.type": [
"user",
"creation"
],
"winlog.event_data.TargetDomainName": [
"XXXXXXXXXX"
],
"winlog.opcode": [
"Info"
],
"agent.ephemeral_id": [
"fd18652b-adeb-49b1-a2e2-97239f97df8a"
],
"winlog.event_data.PasswordLastSet": [
"%%1794"
],
"winlog.event_data.SubjectDomainName": [
"XXXXXXXXXXXX"
],
"user.name.text": [
"XXXXXXXXX"
]
}
}
@FlyNavy Please format your code by putting 3 backticks ```
before and after your code