Decoys

Traffic between two computers of the same network goes through the switch: the firewall does not see it. A decoy is an address of an internal zone that…

What it is for

Traffic between two computers of the same network goes through the switch: the firewall does not see it. A decoy is an address of an internal zone that nobody has a reason to contact. Whoever contacts it is exploring the network: a ransomware that, before encrypting, looks for shares (445), remote desktops (3389) and SSH; a compromised device; a scan. By falling on the decoy it shows itself just when there is still time to stop it. The complete scenario is in Spotting who explores the network: decoys.

A decoy offers no service: it answers whoever looks for it on the network (ARP) and ping, so it looks like a device that is switched on, and silently drops everything else. It is not a honeypot with fake services, and it adds nothing through which to attack the appliance.

What the page looks like

Protection → Decoys has, from the top:

  • the title “Decoys” with the explanation;
  • “The decoys”: one decoy per row, with the address, the state (“answering”, “off”, “waiting for its interface”, “not started”, “out of line”), the interface and the zone, the description and the last contact. On the row, “Edit decoy” and “Delete decoy”; “Add decoy” on the right of the header;
  • “Contacts”: who contacted a decoy in the last week, one row per source and decoy;
  • “Quarantine”: the “Put in quarantine” switch, “Save” and the devices in quarantine, each with “Release”.

A save applies at once: the page does not go through “Apply”, because the decoys are not in the firewall’s rules.

Protection → Decoys in the example companyProtection → Decoys in the example company
Protection → Decoys in the example company

The decoy

“Add decoy” opens the “New decoy” window (for an existing decoy, “Decoy”):

  • “Interface” (required) — the NIC or the VLAN of an internal zone; below, its networks. Never an interface of the WAN side or outside every zone.
  • “Address” (required) — an address of that network that nobody uses. “Propose” picks a free one: about a third of the way into the network, outside the pools and reservations of Argos’s DHCP, not among the neighbours the appliance knows, and silent when tried.
  • “Description”.
  • “Enabled” — off, the address answers no more; the decoy and its contacts stay.

“Save decoy” records it (“Decoy saved”) and puts it on the network at once. Before saving a new address, Argos tries to contact it: if something answers, it refuses it (“Something answers at this address: it is in use”).

A decoy's windowA decoy's window
A decoy's window

Argos does not see another DHCP server’s pool — an Atlas, a router, a Windows server. Keep the decoy out of that pool: if the server gave the address to a client, the client would refuse it, finding it taken. This is also why the decoy answers ping: a DHCP server that tries an address before handing it out (dnsmasq does, many servers do) skips it.

One or two per internal zone are enough. A scan of the network finds them all; a device that minds its own business never touches them.

The contacts

The “Contacts” cardThe “Contacts” card
The “Contacts” card

Each row is a source that contacted a decoy: the address and the MAC, the decoy and its zone, what it tried (the ARP request, the ping, the ports), the number of contacts, the first and the last. The rows stay for a week.

Badge What it means
“alarm” A TCP or UDP contact with the decoy: someone looked for a service. It sends a mail (at most one per device every six hours) and, with the quarantine on, isolates the device.
“clue” Only a ping or an ARP request: worth keeping an eye on, but a ping on its own may come from a monitoring tool. No mail.
“excluded” The source is exempted from the decoys in Protection → Exemptions: it stays in the list, never an alarm.
“in quarantine” The device is in quarantine now.

The mail goes out only if the e-mail notifications are on (System → E-mail notifications); if they are off, the page says so in the “Quarantine” card.

The quarantine

The “Quarantine” cardThe “Quarantine” card
The “Quarantine” card

“Put in quarantine” is off by default. On, a device that sets off an alarm reaches neither the other zones nor the internet for an hour; a device that keeps contacting a decoy stays in. It still reaches the appliance: the console, SSH, DNS and DHCP, so whoever checks it can get to it and the device does not lose its address. The traffic between it and the other devices of the same network goes through the switch and the quarantine does not stop it: for that it has to be unplugged.

The quarantine never takes a gateway, a router (a next hop of any route), a DNS or DHCP server the appliance uses, nor a source exempted from the decoys. It takes only a device of the decoy’s network, and only if its MAC is the one the appliance knows for that address: whoever forges the sender cannot get someone else isolated. “Release” frees a device at once; turning the switch off lifts every quarantine.

The quarantine’s drops appear in Events and diagnostics → Firewall with the rule quarantine; the contacts with the decoys with the rule decoy-<zone>.

What a decoy does not see

  • An attack aimed at a known server: it does not go through the decoy. More decoys raise the chance that a scan touches one.
  • A scan coming from another zone: the appliance does not reach its decoys, so traffic routed towards a decoy does not arrive. That traffic, though, goes through the firewall, which already sees it (Events and diagnostics → Firewall).
  • IPv6: the decoys are IPv4 only.

Where it shows

Status puts in the “Attention” strip a warning for every device that set off an alarm in the last day, and one if an enabled decoy does not answer. Citadel receives the number of alarms and of quarantines.

The decoys' warnings in Status's “Attention” stripThe decoys' warnings in Status's “Attention” strip
The decoys' warnings in Status's “Attention” strip

Error messages

Message What it means
“Pick an interface of an internal zone” The interface is not there, or it is not a NIC or a VLAN.
“An interface of the wan side: decoys go inside” The interface belongs to the wan zone or to a gateway.
“The interface is in no zone” Put it in a zone first (Zones and rules).
“The interface holds no IPv4 network” Without an address the decoy has no network to sit in.
“Not in a network of the interface” The address belongs to another network.
“The network’s own address or its broadcast” The first and the last address of a network are not a device’s.
“An address of the appliance” It already belongs to the appliance.
“In the pool of the interface’s DHCP server” / “A DHCP reservation” Argos would hand it out (or has promised it) to a client.
“Another decoy’s” Two decoys cannot have the same address.
“Something answers at this address: it is in use” A device answered the ping or the lookup on the network.
“No free address found: type one” “Propose” found no silent address in its first attempts.
“At most 32 decoys” The list is full.

For the technician The decoys live in the network namespace argos-decoy: each one is an ipvlan interface in L2 mode (the same MAC as the NIC) created directly there, with the namespace’s own rules (table inet decoy, table arp decoy). The appliance does not hold the address: the argos_filter ruleset stays byte-for-byte identical, the console’s certificate does not change. Inside the namespace a strict reverse-path filter (rp_filter=1) drops a packet whose sender the decoy’s network does not hold before any rule. The kernel writes log lines from a namespace other than the host’s only with net.netfilter.nf_log_all_netns=1: Argos switches it on while a decoy answers and off again afterwards (only if it found it off). The prefixes are argos-pass decoy-<zone> (ping), argos-drop decoy-<zone> (the rest) and argos-arp decoy-<zone> (ARP requests). The quarantine is the inet argos_decoy table (chain forward, priority filter - 3, set quarantine with timeouts), outside the “Apply” cycle like the intelligence’s. argos-decoy.service recreates everything at boot; argos-decoy-watch.timer reads the kernel journal every minute (only while a decoy answers) and keeps the contacts in /var/lib/argos/decoy/watch.json.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer