Skip to content

[Auditbeat] Opt-in to detecting password changes#9461

Merged
cwurm merged 11 commits intoelastic:feature-auditbeat-hostfrom
cwurm:shadow_optional
Dec 11, 2018
Merged

[Auditbeat] Opt-in to detecting password changes#9461
cwurm merged 11 commits intoelastic:feature-auditbeat-hostfrom
cwurm:shadow_optional

Conversation

@cwurm
Copy link
Copy Markdown
Contributor

@cwurm cwurm commented Dec 10, 2018

This introduces a user.detect_password_changes config parameter to the system module. Its default is false, and without it being explicitly turned on, the code will not read the password field in /etc/passwd nor /etc/shadow and so will not emit any password_changed events.

In addition, when detecting passwords is turned on, we will now do 10 rounds of SHA-512 hashing before storing a hash of the password field value.

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/secops

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.

I took a quick look at this. Didn’t notice anything major.

If someone else has time to review that would be good too.

@cwurm cwurm requested a review from tsg December 10, 2018 21:14
Copy link
Copy Markdown
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

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

Two minor questions otherwise LGTM

Copy link
Copy Markdown
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

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

Good from my side. Just a question mark on if this should be on or off by default

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we want to do off in the code, but on in the config, this would be the place to change it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 - I've changed it

@cwurm cwurm merged commit d969480 into elastic:feature-auditbeat-host Dec 11, 2018
cwurm pushed a commit to cwurm/beats that referenced this pull request Dec 16, 2018
Introduces a `user.detect_password_changes` config parameter that defaults to true in the config, but false in the code. Only if it is set to true will the code read the password field in /etc/passwd and /etc/shadow to detect password changes.

The read password field values are put through 10 round of SHA-512 hashing before being locally stored.
@cwurm cwurm mentioned this pull request Dec 18, 2018
21 tasks
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.

5 participants