Deception Technology
Deception technology rests on a reliable observation: an attacker with legitimate credentials must discover your environment the same way an employee does, by scanning, browsing shares, reading configuration and trying passwords â and any resource they touch that no real user ever uses is, by definition, an intruder. That single property gives deception its signature virtue, an almost complete absence of false positives, which is precisely what every other detection method struggles to deliver.
The assumption deception exploits
Conventional detection asks "does this behavior look malicious," which forces a threshold that trades noise against misses. Deception flips the question to "did anyone interact with something that has no legitimate purpose," which has no threshold at all: interaction is the signal. The approach also inverts the attacker's economics. Their enumeration work â credential spraying, share enumeration, lateral probing â becomes an attack surface you designed on purpose, on your terms, with full instrumentation already in place.
The cost is discipline. A decoy that a legitimate user can stumble into generates noise and destroys trust in the alerting; a decoy that is obviously fake teaches attackers that your deception layer is shallow and that the rest of the estate is conventional. Both failures are common, and both are avoidable through placement and realism rather than through more technology.
The deception taxonomy
Different decoy types answer different questions, and mature deployments layer several of them rather than betting on one.
| Type | What it imitates | Answers | Typical placement |
|---|---|---|---|
| Honeypot | A whole service or host | Is someone enumerating services? | Unused external IP, dev segments |
| Honeynet | A network of decoy services | Is there lateral movement? | Internal VLAN beside real servers |
| Honeyfile | A document that should never be opened | Is someone browsing sensitive shares? | File shares, backup directories |
| Honeytoken | A credential, key or record | Is stolen data being used? | Databases, code repositories, config |
| Honeyuser | An account that nobody logs into | Is credential access occurring? | Directory, VPN, admin group |
| Honeyq | A queue or topic never published to | Is internal automation being abused? | Message brokers, CI systems |
The cheapest and most underused entries are honeyfiles and honeyusers: a document named after an active project in a share nobody is authorized to browse costs nothing to deploy and still produces an unambiguous alert when opened.
Deploying a honeypot without creating a liability
A decoy must be isolated enough that a compromise cannot become a pivot, and instrumented well enough that everything it observes is captured. The deployment pattern is consistent across tools: put decoys on a segmented network with restricted egress, present believable services and content, log every interaction to a destination attackers cannot reach, and make sure the alerting path is tested the way you would test any detection.
#!/usr/bin/env bash
# Stand up a segmented SSH/Telnet decoy with full session logging.
set -euo pipefail
COMPOSE_DIR=/opt/deception/ssh-decoy
mkdir -p "$COMPOSE_DIR/logs"
cat > "$COMPOSE_DIR/docker-compose.yml" <<'YAML'
services:
decoy-ssh:
image: cowrie/cowrie:latest
restart: unless-stopped
ports:
- "10.10.90.5:22:2222" # bound to the decoy interface only
volumes:
- ./cowrie.cfg:/cowrie/etc/cowrie.cfg
- ./logs:/cowrie/var/log/cowrie
networks:
- decoy
read_only: true
cap_drop: [ALL]
networks:
decoy:
driver: bridge
internal: true # no egress: a compromised decoy goes nowhere
YAML
cd "$COMPOSE_DIR" && docker compose up -d
# Forward every decoy event to the SIEM as its own source type.
vector --config /etc/vector/decoy.toml
# Alert on any interaction at all; there is no benign case to filter.
crul -s -X POST "$SIEM/webhook" \
-H 'content-type: application/json' \
-d '{"source":"decoy-ssh","rule":"any_interaction","severity":"high"}'
Two rules keep a honeypot safe. The decoy network must be genuinely internal-facing with no route to production, since an attacker who breaks out of your trap has just been handed a foothold. And the interaction rule stays unconditional: every login attempt, file access or token use is a high-severity event, because no legitimate activity exists to explain it away.
Honeytokens: deception that scales to the data layer
Honeypots defend the network perimeter of the estate; honeytokens defend the data itself. Plant a credential, API key, database row or document where an exfiltrated copy of your environment would plausibly include it, then wait for the token to appear anywhere on the internet. They are cheap to create, trivial to detect, and they carry the unique advantage of proving use of stolen data rather than mere access to infrastructure.
"""Generate and monitor honeytokens that prove stolen data is being used."""
import hashlib
import json
import os
import time
from pathlib import Path
TOKEN_FILE = Path(os.environ.get("HOME", "/tmp")) / ".deception" / "honeytokens.json"
def mint(kind, owner):
"""Create a token with a unique, traceable identifier."""
ident = hashlib.sha256(f"{kind}:{owner}:{time.time()}".encode()).hexdigest()[:16]
token = {
"id": ident,
"kind": kind,
"created": int(time.time()),
"owner": owner,
"never_valid": True,
}
if kind == "aws_key":
token["access_key"] = f"AKIA{ident.upper()}"
token["secret_key"] = os.urandom(40).hex()
elif kind == "database_row":
token["customer_email"] = f"audit.{ident}@example.invalid"
token["card_last4"] = "0000"
elif kind == "document":
token["filename"] = f"q3-forecast-{ident}.xlsx"
return token
def plant(token):
"""Place the token where a copying attacker would take it."""
TOKEN_FILE.parent.mkdir(parents=True, exist_ok=True)
existing = json.loads(TOKEN_FILE.read_text()) if TOKEN_FILE.exists() else []
existing.append(token)
TOKEN_FILE.write_text(json.dumps(existing, indent=2))
if token["kind"] == "aws_key":
Path("/opt/app/.aws-credentials.bak").write_text(
f"[default]\naws_access_key_id={token['access_key']}\n"
f"aws_secret_access_key={token['secret_key']}\n"
)
elif token["kind"] == "database_row":
insert_into_reporting(token) # a row no report ever selects
elif token["kind"] == "document":
Path("/srv/finance/archive") / token["filename"]
def on_use(token, observed_source):
"""Any appearance of the token is an incident, not an alert to triage."""
alert = {
"severity": "critical",
"title": "honeytoken used",
"token_id": token["id"],
"kind": token["kind"],
"source": observed_source,
"captured_at": int(time.time()),
}
notify_soc(alert)
notify(token["owner"], "The data containing your token has been accessed.")
if __name__ == "__main__":
planted = [mint(kind, owner="data-platform")
for kind in ("aws_key", "database_row", "document")]
for token in planted:
plant(token)
print(f"planted {len(planted)} tokens; monitor for any use")
Rotate honeytokens on the same schedule as real credentials, and keep their inventory somewhere the response team will actually check. A honeytoken nobody monitors is a decoy that has learned nothing.
Placement and realism
Placement follows the attacker's likely path: unused external addresses that appear in the same subnet as production, decoy shares beside real ones, fake entries in credential stores, and administrative accounts added to groups that a compromised domain controller would expose. The rule of thumb is that a decoy should be found during enumeration but never during normal work, so consult the people who actually use the environment before placing anything.
Realism is a detail game. A decoy database needs plausible schemas and rows; a decoy share needs documents with believable names, dates and owners; a decoy service needs banners, latency and error messages consistent with the version you claim to run. Attackers fingerprint quickly, and a decoy whose banner announces a product you do not run anywhere else is identified within seconds â at which point it tells them where your real systems are not.
đĄDeception covers the gap detections cannot
Where a detection rule needs known-bad behavior, a decoy observes all behavior against a target with no legitimate users. Use deception for the blind spots â credential use, lateral movement, data access â rather than duplicating alerts your EDR already produces.
Responding to a hit
A decoy interaction is a confirmed incident and should route straight to the response queue with full context: which decoy, which source address, which account, what commands or files were touched, and the complete session transcript. Because the source is known to be hostile, containment can be immediate and aggressive â isolate the source host, revoke the credentials used, and preserve the session logs as evidence.
The intelligence value deserves deliberate handling. Every engagement shows you tooling, technique and timing specific to an attacker operating against your environment, which is exactly the material threat intelligence programs struggle to source. Capture it into your detection backlog: an adversary who enumerated shares on a Tuesday will do so again, and a rule tuned to the observed pattern is worth more than a generic scan signature.
Measuring value, and build versus buy
Deception programs are easy to measure because the denominator is clean: interactions divided by deployed decoys, false-positive counts (which should be zero), and mean time from interaction to alert. Track coverage too â which assets and attack paths have no deception at all â because a program with three decoys in a server farm is decoration.
Buying a platform makes sense when you want managed realism, automatic rotation and integration with your SIEM across thousands of tokens. Building makes sense when you need specific deception â a fake financial export, a decoy industrial protocol, or honeytokens embedded in your own application's data model. Most teams start with one or two hand-built tokens to prove the workflow, then buy breadth once the response path has been exercised.
Common Mistakes
Leaving decoys reachable from production networks
Fix: Segment decoy networks with no egress and restricted routes into anything real.
Silencing alerts from decoys to reduce noise
Fix: Every interaction is a confirmed hostile signal; never apply allowlists to decoy sources.
Deploying decoys that legitimate users can stumble into
Fix: Validate placement with system owners so normal work never triggers an alert.
Planting honeytokens nobody monitors
Fix: Keep an inventory, rotate on schedule, and route any use straight to the response queue.
Stopping at the alert instead of harvesting the intelligence
Fix: Feed observed tooling and techniques into detection tuning and threat intelligence.
Best Practices
- Layer decoy types across network, identity and data rather than relying on one.
- Instrument decoys fully and ship logs to a destination attackers cannot reach.
- Make decoy alerts unconditional â false positives should be structurally impossible.
- Rotate and inventory honeytokens alongside real credentials.
- Convert every engagement into detection content and intelligence.
Key Takeaways
- Deception replaces a noisy threshold with an unambiguous signal: interaction with something unused.
- Isolation and realism are the two failure points that decide whether a decoy helps or hurts.
- Honeytokens extend deception into credentials and data, proving use of stolen material.
- A decoy hit is a confirmed incident with full session context and immediate containment options.
- Coverage and interaction rates give the program honest metrics with a clean denominator.