Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ESCU CS fields LogonType and TargetUserName #2869

Open
cp-sn opened this issue Oct 2, 2023 · 3 comments
Open

[BUG] ESCU CS fields LogonType and TargetUserName #2869

cp-sn opened this issue Oct 2, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cp-sn
Copy link

cp-sn commented Oct 2, 2023

Describe the bug

There are some CS that are not using the correct field name using the last version of the "Splunk Add-on for Microsoft Windows".

Expected behavior

Some CS need to be change to the correct field names.
Field Original Name > New Name
LogonType > Logon_Type
TargetUserName > Target_User_Name > user

https://github.com/search?q=repo%3Asplunk%2Fsecurity_content+LogonType&type=code
https://github.com/search?q=repo%3Asplunk%2Fsecurity_content+TargetUserName&type=code
https://github.com/search?q=repo%3Asplunk%2Fsecurity_content+Target_User_Name&type=code

App Version:

Splunk Version 9.0.4.1
ES Content Updates 4.12.0
Enterprise Security 7.1.1

@cp-sn cp-sn added the bug Something isn't working label Oct 2, 2023
@hampusstrom
Copy link

hampusstrom commented Nov 13, 2023

After spending countless hours troubleshooting issues of this character i can conclude the following:
This is not a bug related to only the mentioned fields but a major issue across all of ESCU/Windows TA if you make use of XML formatted WinEventLog.

My experience from every version of the Windows TA and ESCU that I have used is that only a handful of fields actually have aliases or evals that convert from the PascalCase names found in XmlWinEventlog to the classic WinEventLog Snake_Case correctly and that most if not all ESCU searches make use of the classic WinEventLog field names.
The result is that many if not all the ESCU searches you activate in your XmlWinEventLog environment will never work, because the fields simply do not exist for XmlWinEventLog events.

To this you might respond "Why would you use Xml then?"
Language packs. Language packs, is the reason.

The alternative in an international or mixed language environment is that you will have to manually translate most if not all field extractions and evals to support all the languages in your environment.
Otherwise the result, again, is that few or none of the ESCU searches will work in your environment.
It is not a valid alternative.
In an english only environment i totally get it.

I have encountered this same issue across multiple production environments so I am pretty sure this is not an isolated case, and googling similar issues return multiple splunk community discussions on this exact topic.

My suggestion to fix these issue for good is for all fields names used in ESCU searches to be inventoried.
For each of these, create a field alias from the XmlEventLog equivalent value to the one used in the ESCU searches.
When this is done once, build a test suite to ensure that field aliases exist for any WinEventLog field name used so that these issues are never reintroduced.

Examples:

XmlWinEventLog WinEventLog alias/eval
TicketOptions Ticket _Options
TicketEncryptionType Ticket_Encryption_Type
SubjectAccountName case(EventCode=XYZ, Account_Name="SubjectName"...)

And so on

@ulwur
Copy link

ulwur commented Nov 14, 2023

I can not stress enough how right hampusstrom is in his assesment of this problem. This problem makes Enterprise Security more or less useless for our clients of many languages.

@josehelps
Copy link
Collaborator

Thank you so much for raising this up .. definitely a pain point we are now keenly aware of .. not sure what the exact plan for fix is yet but will make sure I come back to you once we have a fix.

@josehelps josehelps self-assigned this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants