Remediation
WolfGuard can apply automated corrections to your Entra ID tenant via the Microsoft Graph API. Every action goes through dry-run preview, an approval workflow, and produces an immutable audit trail. Rollback is available for 30 days after execution.
Enterprise license required —
auto_remediation feature flag.
How it works
Finding detected → Preview (dry-run) → Approval quorum → Execution → WORM audit trail
- Preview — WolfGuard generates a remediation plan listing the Graph API calls needed. No action is executed.
- Approval — Medium / high / critical risk actions require 2–3 approvers. Anti self-approval enforced.
- Execution — WolfGuard executes each step via Graph API and returns results per step.
- Audit trail — Every action is logged with WORM protection (SHA-256 signed, immutable for 30 days).
Supported rules
| Rule | Action | Mode |
|---|---|---|
| CA-001 | Create Conditional Access policy requiring MFA for admins | Report-only |
| DEV-001 | Disable non-compliant devices (max 10 per run) | Direct |
| DEV-002 | Disable non-managed devices (max 10 per run) | Direct |
| PERM-003 | Disable inactive user accounts (max 10 per run) | Direct |
Findings without an automated recipe return HTTP 422 with a step-by-step manual remediation tutorial instead.
Risk levels & approval thresholds
| Level | Approvers required | Example rules |
|---|---|---|
| low | 1 (immediate) | Uncategorised rules |
| medium | 2 | DEV-001, DEV-002, PERM-003, HYG-001 |
| high | 2 | PERM-001, PERM-002, CA-002, CA-003, HYB-001 |
| critical | 3 | CA-001, PIM-001, PIM-002, ATK-001, ATK-002 |
API — dry-run & apply
Remediation API workflow
# Step 1: preview the plan (dry-run) — shows what would be executed
curl -X POST https://wolfguard.example.com/api/entraguard/remediation/preview \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{ "finding_id": "uuid-of-finding" }'
# Step 2: create the action — goes to "awaiting_approval" unless risk is "low"
curl -X POST https://wolfguard.example.com/api/entraguard/remediation/apply-by-finding \
-H "Authorization: Bearer $API_KEY" \
-d '{ "finding_id": "uuid-of-finding" }'
# Step 3: approval vote (admin only)
curl -X POST https://wolfguard.example.com/api/entraguard/remediation/{action_id}/approve \
-H "Authorization: Bearer $API_KEY" \
-d '{ "decision": "approved", "comment": "Validated after review" }'
# Step 4: execute once approved
curl -X POST https://wolfguard.example.com/api/entraguard/remediation/{action_id}/apply \
-H "Authorization: Bearer $API_KEY"
# Rollback (within 30-day window)
curl -X POST https://wolfguard.example.com/api/entraguard/remediation/{action_id}/rollback \
-H "Authorization: Bearer $API_KEY" \
-d '{ "reason": "Wrong object targeted" }' WORM backup & rollback
Before every PATCH or DELETE against the tenant, WolfGuard captures a snapshot of the resource and stores it in PostgreSQL with a 30-day WORM retention trigger. The trigger raises an exception on any attempt to UPDATE or DELETE the row before expiry.
- Deleted resources: restored via
POST /directory/deletedItems/{id}/restore(Graph 30-day recycle bin) - Modified resources: re-applied via PATCH with the full snapshot
- Partial failures: marked
partial_failure— other backups still processed
Security guardrails
- CA policies are always created in report-only mode — WolfGuard never creates an enforced CA policy directly
- Batch limit — max 10 objects per execution to prevent mass uncontrolled actions
- Anti self-approval — the requester cannot be an approver (HTTP 403)
- Single vote per approver — duplicate vote returns HTTP 409
- Immediate rejection — any
rejectedvote cancels the action without waiting for others - Credential via Vault —
credential_idis a UUID only; raw secrets are rejected with HTTP 400
Required Graph permissions
These write permissions are only required if you use auto-remediation. Read-only permissions are sufficient for audit only.
| Permission | Usage |
|---|---|
Policy.ReadWrite.ConditionalAccess | Create/modify CA policies |
Device.ReadWrite.All | Disable devices |
User.ReadWrite.All | Disable user accounts |
Next steps
- → Features — full rule catalogue
- → Coderaft Vault — credential management
- → WORM Audit Logging — immutable audit trail