Cybersecurity Fundamentals series — Part 9. This post continues Part 1: A Complete Beginner’s Guide, Part 2: Security Controls, Part 3: The CIA Triad, Part 4: Non-Repudiation, Part 5: Authentication, Authorization, and Accounting, Part 6: Gap Analysis, Part 7: Zero Trust, and Part 8: Physical Security. Each post in the series takes one topic and covers it in depth. This one covers decoys that mislead attackers and give early warning: deception and disruption.

Deception technologies use decoys, such as fake servers, files, and credentials, that look valuable but are never used by real people, so any interaction with them is a strong sign that something is wrong. They help defenders learn how attackers work and get an early warning.

Most of cybersecurity is about keeping attackers out. Deception takes a different approach: it assumes attackers will probe your systems, and gives them convincing fakes to find. Because nothing legitimate should ever touch a decoy, there is almost no noise. If something touches it, someone is snooping, and you want to know.

In Part 8, you saw how physical controls can deter and detect. Deception is the digital version of the same idea. It is a detective and deterrent control, as described in Part 2, and it fits well with zero trust, which assumes someone may already be inside. If you want to go deeper on one tool, the honeypot guide covers it in detail, including a simple honeypot form field that stops spam.

The Core Idea

Defenders usually use their knowledge of systems to protect them. With deception, they use the same knowledge to mislead attackers. The goals are:

  • Learn which tools and techniques attackers use
  • Get early warning that someone is probing your network
  • Waste the attacker’s time on things that are not real
  • Gather evidence that is easy to interpret, because real users never touch it

Honeypots

A honeypot is a decoy system, placed to attract attackers and keep them busy, so defenders can watch what they do. It might pretend to be a web server, a database, or a device with weak security.

Some points to know:

  • Many of the “visitors” to a honeypot are automated scanners and bots, not people. Honeypots show what automated attacks look for.
  • Honeypots can be built with commercial or open-source software.
  • It is an arms race. Attackers learn to recognize honeypots, so decoys must be convincing and kept up to date.
  • A honeypot must be isolated from your real systems. If it is breached, it must not become a way into your real network.

Honeynets

A honeynet is a group of honeypots combined into a larger, realistic network. It can include simulated workstations, servers, routers, and firewalls, so the whole environment looks genuine. It lets defenders observe an attacker moving from one system to the next, not just probing a single machine. The cost is more effort to build and maintain.

Honeyfiles

A honeyfile is a file with fake contents that is named to look valuable, such as passwords.txt, payroll-2024.xlsx, or customer-list.csv, but contains no real data.

The key principle: no legitimate user should ever open it. On a production network, any access to a honeyfile is suspicious. The best practice is to configure an alert to your monitoring system whenever a honeyfile is opened, copied, or changed.

Honeytokens

A honeytoken is a piece of fake data that is traceable. You plant it where an attacker might find and copy it. If it later shows up somewhere it should not be, you know it was stolen, and from where.

Examples:

  • Fake credentials, such as an API key placed in a public file share or code repository. If anyone tries to use it, you are alerted.
  • Fake email addresses that belong to nobody. If they start receiving mail, the list they were on was copied.
  • Fake database records, such as a customer who does not exist. If that name appears in spam or on another site, your database was leaked.
  • Tracking items, such as a browser cookie or a tracking pixel in a web page, that report back when they are used or loaded elsewhere.

The value of a honeytoken depends entirely on monitoring: you have to watch for it to turn up.

See a Honeytoken Alert in Code

This script plays the role of a log monitor. It knows two honeytokens, a fake API key and a fake mailbox, and scans a few log lines. Since no real user or system ever uses these values, any match is an alert:

# Honeytokens: fake values planted where a thief might find them.
# No real user or system ever uses them, so any appearance in a log is an alert.
HONEYTOKENS = {
    "FAKE-API-KEY-7f3c9d2e": "fake cloud key left in a public file share",
    "[email protected]": "fake mailbox address that nobody uses",
}

log_lines = [
    "10:02:11 GET /index.html 200 from 203.0.113.7",
    "10:02:15 POST /login 302 user=maria from 198.51.100.4",
    "10:07:42 POST /api/export 200 key=FAKE-API-KEY-7f3c9d2e from 192.0.2.88",
    "10:09:03 SMTP [email protected] from 192.0.2.91",
    "10:10:20 GET /about.html 200 from 203.0.113.7",
]

for line in log_lines:
    for token, planted in HONEYTOKENS.items():
        if token in line:
            print(f"ALERT: {planted}")
            print(f"       seen in: {line}")
ALERT: fake cloud key left in a public file share
       seen in: 10:07:42 POST /api/export 200 key=FAKE-API-KEY-7f3c9d2e from 192.0.2.88
ALERT: fake mailbox address that nobody uses
       seen in: 10:09:03 SMTP [email protected] from 192.0.2.91

The two normal requests from known users produced nothing. Only the lines that touched the decoys triggered alerts, and each one tells you where the token was planted and who used it, with the source IP address. That is the power of deception: high-quality alerts with very few false alarms. (The addresses above are documentation examples, and the key is made up.)

Disruption: Making Attacks Harder

The word disruption in this topic points to a related idea: slowing down or confusing attackers instead of only catching them. Some techniques used for this include:

  • Rate limiting on login pages, so password guessing becomes impractical
  • Tarpits, which deliberately respond very slowly to suspicious connections to waste an attacker’s time
  • Inconsistent or fake responses that make scanning results unreliable

Disruption is a broader subject than this post covers, and the techniques are worth studying separately. The key point is that defenders can make an attacker’s job more expensive, not just more visible.

Using Deception Wisely

Deception works best as an extra layer, not a replacement for basics like patching, multi-factor authentication, and backups. Some practical guidelines:

  • Make decoys believable, but make sure no real process or user ever touches them.
  • Alert on every interaction. Without monitoring, a decoy is just a fake file.
  • Isolate decoys from your real systems and data. Never put real credentials or personal data in them.
  • Keep them current. An old, out-of-date decoy is easy for attackers to spot.
  • Tell the right people. Staff who run scans, backups, or tests can set off decoys by accident, so coordinate with them.
  • Check the rules. Legal and policy limits apply to monitoring and to collecting data about attackers. Ask your legal team if you are unsure.
  • Treat alerts as incidents. Have a plan for who investigates and what happens next.

Where Deception Fits

QuestionAnswer
Which control type is it?Mainly detective and deterrent
Which CIA goal does it support?It protects all three indirectly, by providing early warning so that you can respond before data is lost, changed, or taken offline
Does it replace other controls?No. It supplements prevention
Who benefits most?Organizations with monitoring in place, since alerts are the whole point

Common Misunderstandings

  • “A honeypot protects my real systems.” It does not block anyone. It watches and warns.
  • “Honeypots only catch humans.” Many visitors are automated bots, and that information is useful too.
  • “Set it and forget it.” Decoys need monitoring and maintenance, and attackers learn to avoid old ones.
  • “A honeytoken is a secret.” It is bait. Its job is to be found, copied, and traced.
  • “Deception is risky for beginners.” The easiest forms, such as a fake file or fake email address with an alert, are low-risk and teach you a lot.

Quick Summary

  • Deception uses decoys that no legitimate user should touch, so any interaction is a strong signal.
  • A honeypot is a decoy system, and a honeynet is a group of them acting as a fake network.
  • A honeyfile is a tempting fake file, and a honeytoken is traceable fake data, such as a credential, an email address, or a record.
  • Monitoring and alerts turn decoys into intelligence.
  • Deception supplements prevention, and decoys must be isolated and kept up to date.

What’s Next in This Series

You have now covered the foundations: controls, the CIA triad, non-repudiation, AAA, gap analysis, zero trust, physical security, and deception. Upcoming posts in the Cybersecurity Fundamentals series will take the remaining topics from Part 1, such as encryption, network and web security, and incident response, and explore each in depth. To practice, think of one fake item you could plant, such as an unused email address or a decoy file name, and where an alert would go if it were touched.

For another explanation, Professor Messer offers a free video lesson as part of his CompTIA Security+ SY0-701 course: Deception and Disruption.

Conclusion

Deception turns the attacker’s curiosity against them. By planting honeypots, honeyfiles, and honeytokens that no real user would touch, you create tripwires that fire only when something is wrong. Add monitoring and a plan for responding, and a few cheap decoys can reveal intruders who got past every other defense.

Cybersecurity Fundamentals series: Part 1: A Complete Beginner’s Guide · Part 2: Security Controls · Part 3: The CIA Triad · Part 4: Non-Repudiation · Part 5: Authentication, Authorization, and Accounting · Part 6: Gap Analysis · Part 7: Zero Trust · Part 8: Physical Security · Part 9: Deception and Disruption