Skip to content

Cherry-pick #14299 to 7.x: Add Group Management Events - Add NewUAC Description for User Management Events#15153

Merged
leehinman merged 1 commit intoelastic:7.xfrom
leehinman:backport_14299_7.x
Jan 2, 2020
Merged

Cherry-pick #14299 to 7.x: Add Group Management Events - Add NewUAC Description for User Management Events#15153
leehinman merged 1 commit intoelastic:7.xfrom
leehinman:backport_14299_7.x

Conversation

@leehinman
Copy link
Copy Markdown
Contributor

Cherry-pick of PR #14299 to 7.x branch. Original message:

Added Group Management Events and Events 4798 and 4799 (User and Group enumeration)

Event Description
4727 A security-enabled global group was created.
4728 A member was added to a security-enabled global group.
4729 A member was removed from a security-enabled global group.
4730 A security-enabled global group was deleted.
4731 A security-enabled local group was created
4732 A member was added to a security-enabled local group.
4733 A member was removed from a security-enabled local group.
4734 A security-enabled local group was deleted.
4735 A security-enabled local group was changed.
4737 A security-enabled global group was changed.
4754 A security-enabled universal group was created.
4755 A security-enabled universal group was changed.
4756 A member was added to a security-enabled universal group.
4757 A member was removed from a security-enabled universal group.
4758 A security-enabled universal group was deleted.
4764 A group's type was changed.
4798 A user's local group membership was enumerated.
4799 A security-enabled local group membership was enumerated.

In order to map correclty this event a new field group.domain was added to the ECS group schema
(elastic/ecs#547)

Added addUACDescription function in order to translate to a human readable form the flags in winlog.event_data.NewUacValue field. A new field winlog.event_data.NewUACList is created and contains a list of decoded flags from the hex value in winlog.event_data.NewUACList
For example
winlog.event_data.NewUacValue -> 0x15 is translated to winlog.event_data.NewUACList -> SCRIPT,LOCKOUT
Also converts the winlog.event_data.UserAccountControl to a list of values

Cosmetic change: fix the order of events 4767 and 4781 and some space fixing

Ingesting this events we can have information about group who performed group changes and what the changes are.

Group_Managment - Kibana

… User Management Events (elastic#14299)

* Added Group Management Events
* Added User and Group Enumeration
* Added New UAC Description

(cherry picked from commit 8e31628)
Copy link
Copy Markdown
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I noticed this is missing a changelog entry. We should add one when we backport the accompanying dashboards.

Copy link
Copy Markdown
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like tests are failing. Maybe due to host.name changes in Winlogbeat that aren't in 7.x?

@leehinman
Copy link
Copy Markdown
Contributor Author

Looks like #15197 will fix it.

@leehinman
Copy link
Copy Markdown
Contributor Author

Looks like #15197 will fix it.

That fixed things in master, but before I can backport it to 7.x I have to add this one because parts of that commit depend on this one.

@leehinman leehinman merged commit d327bc5 into elastic:7.x Jan 2, 2020
@leehinman leehinman deleted the backport_14299_7.x branch March 27, 2020 14:51
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.

3 participants