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

Rework SCA Policy for Microsoft Windows 11 Enterprise #22734

Draft
wants to merge 119 commits into
base: 4.9.0
Choose a base branch
from

Conversation

jk-olaoluwa
Copy link
Member

Component Action type Main Issue
SCA Rework #21930

Main tasks

Checks

Syntax and semantic

  • a) ID of each policy must be contiguous.
  • b) The order and format set in Documentation must be respected.
  • c) YML must be valid to avoid errors.

Content

  • a) Compare each check with its analog from CIS Benchmark.
  • b) Try maintaining each rule as similar as possible with the Audit section from the CIS check.
  • c) Check that the commands provide the expected output.
  • d) When a failure is discovered, check similar policies to avoid repetition of the issue.

Unit testing

  • a) Output from agent.log after the SCA scan and a raw output of the result of the checks.
Tests results
2023/11/09 17:16:09 sca: INFO: Evaluation finished for policy 'C:\Program Files (x86)\ossec-agent\ruleset\sca\cis_win10_enterprise.yml'
2023/11/09 17:16:09 sca: INFO: Security Configuration Assessment scan finished. Duration: 81 seconds.

Analysisd (server or local)

analysisd.debug=2

Auth daemon debug (server)

authd.debug=0

Exec daemon debug (server, local, or Unix agent)

execd.debug=0

Monitor daemon debug (server, local, or Unix agent)

monitord.debug=0

Log collector (server, local or Unix agent)

logcollector.debug=0

Integrator daemon debug (server, local or Unix agent)

integrator.debug=0

Unix agentd

agent.debug=2

Deployment

  • a) If the policy it's new, it must be added to the sca.files templates.
  • b) If the OS has many supported SCA policies, a policy must be set as the default policy. (as example)

Documentation

  • a) Ensure documentation SCA list includes the created or updated SCA.

Selutario and others added 24 commits February 16, 2024 17:22
…-duration-aws

Change max `iam_role_duration` aws
…fig-profile-prefixes

Remove profile prefixes
…ed-auth-for-wodles

Remove deprecated plain text auth from AWS and Azure wodles
…test

Add `--build-managers-only` parameter in conftest.py
…stats

Make get_daemons_stats_socket function asynchronous
- QueryAllPackages
  - Reduced log verbosity from warning to debug
  - Improved log message -> 'error' string on warning level
- osDataCache
  - Improved log message -> added context
…zuh-db-in-ci-install-test

Improve log messages from the vulnerability scanner
@jk-olaoluwa jk-olaoluwa linked an issue Apr 4, 2024 that may be closed by this pull request
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework SCA Policy for Microsoft Windows 11 Enterprise