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

Fix regex for XProtect SCA ruleset on macOS #78

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

casdr
Copy link
Contributor

@casdr casdr commented Aug 13, 2024

Related issue

Description

SCA rule Ensure XProtect Is Running and Updated checks if XProtected is running and included in startup. Since grepping on com.apple.XProtect.daemon.scan also includes com.apple.XProtect.daemon.scan.startup, the count will be 2.

By adding this end of string match, the count is back to 1 which results in a successful check.

Configuration options

None.

Logs/Alerts example

None.

Tests

  • Compilation without warnings in every supported platform
    • Linux
    • Windows
    • MAC OS X
  • Decoder/Rule tests
    • Added unit testing files ".ini"
    • runtests.py executed without errors

@TomasTurina TomasTurina merged commit a86612a into wazuh:master Aug 29, 2024
1 check passed
@casdr casdr deleted the fix/darwin-xprotect branch September 3, 2024 09:59
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.

2 participants