Author: Andrew Rathbun
Description: A computer account was deleted
EventId: 4743
Channel: Security
Provider: Microsoft-Windows-Security-Auditing
Maps:
  -
    Property: UserName
    PropertyValue: "%domain%\\%user% (%sid%)"
    Values:
      -
        Name: domain
        Value: "/Event/EventData/Data[@Name=\"SubjectDomainName\"]"
      -
        Name: user
        Value: "/Event/EventData/Data[@Name=\"SubjectUserName\"]"
      -
        Name: sid
        Value: "/Event/EventData/Data[@Name=\"SubjectUserSid\"]"
  -
    Property: PayloadData1
    PropertyValue: "Target: %domain%\\%user% (%sid%)"
    Values:
      -
        Name: domain
        Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
      -
        Name: user
        Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
      -
        Name: sid
        Value: "/Event/EventData/Data[@Name=\"TargetUserSid\"]"
  -
    Property: PayloadData2
    PropertyValue: "SubjectLogonId: %SubjectLogonId%"
    Values:
      -
        Name: SubjectLogonId
        Value: "/Event/EventData/Data[@Name=\"SubjectLogonId\"]"

# Documentation:
# https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4743
# https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4743
# https://github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/Internal/Microsoft-Windows-Security-Auditing.csv
#
# Example Event Data:
# <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# 	<System>
# 		<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
# 		<EventID>4743</EventID>
# 		<Version>0</Version>
# 		<Level>0</Level>
# 		<Task>13825</Task>
# 		<Opcode>0</Opcode>
# 		<Keywords>0x8020000000000000</Keywords>
# 		<TimeCreated SystemTime="2015-08-14T15:57:08.104214100Z" />
# 		<EventRecordID>172103</EventRecordID>
# 		<Correlation />
# 		<Execution ProcessID="520" ThreadID="1108" />
# 		<Channel>Security</Channel>
# 		<Computer>DC01.contoso.local</Computer>
# 		<Security />
# 	</System>
# 	<EventData>
# 		<Data Name="TargetUserName">COMPUTERACCOUNT$</Data>
# 		<Data Name="TargetDomainName">CONTOSO</Data>
# 		<Data Name="TargetSid">S-1-5-21-3457937927-2839227994-823803824-6118</Data>
# 		<Data Name="SubjectUserSid">S-1-5-21-3457937927-2839227994-823803824-1104</Data>
# 		<Data Name="SubjectUserName">dadmin</Data>
# 		<Data Name="SubjectDomainName">CONTOSO</Data>
# 		<Data Name="SubjectLogonId">0x3007b</Data>
# 		<Data Name="PrivilegeList">-</Data>
# 	</EventData>
# </Event>
