Skip to content

windows-xml.log in T1059/excessive_distinct_processes_from_windows_temp has one event closed with </fData> #1270

Open

Description

@TT5H

Summary

In datasets/attack_techniques/T1059/excessive_distinct_processes_from_windows_temp/windows-xml.log, one Security 4688 event closes its CommandLine element with </fData> instead of </Data>. That event is not well-formed XML.

The event

The file has one event per line. Line 83 holds:

...<Data Name='ProcessId'>0x804</Data><Data Name='CommandLine'>wmic OS get Version /format:list</fData><Data Name='TargetUserSid'>NULL SID</Data>...

</fData> appears once in the file. The other 135 lines parse as XML. With </fData> changed to </Data>, line 83 parses too, and its CommandLine is wmic OS get Version /format:list.

The file on master is 191,553 bytes and was last changed in commit e4a993ad09 ("Add XML data", 2024-04-11).

To reproduce

import xml.etree.ElementTree as ET

path = "windows-xml.log"
for number, line in enumerate(open(path, encoding="utf-8"), 1):
    try:
        ET.fromstring(line)
    except ET.ParseError as error:
        print(number, error)

Output (Python 3.14.2):

83 mismatched tag: line 1, column 1012

Effect in Splunk

I ingested the file into Splunk Enterprise 9.3.14 (Splunk_SA_CIM 6.4.0, Splunk_TA_windows 9.1.2) with the source XmlWinEventLog:Security and the sourcetype XmlWinEventLog that data.yml declares, once as it is and once with only </fData> changed to </Data>.

  • Both versions give 136 events.
  • As it is, the event with </fData> has the field CommandLine but not Process_Command_Line. The other 135 events have both.
  • With </Data>, all 136 events have both fields.

The tests of the detections excessive_distinct_processes_from_windows_temp and excessive_number_of_taskhost_processes in security_content use this file. I did not run those two detections.

Suggested change

On line 83, replace </fData> with </Data>.

A different sample, suspicious_behaviour/local_llms/sysmon_local_llms.log, has a separate problem, reported in #1266.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions