Skip to content
Kandaro
Book a demo

Deception

Active Directory decoys

Fake accounts and a fake server in your own domain, placed where attackers look first. Any use of them leads to one of your decoys.

Before you start

  • The admin role in Kandaro, and a decoy the fake server can point to.
  • A domain admin on your side who can review and run a script: PowerShell with the ActiveDirectory and DnsServer modules, or a Samba 4 domain controller.

Why Active Directory

Once someone is inside a Windows network, one of the first things they do is list the domain: users, service accounts, admins and servers. A few tempting entries in that list that lead nowhere real are some of the most reliable bait you can plant.

What gets created

In Deception → Bait & breadcrumbs, open the Active Directory tab, choose Create AD decoys and pick the decoy they should lead to. Kandaro generates a script for your domain. Your admin reviews it and runs it; Kandaro never connects to your domain and never receives domain credentials. The script creates exactly four things, and changes nothing that already exists:

  • A service account (default svc_sqlbackup) registered as running a service on the fake server, which Windows records as a service principal name. Attackers single out accounts like this, because they can try to crack its password offline (see below).
  • An admin-looking user (default adm_backup).
  • A computer object and a DNS record for a fake server (default vault01) that resolve to your Kandaro decoy.

Both accounts get a random 32-character password, stored by Kandaro as a fingerprint only, so the script is shown once. Names are editable; the defaults are chosen to look ordinary. No description mentions Kandaro or decoys.

Why these accounts can’t be used for real

Both accounts are denied every logon hour on your real domain, may only log on to the fake server, are never trusted for delegation and join no groups. Using them against a real domain controller fails. Kandaro recognises the password itself, so trying it at the decoy raises an incident, with the event shown as Bait used and the account’s name in it.

Optionally, Kandaro can put the admin account’s password in its description, a classic mistake attackers search for. It makes the bait far more likely to be tried. It is off by default; turn it on deliberately.

Running the script

Always run it with the dry run first. It stops without changing anything if any of the names already exist.

PowerShell
# In an elevated PowerShell on a machine with RSAT (ActiveDirectory and DnsServer modules):
.\kandaro-ad-decoys-corp.acme.local.ps1 -DryRun   # shows what it would do, changes nothing
.\kandaro-ad-decoys-corp.acme.local.ps1           # creates the decoys
Samba
# As root on a Samba 4 domain controller:
sh kandaro-ad-decoys-corp.acme.local.sh --dry-run
sh kandaro-ad-decoys-corp.acme.local.sh

Keep the script private and delete it after use. To remove the decoys, delete the set in the Console: you get an undo script that removes exactly those objects, and only while they still look the way Kandaro created them.

What this does and doesn’t catch, today

  • Caught: anyone who tries one of the accounts’ passwords at a Kandaro decoy, and anyone who connects to the fake server.
  • Not by the decoy: an attacker requesting a ticket for the service account to crack it offline (Kerberoasting) does that on your domain controller, not on a decoy, so the decoy alone doesn’t see it. Catching that moment needs the domain controller’s own logs, for example from a SIEM or other tool you connect to Kandaro. The Kandaro agent doesn’t run on Windows yet. Either way, with a 32-character random password the crack won’t succeed, so the attacker never gets a working password.

You can have up to 20 sets per organisation.