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

Winlogbeat security module - sometimes related.user field missing #34635

Open
leweafan opened this issue Feb 21, 2023 · 8 comments
Open

Winlogbeat security module - sometimes related.user field missing #34635

leweafan opened this issue Feb 21, 2023 · 8 comments
Labels
Team:Security-Windows Platform Windows Platform Team in Security Solution Winlogbeat

Comments

@leweafan
Copy link
Contributor

leweafan commented Feb 21, 2023

Describe the enhancement:

Add related.user for event codes 4627, 4800, 4797, 4742, 4801, 4793, 4696, 4738.

According to field description:

All the user names or other user identifiers seen on the event

The problem not only with this one module. Seems like there is no autotest to check related.user in case user.name field exists. Created feature request to add the autotest for this case.

Describe a specific use case for the enhancement or feature:

Event codes 4627, 4800, 4797, 4742, 4801, 4793, 4696, 4738 has user.name field and related.user field missing it affects security issues discovery. All other event codes have user.name and related.user fields.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 21, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 21, 2023
@jamiehynds jamiehynds added Winlogbeat needs_team Indicates that the issue/PR needs a Team:* label labels Feb 21, 2023
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 21, 2023
@botelastic
Copy link

botelastic bot commented Feb 21, 2023

This issue doesn't have a Team:<team> label.

@efd6
Copy link
Contributor

efd6 commented Feb 21, 2023

@leweafan Can you provide scrubbed XML examples of these event types?

@efd6
Copy link
Contributor

efd6 commented Feb 22, 2023

Thanks, if you could provide XML samples that would be preferable. If not can you confirm that user in all cases of the event types you are concerned about is the TargetUserName or SubjectUserName?

@leweafan
Copy link
Contributor Author

I can confirm that user in most cases is TargetUserName and in some cases SubjectUserName.
Sorry did know how I'm supposed to get xml format?

@efd6
Copy link
Contributor

efd6 commented Feb 22, 2023

You can export the XML from the Windows event viewer.

Without knowing which of Target... or Subject... it's difficult to know which to put in user.name. related.user.name is fine since we just get it if it exists.

@leweafan
Copy link
Contributor Author

leweafan commented Feb 22, 2023

I don't have access to windows hosts. I know that all event codes described on microsoft site and xml too.
Please check event id 4627 here

@norrietaylor norrietaylor added Team:Security-Windows Platform Windows Platform Team in Security Solution and removed Team:Security-External Integrations labels Jan 31, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Security-Windows Platform Windows Platform Team in Security Solution Winlogbeat
Projects
None yet
Development

No branches or pull requests

5 participants