What is a honeypot?
A honeypot is a decoy: a system, service or piece of data that has no legitimate use, set out to attract attackers. Because nobody should touch it, any contact with it is suspicious by definition, which makes it a cheap and quiet alarm and a way to watch how attackers work. On websites the same idea appears as a form field hidden from people, which only bots fill in. In cybersecurity terms, that makes a honeypot a sensor that the attacker sets off without knowing it.
Quick facts
- Definition
- A system or system resource designed to be attractive to potential intruders, paraphrasing RFC 4949
- Why it works
- It has no real users, so any activity on it is worth looking at
- Also written
- Cybersecurity honeypot, cyber security honeypot, honey pots in cyber security, decoy system
- Testing angle
- Ethical hacking tests of whether an IDS, a firewall and a honeypot hold up when someone tries to evade them
- Related terms
- Honeynet, honeytoken, honeypot field, research honeypot project
- Main risk
- A badly isolated honeypot becomes a real foothold for the attacker
- Against bots
- A hidden form field that people leave empty; see spam bots
The definition also appears in the NIST glossary, which cites RFC 4949.
How a honeypot works
In cybersecurity, a honeypot works as a sensor rather than a barrier. What does a honeypot do? It answers whatever reaches it and logs the source, the method and the timing. A cybersecurity honeypot can be a single fake login page or a whole decoy network, and the logic is the same in both: contact with the decoy becomes evidence.
A honeypot looks like something worth attacking: a server with an open login, a database with tempting tables, a file named like a password list. It is isolated from real systems and instrumented so that every connection, command and file is recorded.
The value comes from the absence of legitimate traffic. A real server sees thousands of ordinary requests that hide the few hostile ones; a honeypot sees only the hostile ones. That makes alerts from it unusually reliable, and makes it a good source of fresh attack techniques and addresses.
Honeypots in information security
Honeypots in information security are detection tools, not barriers. A honeypot in the context of cybersecurity exists to be touched, and every touch is recorded; that is the working of a honeypot in one line. Honey pots in cyber security differ in who reads the record. A defensive honeypot warns an organisation about attempts against its own network. A research honeypot collects attacker behaviour so that others can study it.
A honeypot operation, meaning the routine of running a decoy, has five parts.
- Lure. Choose something with no legitimate use: one service, one form field or one credential.
- Isolation. Keep it away from real systems, with no shared passwords or trusted network paths.
- Record. Log the source, the method and the timing of every contact, plus anything the attacker types or uploads.
- Alert. Raise one on contact, because legitimate use is zero.
- Reset. Read the log, remove captured files and rebuild the decoy after a visit.
A honeypot operation costs attention more than money: someone has to read what it records.
Advantages of honeypots, and their limits
The advantages of honeypots are practical.
- Few false alarms. A honeypot has no ordinary visitors, so contact is already a signal.
- A small log. It holds only hostile or curious traffic, which is easier to read than the logs of a real server.
- Early warning. An internal decoy shows that someone is moving through the network.
- Fresh material. Commands, tools and addresses seen on a decoy show current attacker methods.
The limits are as plain. A honeypot sees only what is aimed at it, so a quiet decoy does not prove a quiet network. A skilled attacker can recognise a poor imitation. A decoy that is not isolated becomes a way in, and the log is worthless if nobody reads it.
Honeypot, firewall and IDS compared
The difference between a firewall and a honeypot is that a firewall decides and a honeypot observes. In a honeypot IDS pairing, an intrusion detection system flags patterns in real traffic, while a honeypot gives one high-confidence alert whenever anyone touches the decoy.
| Aspect | Firewall | IDS | Honeypot |
|---|---|---|---|
| Job | Allows or refuses traffic by rules | Watches real traffic for suspicious patterns | Offers a decoy and records contact |
| What it sees | Traffic crossing it | Real traffic and its patterns | Only traffic aimed at the decoy |
| Decision | Lets through or refuses | Raises an alert | None; it records |
A firewall honeypot setup combines them. Firewall rules keep the decoy away from real systems, and the decoy's log shows which rules to tighten.
Evading IDS, firewalls and honeypots: the ethical hacking view
Ethical hacking is attacking with the owner's permission. NIST defines penetration testing as security testing in which evaluators mimic real-world attacks to find ways to circumvent the security features of an application, system or network. "Evading IDS, firewalls and honeypots" names the part of such a test aimed at the defences compared on this page: an intrusion detection system, a firewall and honey pots in cyber security. The aim is to find the gap before a real attacker does.
For a honeypot the test is practical. Does contact with the decoy raise the alert? Does the decoy stay isolated from real systems? A honeypot that fails either one is not doing the job described above, however convincing it looks.
Packet filters and the fragment attacks in RFC 1858
In ethical hacking tests of a firewall that filters packets, a documented example is RFC 1858, dated October 1995. It describes the tiny fragment attack. An unusually small fragment size forces some of the TCP header fields into the second fragment, so filter rules that look for those fields do not match, and a disallowed packet might be passed if the filter does not enforce a minimum fragment size.
The same RFC describes the overlapping fragment attack. The first fragment carries innocuous data that administrative packet filters pass, and a later fragment overlaps the TCP header and changes it. Its prevention advice sits on the filter side, in limits on the fragments a router lets through, and a tester checks whether those limits are in force. RFC 1858 is about packet filters; it says nothing about how a particular IDS or honeypot behaves.
Types of honeypots
- Low-interaction. Imitates a few services well enough to log connection attempts and simple commands. Cheap and safe, but a skilled attacker notices quickly.
- High-interaction. A real system, deliberately exposed and closely watched. It shows what an attacker does after getting in, and needs strong isolation because the attacker has a real machine.
- Research honeypots. Run by security researchers and vendors to study attacks across the internet.
- Internal honeypots. Placed inside a company network, where no outsider should ever reach, so any contact means someone already got past the perimeter.
- Honeynets. Networks of honeypots that look like a whole environment, to watch how an attacker moves from one machine to the next.
A honeytoken applies the idea to data: a fake credential, document or database row that should never be used. If it shows up in a sign-in attempt or on a paste site, you know where it leaked from.
Honeypots by what they imitate
- SSH honeypot. Imitates a secure remote-login service and records the passwords and commands that are tried against it.
- Telnet honeypot. The same for Telnet, an older remote-login protocol.
- Botnet honeypot. A decoy left open so that malware searching for weak logins finds it, which lets the owner study the malware and the addresses behind it.
- Client honeypot. Works in the opposite direction: instead of waiting for attackers, it visits servers or pages as a browser would and records whether they attack the visitor.
- Deception honeypot. One decoy among many in a deception approach, where fake systems, accounts and files are spread across a network and each one is a tripwire.
Honeytoken examples: a fake API key, an unused OAuth client secret, a document with a tempting name.
Research honeypot projects combine several decoys and study what reaches them. A honeypot project of that kind serves the people who read its findings, not the site that hosts the decoy, so a single website is better served by the cheaper decoys described on this page.
Honeypot fields against bots
What are honeypots doing in a web form? A hidden field is a small cybersecurity honeypot: a decoy that costs a real visitor nothing and costs a simple bot its cover.
On a website, a honeypot is usually a form field hidden from people by styling but present in the page code. People never see it and leave it empty; simple bots that fill every field reveal themselves. It asks nothing of real visitors, which is why it is often the first defence against spam bots and appears among the types of CAPTCHA and their alternatives.
It has two weaknesses. Bots written for a specific site skip the field. And browser autofill, password managers and assistive technology can fill a hidden field by mistake, so failing the check should lower a score rather than refuse a submission outright, and the field should be labelled so that screen reader users know to leave it empty.
Honeypot traps for spam
What is a honeypot trap? It is a decoy placed where only automated software goes. A honeypot spam trap in email is an address published nowhere a person would find it, so any message that arrives there is unsolicited. In a form, the equivalent is the hidden field described above.
Honeypot antispam is this idea used to separate bots from people without asking visitors to do anything. It lowers friction, but it is a signal, not a verdict. A bot that fills the field is flagged; a bot that skips it passes, so a trap works best next to other checks.
Other meanings of honeypot
Outside network security the word has drifted. In cryptocurrency, a honeypot is a scam token or contract that lets people buy but blocks them from selling, so the money flows only to its creator. In espionage, a honeypot is a romantic or sexual lure used to compromise a target. And in everyday speech, a honeypot is anything that attracts people, such as a tourist spot.
A crypto honeypot scheme depends on the trap being invisible until the buyer tries to sell.
All of them share the idea of a lure that looks attractive and works against the person who takes it. On this page, the meaning is the defensive one: a honeypot in cyber security, not in crypto or espionage.
Should you run a honeypot?
For most website owners, a full honeypot server is more work than it returns: it needs isolation, monitoring and someone to read what it records. Honeypot form fields and honeytokens, such as a fake administrator account that nobody should ever sign in to, give much of the benefit with almost none of the risk.
A decoy sees the hostile traffic that a DDoS attack is built from, and the forged sources behind some of it are explained under IP spoofing.
A honeypot is not a defence against a DDoS attack: a decoy that is flooded can record where requests appear to come from, and the flood itself still has to be handled elsewhere. Source addresses in a honeypot log can be forged, so treat them as leads rather than proof; the glossary entry IP spoofing covers how forged sources are produced.
Larger organisations use internal honeypots as early warning, because an attacker inside the network does not know which machines are real. In every case the rule is the same: the decoy must never be a path to anything real.
Questions
What is a honeypot in cyber security?
A decoy system, service or piece of data with no legitimate use, set out to attract attackers. Any activity on it is suspicious, so it serves as an alarm and a way to study attacks.
What is a honeynet?
A network of honeypots built to look like a real environment, used to watch how attackers move between machines once they are inside.
What is a honeypot field?
A form field hidden from people but present in the page code. People leave it empty; bots that fill every field reveal themselves.
Are honeypots legal?
Running a decoy on your own systems is generally lawful, but recording traffic and handling attackers' data can raise privacy and legal questions that depend on the country. Take advice before running a high-interaction honeypot.
What does honeypot mean in crypto?
A scam token or contract that lets people buy but prevents them from selling, so only its creator can take money out.
What is a honeypot trap?
A decoy placed where only automated software or an intruder goes, so that any contact with it identifies the visitor as hostile. Hidden form fields and unused email addresses are common examples.
What is the difference between a firewall and a honeypot?
A firewall decides which traffic passes, while a honeypot decides nothing and only records contact with a decoy. The two work together: the firewall keeps the decoy away from real systems.
What is a client honeypot?
A honeypot that visits servers or web pages as a browser would, to find those that attack the visitor. It reverses the usual setup, in which the decoy waits.
What is a honeypot operation?
It is the work of running a honeypot, from choosing a lure and isolating it to recording contact and reading the log. In espionage the phrase means the lure-based tactic described under other meanings.
What does evading IDS, firewalls and honeypots mean in ethical hacking?
Authorised testing of whether those defences can be bypassed or fooled. The owner gives permission first, so that gaps are found and fixed before a real attacker uses them. RFC 1858 documents two examples against packet filters; in the tiny fragment attack, some TCP header fields fall into the second fragment, so rules that match on them do not fire.