IDS, IPS, Allowlisting and Sandboxing
Several technologies detect or block malicious activity beyond firewalls. This lesson covers operating IDS and IPS, allowlisting and denylisting, sandboxing, and honeypots.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how IDS and IPS are operated and tuned.
- Distinguish allowlisting from denylisting.
- Explain sandboxing and honeypots.
Operating IDS and IPS
Intrusion detection and prevention sensors are placed where they see relevant traffic, such as behind perimeter firewalls, in front of critical servers and between segments. Operations keep signatures current, tune rules to reduce false positives, integrate alerts with the SIEM and review blocked events. Because an IPS in blocking mode can stop legitimate traffic, many deployments start in detection mode and enable blocking for high-confidence rules once tuned.
Operating these systems is ongoing work. Signature updates arrive daily and must be applied promptly but monitored, because a new signature occasionally blocks legitimate traffic. Sensors are checked to confirm they are still receiving traffic, since a mirror port that was reconfigured during an unrelated change can leave a sensor silently blind. When a new application is deployed, its traffic is reviewed against the rules, and exceptions are made as narrowly as possible. Health monitoring of the sensors themselves belongs in the operations dashboard alongside the alerts they produce.
Running IDS and IPS
Allowlisting and denylisting
Allowlisting (whitelisting) permits only approved items, such as approved applications, and blocks everything else. It stops unknown malware but needs maintenance as legitimate software changes, so it suits fixed-function systems such as servers, kiosks and industrial controllers. Denylisting (blacklisting) blocks known bad items, such as known malicious software, domains or addresses; it is easy to operate but cannot stop new threats. The same ideas apply to email senders, websites, IP addresses and USB devices.
Application allowlisting identifies approved software in several ways, with different strengths. Allowing by file path, such as anything in the program files folder, is easy but weak if users can write to that folder. Allowing by file hash is precise but must be updated every time the software is patched. Allowing by publisher certificate, such as any software signed by a named vendor, survives updates and is the most practical for general use. Many organisations run allowlisting in audit mode first, to discover what software is actually in use before they start blocking.
The two approaches embody opposite default assumptions. A denylist assumes that everything is acceptable unless known to be bad, so it fails against anything new. An allowlist assumes that everything is unacceptable unless known to be good, which follows the default deny principle and fails securely when something unexpected appears, at the cost of more administrative effort.
The following diagram compares allowlisting with denylisting.

Allowlisting methods
Sandboxing and honeypots
Sandboxing runs suspicious files or links in an isolated, instrumented environment and watches their behaviour, such as changing files, creating persistence or contacting command servers, before allowing them to reach users. Some malware detects sandboxes and stays dormant, so sandboxing is one layer among several. Browsers and applications also sandbox untrusted content.
A honeypot is a decoy system with no legitimate users, so any interaction with it is suspicious; a honeynet is a network of honeypots; honeytokens are decoy credentials or records that alert when used. Honeypots provide early warning and intelligence about attacker techniques. They must be isolated from production so they cannot be used as a launch point, and legal counsel should review their use to avoid entrapment concerns.
Honeytokens are a cheap and effective form of deception. A security team might create a fake administrator account named to look valuable, place a document titled as a list of passwords on a file share, or insert a fake customer record into a database. None of these has any legitimate use, so the moment anyone logs on with the account, opens the document or queries the record, an alert fires with very little risk of a false positive. Because attackers who have breached a network typically search for exactly these kinds of items, honeytokens often detect intrusions that other controls miss.
Sandbox, honeypot or honeytoken?
Protecting kiosks
A museum runs 40 public information kiosks that should only ever run one browser-based application. Visitors keep finding ways to run other programs. Which control is BEST?
Application allowlisting permits only the approved kiosk application and blocks everything else, including programs and scripts visitors try to launch. Anti-malware denylisting would miss tools that are not known to be malicious, and user training is not applicable to anonymous visitors.
What is a honeytoken?
Show answer
Decoy data or credentials that raise an alert when used.
Exam Tips
Remember for the exam
- Start IPS in detection mode, then enable blocking.
- Allowlisting is stronger than denylisting against unknown threats.
- Any access to a honeypot is suspicious; isolate it.