Bait objects in Active Directory
These two decoys live in your real Active Directory, unlike "Domain controller", which is a fake controller on the network. They use directory auditing (event 4662) and a scheduled task that alerts the node's beacon receiver, so they need that receiver deployed and verified. A domain administrator runs the steps in a PowerShell opened as administrator, on each domain controller: the read is logged only on the one that serves it and the object is created only once.
- Bait user: creates an account with an attractive name, disabled, without privileged groups, with a random password that is not stored and with sign-in limited to a machine that doesn't exist. Reading its properties alerts with the account, the IP and the number of properties read. Windows does not state the program: the tool is inferred from the volume. Its main risk is false positives: Entra Connect, backups, antivirus, Exchange, inventories and anyone who opens that organizational unit also read the account. Choose an organizational unit that is not synchronized with Entra ID.
- Fake LAPS password: creates a disabled computer with an invented password in the LAPS attribute and audits only that attribute, so a normal enumeration does not alert. It is a confidential attribute: whoever triggers the alert is an administrator or a compromised account, or an administration tool using that account that requests all attributes. It only works where LAPS is already used: the steps look for
ms-Mcs-AdmPwdormsLAPS-Passwordin the schema and, if neither exists, stop. The schema is never extended.
Observation phase: run the steps one at a time and stop at the one that shows who reads the object: it doesn't alert anyone yet. After 24 hours, or after a backup and a synchronization, add the legitimate accounts under "Reads that don't alert", save the decoy and continue. By default only SYSTEM and the controller's own machine account are excluded, and each account alerts at most once an hour.
If it is already deployed: the console does not allow changing the parameters. To add an account, edit excluir at the start of the downloaded script and run it again on each controller.
Volume: with "Directory Service Access" on, the controller logs event 4662 for any object with an audit rule, not only this one, and the security log may grow. The steps show how many there are per hour. When you remove it, auditing is left as it was.
Limits: a replication read (DCSync) does not generate this event. If the bait object is deleted, the task stops sending its signal and the decoy shows as degraded after three days. That signal belongs to the decoy, not to each controller.