Source: Tenable Blog
Author: Antoine Cauchois
URL: https://www.tenable.com/blog/active-directory-dynamic-objects-stealthy-threat
ONE SENTENCE SUMMARY:
Active Directory dynamic objects enable stealthy attacks by self-deleting without tombstones, leaving only confusing artifacts and requiring real-time detection.
MAIN POINTS:
- Dynamic objects use a TTL timer to self-destruct via the AD garbage collector.
- Expired dynamic objects bypass recycle bin and tombstones, eliminating directory-side forensic metadata.
- Deletion timing may lag up to 15 minutes, briefly enabling live inspection opportunities.
- entryTTL and msDS-Entry-Time-To-Die jointly represent countdown and absolute expiration.
- TTL limits are governed by msDS-Other-Settings, including minimum and default lifetimes.
- Attackers can evade MAQ evidence by creating self-deleting dynamic computer accounts.
- primaryGroupID can reference a dynamic group, yielding invisible membership and later corruption.
- Orphan SIDs persist in ACLs, including AdminSDHolder, polluting Tier-0 permissions visibility.
- Dynamic GPOs can execute via malicious gPCFileSysPath, then vanish leaving broken gPLink traces.
- Entra Connect may miss dynamic deletions, leaving orphaned, functional cloud users indefinitely.
TAKEAWAYS:
- Favor in-flight detection over post-mortems because directory evidence can fully disappear.
- Monitor and alert on creation of objects with entryTTL or msDS-Entry-Time-To-Die set.
- Reduce attack surface by setting ms-DS-MachineAccountQuota to zero where feasible.
- Hunt for inconsistencies: unresolved SIDs, broken gPLinks, corrupted primaryGroupID references.
- Validate hybrid identity hygiene by detecting and remediating Entra ID orphans from dynamic objects.