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

Add support for CDHash rule types #1301

Merged
merged 4 commits into from
Mar 5, 2024
Merged

Add support for CDHash rule types #1301

merged 4 commits into from
Mar 5, 2024

Conversation

mlw
Copy link
Contributor

@mlw mlw commented Mar 5, 2024

This PR adds support for CDHash rules. This rule is now the highest precedence rule that Santa supports. After this PR, the precedence chain is now CDHash > Binary SHA-256 > Signing ID > Cert SHA-256 > Team ID > File Scopes.

This PR also adds new sync server keys to match existing rule types (such as rule counts in Preflight, uploading a binary's cdhash in EventUpload, and accepting CDHASH rule types.

Some minor reworking of an old interfaces was done to further reduce the tedium of adding new rule types in the future (supplementing the work started in #1298.

Fixes #677

@mlw mlw added docs Documentation-related issues sync service Issues related to the sync service / protocol santad Work related to the Santa Daemon rules santactl labels Mar 5, 2024
@mlw mlw requested a review from a team as a code owner March 5, 2024 14:21
@mlw mlw added this to the 2024.3 milestone Mar 5, 2024
@pmarkowsky
Copy link
Contributor

Work for #677

@mlw
Copy link
Contributor Author

mlw commented Mar 5, 2024

Fixes #677

russellhancox
russellhancox previously approved these changes Mar 5, 2024
docs/concepts/rules.md Outdated Show resolved Hide resolved
@mlw mlw merged commit e89cdbc into google:main Mar 5, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation-related issues rules santactl santad Work related to the Santa Daemon sync service Issues related to the sync service / protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDHash based rules
3 participants