35. Honeypots (deception)
This guide describes Lawliet 1.6.3.b (the current release, a beta: earlier releases are beta. The first stable release will be 2.0.0). Screens, commands and procedures may change in later versions; the usage guide is updated with each release. Check the version your server runs under Settings > Platform or with ./lawliet version, and see the Releases page for what changed.
A honeypot is a decoy planted on your hosts: a bait file, a fake service, a canary token, a decoy account. It has no legitimate use, so any interaction with it is an alert - a trip. Trips land in the review queue and can trigger containment.
Permissions:
| Task | Permission | Four-eyes |
|---|---|---|
| See decoys and trips | View honeypots | - |
| Create, deploy, undeploy, delete decoys (keeping their trips); set a trip's status | Manage honeypots | no |
| Set Auto-block source, point an auto-block decoy at more hosts, or widen it from this host to every host | Manage honeypots + Execute containment | yes - "Run a containment action" |
| Delete a decoy's recorded trips | Manage honeypots + Delete evidence | yes - "Delete evidence" |
| Undo an automatic block | Execute containment | on the Blocklist: no for a this-host block, yes for an every-host block (54.4) |
Note: choosing Auto-block source is the authorisation for the blocks it makes, so it is a containment action: it needs Execute containment (the built-in Analyst role does not hold it) and a second administrator's approval when dual control is on. After that, each trip blocks with no further approval, and only at the decoy's target hosts. Turning auto-contain off, or narrowing the hosts, needs no second signature. Decoys that were in auto-contain mode before 1.5.14.s keep it and show review in the When touched column until it is turned on again through the approval.
35.1 Decoy kinds#
| Kind | What is planted | Templates |
|---|---|---|
| Decoy file | A bait file at a plausible path | AWS credentials file, Production .env, SSH private key, Password spreadsheet (CSV); or a custom path and content |
| Network service | A listener that alerts on any connection | SSH (22), RDP (3389), SMB (445), HTTP (8080) |
| Interactive service (capture) | A listener that records what the visitor types or sends | SSH, Telnet, MySQL, PostgreSQL, MS SQL Server, HTTP (capture) |
| Fake admin login | A login page that alerts on any attempt | Admin console, Router admin, phpMyAdmin |
| Canary token | A token that alerts when used | URL, DNS, DOCX |
| Decoy account | A local account nobody should use | sql_admin, backup_svc, helpdesk |
| AD decoy account | A service-style account with a domain-flavoured name | svc_sqladmin, backup_da, helpdesk_admin |
| DNS canary | A name served by the Lawliet server; any lookup is a trip | Unique subdomain canary |
The DNS canary is hosted by the server, not by agents. It is off until the deployment is set up for it: HONEYPOT_DNS_ENABLED=true, HONEYPOT_DNS_ZONE=<a zone delegated to this server> and, if not 53, HONEYPOT_DNS_PORT in .env, plus a DNS delegation of that zone to the server, then sudo ./lawliet start to apply the .env change. Without that, a DNS canary is created but nothing can trip it.
Bait content is inert: fake credentials that work nowhere.
35.2 What the Honeypots page shows#
Path: Honeypots. "Decoys planted on your hosts. A decoy has no legitimate use, so any interaction is an alert."
- Tiles: Decoys, Enabled, Total trips, New trips.
- Decoys: each with Deploy / Undeploy. Click one for its drawer: Reach / watching (where it listens), Hosts (deploy state per host), Trips on this decoy, Config, and Deploy, Undeploy, Delete.
- Trips: filtered by status, kind and severity.
35.3 Procedure: create and deploy a decoy#
Permission: Manage honeypots. Four-eyes: no.
Risk: a decoy is a real file, account or listener on the host. A network decoy opens a port; a decoy account exists in the host's account list. Tell the host owners, so that their own tools (backup, inventory, vulnerability scanners) are not mistaken for attackers - or exclude those tools. Rollback: Undeploy removes the decoy from the hosts; Delete removes it from Lawliet.
- Open Honeypots and press New decoy.
- Fill the form:
| Field | Meaning |
|---|---|
| Name | For example "Finance share bait" |
| Kind | One of the kinds above |
| Target OS | Any OS, Linux, Windows, macOS |
| Severity | Severity of a trip |
| Description (optional) | What it baits, and why |
| Templates / Canary types | Choose one or more; none = the default |
| Custom path (optional), Custom content (optional) | Decoy file only. "A relative path lands under the agent" directory; blank uses the template path |
| When this decoy is touched: Alert only (default) or Auto-block source | See 35.5 |
| Hosts | Tick the target hosts; none = choose them later |
- Press Create decoy.
- Creating does not plant anything yet. Press Deploy on the decoy (in the list or in its drawer) to send it to the target hosts.
What you see: the decoy's Hosts list shows each host's deploy state as the agents report. A decoy needs an online agent to be planted.
If it fails: a host's state shows the error the agent reported (for example a port already in use). Choose another template or port, or another host.
35.4 Procedure: handle a trip#
- Open Honeypots; new trips are at the top of Trips (they are also in the review queue).
- Click the trip. Read Source, Hits in this window, User, Process, Geo / country, ASN, rDNS, Context, the Payload preview (what was sent or typed) and Correlated activity (other events from the same source).
- Decide and press a status under Set status: Acknowledge, Resolve or False positive.
- For a real intrusion: open an investigation (chapter 34) and contain the source (chapter 36).
35.5 Auto-block source (auto-contain)#
Every decoy has a visible switch, When this decoy is touched:
- Alert only (the default): the trip raises the alert; an analyst decides what to block.
- Auto-block source: the source address goes on the blocklist the moment the trip is recorded, with no further approval. Choose Block at: This host (where the decoy was touched) or Every host, and For: 1 hour, 24 hours, 7 days or Permanent.
The switch is on the New decoy form and in the decoy's drawer (When touched > Change); the decoy list shows it in the When touched column ("Alert only", or "Auto-block source at every host, for 7d"). Choosing Auto-block source is the authorisation for the blocks it makes, so it is a containment action: it needs Execute containment and, when dual control is on, a second administrator's approval; you then run the request from Approvals to save the decoy.
Without Execute containment the option is disabled: "Your account cannot turn this on: it needs the Execute containment permission." The approver reads the decoy, the hosts whose trips block and where the block goes ("... ENABLES auto-contain: a trip at 2 linux agent(s): web01 (#4), web02 (#5) blocks its source address with no further approval at EVERY host (every agent, including agents enrolled later), for 7d"). With dual control on, the console says the change "was sent for approval as request N"; nothing is saved until it is run from Approvals. Pointing an auto-block decoy at more hosts, or changing This host to Every host, is held the same way, and the request must state the decoy's hosts (target_os and target_agent_ids) and config in full. Going back to Alert only, narrowing the hosts or shortening the time needs no second signature.
A trip that blocked shows Auto-blocked with See each host and unblock, which opens the blocklist entry; a trip that did not shows why, and Block <address> to block it by hand.
Auto-block only ever blocks the single source address of a trip, never a network; a trip whose reported source is not a single address blocks nothing. Lengthening the time (for example 1 hour to permanent) is held for a second signature like widening the hosts.
Choose Every host with care. The source of a trip is what the decoy's host reports: a compromised host can report the address of any server you have not protected (a file server, an application server) and get it blocked on every host with nobody in the loop. The Lawliet server, management sources, gateways, DNS and NTP servers, domain controllers and never-touch hosts are always protected (54.1); put other critical servers on the tier-0 list, or keep the decoy at This host.
- It acts only on the first trip, not on every repeat hit.
- It never blocks what the blocklist never blocks (54.1): the Lawliet server, a management source, a never-touch host, loopback, link-local, multicast or reserved addresses.
- It acts only on a trip at a host that is one of the decoy's targets. A trip on a host the decoy is still deployed on after its targets were narrowed is recorded with "Auto-contain did not block (host outside the decoy's auto-contain scope)".
- If it fails, the trip is still recorded, with the reason.
- When an agent is deleted, it is taken out of every decoy's targets. A decoy whose only target it was keeps it (an empty target list would mean every agent) and has auto-contain turned off.
The trip drawer says Auto-contained. or Auto-contain did not block. with the reason.
To lift a block (for example a false positive): open Defense, find the block in Dispatched actions, and press Undo (unblock address) (chapter 36).
35.6 Procedure: undeploy or delete a decoy#
Permission: Manage honeypots; deleting its trips too also needs Delete evidence. Four-eyes: no (yes for deleting the trips, "Delete evidence"). Risk: deleting the trips cannot be undone. Rollback: Deploy again after an undeploy; after a delete, create the decoy again (35.3).
To take a decoy off the hosts but keep it in Lawliet:
- Open Honeypots and press Undeploy on the decoy (in the list or in its drawer).
- What you see: in the drawer's Hosts, each host's state changes as its agent removes the decoy. An offline host removes it when it next checks in.
To delete it:
- Open the decoy's drawer (or use the bin on its row, Delete <name>) and press Delete.
- A box asks "Delete decoy "<name>"?" and says how many recorded trips it has. Choose Keep them (they stay in the trip list, named after this decoy). (the default) or Delete them too. (needs Delete evidence; disabled without it).
- Press Delete decoy (or Cancel). Lawliet first tells the hosts to remove it (as Undeploy does), then deletes the decoy. What you see: "Decoy "<name>" deleted; its N recorded trip(s) are kept." Deleting the trips too is held for a second signature: With dual control on, the console says "Deleting "<name>" and its trips was sent for approval as request N. It does not run by itself: a second administrator approves it in Approvals by <time>, then you run it from Approvals within the execution window (15 minutes after the approval by default)."
A decoy cannot be edited in the console in this release. To change its kind, templates, hosts or auto-contain setting, create a new decoy, deploy it, then undeploy and delete the old one.