Chapter 7

Security

CCNP Enterprise Core (350-401 ENCOR) Study GuideDomain 5.0 · Security · 20% of the exam · 4 objectives

Domain 5.0 — Security (20%). Objectives 5.1–5.4: device access control (lines, local authentication, AAA); infrastructure security (ACLs, CoPP); REST API security; network security design (threat defense, endpoint security, next-generation firewall, TrustSec and MACsec). Security is the second-largest domain, and its configure-and-verify objectives (5.1 and 5.2) are tested with live-looking configuration and output, not definitions alone.

Security in this chapter is layered: who may touch the device, what the device may be forced to do, how the APIs are protected, and how the network itself is segmented. Each layer assumes the one below it holds — an ACL cannot save a device whose VTY lines accept Telnet from anywhere, and a firewall cannot save a network whose endpoints are unpatched. Read the layers in order, and the exam's scenario questions answer themselves.

5.1 Device access control

5.1.1 Lines and local authentication

There are three doors into a Cisco device: the console (physical), the AUX line (modem, mostly historical), and the VTY lines (remote — Telnet and SSH). Each line takes its own login configuration, and the exam tests them separately: a VTY block that says transport input telnet ssh and login local is not "encrypted management only" — Telnet is still permitted, and the fix is transport input ssh. Privilege levels run 0–15 (level 15 is full enable access; level 1 is user EXEC); commands can be assigned to levels, but the exam's privilege question is usually simpler: which level can run this command, and what does the user see at that level?

Password storage strength is a property of the type number, not of the password's length alone. Type 7 is a reversible obfuscation — a long type-7 value is still trivially reversible. Type 5 (MD5) and type 8/9 (PBKDF2 / scrypt) are real hashes. enable secret beats enable password for the same reason: one is hashed, the other is type 7. service password-encryption only converts clear text to type 7 — it does not make a password strong.

Check yourself

A VTY block shows transport input telnet ssh and login local. The security policy requires encrypted management only. What must change?

Answer: Change the transport to SSH only — transport input ssh. login local is fine (it authenticates against the local user database); the fault is that Telnet is still permitted.

5.1.2 AAA: authentication, authorization, accounting

Definition

AAA. Authentication — who are you? Authorization — what may you do? Accounting — what did you do? The device (NAS) asks, the server decides. A method list names the order: try the AAA server first, fall back to local only if the server is unreachable — not if the server says no.

Figure 7.1 — The AAA conversation: device asks, server decides
Figure 7.1 — The AAA conversation: the device asks, the server decides.
PropertyRADIUSTACACS+
TransportUDP — authentication 1812, accounting 1813TCP 49
Encryption scopePassword onlyEntire packet body
SeparationAuthentication + authorization combinedAuthentication, authorization, accounting separate
Home useNetwork access (802.1X, VPN, wireless)Device administration (CLI access)

The four rows the exam rotates through are transport, encryption scope, separation, and home use. Learn them as a table, not as two paragraphs: RADIUS is UDP, encrypts only the password, combines auth and authz, and lives in network access; TACACS+ is TCP 49, encrypts the whole body, separates all three As, and lives in device administration. When a scenario says "administrators need command-level authorization on routers", the answer is TACACS+ — RADIUS cannot authorise per command.

802.1X: three roles, one controlled port

802.1X port-based authentication has three roles: the supplicant (the endpoint asking for access), the authenticator (the switch port, which blocks traffic until authentication succeeds), and the authentication server (RADIUS, which decides). The port stays in an unauthorised state — only EAP traffic passes — until the server accepts. The exam's 802.1X question is usually about which role does what, or about the failure mode: a supplicant that cannot speak EAP never gets past the controlled port.

5.2 Infrastructure security: ACLs and CoPP

ACLs: first match wins

An ACL is an ordered list of ACEs. A packet walks the list top to bottom; the first match decides; if nothing matches, the implicit deny (deny ip any any) drops it. Order is the whole skill: a permit placed below a deny that matches the same traffic never fires. Numbered ACLs, named ACLs, standard (source only) and extended (source, destination, protocol, ports) — the exam tests placement as much as syntax.

Figure 7.2 — A packet walks the ACL: first match wins
Figure 7.2 — A packet walks the ACL: first match wins, then the implicit deny.

Wildcard masks invert subnet masks: a 0 bit means "must match", a 1 bit means "do not care". 0.0.0.255 means "the last octet varies"; 0.0.0.0 means "match exactly". Placement follows the blast radius: a standard ACL (blunt — source only) goes close to the destination, so it does not block traffic it was never meant to touch; an extended ACL (precise — source, destination, ports) goes close to the source, so unwanted traffic is dropped early. Object groups let one ACE name many addresses or ports — one line, many meanings — which is how a readable ACL stays readable at enterprise size.

ACL typeMatchesPlace it
StandardSource address onlyClose to the destination
ExtendedSource, destination, protocol, portsClose to the source
Named / object-groupSame as extended, with readable namesSame as extended

CoPP: protecting the control plane

The control plane is the staircase every management packet climbs: traffic destined for the router (SSH, BGP, OSPF, SNMP) is punted from the data plane to the CPU. An attacker who floods the punt path exhausts the CPU and the router stops routing — a denial of service that needs no exploit. CoPP (Control Plane Policing) rate-limits what reaches the CPU, class by class: routing protocols get their share, management gets its share, and everything else is policed hard. The three planes to keep straight: data plane (traffic through the device), control plane (traffic to the device: routing, management), management plane (the interfaces and protocols used to administer it). CoPP protects the control plane; it does nothing for the data plane.

Exam tip

CoPP questions are unit questions as often as concept questions: a policer set in the wrong unit (bits vs bytes, kbps vs pps) either does nothing or drops legitimate routing traffic. When a CoPP scenario says "OSPF flaps after CoPP was applied", check the policer's rate and burst for the routing class before anything else.

5.3 REST API security

APIs are doors, and they need the same controls as VTY lines. Authentication: tokens (short-lived, presented per call — see Chapter 8's token flow), or certificates; never a password in a URL or a hard-coded credential in a script. Authorization: the token's scope decides which resources it may touch — a monitoring token must not be able to push configuration. Transport: HTTPS only, with certificate validation — an API call over plain HTTP leaks its token to anyone on the path. Expiry: tokens expire soon and are presented often; a 401 on a call that worked yesterday usually means the token aged out, not that the API changed. Rate limiting and audit logging complete the picture: who called what, when, and how often.

5.4 Network security design

5.4.a Threat defense

Threat defense is the layered set of controls that detect and stop attacks: intrusion prevention (IPS — signature and anomaly-based, inline), malware inspection, URL filtering, and threat intelligence feeds. The design question is placement: IPS inline at the internet edge sees everything but adds latency and a failure point; IPS in monitor mode sees everything and blocks nothing. The exam tests the trade-off, not the product name.

5.4.b Endpoint security

Endpoints are where most breaches start. Endpoint controls: anti-malware, host firewall, device posture assessment (is the OS patched? is the disk encrypted? is the agent running?), and posture-driven segmentation — a device that fails posture lands in a quarantine segment with limited access until it remediates. The posture decision is made before the endpoint reaches the production network, not after.

5.4.c Next-generation firewall

PropertyTraditional firewallNext-generation firewall
Decides onIP, port, protocolApplication, user, content, reputation
KnowsAddressesApplications regardless of port
AddsStateful inspectionIPS, URL filtering, malware inspection, identity awareness

An NGFW is not a faster ACL. It is a different kind of decision, made with application and content knowledge: it identifies the application regardless of the port it uses, applies policy per user, and inspects content for malware and data loss. The exam's NGFW question is usually "what can this do that a packet filter cannot?" — the answer is application identity.

5.4.d TrustSec and MACsec

Definition

TrustSec. Identity-based segmentation using Security Group Tags (SGTs). An endpoint is classified once at ingress (by ISE, based on identity and posture) and tagged with an SGT; enforcement happens at egress, where an SGACL matrix says which SGT may reach which SGT. Policy follows identity, not IP address — a user who moves keeps their tag, and the policy follows them.

Figure 7.3 — TrustSec enforcement design: classify once, enforce at egress
Figure 7.3 — TrustSec: classify once, enforce at egress. The tag travels with the packet.

MACsec (IEEE 802.1AE) encrypts hop by hop on the wire: every link between two trusted devices carries encrypted frames, and each hop decrypts and re-encrypts. It protects against eavesdropping and tampering on the link; it does not decide who may talk to whom — that is TrustSec's job. The two are often deployed together: MACsec secures the wire, TrustSec decides the policy. In the SD-Access fabric (Chapter 1), the SGT travels in the VXLAN group-policy header — the same tag, carried by the overlay.

Check yourself

A user moves from the HQ campus to a branch. Their IP address changes, but their access policy follows them unchanged. Which technology makes that possible, and what travels with their traffic?

Answer: TrustSec. The user is classified once and tagged with an SGT; the tag travels with the packet (in the VXLAN GPO header in a fabric), and enforcement at egress reads the tag — not the IP address — so the policy follows the identity.

Deep Dive — the lockout timeline: two events, one missing line

The chapter's Deep Dive reconstructs a lockout at CertCrack.com: two events, one missing line. An administrator's credentials appeared in a configuration file that was shared in a ticket; hours later, the AAA server logged a successful login from an unfamiliar address. The missing line was service password-encryption's absence — or rather, the belief that it was protection: the password was type 7, reversible in seconds. The lesson is the chapter's sharpest: type 7 is obfuscation, not security, and a credential in a file is a credential disclosed.

Configuration Workshop — the branch core under one security design

  1. VTY hardening. On a lab router, configure local users, transport input ssh, and login local. Attempt a Telnet connection and confirm it is refused, then confirm SSH works.
  2. AAA with fallback. Configure a TACACS+ server group with local fallback. Shut the server and confirm local login still works — then restore it and confirm the server is tried first.
  3. ACL placement. Write an extended ACL that permits the training platform to the server VLAN and denies everything else. Apply it close to the source, verify with show access-lists counters, then move it close to the destination and observe what else it blocks.
  4. CoPP classes. Build a CoPP policy for a branch core: routing protocols in one class, management in another, everything else policed hard. Apply it and verify the class counters under a simulated flood.
  5. TrustSec on paper. Draw the SGACL matrix for three groups — Employees (SGT 10), Contractors (SGT 20), Guests (SGT 30) — and decide each cell: permit or deny. Then answer: where is the matrix enforced — ingress or egress?

Common mistakes and exam traps — Security

TrapTruth
Type 7 is encryptedType 7 is reversible obfuscation. Type 5/8/9 are hashes.
RADIUS encrypts the whole packetRADIUS encrypts only the password. TACACS+ encrypts the whole body.
Standard ACLs go close to the sourceStandard (blunt) goes close to the destination; extended (precise) goes close to the source.
CoPP protects the data planeCoPP protects the control plane — traffic to the device.
MACsec decides who may talk to whomMACsec encrypts the wire; TrustSec decides the policy.

End-of-chapter check questions (multiple choice)

Answer these without looking back, then check against the key. Each question has one correct answer. These questions are written fresh for this guide — they are not the book's mock-test questions.

1

An audit finds Telnet sessions reaching a router's VTY lines. The lines use login local. Which single configuration line decides whether Telnet is permitted at all?

A) login local B) transport input — it must say ssh only C) exec-timeout D) The privilege level

2

Which password storage type is reversible obfuscation rather than a real hash?

A) Type 5 B) Type 7 C) Type 8 D) Type 9

3

Which AAA protocol uses TCP port 49, encrypts the entire packet body, and separates authentication, authorization, and accounting?

A) RADIUS B) TACACS+ C) Kerberos D) Diameter

4

Administrators need per-command authorization on routers. Which protocol fits?

A) RADIUS, because it combines auth and authz B) TACACS+, because it separates authorization and can authorise per command C) SNMPv3 D) 802.1X

5

In 802.1X, which role is the switch port that blocks traffic until authentication succeeds?

A) Supplicant B) Authenticator C) Authentication server D) RADIUS client

6

A packet matches ACE 20 (permit) after failing ACE 10 (deny). What happens?

A) It is dropped, because the deny was evaluated first B) It is permitted — first match wins, and ACE 10 did not match C) It is dropped by the implicit deny D) It is sent to the CPU for a decision

7

Where should a standard ACL be placed, and why?

A) Close to the source, to drop traffic early B) Close to the destination, because it matches only the source and would otherwise block traffic it was never meant to touch C) On the core, for central control D) Anywhere — placement does not matter for standard ACLs

8

What does CoPP protect?

A) The data plane — traffic through the device B) The control plane — traffic destined for the device itself C) The management VLAN only D) Endpoints from malware

9

What is the key capability of a next-generation firewall that a traditional packet filter lacks?

A) Stateful inspection B) Application identification regardless of port, plus user and content awareness C) NAT D) Faster forwarding

10

Which technology encrypts frames hop by hop on the wire between trusted devices?

A) TrustSec B) MACsec C) IPsec transport mode only D) 802.1X

Answer key

Q1: B — transport input controls which protocols may connect. login local only chooses the authentication database.
Q2: B — Type 7 is reversible obfuscation; types 5, 8, and 9 are hashes.
Q3: B — TACACS+: TCP 49, whole-body encryption, three As separated.
Q4: B — TACACS+ separates authorization, so it can authorise per command.
Q5: B — The authenticator is the switch port enforcing the controlled port.
Q6: B — First match wins. ACE 10 did not match, so ACE 20 decides: permit.
Q7: B — Standard ACLs go close to the destination; their bluntness is the reason.
Q8: B — CoPP protects the control plane: traffic to the device.
Q9: B — Application identity regardless of port, plus user and content awareness.
Q10: B — MACsec encrypts hop by hop on the wire.

Chapter 7 — based on the Cisco 350-401 ENCOR v1.2 exam objectives for Domain 5.0. Unofficial study material — not affiliated with or endorsed by Cisco Systems, Inc.

Want the full CCNP Enterprise Core (350-401 ENCOR) package?

Read this guide free. Then prove you're ready with 900 original practice questions, instant explanations, 36 interactive PBQ labs, and 3 months of online access — plus the downloadable PDF of this guidebook.

Get CCNP ENCOR Full Access — $10