How to restore access control lists after a permission escalation
Access control lists (ACLs) determine which identities and groups can read, modify, own, or audit files, folders, devices, and shared resources. After a permission escalation, simply granting administrators broad rights can conceal the intrusion or interrupt operations. The objective is to return every affected object to an approved state while proving that the attacker cannot re-enter through the same path.
The terminology varies in hybrid environments. A Windows DACL, Azure role assignment, AWS IAM policy, Google Cloud IAM role, and SaaS permission are different controls, even when teams call them ACLs. Recovery must map the actual enforcement layer, correlate it with identity activity, and account for Australian operating conditions: distributed staff, cloud services, managed-service providers, and regulatory duties. A rushed rollback can erase evidence, remove legitimate access, or leave compromised credentials in place.
Contain the escalation and preserve evidence
Start by deciding whether the change was unauthorised. An approved administrator may have expanded a group or delegated a role during a project, while an attacker may have done the same thing to establish persistence. Compare change records, deployment tickets, owner approvals, and identity-provider timestamps. If the change was legitimate, document and approve it instead of reverting it; if authorisation is uncertain, treat the affected identity and resource as potentially compromised.
Containment should remove the attacker’s immediate advantage without destroying proof. Before deleting or rewriting anything, preserve volatile evidence such as memory, running processes, active sessions, and cloud logs. Disable confirmed compromised sign-ins, revoke sessions and refresh tokens, quarantine affected systems, and remove unexplained privileged group memberships or role assignments. Use emergency access through a clean administrative path rather than the potentially compromised account. Do not delete the principal outright, because its history and identifiers may be needed for scoping the incident.
Capture the current state before restoration: object owners, DACLs, SACLs, inheritance flags, access-control entry order, nested group memberships, conditional access policies, role assignments, service-account activity, and relevant cloud and endpoint logs. Where supported, export security descriptors in SDDL form and preserve immutable or off-host copies. This snapshot is evidence, not automatically a trusted restoration point; an attacker who acted before the snapshot may already have altered it.
Reconstruct the intended permission baseline
A safe restoration target must come from an authoritative source rather than from the live ACL. Suitable sources include approved configuration baselines, hardened templates, infrastructure-as-code policies, documented access reviews, and sign-off from the data or system owner. Compare any proposed baseline with the live state, but never treat current permissions as correct merely because they are convenient. Include service accounts, application identities, temporary administrators, and delegated administration, because attackers frequently hide in these less visible paths.
Map effective access, not only direct entries. Resolve nested groups, inherited permissions, dynamic membership, resource-scoped roles, local administrator rights, and any control that can rewrite the ACL. Identify tier-zero identities and every system they can reach. A useful exercise is to build a privilege path from the compromised account to sensitive files or administrative control, then design the restored state so that each unnecessary step is removed. This also reveals legitimate dependencies that must be rebuilt safely.
Many Australian organisations operate across Sydney, Melbourne, and Brisbane offices, remote workers, and client sites, often using a mix of Microsoft 365 and Azure, AWS or Google Cloud, on-premises Active Directory, and local managed-service providers. A café or airport connection may expose a stolen session, but permission escalation usually follows that initial access rather than replacing it. The baseline therefore needs to cover cloud, endpoint, and directory layers while accounting for contractors who change roles frequently and administrators who support several customers.
Choose the safest restoration method
The right method depends on the quality of the baseline, the complexity of the resource, and whether attacker persistence remains active. Some objects have a trustworthy known-good snapshot; others have accumulated legitimate exceptions; others have no reliable history. Compare the options before changing production:
| Recovery method | Best fit | Main advantage | Principal risk and control |
|---|---|---|---|
| Roll back to a trusted ACL export | A recent, verified snapshot exists for the same object and workload | Restores precise permissions quickly | The snapshot may contain old rights or hidden compromise; verify provenance, timestamps, and business changes |
| Rebuild from approved policy | Permissions have drifted or no dependable export exists | Creates a documented, repeatable least-privilege state | Takes time and may interrupt services; obtain owner approval and test in stages |
| Reset inheritance, then restore exceptions | A simple hierarchy can safely inherit from a well-governed parent | Removes ambiguous and accumulated entries | Parent access may be excessive or applications may depend on exceptions; review the parent and pilot the change |
| Revoke and quarantine during reconstruction | Active persistence or full scope is still uncertain | Reduces immediate misuse while the target state is decided | Can create an outage; provide time-limited emergency access through privileged access management |
Choose rollback only when the export is demonstrably trustworthy. If it predates unrelated business changes, reconcile it with the approved baseline rather than applying it blindly. A parent-inheritance reset should never become a shortcut for unknown objects because it can grant broad access through a poorly designed parent. Quarantine is a temporary control, not a completed restoration.
The most defensible sequence is to contain first, reconstruct the intended state, compare object-by-object differences, and then apply a small set of reversible changes. Record why each retained exception exists. Avoid blanket deny rules that can lock out support staff or hide an excessive allow rule elsewhere. For cloud platforms, validate whether the permission is enforced through IAM policy, resource ACLs, a role assignment, or an application-specific grant; restoring one layer may have no effect on the others.
Apply, test, and monitor the recovery
Apply changes through a controlled runbook. Confirm the resource owner, create a fresh snapshot, test on a representative object, and watch authentication, application, and data-access errors. Preserve the original descriptor until validation is complete. Remove write access held by the compromised principal, but keep the minimum emergency permission needed to continue the recovery. Schedule large changes around Australian business hours, including interstate teams and follow-the-sun support where relevant.
ACL mechanisms have platform-specific traps. On NTFS, validate that explicit deny and allow entries use canonical order and that inherited permissions have been recalculated. Changing ownership can grant the new owner power to rewrite the DACL, so restore ownership only with care. SACLs govern auditing rather than access and should not be replaced merely to make a descriptor look old. For Azure, AWS, Google Cloud, and SaaS products, restore the role, policy, resource rule, or grant that actually grants the privilege.
During the incident, use this short containment sequence:
- Disable confirmed compromised identities and revoke their sessions, refresh tokens, and cached grants.
- Quarantine affected systems from unnecessary routes while preserving endpoint and network visibility.
- Save identity, cloud, firewall, and file-server logs before cleanup or consolidation.
- Rotate exposed passwords, service-account keys, and certificates from a trusted administrative system.
Retain this evidence alongside the restoration record:
- Compare current and approved owners, inheritance flags, ACL entries, group memberships, and role assignments.
- Test effective access for ordinary users, privileged groups, service accounts, and break-glass identities.
- Confirm that required workflows still work and that sensitive repositories remain segmented.
- Record approvals, timestamps, test outcomes, exceptions, and unresolved risks in the incident file.
Make the restored access model durable
Restoration is not complete while the route that enabled escalation remains usable. Hunt for persistence in new cloud access keys, service principals, scheduled tasks, browser tokens, local administrator groups, delegated admin roles, and newly created objects. Review file and object access for unusual enumeration or mass copying. For organisations using CARM Security, the platform developed by Exclusive Networks can help coordinate vendor signals and remediation across integrated technologies; investigators still need to validate the evidence and authorisation behind each change.
Strengthen the controls around the recovered state. Use phishing-resistant multifactor authentication, separate daily accounts from administrative identities, privileged access workstations, just-in-time elevation, and time-bound group membership. Configure alerts for changes to privileged groups, role assignments, object ownership, inheritance, and security descriptors, forwarding relevant events to the SIEM. Baseline drift should generate a review ticket, while joins, moves, departures, and supplier changes should trigger immediate access reconciliation.
Australian reporting and assurance duties should be assessed as part of the incident, not added after recovery. Under the Privacy Act 1988, organisations covered by the Australian Privacy Principles must investigate eligible data breaches and notify individuals and the Office of the Australian Information Commissioner when the legal threshold is met. Additional duties may apply under Victorian public-sector privacy legislation, the Security of Critical Infrastructure Act 2018, or APRA CPS 230. Government and critical-infrastructure organisations can also use the Australian Signals Directorate’s Essential Eight and Information Security Manual to benchmark access-control practices.
Practical takeaway: restore from an owner-approved baseline in staged, reversible changes; verify effective permissions after every phase; and continuously monitor privileged access so the original escalation path cannot silently return.