Implement CIS 3.1.1 audit log search control - #324
Conversation
Preview EnvironmentA preview environment can be spun up on demand for this PR.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b630a1127
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| audit_disabled := object.get(input, "audit_disabled", null) | ||
|
|
||
| audit_disabled != null | ||
|
|
||
| # Compliant when auditing is not disabled | ||
| compliant := audit_disabled == false |
There was a problem hiding this comment.
Check UnifiedAuditLogIngestionEnabled for 3.1.1
For tenants where mailbox auditing-on-by-default is enabled (AuditDisabled=false) but Purview unified audit log ingestion is off, this returns compliant even though CIS 3.1.1 should fail. The benchmark text in docs/engine/Framework/CIS_M365_Benchmarks.json:496 audits Get-AdminAuditLogConfig | Select-Object UnifiedAuditLogIngestionEnabled and requires it to be True; AuditDisabled is the separate 6.1.1 mailbox-auditing control, so this new ready control duplicates 6.1.1 and misses disabled audit-log search.
Useful? React with 👍 / 👎.
CI: Engine
All checks passed. |
Summary
Implements CIS 3.1.1 by adding the Rego policy and updating the control metadata to verify that Microsoft 365 audit log search is enabled.
Type of Change
Affected Components
/backend-api/frontend/engine(collectors / policies)/security/infrastructure/.github/workflows/docsMotivation
This control is required to automate CIS 3.1.1 and verify that audit log search is enabled.
Testing Done
Security Considerations
Breaking Changes
Rollback Plan
Checklist
Screenshots