🧹 Rework of Linux related queries focusing on robustness and using native resources #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improvement on many queries using native resources instead of the
command
resource.More robustness due to using regular expressions instead of plain text
.contains
queries.I intend to split
auditd
related queries into a separate block ofscoring_queries:
to avoid the repeated use of this construct:Would that be preferable?
** Overview of Commits **
Signed-off-by: Manuel Weber manuel@mondoo.com
fixed,regex: Ensure auditing for processes that start prior to auditd is enabled++
fixed,regex: Ensure changes to system administration scope (sudoers) is collected
fixed,replaced command: Ensure changes to system administration scope (sudoers) is collected
added,regex: Ensure login and logout events are collected
fixed,regex: Ensure session initiation information is collected
fixed,regex: Ensure events that modify date and time information are collected
fixed,regex: Ensure events that modify the systems Mandatory Access Controls are collected
fixed,regex: Ensure events that modify the systems network environment are collected
fixed,regex: Ensure unsuccessful unauthorized file access attempts are collected
fixed,regex:Ensure discretionary access control permission modification events are collected
fixed,regex: Ensure events that modify user/group information are collected
fixed,regex: Ensure file deletion events by users are collected
fixed,regex: Ensure kernel module loading and unloading is collected
added: Ensure system administrator actions (sudolog) are collected
added: Ensure the audit configuration is immutable
regex start changed to include potential whitespace
regex end changed to include potential whitespace
fixed,regex: Ensure sudo logging is enabled