Security

What is implicit deny?

Implicit deny means anything not explicitly allowed is blocked; it acts as an unwritten final deny rule in firewalls, ACLs and permission systems.

What is implicit deny?

Implicit deny is the outcome when no rule grants access: the request is refused. In a firewall rule base or a router access control list (ACL), it behaves like an invisible last line that denies everything, so administrators only write rules for what should be permitted. The same idea runs through file permissions, cloud identity policies and application allow lists. It is the mechanism behind a default-deny posture, and it is how least privilege is enforced in practice: access exists only where someone deliberately created it.

How implicit deny works in a rule list

Firewalls and ACLs evaluate rules from the top and stop at the first full match. A packet that matches none of them reaches the end of the list and is dropped. On a Cisco router this final deny ip any any never appears in the configuration, and because it is unwritten it has no hit counter and writes no log entry. Many administrators therefore add an explicit last rule such as deny ip any any log. It blocks nothing extra, but it records every attempt that would otherwise vanish silently. Cloud security groups and host firewalls set to block inbound traffic behave the same way.

Example: an ACL that blocks more than intended

An engineer wants to stop a guest subnet from reaching the payroll server, writes an ACL with a single line, deny ip 10.50.0.0 0.0.255.255 host 10.10.20.15, and applies it to the guest interface. Within minutes, guests cannot reach anything at all. The one deny matched the payroll traffic, and every other packet fell through to the implicit deny. If the goal really were to block one destination and allow the rest, the list would need a permit line after the deny. For a guest network, the better design is the reverse: write permit rules for exactly what guests need, such as DNS and outbound web traffic, and let the implicit deny handle everything else.

Implicit deny outside the firewall

  • Cloud identity policies: in AWS IAM, every request other than the account root user's starts out implicitly denied. An explicit allow in a policy overrides the implicit deny, and an explicit deny anywhere overrides any allow.
  • File permissions: on an NTFS folder, a user who matches no access control entry granting access simply gets none. No deny entry is needed for that.
  • Application allow lists: any program not on the list is blocked by default, which is why allow lists stop malware nobody has seen before.

Implicit deny vs. explicit deny vs. implicit allow

  • Implicit deny: no rule matched, so the request is refused. Nothing is written and, by default, often nothing is logged.
  • Explicit deny: a written rule that refuses specific traffic. In a first-match firewall it works only if it sits above any allow rule that would match first; in permission systems such as IAM it beats allows wherever it appears.
  • Implicit allow: anything not blocked is permitted, which is the block-list model. An allow any any rule at the bottom of a firewall quietly turns a default-deny policy into one.

Implicit deny on the CompTIA Security+ exam

Implicit deny is taught with writing and ordering firewall rules and with router ACLs, among the mitigating controls in SY0-801 objective 4.1. In rule-table questions, check what happens to a packet that matches no row: it is denied, even if the table shows no deny line. Wording such as only traffic that is specifically permitted may pass or all other traffic is blocked points to implicit deny, and a scenario where one new deny statement suddenly blocks everything points to an ACL with no permit lines. Distractors include an explicit deny any any placed too high, which shadows every rule below it, and an allow any any at the bottom, which cancels the implicit deny.

Studying for CompTIA (Security)?

ExamWizardz turns the official objectives into a guided study plan — with practice tests, realistic PBQs, and a readiness score. Start free.

Start studying free

Related terms