Skip to content

Fix stale TA field names in XML WinEventLog detections - #4290

Closed
Varshith-Kali wants to merge 1 commit into
splunk:developfrom
Varshith-Kali:fix/stale-ta-field-names-xml-wineventlog
Closed

Varshith-Kali wants to merge 1 commit into
splunk:developfrom
Varshith-Kali:fix/stale-ta-field-names-xml-wineventlog

Conversation

@Varshith-Kali

Copy link
Copy Markdown

What

Fixes #2869.

The Splunk Add-on for Microsoft Windows extracts snake_case field names (Logon_Type, Target_User_Name) from XmlWinEventLog events via sourcetype-wide REPORT extractions, so 35 detections still referencing the stale PascalCase names (LogonType, TargetUserName) silently stopped matching on current TA versions.

Changes

  • Renamed LogonType → Logon_Type and TargetUserName → Target_User_Name in search and drilldown_searches SPL across 35 detections, including the finding block (title token and entity.field) in windows_domain_admin_impersonation_indicator.yml so drilldowns and finding metadata stay consistent.
  • Bumped version +1 and set modification_date: 2026-09-24 in each changed file per repo convention.
  • Deliberately out of scope: EventCode 4781's OldTargetUserName/NewTargetUserName (no snake_case variant exists in the TA) and prose documentation — kept the diff reviewable.

Tests

  • yamllint -c .yamllint on all changed files: clean.
  • YAML parse + version-bump assertion on all 35 files: pass.
  • Post-change sweep: zero stale functional references remain in any search, drilldown_searches, or finding block.
  • Note: contentctl-ng test (functional unit tests) requires Docker/Splunk infra not available here — will run in CI.

The Splunk Add-on for Microsoft Windows extracts snake_case field
names (Logon_Type, Target_User_Name) from XmlWinEventLog events via
its REPORT extractions; the PascalCase names (LogonType,
TargetUserName) are stale. 35 detections still referenced the stale
names, so they silently stopped matching on current TA versions.

Rename LogonType -> Logon_Type and TargetUserName -> Target_User_Name
in search and drilldown SPL across 35 detections, following the
convention already used by migrated detections (e.g.
windows_rdp_login_session_was_established, the 4648
Target_User_Name detections). EventCode 4781's OldTargetUserName /
NewTargetUserName have no snake_case variant in the TA and are left
untouched. Prose documentation is unchanged to keep the diff
reviewable. Version bumped and modification_date updated per repo
convention.

Fixes splunk#2869.

Signed-off-by: Varshith Puli <pulivarshit@gmail.com>
@nasbench

Copy link
Copy Markdown
Contributor

Hey @Varshith-Kali thanks for opening this PR. Unfortunately, the fix that you are proposing is not the right one we would like to see.

Basically, the issue is between XML/Non-XML logs. The way certain fields are represented changes between the 2, and more importantly one is localized while the other is not.

We have some content written against the different source types which led to this issue.

The fix is to actually re-generate logs for the non XML versions and use that instead, because that is what we opted towards many years ago.

I am working on an actual fix, so no worries on that regard.

Meanwhile. I will be closing this PR for now

@nasbench nasbench closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ESCU CS fields LogonType and TargetUserName

2 participants