Chapter 7
Security
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.
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
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.

| Property | RADIUS | TACACS+ |
|---|---|---|
| Transport | UDP — authentication 1812, accounting 1813 | TCP 49 |
| Encryption scope | Password only | Entire packet body |
| Separation | Authentication + authorization combined | Authentication, authorization, accounting separate |
| Home use | Network 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.

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 type | Matches | Place it |
|---|---|---|
| Standard | Source address only | Close to the destination |
| Extended | Source, destination, protocol, ports | Close to the source |
| Named / object-group | Same as extended, with readable names | Same 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.
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
| Property | Traditional firewall | Next-generation firewall |
|---|---|---|
| Decides on | IP, port, protocol | Application, user, content, reputation |
| Knows | Addresses | Applications regardless of port |
| Adds | Stateful inspection | IPS, 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
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.

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.
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
- 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. - 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.
- 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-listscounters, then move it close to the destination and observe what else it blocks. - 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.
- 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
| Trap | Truth |
|---|---|
| Type 7 is encrypted | Type 7 is reversible obfuscation. Type 5/8/9 are hashes. |
| RADIUS encrypts the whole packet | RADIUS encrypts only the password. TACACS+ encrypts the whole body. |
| Standard ACLs go close to the source | Standard (blunt) goes close to the destination; extended (precise) goes close to the source. |
| CoPP protects the data plane | CoPP protects the control plane — traffic to the device. |
| MACsec decides who may talk to whom | MACsec 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.
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
Which password storage type is reversible obfuscation rather than a real hash?
A) Type 5 B) Type 7 C) Type 8 D) Type 9
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
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
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
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
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
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
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
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
transport input controls which protocols may connect. login local only chooses the authentication database.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