Jamal Darbo// Security PortfolioPortfolio v1
Portfolio Cyber Bits

Small notes. Practical knowledge.

Cyber Bits

Useful commands, packet filters and small discoveries. A growing reference for the next time you need that one thing.

The notebook

64 bits

Wireshark

  • Wireshark

    Isolate a TCP conversation

    Show packets belonging to one TCP stream in the current capture.

    Display filter
    tcp.stream == <number>

    Replace <number>, including the angle brackets, with the TCP stream index before using this filter. Wireshark assigns this index within the capture; it is not a TCP header value.

  • Wireshark

    Review HTTP requests and TLS handshakes

    Show HTTP requests and TLS Client Hello messages while excluding SSDP.

    Display filter
    (http.request or tls.handshake.type eq 1) and !(ssdp)

    This is a starting point for triage: TLS Client Hello messages can belong to non-web traffic, and a match does not establish malicious activity.

  • Wireshark

    Correlate web traffic and DNS with Basic+DNS

    Extend the Basic filter with TCP connection attempts and decoded DNS traffic.

    Display filter
    (http.request or tls.handshake.type eq 1 or (tcp.flags.syn eq 1 and tcp.flags.ack eq 0) or dns) and !(ssdp)

    The DNS clause includes queries and responses. SYN packets without ACK show connection attempts, including retries, rather than proof that a connection succeeded.

  • Wireshark

    Find HTTP POSTs in an IP stream

    Show decoded HTTP POST requests within a selected IPv4 stream.

    Display filter
    (ip.stream eq <number>) && (http.request.method == "POST")

    Replace <number>, including the angle brackets, with the IP stream index before use; keep "POST" unchanged. ip.stream requires Wireshark 4.4 or later and can include multiple TCP streams, so it is not interchangeable with tcp.stream.

  • Wireshark

    Review Windows authentication and file sharing

    Show packets containing decoded Kerberos, SMB, SMB2 or DCE/RPC traffic.

    Display filter
    kerberos || smb2 || smb || dcerpc

    This broad protocol view includes routine domain activity; inspect endpoints and operations before interpreting a match as lateral movement or replication abuse.

  • Wireshark

    Inspect TLS hellos for an IPv4 address

    Show TLS Client Hello and Server Hello messages involving a selected IPv4 address.

    Display filter
    ip.addr == <ip-address> && (tls.handshake.type == 1 || tls.handshake.type == 2)

    Replace <ip-address>, including the angle brackets, with a normal dotted IPv4 address before use. Keep 1 (Client Hello) and 2 (Server Hello) unchanged; this selects handshake messages and does not decrypt application traffic.

  • Wireshark

    Keep selected frames in view

    Display a chosen set of frame numbers to follow an exchange across selected packets.

    Display filter
    frame.number in {<number-1>, <number-2>, <number-3>}

    Replace every numbered placeholder, including the angle brackets, with a frame number from your capture before use. Add or remove comma-separated entries as needed; these numbers identify frames in that capture only.

  • Wireshark

    Find Kerberos requests for a PAC

    Show Kerberos packets whose include-pac field requests a Privilege Attribute Certificate.

    Display filter
    kerberos.include_pac == true

    Keep true unchanged to select requests for PAC inclusion. This does not reveal the PAC contents or prove that a returned ticket includes one.

  • Wireshark

    Isolate DNS queries

    Show DNS messages marked as queries in the current capture.

    Display filter
    dns.flags.response == 0

    This selects queries only; it does not tell you whether a response was received.

  • Wireshark

    Find TCP retransmission indicators

    Show packets Wireshark classifies as retransmissions, including fast and spurious retransmissions.

    Display filter
    tcp.analysis.retransmission || tcp.analysis.fast_retransmission || tcp.analysis.spurious_retransmission

    TCP sequence analysis must be enabled; review the surrounding stream before treating these flags as evidence of packet loss.

  • Wireshark

    Inspect Kerberos error codes

    Show decoded Kerberos packets that contain an error-code field.

    Display filter
    kerberos.error_code

    This tests for the field's presence, not a particular error; use the surrounding exchange to interpret the code.

PowerShell

  • PowerShell

    Disable Defender real-time monitoring

    Request that Microsoft Defender Antivirus stop real-time monitoring on the local device.

    powershell
    Set-MpPreference -DisableRealtimeMonitoring $true

    Lab reference only; requires administrator rights and reduces protection when applied. Tamper protection can block the change, and managed policy can override local preferences.

  • PowerShell

    Disable Defender scanning of network files

    Set the local Defender preference to stop scanning network files.

    powershell
    Set-MpPreference -DisableScanningNetworkFiles $true

    Lab reference only; requires administrator rights and reduces file scanning. This is separate from the Network Protection feature, and managed policy can override the local preference.

  • PowerShell

    Disable Defender block at first sight

    Request that Defender disable its block-at-first-sight checks for newly encountered suspicious files.

    powershell
    Set-MpPreference -DisableBlockAtFirstSeen $true

    Lab reference only; requires administrator rights and lowers protection. The command leaves cloud protection and sample submission preferences unchanged; tamper protection or managed policy can prevent a change from taking effect.

  • PowerShell

    Legacy DisableAntiSpyware registry setting

    Write the legacy DisableAntiSpyware policy value as a reference for older Defender configurations.

    powershell
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f

    Legacy lab reference only; requires administrator rights. Microsoft has retired this setting, and modern Defender for Endpoint devices ignore it. Tamper protection can also block the registry change; a successful write does not establish that Defender stopped.

  • PowerShell

    Find process details by executable name

    Show the PID, command line and executable path for matching running processes.

    powershell
    Get-CimInstance Win32_Process -Filter "Name='<process-name.exe>'" |
    Select Name,ProcessId,CommandLine,ExecutablePath

    Replace <process-name.exe>, including the angle brackets, with the executable name before use. Several processes can share a name; the results are a snapshot.

  • PowerShell

    List processes with command lines and parent IDs

    List running processes with their IDs, parent IDs, command lines and executable paths.

    powershell
    Get-CimInstance Win32_Process |
    Select Name,ProcessId,ParentProcessId,CommandLine,ExecutablePath

    This is a snapshot, not a process history. Access restrictions can leave details unavailable, and a recorded parent PID may refer to a process that has exited.

  • PowerShell

    Read a process command line by PID

    Return the command-line property directly for a selected running process.

    powershell
    (Get-CimInstance Win32_Process -Filter "ProcessId=<pid>").CommandLine

    Replace <pid>, including the angle brackets, before use. This returns a string without a table layout; encoded arguments remain encoded, and an unavailable process may return no value.

  • PowerShell

    Read a process and its parent PID

    Show a selected process name alongside its PID and recorded parent PID.

    powershell
    (Get-CimInstance Win32_Process -Filter "ProcessId=<pid>") |
    Select Name,ParentProcessId,ProcessId

    Replace <pid>, including the angle brackets, before use. PIDs are reused after processes exit, so the recorded parent PID alone does not confirm a currently running parent.

  • PowerShell

    Look up a process parent

    Use a selected process's parent PID to query the parent process details.

    powershell
    $p = Get-CimInstance Win32_Process -Filter "ProcessId=<pid>"
    Get-CimInstance Win32_Process -Filter "ProcessId=$($p.ParentProcessId)" |
    Select Name,ProcessId,ParentProcessId

    Replace <pid>, including the angle brackets, before use. These separate queries have no missing-process guard: exits can cause failure, and PID reuse can return a different process.

  • PowerShell

    Compare child and parent process details

    Build a single object containing child and parent names, PIDs and paths.

    powershell
    $child = Get-CimInstance Win32_Process -Filter "ProcessId=<pid>"
    $parent = Get-CimInstance Win32_Process -Filter "ProcessId=$($child.ParentProcessId)"
    
    [PSCustomObject]@{
        ChildName       = $child.Name
        ChildPID        = $child.ProcessId
        ChildPath       = $child.ExecutablePath
        ParentName      = $parent.Name
        ParentPID       = $parent.ProcessId
        ParentPath      = $parent.ExecutablePath
        ParentCmdLine   = $parent.CommandLine
    }

    Replace <pid>, including the angle brackets, before use. No missing-process guard is included; exits between queries and PID reuse can leave incomplete results or associate the wrong parent.

  • PowerShell

    List scheduled tasks as a table

    Show the local computer's scheduled tasks in table format.

    powershell
    schtasks /query /fo TABLE

    Queries local task definitions without running them. Task execution history is stored separately in event logs.

  • PowerShell

    List scheduled tasks in list format

    Show the local computer's scheduled tasks as a property list.

    powershell
    schtasks /query /fo LIST

    LIST changes the output layout. Advanced task properties require the separate /v option, which is not included here.

  • PowerShell

    Find a named value in Run registry locations

    Search six specified Run, RunOnce and policy locations for a matching value name.

    powershell
    $paths = @(
        "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run",
        "HKCU:\Software\Microsoft\Windows\CurrentVersion\RunOnce",
        "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run",
        "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce",
        "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run",
        "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run"
    )
    foreach ($path in $paths) {
        if (Test-Path $path) {
            $props = (Get-ItemProperty $path).PSObject.Properties
            $match = $props | Where-Object { $_.Name -eq '<value-name>' }
            if ($match) {
                [PSCustomObject]@{
                    RegistryPath = $path
                    Name         = $match.Name
                    Value        = $match.Value
                }
            }
        }
    }

    Replace <value-name>, including the angle brackets, with the exact registry value name; keep the surrounding quotes. HKCU refers to the current user, and only the listed paths and current registry view are checked.

  • PowerShell

    Read the Windows Security log

    Retrieve retained events from the local Security log.

    powershell
    Get-WinEvent -LogName Security

    Reading Security requires appropriate log permissions. This has no time or result limit and may be expensive on a large log; events are returned newest first.

  • PowerShell

    Find successful logon events

    Select Security event 4624 records for created logon sessions.

    powershell
    Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624}

    Keep 4624 unchanged: it identifies a successful logon event. Results depend on audit collection and retention; this query has no time or result limit and requires permission to read Security.

  • PowerShell

    Read the latest five successful logons

    Retrieve up to five of the newest Security event 4624 records.

    powershell
    Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624} -MaxEvents 5

    4624 is the event ID; 5 limits the returned records. Logon type distinguishes interactive, network and other sessions, so five records need not represent five people signing in.

  • PowerShell

    Inspect successful logon event properties

    Display the properties of up to five recent Security event 4624 records.

    powershell
    Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624} -MaxEvents 5 | Format-List *

    The asterisk requests all exposed event-object properties. Format-List changes the display, not which events match; keep it at the end when the goal is to read the output.

  • PowerShell

    Read the Sysmon event log

    Retrieve retained events from the local Sysmon Operational log.

    powershell
    Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational"

    Sysmon must be installed and running to collect new events. This query has no time or result limit and may be expensive on a large retained log.

  • PowerShell

    Find process creation in Sysmon

    Select recorded Sysmon event 1 process-creation events using a hash table.

    powershell
    Get-WinEvent -FilterHashtable @{logname="Microsoft-Windows-Sysmon/Operational"; id=1}

    Keep 1 unchanged: it identifies process creation. Only events collected by Sysmon and still retained can appear; this query has no time or result limit.

  • PowerShell

    Inspect the latest Sysmon network event

    Display the properties of the newest recorded Sysmon event 3.

    powershell
    Get-WinEvent -FilterHashtable @{logname="Microsoft-Windows-Sysmon/Operational"; id=3} -MaxEvents 1 | Format-List *

    Event 3 records TCP/UDP connections and is disabled by default in Sysmon. The 1 after -MaxEvents limits output to one record; it does not change the event ID.

  • PowerShell

    Find Sysmon connections by destination port

    Select recorded Sysmon network events with a specified destination port.

    powershell
    Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System/EventID=3 and EventData[Data[@Name='DestinationPort']='<port>']]" | Format-List *

    Replace <port>, including the angle brackets, with a numeric port; keep the quotes and EventID=3. Network collection must have been enabled in Sysmon. This has no result limit; a port match alone does not establish malicious activity.

  • PowerShell

    Filter process creation with XPath

    Select recorded Sysmon event 1 process-creation events using XPath.

    powershell
    Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System/EventID=1]"

    The leading asterisk selects event elements; EventID=1 fixes the event type. This requires retained Sysmon process-creation events and has no time or result limit.

  • PowerShell

    Find Sysmon process creation by PID

    Select recorded Sysmon process-creation events containing a specified process ID.

    powershell
    Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System/EventID=1 and EventData[Data[@Name='ProcessId']='<pid>']]" | Format-List *

    Replace <pid>, including the angle brackets, with the numeric PID; keep the quotes and EventID=1. Windows reuses PIDs, so compare timestamps and ProcessGuid across retained Sysmon events.

  • PowerShell

    List established TCP connections and PIDs

    List local and remote endpoints alongside the process ID that owns each established TCP connection.

    powershell
    Get-NetTCPConnection -State Established |
      Select-Object LocalAddress, LocalPort, RemoteAddress, RemotePort, OwningProcess

    This is a snapshot, so short-lived connections may be missed; OwningProcess is a PID, not a process name.

  • PowerShell

    Review recent Windows system errors

    Read the 20 newest error-level events from the local System log recorded within the last hour.

    powershell
    Get-WinEvent -FilterHashtable @{
      LogName = 'System'
      Level = 2
      StartTime = (Get-Date).AddHours(-1)
    } -MaxEvents 20 |
      Select-Object TimeCreated, Id, ProviderName, Message

    Level 2 means Error; critical (1) and warning (3) events are excluded, and the result is capped at 20.

Linux

  • Linux

    List listening TCP and UDP sockets

    Show listening TCP and UDP sockets with numeric endpoints and process details.

    bash
    netstat -tulnp

    The -l option limits this view to listeners. Process details for sockets owned by other users may require elevated privileges.

  • Linux

    List TCP sockets in all states

    Show listening and non-listening TCP sockets with numeric endpoints and process details.

    bash
    netstat -antp

    The -a option includes LISTEN entries. Process details depend on permissions; this is a snapshot.

  • Linux

    List TCP listening ports

    Show listening TCP sockets with numeric endpoints and process details.

    bash
    netstat -lntp

    UDP is excluded. Process details for sockets owned by other users may require elevated privileges.

  • Linux

    Inspect non-listening UDP sockets

    Show UDP sockets from netstat's default non-listening view.

    bash
    netstat -unp

    This omits listening sockets because neither -a nor -l is present. UDP does not have TCP's connection-state model.

  • Linux

    Inspect the routing table

    Show the kernel routing table using numeric addresses.

    bash
    netstat -rn

    This reads routing information without changing routes.

  • Linux

    Find established TCP socket rows

    Keep ss output rows containing ESTAB from the complete TCP socket listing.

    bash
    ss -antp | grep ESTAB

    grep matches text anywhere in a row, rather than applying an ss state filter. Process details depend on permissions.

  • Linux

    Find established TCP connections with lsof

    Keep Internet-socket rows containing ESTABLISHED, with numeric addresses and ports.

    bash
    lsof -i -n -P | grep ESTABLISHED

    This text match targets TCP's ESTABLISHED state, not UDP activity. Visibility of other users' processes depends on permissions.

  • Linux

    List processes using Internet sockets

    Show Internet sockets with their processes, numeric addresses and numeric ports.

    bash
    lsof -i -n -P

    Includes listening sockets as well as connections. Output is limited by the process information you can access.

  • Linux

    Inspect sockets by local source address

    Filter ss's default socket view by a local source address.

    bash
    sudo ss src <ip-address>

    Replace <ip-address>, including angle brackets, with an IPv4 address before use. Listeners remain excluded by default; sudo may prompt for authorization.

  • Linux

    Format JSON for inspection

    Validate and pretty-print JSON from events.json.

    bash
    jq . events.json

    Requires valid JSON; it prints the parsed values without modifying the file.

  • Linux

    Count JSON array items

    Print the number of elements in an input JSON array.

    bash
    jq 'length' events.json

    Assumes an array; objects return their number of keys instead.

  • Linux

    Collect event values

    Build an array containing each record's event value.

    bash
    jq 'map(.event)' events.json

    Assumes an array of records; missing event keys produce null.

  • Linux

    Select events by process ID

    Print event records whose numeric PROCESS_ID matches a chosen PID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>)' events.json

    Replace <pid>, including the angle brackets, with an unquoted number. Assumes an array of records; string PIDs do not match.

  • Linux

    Extract process file paths

    Print event.FILE_PATH for records matching a numeric process ID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.FILE_PATH' events.json

    Replace <pid>, including the angle brackets, with an unquoted number. Assumes an event-record array; missing paths yield null and strings remain JSON-quoted.

  • Linux

    Extract process hashes

    Print event.HASH for records matching a numeric process ID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.HASH' events.json

    Replace <pid>, including the angle brackets, with an unquoted number. Assumes an event-record array; this reads recorded hashes without calculating or verifying them.

  • Linux

    Extract matching process IDs

    Print event.PROCESS_ID from each matching event record.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.PROCESS_ID' events.json

    Replace <pid>, including the angle brackets, with an unquoted number. Assumes an event-record array; repeated IDs are preserved.

  • Linux

    Extract parent process IDs

    Print event.PARENT.PROCESS_ID for records matching a numeric child PID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.PARENT.PROCESS_ID' events.json

    Replace <pid>, including the angle brackets, with the unquoted child PID. Assumes an event-record array with this nested schema; missing paths may yield null.

  • Linux

    Extract parent process paths

    Print event.PARENT.FILE_PATH for records matching a numeric child PID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.PARENT.FILE_PATH' events.json

    Replace <pid>, including the angle brackets, with the unquoted child PID. Assumes an event-record array with this nested schema; strings remain JSON-quoted.

  • Linux

    Extract parent process hashes

    Print event.PARENT.HASH for records matching a numeric child PID.

    bash
    jq '.[] | select(.event.PROCESS_ID == <pid>) | .event.PARENT.HASH' events.json

    Replace <pid>, including the angle brackets, with the unquoted child PID. Assumes an event-record array; this reads stored values without verifying hashes.

  • Linux

    Extract the first log field

    Print the first space-separated field from each line of access.log.

    bash
    cut access.log -d " " -f 1

    Assumes the client address is first, with no leading spaces. The delimiter is a literal space; lines without it pass through unchanged.

  • Linux

    Sort extracted log fields

    Sort the first space-separated field from each log line as text.

    bash
    cut access.log -d " " -f 1 | sort

    Assumes the desired value starts each line. Ordering follows the locale and is not numeric IP-address ordering; duplicates remain.

  • Linux

    List distinct log fields

    Sort the first space-separated log fields and collapse adjacent duplicates.

    bash
    cut access.log -d " " -f 1 | sort | uniq

    Assumes the desired value starts each line. Sorting brings duplicates together before uniq removes repeated copies.

  • Linux

    Count occurrences of each log field

    Count occurrences of each distinct first space-separated log field.

    bash
    cut access.log -d " " -f 1 | sort | uniq -c

    Assumes the desired value starts each line. Counts describe log rows, not distinct visitors or confirmed malicious activity.

  • Linux

    Sort request counts by IP address

    Count requests for each client address and sort the results by the address field.

    bash
    cut access.log -d " " -f 1 | sort | uniq -c | sort -k2,2

    Assumes the client IP starts each space-delimited log line. The second field is sorted as text using the current locale, not as a numeric IP address.

  • Linux

    Rank log fields by frequency

    Count first log fields and order the results by descending numeric count.

    bash
    cut access.log -d " " -f 1 | sort | uniq -c | sort -nr

    Assumes the desired value starts each line. The leading count is the numeric sort key; ties may be ordered by the remaining text.

  • Linux

    Rank IP addresses with repeated requests

    Keep client addresses appearing more than once and rank them by descending request count.

    bash
    cut access.log -d " " -f 1 | sort | uniq -c | awk '$1 > 1' | sort -nr

    Assumes the client IP starts each space-delimited log line. awk compares the numeric count in the first field, so counts such as 11 and 21 are retained.

  • Linux

    Read recent Linux journal warnings

    Print journal entries from the last hour with warning priority or greater severity.

    bash
    journalctl --since "-1 hour" --priority=warning --no-pager

    Available on systems using systemd; results are limited to journal files your user can read.

Event Reference

Windows and Sysmon events for quick triage. Expand an event for key fields and investigation context.

Essential events

33 events

  • 4624Successful logonWindows created a logon session on the computer being accessed.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account receiving the session.
    LogonType
    Interactive, network, service or other logon context.
    IpAddress
    Source address when available.
    TargetLogonId
    Correlates activity within this local logon session.
    AuthenticationPackageName
    Authentication package used.
    Investigate when
    Review unexpected accounts, source addresses or logon types on sensitive hosts.
    Logging
    Collect Security on the accessed endpoint or server; enable Audit Logon success.
    Keep in mind
    A successful logon is not necessarily an interactive user session; read LogonType first.
  • 4625Failed logonWindows rejected a logon attempt on the computer recording the event.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account used in the attempt.
    LogonType
    Type of logon attempted.
    IpAddress
    Source address when available.
    Status
    Main failure code.
    SubStatus
    Additional failure detail.
    Investigate when
    Review repeated failures, unfamiliar sources or attempts spanning many accounts.
    Logging
    Collect Security where the attempt occurred; enable Audit Logon failure and relevant Audit Account Lockout failure auditing.
    Keep in mind
    Stale service credentials and user mistakes can produce repeated failures without an attack.
  • 4648Explicit credentials usedA process attempted a logon by supplying credentials explicitly.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account initiating the attempt.
    TargetUserName
    Account whose credentials were supplied.
    TargetServerName
    Intended destination.
    ProcessName
    Executable submitting the credentials.
    IpAddress
    Network address when available.
    Investigate when
    Review unusual account combinations, destination servers or initiating processes.
    Logging
    Collect Security on the computer making the explicit-credential attempt; enable Audit Logon success.
    Keep in mind
    This records an attempt, not confirmed access; runas and scheduled tasks also generate it legitimately.
  • 4688Process createdWindows recorded the creation of a process on the local computer.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    NewProcessName
    Executable that started.
    NewProcessId
    New process PID, represented in hexadecimal.
    ProcessId
    Creator process PID, represented in hexadecimal.
    CommandLine
    Executable arguments when command-line auditing is enabled.
    SubjectUserName
    Account requesting process creation.
    Investigate when
    Review unexpected executable paths, arguments or creator-to-child relationships.
    Logging
    Collect endpoint Security; enable Audit Process Creation success and Include command line in process creation events for arguments.
    Keep in mind
    An empty CommandLine can reflect missing audit configuration rather than execution without arguments.
  • 4698Scheduled task createdA new scheduled task was registered on the computer.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account creating the task.
    SubjectLogonId
    Correlates the creator's local session.
    TaskName
    Registered task path and name.
    TaskContent
    Task XML containing actions, triggers and execution identity.
    Investigate when
    Review unfamiliar task actions, privileged execution identities or unusual creation times.
    Logging
    Collect Security on the task host; enable Audit Other Object Access Events success.
    Keep in mind
    Registration does not prove that the task ran; correlate subsequent execution evidence.
  • 4702Scheduled task updatedAn existing scheduled task definition was changed.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account modifying the task.
    SubjectLogonId
    Correlates the modifying session.
    TaskName
    Task whose definition changed.
    TaskContentNew
    Updated task XML for inspection.
    Investigate when
    Review changes to actions, triggers or execution identity on established tasks.
    Logging
    Collect Security on the task host; enable Audit Other Object Access Events success.
    Keep in mind
    TaskContentNew contains the new definition, not a complete before-and-after comparison.
  • 4720User account createdA new local or domain user account was created.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Name of the new account.
    TargetDomainName
    Domain or computer owning the account.
    TargetSid
    Stable identifier of the created account.
    SubjectUserName
    Account that performed the creation.
    Investigate when
    Review unexpected account creation or creators outside the normal provisioning workflow.
    Logging
    Collect DC Security for domain users or local host Security for local users; enable Audit User Account Management success.
    Keep in mind
    Account creation alone does not show that the new account was subsequently used.
  • 4728Member added to global security groupA member was added to an Active Directory global security group.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    MemberSid
    Identity added to the group.
    MemberName
    Added member's distinguished name when resolved.
    TargetUserName
    Group receiving the member.
    SubjectUserName
    Account making the change.
    Investigate when
    Review unexpected additions to privileged or sensitive access groups.
    Logging
    Collect Security from domain controllers; enable Audit Security Group Management success.
    Keep in mind
    Global describes group scope, not privilege level; inspect the actual group's permissions.
  • 4732Member added to local security groupA member was added to a security group with local scope.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    MemberSid
    Identity added to the group.
    MemberName
    Resolved member name, sometimes unavailable.
    TargetUserName
    Group receiving the member.
    TargetDomainName
    Group's domain or computer.
    SubjectUserName
    Account performing the addition.
    Investigate when
    Review additions to Administrators or other groups granting sensitive local access.
    Logging
    Collect Security on the local host or DC managing the group; enable Audit Security Group Management success.
    Keep in mind
    MemberName can be a dash for local groups; resolve MemberSid instead of assuming an unknown user.
  • 4756Member added to universal security groupA member was added to an Active Directory universal security group.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    MemberSid
    Identity added to the group.
    MemberName
    Added member's distinguished name when resolved.
    TargetUserName
    Universal group receiving the member.
    SubjectUserName
    Account making the change.
    Investigate when
    Review unapproved additions to groups controlling important cross-domain access.
    Logging
    Collect Security from domain controllers; enable Audit Security Group Management success.
    Keep in mind
    Universal group membership is not inherently administrative; assess the group's actual access.
  • 4768Kerberos TGT requestThe KDC recorded an outcome of a Kerberos ticket-granting ticket request.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account requesting the TGT.
    IpAddress
    Requesting client address.
    Status
    Result code; zero indicates success.
    PreAuthType
    Pre-authentication method used.
    TicketEncryptionType
    Encryption type of the issued ticket.
    Investigate when
    Review unusual account-source combinations or unexpected authentication and encryption patterns.
    Logging
    Collect DC Security; enable Audit Kerberos Authentication Service success and failure.
    Keep in mind
    Some pre-authentication failures generate 4771 instead, so 4768 alone is not a complete failure record.
  • 4769Kerberos service-ticket requestThe KDC received a request for a ticket to a service.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account requesting the service ticket.
    ServiceName
    Account or computer associated with the service.
    IpAddress
    Client address making the request.
    TicketEncryptionType
    Ticket encryption type for comparison with normal usage.
    Status
    Result code; zero indicates success.
    Investigate when
    Review bursts of unusual service requests or unexpected encryption choices for an account.
    Logging
    Collect DC Security; enable Audit Kerberos Service Ticket Operations success and failure.
    Keep in mind
    Requesting or receiving a service ticket does not prove the destination service was accessed.
  • 4771Kerberos pre-authentication failureThe KDC rejected pre-authentication while handling a TGT request.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account whose pre-authentication failed.
    IpAddress
    Client address making the request.
    Status
    Kerberos failure code.
    PreAuthType
    Pre-authentication method attempted.
    Investigate when
    Review concentrated failures from one source or failures across many accounts.
    Logging
    Collect DC Security; enable Audit Kerberos Authentication Service failure.
    Keep in mind
    Wrong passwords, expired passwords or certificate problems can cause failures; inspect Status before inferring password spraying.
  • 1102Security audit log clearedThe Windows Security event log was cleared on the recording computer.Windows Security
    Provider
    Microsoft-Windows-Eventlog
    Log channel
    Security

    Key fields

    SubjectUserSid
    SID of the account clearing the log.
    SubjectUserName
    Account that cleared the log.
    SubjectDomainName
    Account's domain or computer.
    SubjectLogonId
    Correlates the account's local logon session.
    Investigate when
    Review every unexpected clearing and compare it with approved maintenance.
    Logging
    Collect Security from the affected host; this event is generated automatically. Its fields are under UserData/LogFileCleared, not EventData.
    Keep in mind
    A cleared log warrants investigation but does not by itself establish deliberate evidence destruction.
  • 4719System audit policy changedThe computer's audit policy configuration changed.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account applying the change.
    SubjectLogonId
    Correlates the changing account's session.
    SubcategoryGuid
    Stable identifier of the affected audit subcategory.
    AuditPolicyChanges
    Success or failure auditing added or removed.
    Investigate when
    Review unexpected removal of auditing, particularly on sensitive hosts.
    Logging
    Collect Security on the affected endpoint or DC; this event is logged regardless of the Audit Policy Change setting.
    Keep in mind
    Group Policy and authorized administration can change auditing; correlate the event with expected policy deployment.
  • 4776NTLM credential validationWindows attempted to validate credentials using NTLM.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account whose credentials were checked.
    Workstation
    Source workstation name.
    Status
    Validation result; 0x0 indicates success.
    PackageName
    Authentication package performing validation.
    Investigate when
    Review unexpected NTLM usage or repeated failures across accounts and workstations.
    Logging
    Enable Audit Credential Validation success and failure; collect Security on domain controllers for domain accounts or the local computer for local accounts.
    Keep in mind
    The destination server is absent, and successful validation does not prove access to a resource.
  • 5136AD object attribute modifiedAn Active Directory object's attribute value changed.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account making the change.
    ObjectDN
    Distinguished name of the modified object.
    AttributeLDAPDisplayName
    LDAP name of the changed attribute.
    AttributeValue
    Value added or removed.
    OperationType
    Whether the value was added or deleted.
    Investigate when
    Review unexpected changes to delegation, account-control or other sensitive directory attributes.
    Logging
    Collect Security on domain controllers; enable Audit Directory Service Changes success and matching Write auditing in the object's SACL for the relevant attributes.
    Keep in mind
    Changes often produce Value Deleted and Value Added pairs; deleting an attribute value does not delete the object.
  • 4724Password reset attemptedAn account attempted to reset another account's password.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account requesting the reset.
    TargetUserName
    Account targeted by the reset.
    TargetSid
    Target account's security identifier.
    TargetDomainName
    Target account's domain or local computer.
    SubjectLogonId
    Correlates the requesting account's local logon session.
    Investigate when
    Review resets of privileged accounts or resets requested by unexpected accounts.
    Logging
    Enable Audit User Account Management success and failure; collect Security on domain controllers for domain accounts or endpoints for local accounts.
    Keep in mind
    Access Denied during a reset does not generate a 4724 failure event, although password-policy rejection can.
  • 5145Network share access checkWindows checked requested access to a file or folder over a network share.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    SubjectUserName
    Account requesting access.
    IpAddress
    Source address of the requesting client.
    ShareName
    Network share being accessed.
    RelativeTargetName
    Target path relative to the share.
    AccessMask
    Bitmask of requested access rights.
    Investigate when
    Review unusual source hosts, administrative shares or sensitive target paths.
    Logging
    Collect Security on the share host; enable Audit Detailed File Share success and failure. No share SACL is required; all shares are audited, potentially producing high volume.
    Keep in mind
    An access check does not prove file execution or transfer; failure events cover share-level, not NTFS-level, denial.
  • 4740Account locked outWindows recorded a user account lockout.Windows Security
    Provider
    Microsoft-Windows-Security-Auditing
    Log channel
    Security

    Key fields

    TargetUserName
    Account that was locked out.
    TargetSid
    Locked account's security identifier.
    TargetDomainName
    Caller computer name in this event's XML.
    SubjectUserName
    Account performing the lockout operation, usually SYSTEM context.
    SubjectLogonId
    Local logon session performing the lockout operation.
    Investigate when
    Correlate repeated lockouts with authentication failures and the reported caller computer.
    Logging
    Enable Audit User Account Management success; collect Security on domain controllers for domain accounts or endpoints for local accounts.
    Keep in mind
    Stale service credentials can cause lockouts; correlate surrounding authentication events before attributing a cause.
  • 7045Service installationRecords registration of a new Windows service.Windows System
    Provider
    Service Control Manager
    Log channel
    System

    Key fields

    ServiceName
    Name registered with the service manager.
    ImagePath
    Configured executable path and arguments.
    ServiceType
    Service or driver type.
    StartType
    Configured startup behavior.
    AccountName
    Account configured to run the service.
    Investigate when
    Review unexpected executable paths, service accounts, and installations outside planned changes.
    Logging
    Collect the System channel from Service Control Manager; Security event 4697 uses separate audit settings.
    Keep in mind
    AccountName identifies the service account, not necessarily the person who installed it.
  • 4104Script block contentCaptures the content of a script block processed by Windows PowerShell.PowerShell
    Provider
    Microsoft-Windows-PowerShell
    Log channel
    Microsoft-Windows-PowerShell/Operational

    Key fields

    ScriptBlockText
    Script text in this event fragment.
    ScriptBlockId
    Identifier for correlating fragments.
    MessageNumber
    Position of this fragment.
    MessageTotal
    Expected number of fragments.
    Path
    Script path when available.
    Investigate when
    Review unexpected download, credential, or persistence logic alongside its launching process.
    Logging
    For Windows PowerShell 5.1, enable Script Block Logging and collect this channel; PowerShell 7 uses PowerShellCore/Operational instead.
    Keep in mind
    Logged content does not prove every statement ran successfully; reconstruct all fragments before interpreting it.
  • 1Process creationLinks a new process with its command line and parent.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Executable path.
    CommandLine
    Launch arguments.
    ParentImage
    Parent executable.
    ProcessGuid
    Correlation identifier.
    Investigate when
    Review unexpected parent–child combinations.
    Logging
    Install Sysmon; collect matching ProcessCreate events.
    Keep in mind
    Creation does not prove malicious intent.
  • 3Network connectionRecords TCP/UDP endpoints and the associated process.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Associated executable.
    DestinationIp
    Destination address.
    DestinationPort
    Destination port.
    Initiated
    Whether the process initiated it.
    Investigate when
    Review destinations against expected process behavior.
    Logging
    Install Sysmon; enable NetworkConnect and collect Operational events.
    Keep in mind
    Disabled by default; no packet contents.
  • 11File creationRecords file creation or overwrite.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Writing executable.
    TargetFilename
    Affected path.
    ProcessGuid
    Process correlation.
    CreationUtcTime
    File creation timestamp.
    Investigate when
    Review unexpected writes to executable locations.
    Logging
    Install Sysmon; collect matching FileCreate events.
    Keep in mind
    A written file need not be executed.
  • 13Registry value changeIdentifies a process modifying a registry value.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Writing executable.
    TargetObject
    Registry value path.
    Details
    Recorded data.
    ProcessGuid
    Process correlation.
    Investigate when
    Compare unexplained changes with the host baseline.
    Logging
    Install Sysmon; collect matching RegistryEvent events.
    Keep in mind
    Not a complete registry before-and-after snapshot.
  • 22DNS queryAssociates a DNS lookup with a process.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Query origin.
    QueryName
    Requested name.
    QueryStatus
    Lookup status.
    QueryResults
    Returned records.
    Investigate when
    Review unusual names in their process context.
    Logging
    Install Sysmon; collect matching DnsQuery events.
    Keep in mind
    A lookup does not prove a later connection.
  • 8Remote thread createdA process created a thread in another process.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    SourceImage
    Executable creating the thread.
    TargetImage
    Executable receiving the thread.
    StartAddress
    Thread entry address.
    StartModule
    Inferred start module, when available.
    StartFunction
    Inferred start function, when available.
    Investigate when
    Review unexpected source-to-target pairs and the thread's starting location.
    Logging
    Enable Sysmon, collect its Operational channel and retain CreateRemoteThread events.
    Keep in mind
    Remote threads can be legitimate; this event alone does not establish malicious injection.
  • 10Process accessOne process opened another process with recorded access rights.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    SourceImage
    Executable opening the target.
    TargetImage
    Executable being opened.
    GrantedAccess
    Granted access rights mask.
    CallTrace
    Call stack associated with the access.
    TargetProcessGUID
    Target process correlation identifier.
    Investigate when
    Review unusual access to sensitive processes such as LSASS.
    Logging
    Enable Sysmon and collect Operational events; filter ProcessAccess carefully to control routine diagnostic noise.
    Keep in mind
    Process access does not prove memory was read or credentials were dumped.
  • 25Process image tamperingSysmon detected manipulation of a process image.Sysmon
    Provider
    Microsoft-Windows-Sysmon
    Log channel
    Microsoft-Windows-Sysmon/Operational

    Key fields

    Image
    Affected executable.
    Type
    Reported manipulation type.
    ProcessGuid
    Process correlation identifier.
    User
    Associated user account.
    UtcTime
    Event time in UTC.
    Investigate when
    Correlate the affected process with its launch, parent and subsequent activity.
    Logging
    Enable Sysmon, collect its Operational channel and retain ProcessTampering events.
    Keep in mind
    Investigate the context; this event neither proves malicious intent nor covers every injection technique.
  • 1116Malware or PUA detectedMicrosoft Defender Antivirus detected malware or a potentially unwanted application.Microsoft Defender Antivirus
    Provider
    Microsoft-Windows-Windows Defender
    Log channel
    Microsoft-Windows-Windows Defender/Operational

    Key fields

    Detection ID
    Detection identifier for correlating related events on the same host.
    Threat Name
    Name assigned to the detected threat.
    Path
    Resource associated with the detection.
    Process Name
    Process associated with the detection.
    Detection User
    Account context recorded for the detection.
    Investigate when
    Review the resource, process and account, then correlate any subsequent threat action with event 1117.
    Logging
    Collect the Windows Defender Operational channel on endpoints running Microsoft Defender Antivirus.
    Keep in mind
    Detection alone does not prove that the threat executed or was successfully remediated.
  • 1117Threat action takenMicrosoft Defender Antivirus recorded an action for a detected threat.Microsoft Defender Antivirus
    Provider
    Microsoft-Windows-Windows Defender
    Log channel
    Microsoft-Windows-Windows Defender/Operational

    Key fields

    Detection ID
    Detection identifier for correlating related events on the same host.
    Threat Name
    Threat associated with the recorded action.
    Action Name
    Recorded action, such as Quarantine, Remove or Allow.
    Error Code
    Result code associated with the threat status.
    Additional Actions String
    Additional action information shown as Action Status.
    Investigate when
    Correlate with event 1116 on the same host and review non-remediating actions, errors or required follow-up.
    Logging
    Collect the Windows Defender Operational channel; recorded actions depend on Defender's configured response.
    Keep in mind
    Allow, No action and None do not remediate the threat; this event alone does not prove the host is clean.
  • 5001Real-time protection disabledMicrosoft Defender Antivirus recorded that real-time protection was disabled.Microsoft Defender Antivirus
    Provider
    Microsoft-Windows-Windows Defender
    Log channel
    Microsoft-Windows-Windows Defender/Operational

    Key fields

    System/TimeCreated/@SystemTime
    System metadata: time the event was logged.
    System/Computer
    System metadata: computer that recorded the event.
    Product Name
    Antimalware product reporting the protection state.
    Product Version
    Version of the antimalware product.
    Investigate when
    Check whether protection was expected to remain active and correlate the time with configuration or administrative changes.
    Logging
    Collect the Windows Defender Operational channel and establish the expected antivirus provider and Defender operating mode.
    Keep in mind
    This event identifies no responsible user, process or cause; legitimate administration or another antivirus configuration may explain the state.