A honeypot is a decoy system, service or piece of data designed to attract attackers. Because it has no legitimate business use, any interaction with it is suspicious. Security teams use honeypots to detect intruders early, study their tools and techniques, and waste their time away from real systems.
Key takeaways
- A honeypot is a decoy with no legitimate users, so any contact with it is a strong sign of an intruder.
- Low-interaction honeypots log scans and logins; high-interaction honeypots run real systems and reveal full attacker behaviour.
- Honeypots add detection, but they never replace patching, firewalls, logging or endpoint protection.
Your real servers are supposed to be touched by real users. A honeypot flips that idea around: it is a system nobody legitimate should ever touch, so the first touch is itself the alarm.
What is a honeypot?
A honeypot is a decoy system, service or piece of data that is designed to attract attackers. It looks like a real target — a server, a login page, a file share — but it serves no real business purpose.
NIST defines a honeypot as a system or system resource, such as a web server or a file on a server, that is designed to be attractive to potential attackers and intruders. MITRE D3FEND lists the same idea as a decoy environment, built so that any communication with it has no legitimate purpose and should be logged and analyzed, as DeepStrike explains in its honeypot guide.
That last point is the whole value. Normal detection tools must separate attacks from ordinary traffic. A honeypot has almost no ordinary traffic, so its alerts are unusually clean. If something connects to it, scans it or tries to log in, you have a strong lead, not a vague anomaly.
Honeypots are not a product you buy once and forget. They are a technique, and they come in many shapes: a fake SSH server, a decoy database, a bogus admin account, or a whole fake network. What they share is the trap logic — look real, do nothing real, record everything.
How does a honeypot work?
A honeypot works by sitting where an attacker is likely to look, recording every interaction, and alerting defenders. It does not need to block the attacker to be useful; watching is the job.
First, you place the decoy where it will be found: an unused IP address, a plausible server name, a shared folder that looks like it holds finance files. Then you wait. Because the decoy has no real users, you can treat every connection as suspicious, which is the opposite of most security monitoring.
When someone interacts, the honeypot records the source address, the time, the service probed, the usernames and passwords tried, the commands typed and any files downloaded. A good deployment forwards those logs to your central logging or SIEM system immediately, so evidence survives even if the decoy itself is damaged.
Finally, defenders act on what they learned: block the source, search for the same indicators on real systems, and update detection rules. The honeypot also buys time, because an attacker who spends an hour exploring a fake server is not spending that hour on a real one.
What are the types of honeypots?
Honeypots are usually classified by how much interaction they allow, and by why they were deployed. The interaction level decides how much you learn — and how much risk you take.
| Type | What it does | What you learn | Risk |
|---|---|---|---|
| Low interaction | Emulates a few services or banners, with no real system behind them | Who connected, from where, when, to which port | Low |
| Medium interaction | Emulates a shell or protocol, such as an SSH login, without a full system | Credentials tried, commands typed, files requested | Moderate |
| High interaction | Runs real operating systems and applications, often in virtual machines | Full attacker tooling, techniques and goals | High |
| Production | Decoys inside a corporate network to catch intruders early | Reconnaissance and lateral movement | Moderate |
| Research | Internet-facing decoys built to collect threat data | New malware, campaigns and techniques | High |
Low-interaction honeypots are the easiest place to start. They answer on common ports, record the attempt and close the connection. They tell you that someone is scanning, but not what that person would do next.
Medium-interaction honeypots go further. Cowrie, for example, emulates a Unix system in Python and logs brute-force logins and the commands an attacker types, without giving them a real system. That is usually enough to capture the passwords attackers try and the malware they attempt to download.
High-interaction honeypots hand the attacker a real system, heavily monitored and isolated. You see their real tools and hands-on-keyboard behaviour, but you also accept real risk: if the isolation fails, the decoy can be used to attack others. Only experienced teams with constant monitoring should run these.
By purpose, production honeypots sit inside a company network to catch a breach early, while research honeypots face the internet to study new threats. A small team almost always wants the production kind.
Honeypot vs honeynet vs honeytoken: what is the difference?
These three terms describe related deception techniques, not interchangeable products. A honeynet can contain honeypots and honeytokens, and a single fake file can act as a small decoy on its own.
A honeypot is a decoy host or service that an attacker can connect to, such as a fake SSH server or file server. A honeynet is a network of honeypots built to look like a real environment, with several decoy servers, a fake domain controller and fake user accounts on an isolated segment. It shows how an attacker moves from one system to another.
A honeytoken is a decoy piece of data rather than a whole system: a fake credential, document, API key, database row or service account. Because it is just data, it is cheap to plant in many places — in a password vault, a code repository, a shared drive or a database — and any use of it is easy to spot.
For most organizations, honeytokens are the best first step. They need no server, no patching and almost no maintenance, yet they catch the same signal: someone used something that no legitimate person should have used. Learn more about how that signal fits into wider detection in our guide to threat intelligence feeds.
Why do security teams use honeypots?
Security teams use honeypots for three reasons: early detection, attacker intelligence and distraction. Each one fills a gap that ordinary tools leave open.
Early detection is the biggest reason. Attackers usually scan and probe before they strike. A honeypot placed on an unused address or a tempting share catches that reconnaissance, often days before the attacker reaches a real system. NIST SP 800-94 makes the same point: honeypots are hosts with no authorized users other than their administrators, because they serve no business function, so all activity directed at them is considered suspicious.
Intelligence is the second reason. Logs from a honeypot show the exact passwords attackers try, the commands they run and the malware they fetch. That evidence feeds threat intelligence feeds, detection rules and incident response playbooks, and it is grounded in what attackers actually did on your network, not in a generic report.
Distraction is the third. Every minute an attacker spends exploring a fake server is a minute they are not spending on a real one, and every fake credential they steal is a dead end. Deception does not stop a determined attacker, but it slows them down and makes them noisier, which gives defenders more chances to catch them.
What are common honeypot examples?
The most common honeypots imitate the services attackers scan for first: SSH, Telnet, web servers, databases and file shares. Each one targets a different stage of an attack.
- Fake SSH server: answers login attempts and records the usernames, passwords and commands tried. Cowrie is the best-known tool for this.
- Fake web server: serves a convincing login or admin page and logs the credentials and paths an attacker probes.
- Database honeypot: pretends to hold customer or payment data and records unauthorized queries and data-extraction attempts.
- Email honeypot: uses a decoy mailbox to collect spam and phishing campaigns before they reach real staff.
- Malware honeypot: accepts suspicious files and captures the malware for analysis in a safe environment.
- Honeytoken file: a document named like a password list or a finance spreadsheet that alerts when it is opened or copied.
OpenCanary, from Thinkst, is a popular low-interaction option: a Python daemon that answers on common network protocols and sends an alert when something interacts with it. It can run on hardware as small as a Raspberry Pi, which makes it practical for a home lab or a small office, as SOCSimulator notes in its honeypot glossary.
T-Pot is a different approach: a platform that bundles several honeypots together and collects their logs in one place. It suits researchers and larger teams who want broad coverage without building each decoy by hand.
What are the risks and limitations of honeypots?
Honeypots are useful, but they carry real risks, and pretending otherwise is how teams get hurt. The three to plan for are compromise, fingerprinting and legal exposure.
A high-interaction honeypot is a real machine under an attacker's control, so its isolation and outbound filtering decide whether it becomes a launch point against someone else. If a decoy can reach the internet freely, an attacker can use it to scan, spam or attack third parties — and that activity traces back to you. Always isolate decoys on their own network segment, block outbound traffic except to your logging server, and reset them regularly.
Fingerprinting is the second risk. Researchers have shown that low- and medium-interaction honeypots can be identified from a single packet, because the libraries they use implement protocols slightly differently from the systems they imitate. Once an attacker knows a system is a decoy, they avoid it — or worse, feed it false information. Keep your honeypot software updated and do not advertise it in a way that makes it easy to spot.
Legal exposure is the third. NIST's guidance has long warned that the legality of honeypots had not been clearly established and advised organizations to study the legal side before deploying one. Rules on monitoring, consent and data collection vary by country and by sector, so involve your legal team before you collect anything about real people.
How do you set up a honeypot safely?
Setting up a honeypot safely is mostly about isolation and monitoring. The decoy itself is the easy part; the network around it is what keeps you safe.
- Start with a honeytoken, not a server. Plant a fake credential or a canary file first. It takes an afternoon and teaches you how your alerting works.
- Isolate the decoy. Put it on its own VLAN or virtual network with no route to production systems, real databases or the corporate VPN.
- Block outbound traffic. Allow only the traffic needed to send logs to your SIEM. Deny everything else, so a compromised decoy cannot attack anyone.
- Log centrally in real time. If logs live only on the decoy, an attacker can delete them. Forward them immediately.
- Use only fake data. Invent usernames, passwords, documents and database rows. Never copy real records into a decoy.
- Monitor it every day. A honeypot nobody watches is just an extra system to patch. Assign an owner and a daily check.
- Rebuild it regularly. Reset the decoy on a schedule so a compromise does not linger and fingerprints do not accumulate.
For a home lab, a Raspberry Pi running OpenCanary on a separate network segment is a reasonable first project. For a business, start with honeytokens and a single low-interaction honeypot, and only consider high-interaction decoys once you have the staff to monitor them around the clock. Check what your own public services actually expose first with the security headers checker.
Honeypot vs IDS vs firewall: what is the difference?
A honeypot, an intrusion detection system (IDS) and a firewall do different jobs, and they work best together. Confusing them is a common mistake.
A firewall controls which traffic is allowed in or out. An IDS watches traffic on real systems and raises alerts when it matches a known attack pattern or looks anomalous. A honeypot creates traffic that should never exist at all, and alerts on any of it. The firewall is a gate, the IDS is a guard watching the crowd, and the honeypot is an empty room with a silent alarm on the door.
NIST SP 800-94 describes honeypots as a supplement to intrusion detection, not a replacement for it, and says qualified incident handlers and intrusion detection analysts should manage them. That advice still holds: a honeypot without someone to read its alerts is decoration, and an IDS without deception still has to sort real attacks from normal business traffic.
Use all three. The firewall reduces noise, the IDS watches real systems, and the honeypot gives you the cleanest possible signal that someone is already inside or probing hard. For a broader starting point, our small business cybersecurity checklist covers these controls alongside backups, updates and device security.
The bottom line
A honeypot is a decoy with no legitimate users, and that is exactly what makes it powerful. Any touch is a warning, any login attempt is evidence, and any command typed is intelligence you can act on.
Start small: plant a honeytoken, then add one low-interaction honeypot on an isolated segment, with central logging and a daily review. Keep your real defenses — patching, firewalls and monitoring — in place, and let the decoy do what it does best: catch the intruder early, before they find anything real. You can check your own attack surface first with the attack surface management overview.
Frequently asked questions
What is a honeypot in simple terms?
A honeypot is a fake computer, service or file that looks valuable to an attacker but is really a trap. No real user should ever touch it, so when someone does, defenders know something is wrong and can watch what the attacker tries next.
What is the difference between a honeypot and a honeynet?
A honeypot is a single decoy system or service. A honeynet is a network of several honeypots set up to look like a whole environment, with fake servers, users and services, so defenders can watch an attacker move between systems.
What is a honeytoken?
A honeytoken is a decoy piece of data rather than a whole system: a fake password, API key, document or database record. If anyone uses it, that use is logged and alerts the security team, even though no real system was involved.
Are honeypots legal?
In most cases, running a honeypot on your own network for your own security is legal, but the law is not settled everywhere and entrapment and privacy rules vary by country. Get legal advice before deploying one, especially if it collects data about people or sits on a public network.
Do honeypots stop attacks?
No, not by themselves. A honeypot detects and distracts attackers and gives you intelligence about them. It does not patch vulnerabilities, block malware or replace a firewall, so use it as one layer alongside those controls.
Can attackers tell a honeypot is fake?
Yes, sometimes. Experienced attackers fingerprint low-interaction honeypots because emulated services behave slightly differently from real ones. That is one reason high-interaction honeypots, which run real systems, are harder to spot but riskier to run.
Should a small business run a honeypot?
Most small businesses should start with honeytokens, such as a fake admin account or a canary file, rather than a full honeypot. They are cheap, low risk and easy to monitor, and they catch the same early-warning signal without the maintenance of a decoy server.
What is the best honeypot software for beginners?
OpenCanary is a common starting point because it is a lightweight daemon that answers on common protocols and alerts on any interaction, and it can run on small hardware such as a Raspberry Pi. Cowrie is the usual next step for emulating SSH and Telnet logins in more depth.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the NIST definition of a honeypot, NIST SP 800-94, MITRE D3FEND decoy guidance and MITRE ATT&CK.
How we write and fact-check →