Network Security

427 questions

Question 381Question

Match each network attack type on the left with its corresponding operational vector or network signature on the right.

Click a left item, then click its matching right item

Items

Evil Twin
Wireless Deauthentication
RF Jamming
Rogue DHCP Server

Matches

Show answer & explanation

Answer

Evil Twin matches with deploying an unauthorized wireless access point broadcasting a legitimate SSID. Wireless Deauthentication matches with transmitting spoofed 802.11 management frames to force client disconnections. RF Jamming matches with emitting continuous high-amplitude radio noise across wireless frequencies. Rogue DHCP Server matches with broadcasting unauthorized network configuration parameters such as default gateway and DNS addresses.
Each attack vector uniquely maps to its specific operating layer and mechanism: Evil Twin (L2 SSID impersonation), Wireless Deauthentication (L2 management frame injection), RF Jamming (L1 radio noise emission), and Rogue DHCP Server (L7/L3 service configuration hijacking).

Step-by-Step Solution

1
Analyze rogue access point impersonation behavior
Identify that spoofing a legitimate network SSID to intercept client connections describes an Evil Twin attack.
Evil Twins exploit endpoint auto-connect preferences by advertising identical wireless parameters.
2
Evaluate wireless management frame exploits
Identify that crafting spoofed 802.11 disassociation messages corresponds to a Wireless Deauthentication attack.
Unprotected 802.11 management frames can be forged by attackers to force clients off an access point.
3
Examine Physical layer interference tactics
Identify that flooding 2.4 GHz or 5 GHz channels with continuous RF noise defines RF Jamming.
RF Jamming operates at OSI Layer 1 by overpowering valid wireless radio signals.
4
Assess unauthorized network configuration service risks
Identify that issuing unauthorized IP leases with malicious gateway or DNS settings represents a Rogue DHCP Server.
Rogue DHCP servers win response race conditions to misdirect endpoint traffic flows.

Key Concept

Common Network Attack Types and Vectors
Question 382Question

Following an infrastructure compliance audit, a network engineer must harden a Layer 2 access switch deployed in a branch office. The audit report identified two critical security findings: remote administration sessions transmit management credentials in cleartext, and unassigned physical switch ports remain active in the default VLAN. Which combination of hardening procedures should the engineer implement to remediate these specific vulnerabilities?

Show answer & explanation

Answer: Configure SSH for encrypted remote management, shut down all unassigned switch ports, and reassign those ports to an isolated blackhole VLAN.

Answer

The engineer should configure SSH to provide encrypted management traffic and shut down all unassigned switch ports while moving them into an isolated blackhole VLAN.
Baseline switch hardening requires securing both the management plane and data plane interface access. Replacing cleartext management protocols with SSH protects administrative credentials from network eavesdropping. Disabling unused physical ports and reassigning them to an isolated, non-routable blackhole VLAN ensures that unauthorized physical connections cannot gain network access or exploit default VLAN privileges.

Step-by-Step Solution

1
Identify secure management plane replacement protocols for cleartext session vulnerabilities.
SSH replaces Telnet/HTTP by enforcing symmetric and asymmetric encryption for administrative credential transmission and session data.
Cleartext protocols allow attackers on the local segment to sniff management passwords and session cookies.
2
Determine physical port security baseline hardening steps for unused interfaces.
Disable (shutdown) unassigned ports and assign them to a non-routed, unused VLAN (blackhole VLAN) separate from the native VLAN.
Unconfigured active ports in default VLANs allow rogue physical devices to gain immediate Layer 2 access to internal networks.

Key Concept

Network Device Hardening Best Practices
Estimated Time:1m 30s
Question 383Question

A network security administrator is configuring traffic filtering rules on a perimeter security appliance connecting an internal server zone (10.50.0.0/2410.50.0.0/24) to an isolated database server (192.168.50.10192.168.50.10). The administrator configures explicit rules permitting TCP port 1433 traffic for database queries. However, administrative management scripts sending UDP status probes on port 1434 from the same subnet are silently dropped without generating an explicit block rule entry in the event log. Which of the following explains why the management script traffic is being blocked?

Show answer & explanation

Answer: The traffic is dropped by the unwritten implicit deny rule evaluated at the end of the access control list when no explicit permit rule matches.

Answer

The traffic is denied because Access Control Lists and firewall rule tables end with an implicit deny all statement, which automatically drops any traffic that fails to match an explicit permit rule.
In firewall and router Access Control List (ACL) implementations, an invisible implicit deny rule exists at the bottom of every rule set. When network traffic (such as UDP port 1434 probes) does not match any of the preceding explicit permit statements, it reaches the end of the rule list and is dropped automatically by the implicit deny.

Step-by-Step Solution

1
Analyze the existing firewall rule base.
The configured rules explicitly permit TCP port 1433 from 10.50.0.0/2410.50.0.0/24 to 192.168.50.10192.168.50.10, but no rule permits UDP port 1434.
Firewalls process rule sets sequentially from top to bottom until a match is found.
2
Evaluate the default behavior for unmatched traffic in ACL/firewall architectures.
Unmatched packet streams hit the final, invisible 'deny all' statement.
Security best practices enforce default-deny postures; if traffic is not explicitly permitted, it is denied implicitly.
3
Select the correct explanation for the observed drop.
The missing permit rule for UDP port 1434 causes the packet to fall through to the implicit deny rule.
Adding an explicit permit rule for UDP port 1434 will resolve the connection drops.

Key Concept

ACL Implicit Deny Rule Architecture
Question 384Question

A network administrator is creating an inbound IPv4 extended Access Control List (ACL) on a router interface to filter traffic from the internal management subnet (192.168.10.0/24192.168.10.0/24) heading toward a DMZ web server (172.16.50.10172.16.50.10). The policy requires allowing secure HTTPS access specifically for management workstation 192.168.10.45192.168.10.45, allowing general HTTP traffic from the entire internal subnet to the web server, logging any other blocked attempts from the internal subnet to the DMZ subnet (172.16.50.0/24172.16.50.0/24), and relying on standard firewall drop behavior for remaining traffic. Arrange the following ACL entries in the correct top-to-bottom sequence to ensure proper evaluation without rule shadowing.

Drag items to arrange them in the correct order

Show answer & explanation

Answer

The correct sequence places the specific host HTTPS permit rule first, followed by the subnet HTTP permit rule, then the logged subnet-to-DMZ deny rule, and finally the catch-all deny rule.
Access Control Lists evaluate rules sequentially from top to bottom until the first matching rule is found. To function correctly, rules must be organized from most specific to most general: first the host-specific permit rule, then the subnet-wide permit rule for specific ports, followed by an explicit subnet deny with logging, and ending with the default catch-all deny rule.

Step-by-Step Solution

1
Identify the most specific matching criteria requiring priority.
The rule for host 192.168.10.45192.168.10.45 requesting HTTPS (TCP port 443) access must come first to prevent broader subnet rules from matching it prematurely.
Sequential top-down processing in ACLs means broader subnet rules placed above specific host rules will shadow the host-specific policy.
2
Place broader subnet permit rules for specific protocols.
The rule allowing HTTP (TCP port 80) from subnet 192.168.10.0/24192.168.10.0/24 to web server 172.16.50.10172.16.50.10 comes second.
This allows general HTTP traffic while remaining below host-level entries.
3
Position explicit subnet-level deny and logging rules.
The explicit deny rule for all remaining IP traffic from 192.168.10.0/24192.168.10.0/24 to 172.16.50.0/24172.16.50.0/24 with logging is placed third.
Explicit deny statements with the 'log' keyword must follow permitted traffic so legitimate access is not dropped, while capturing unauthorized attempts between these subnets.
4
Place the final default implicit deny rule at the bottom.
The statement denying any remaining IP traffic completes the list.
Standard ACL best practices mandate ending the evaluation chain with a default deny statement.

Key Concept

Access Control List (ACL) sequential rule order and rule shadowing prevention
Question 385Question

A network security administrator is configuring a newly installed enterprise edge router to establish a hardened management baseline. Place the administrative hardening tasks into the correct execution sequence, from initial authentication setup to physical port containment.

Drag items to arrange them in the correct order

Show answer & explanation

Answer

The correct sequence for establishing a secure management baseline is: First, change default credentials and configure local administrative accounts. Second, generate RSA host keys. Third, enforce SSH transport on VTY lines while disabling unencrypted services. Fourth, apply a management ACL to VTY lines restricting access to trusted subnets. Fifth, administratively shut down unused physical ports and place them into an unrouted VLAN.
The standard device hardening workflow initiates with credential remediation, followed by host key generation, SSH enforcement over VTY lines, network-level management ACL filtering, and physical port containment.

Step-by-Step Solution

1
Establish administrative identity controls.
Vendor default passwords are eliminated and encrypted local user credentials are created.
Prevents unauthorized access via default credentials prior to exposing management interfaces to the network.
2
Generate asymmetric encryption keys.
An RSA key pair is generated and stored on the device.
SSH protocol initialization depends directly on existing RSA/ECDSA host keys for session negotiation.
3
Enforce secure management plane protocols.
VTY lines accept only SSH connections, blocking unencrypted Telnet sessions.
Protects administrative session payloads and credentials from interception over the network.
4
Implement network-level management access boundaries.
An access control list is bound to VTY lines permitting only authorized management IP addresses.
Reduces exposure by rejecting connection requests originating outside designated administrative subnets.
5
Harden unused physical access points.
Inactive switch ports are placed in a shutdown state and assigned to an isolated non-routable VLAN.
Prevents unauthorized physical attachment and lateral movement within the infrastructure.

Key Concept

Device Hardening Execution Workflow for Secure Management and Control Planes
Estimated Time:1m 30s
Question 386Question

A network administrator at a branch office discovers that several newly connected workstation clients are receiving IP configuration parameters from an unauthorized scope outside the corporate network design. Analysis reveals that these clients were assigned a default gateway address belonging to an unknown laptop on the local segment, causing all outbound traffic from these clients to be intercepted. Which of the following attack types is being executed?

Show answer & explanation

Answer: Rogue DHCP server attack

Answer

The attack described is a rogue DHCP server attack, as an unauthorized device is distributing network configurations and setting itself as the default gateway.
A rogue DHCP server intercepts client network deployment by answering DHCP client broadcasts with rogue IP parameters and specifying the attacker's machine as the default gateway, enabling on-path traffic eavesdropping.

Step-by-Step Solution

1
Analyze the incident symptoms presented in the scenario.
Newly connected clients are receiving invalid IP subnet leases and an unauthorized default gateway pointing to an unknown host on the local segment.
Identifying how the malicious parameters were delivered pinpoints the service protocol involved.
2
Correlate the delivery vector with common network attack mechanisms.
The parameters (IP configuration and default gateway) are assigned during network initiation via DHCP. An unauthorized host responding to DHCPDISCOVER requests is operating as a rogue DHCP server.
Rogue DHCP servers exploit unauthenticated DHCP broadcast requests to provide clients with malicious default gateway setting for man-in-the-middle positioning.

Key Concept

Rogue DHCP Server Attack Vector
Estimated Time:1m 15s
Question 387Question

A network security administrator detects anomalous network activity where a switch is broadcasting unicast frames to all active switch ports, enabling an unauthorized user to capture sensitive network traffic. Investigation reveals that a connected device transmitted tens of thousands of frames with distinct, randomly generated source physical addresses within a few seconds. Which of the following statements accurately characterize the attack vector taking place and its primary mitigation method? (Select TWO)

Select all that apply

Show answer & explanation

Answer: The threat actor is executing a MAC flooding attack designed to exhaust the switch's Content Addressable Memory (CAM) table capacity.; Implementing Port Security on switch access interfaces effectively mitigates this attack by limiting the number of learned MAC addresses.

Answer

The incident is a MAC flooding attack aimed at overflowing the switch's CAM table, which can be mitigated by configuring Port Security on switch ports.
A MAC flooding attack sends numerous frames containing invalid source MAC addresses to fill the switch's CAM table. Once full, the switch enters fail-open mode, broadcasting all traffic like a hub and allowing unauthorized packet capture. Port Security directly defends against this by enforcing limits on MAC address learning per port.

Step-by-Step Solution

1
Analyze the observed attack symptoms
Generating thousands of frames with spoofed source MAC addresses exhausts the switch CAM table space, causing the switch to enter a fail-open condition where unicast frames are flooded out all ports.
Switches use CAM tables to map MAC addresses to physical ports; when full, the switch defaults to broadcasting unicast frames.
2
Identify effective Layer 2 defenses
Enabling Port Security limits the maximum number of allowable MAC addresses on an interface and defines actions (such as restrict or shutdown) upon violation.
Restricting MAC address registration prevents an attacker from filling the CAM table with fictitious entries.

Key Concept

MAC Flooding and Port Security
Estimated Time:1m 30s
Question 388Question

An organization operates a centralized logging infrastructure where internal servers on the 192.168.10.0/24192.168.10.0/24 subnet transmit log data to a Syslog server at 172.16.50.25172.16.50.25. The network administrator configures an extended IPv4 Access Control List (ACL) with the rule `permit tcp 192.168.10.0 0.0.0.255 host 172.16.50.25 eq 514`. After applying this rule, no logs are received by the Syslog server. Which of the following modifications to the ACL will resolve the log transmission failure?

Show answer & explanation

Answer: Change the protocol in the ACL rule from TCP to UDP.

Answer

Changing the protocol in the ACL rule from TCP to UDP resolves the transmission failure because standard Syslog messaging utilizes UDP port 514.
Standard Syslog traffic relies on UDP port 514. The configured ACL rule explicitly filtered for TCP packets, causing all UDP Syslog datagrams from the subnet to fall through to remaining rules and ultimately be dropped by the implicit deny.

Step-by-Step Solution

1
Identify the transport protocol used by standard Syslog services.
Standard Syslog operates using connectionless UDP on port 514.
Syslog applications by default generate UDP datagrams to minimize logging latency.
2
Analyze the configured ACL entry `permit tcp 192.168.10.0 0.0.0.255 host 172.16.50.25 eq 514`.
The rule inspects TCP headers for destination port 514 and drops UDP datagrams.
Extended ACLs perform exact matches on the IP transport protocol field (TCP vs UDP).
3
Determine the necessary ACL modification.
Modify `tcp` to `udp` in the access-list rule.
Matching UDP allows Syslog datagrams sent to destination port 514 to be permitted through the interface.

Key Concept

Extended Access Control List (ACL) Protocol Matching (TCP vs. UDP)
Question 389Question

A network specialist is auditing and hardening newly deployed Layer 2 access switches at a branch office. To minimize the local physical attack surface and prevent VLAN hopping attacks across trunk connections, which TWO hardening practices should the specialist implement? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: Assign all unused physical switch ports to an unused blackhole VLAN and administratively disable them.; Change the native VLAN on 802.1Q trunk links from the default VLAN to an unused VLAN ID.

Answer

The specialist should assign all unused physical switch ports to an unused blackhole VLAN while administratively shutting them down, and change the native VLAN on 802.1Q trunk links from the default VLAN to a dedicated, unused VLAN ID.
Hardening switch interfaces requires securing unused access ports by assigning them to a non-routable blackhole VLAN and disabling them, as well as mitigating VLAN hopping by changing the default native VLAN on 802.1Q trunk interfaces to an unused VLAN ID.

Step-by-Step Solution

1
Analyze physical interface security requirements.
Identify that active unused interfaces present an immediate rogue device connection risk.
Hardening best practices require disabling unused interfaces and placing them into an isolated, non-routed VLAN.
2
Evaluate trunk interface configuration parameters.
Identify that default native VLAN settings (VLAN 1) leave switches vulnerable to VLAN hopping and double-tagging attacks.
Changing the native VLAN on trunk links to a non-default, unused VLAN neutralizes double-tagging vulnerabilities.

Key Concept

Switch Port Security and Native VLAN Hardening
Estimated Time:1m 30s
Question 390Question

A network engineer is configuring traffic filtering between a web application cluster in a DMZ (192.168.100.0/24192.168.100.0/24) and a backend database subnet (172.16.50.0/24172.16.50.0/24). Web application servers must initiate queries to a database server listening on TCP port 54325432. The security architecture incorporates both a stateful inspection firewall and stateless router Access Control Lists (ACLs). Which TWO of the following statements correctly describe the filtering requirements and expected packet behavior for this deployment?

Select all that apply

Show answer & explanation

Answer: The stateful firewall automatically permits return database response traffic to the DMZ web servers once the outbound connection on TCP port 54325432 is established, without needing an explicit inbound return rule.; The stateless router ACL requires an explicit rule permitting return traffic from TCP port 54325432 back to the DMZ ephemeral port range to allow full bidirectional communication.

Answer

The stateful firewall automatically permits return response traffic for established TCP connections without separate return rules, whereas the stateless router ACL requires an explicit permit entry for return traffic targeting ephemeral ports.
Stateful firewalls track TCP connection state, automatically allowing legitimate return packets without needing reverse rules. In contrast, stateless ACLs evaluate each packet in isolation, requiring explicit return rules for response traffic originating from the server back to client ephemeral ports.

Step-by-Step Solution

1
Analyze stateful firewall inspection behavior for TCP traffic.
Stateful firewalls track connection states (such as TCP SYN, ESTABLISHED). Outbound connection permits create state table entries allowing valid reply packets automatically.
Stateful devices dynamically permit return traffic matching active session entries.
2
Evaluate stateless ACL rule requirements for bidirectional packet flows.
Stateless ACLs inspect individual header fields independently for every packet and do not maintain state tables. Return traffic must be explicitly permitted.
Without state tracking, return packets matching database responses will hit the default implicit deny unless permitted explicitly.

Key Concept

Difference between stateful firewall session tracking and stateless ACL per-packet filtering
Question 391Question

During a bandwidth exhaustion incident, a network administrator inspects packet captures at the perimeter firewall. The logs show a massive influx of inbound UDP traffic on port 123 directed at an enterprise public IP address. The payload responses originate from third-party public time servers responding to spoofed monlistmonlist commands that the target enterprise never initiated. Which of the following network attack types is being executed?

Show answer & explanation

Answer: NTP Amplification Attack

Answer

NTP Amplification Attack is being executed.
An NTP Amplification attack is a Distributed Denial of Service (DDoS) vector where attackers exploit publicly exposed Network Time Protocol (NTP) servers running on UDP port 123. By sending requests with a spoofed source IP (the victim's IP address) using commands like monlist—which returns a list of up to 600 recent clients—the attacker forces the time server to reply with a payload up to hundreds of times larger than the request. The target receives a massive wave of unsolicited responses, resulting in extreme network bandwidth exhaustion.

Step-by-Step Solution

1
Analyze the service and port number identified in the packet capture.
UDP port 123 corresponds directly to Network Time Protocol (NTP).
Identifying the transport protocol and port establishes the application protocol being exploited.
2
Examine the attack payload behavior and traffic direction.
The target receives unrequested high-volume responses triggered by spoofed request queries (such as the monlist command).
This behavior defines a reflection and amplification distributed denial-of-service attack mechanism.
3
Correlate the protocol and attack structure to determine the precise threat classification.
Combining UDP port 123 (NTP) with reflection/amplification tactics confirms an NTP Amplification Attack.
Differentiates this specific vector from other reflection techniques like DNS amplification or localized protocol poisoning.

Key Concept

NTP Amplification Attack
Estimated Time:1m 30s
Question 392Question

A network administrator is troubleshooting connectivity between internal network monitoring tools on subnet 10.80.4.0/2410.80.4.0/24 and an application server at 10.80.12.5010.80.12.50. The administrator configured an inbound extended Access Control List (ACL) on the router interface facing the monitoring subnet with only the following active rules:

- `permit tcp 10.80.4.0 0.0.0.255 host 10.80.12.50 eq 80`
- `permit tcp 10.80.4.0 0.0.0.255 host 10.80.12.50 eq 443`

While HTTP and HTTPS traffic reach the server successfully, ICMP echo requests (ping) sent from the monitoring tools to 10.80.12.5010.80.12.50 fail. Which of the following best explains why the ICMP traffic is being dropped?

Show answer & explanation

Answer: The ACL ends with an implicit deny rule that automatically blocks all traffic not explicitly permitted by a prior rule.

Answer

The ACL ends with an implicit deny rule that automatically blocks all traffic not explicitly permitted by a prior rule.
Every network Access Control List (ACL) features an default, invisible 'implicit deny all' rule at the very end of the rule list. When ICMP traffic arrives at the router interface, it is evaluated against the explicit entries. Because the only configured entries permit TCP traffic destined for ports 80 and 443, ICMP traffic fails to match any permit rule and is discarded by the implicit deny statement.

Step-by-Step Solution

1
Analyze the configured ACL rules
The ACL contains explicit permit entries strictly for TCP destination ports 80 (HTTP) and 443 (HTTPS).
Understanding which protocols and ports are permitted helps identify unhandled packet types.
2
Identify the protocol used by the failing traffic type
Ping utility uses ICMP (Internet Control Message Protocol), which is an IP-level protocol (IP protocol 1) and does not use TCP ports.
Comparing ICMP packet headers against the ACL entries reveals no matching rule.
3
Apply standard ACL processing logic to unmatched traffic
All IP Access Control Lists evaluate matching entries sequentially and terminate with an invisible 'implicit deny ip any any' rule.
Since the ICMP packet does not match Rule 1 or Rule 2, it hits the implicit deny statement at the end of the ACL and is dropped.

Key Concept

ACL Implicit Deny Rule
Question 393Question

Match each common network attack type on the left with its corresponding operational mechanism or technical signature on the right.

Click a left item, then click its matching right item

Items

TCP SYN Flood
Smurf Attack
Password Spraying
TLS Downgrade Attack

Matches

Show answer & explanation

Answer

TCP SYN Flood matches exhaustion of the server connection backlog queue; Smurf Attack matches ICMP broadcast amplification with spoofed source addresses; Password Spraying matches testing a single common password across multiple accounts to prevent lockouts; TLS Downgrade Attack matches manipulating negotiations to force legacy encryption protocols.
TCP SYN Flood targets server connection backlogs via unacknowledged SYN packets. Smurf Attack uses ICMP reflection/amplification via broadcast requests with a spoofed source IP address. Password Spraying tests one password against numerous accounts to evade lockout detection. TLS Downgrade Attack manipulates protocol negotiation to force communication over deprecated or weak ciphers.

Step-by-Step Solution

1
Analyze TCP SYN Flood mechanism.
Identified that TCP SYN Floods leverage uncompleted TCP handshakes (SYN sent, ACK never returned) to exhaust host connection buffers.
Understanding transport layer protocol state mechanisms differentiates SYN floods from other DoS methods.
2
Analyze Smurf Attack mechanism.
Identified that Smurf attacks use ICMP echo requests sent to network broadcast addresses with spoofed target IP source headers.
Distinguishing reflection and amplification attacks relies on identifying broadcast targets and spoofed headers.
3
Analyze Password Spraying mechanism.
Identified that password spraying targets horizontal user space by testing one common password against many accounts.
This strategy contrasts with brute-force attacks that attempt many passwords against a single account.
4
Analyze TLS Downgrade Attack mechanism.
Identified that downgrade attacks interfere with secure handshake negotiations to force fallback to older, vulnerable protocols.
Downgrade vectors target encryption protocol negotiation rather than network bandwidth or password guessing.

Key Concept

Common Network Attack Types and Vectors
Question 394Question

A network administrator is configuring the management plane of an enterprise router to comply with baseline device hardening standards. The security policy mandates that all remote command-line management sessions use encrypted transport protocols, idle administrative sessions terminate automatically after 55 minutes of inactivity, and VTY access be restricted strictly to hosts within the internal management subnet (10.10.50.0/2410.10.50.0/24). Which set of configuration commands on the virtual terminal (VTY) lines correctly enforces this hardening policy?

Show answer & explanation

Answer: Configure `transport input ssh`, set `exec-timeout 5 0`, and apply an inbound IPv4 Access Control List restricting source addresses to `10.10.50.0/24`.

Answer

The configuration that sets `transport input ssh`, `exec-timeout 5 0`, and an inbound Access Control List for `10.10.50.0/24` correctly fulfills all baseline management plane hardening requirements.
The option specifying `transport input ssh`, `exec-timeout 5 0`, and an inbound IPv4 Access Control List for `10.10.50.0/24` correctly satisfies all policy controls: SSH ensures transport encryption, `exec-timeout 5 0` enforces a 5-minute idle limit, and the inbound ACL restricts access exclusively to the authorized management subnet.

Step-by-Step Solution

1
Identify the required secure management protocol
Disabling Telnet (port 23) and explicitly enabling SSH (port 22) via `transport input ssh` prevents eavesdropping and credential theft across the management network.
Cleartext management protocols violate baseline security policies.
2
Determine the syntax for the 5-minute idle session timeout
`exec-timeout 5 0` specifies 5 minutes and 0 seconds of allowed idle time before automatically logging out the administrative session.
Using `0 5` specifies 5 seconds, while `0 0` disables the timeout entirely, leaving sessions exposed.
3
Apply source network access restriction on VTY lines
An inbound access class referencing an ACL for `10.10.50.0/2410.10.50.0/24` ensures only authorized administrative hosts can initiate VTY connections.
Inbound filtering stops unauthorized connection attempts at the network layer before authentication is attempted.

Key Concept

Management Plane Hardening via VTY Line Security Controls
Estimated Time:1m 30s
Question 395Question

During a security audit, a network administrator discovers that an rogue laptop plugged into an unmanaged wall jack successfully established an 802.1Q trunking link with the local access switch by sending dynamic trunking negotiation messages. This enabled the device to capture and inject traffic across multiple internal VLANs. Which of the following network attack types did the rogue device execute?

Show answer & explanation

Answer: Switch spoofing

Answer

Switch spoofing is the attack vector used by an unauthorized device to emulate a switch and negotiate an 802.1Q trunk link to access multiple VLANs.
Switch spoofing occurs when an attacker configures a system to send trunking negotiation packets (e.g., DTP frames) to a switch port configured in dynamic trunking mode. If successful, the switch negotiates a trunk link with the attacker's device, giving the attacker access to all traffic traveling across the trunked VLANs.

Step-by-Step Solution

1
Analyze the attack mechanism described in the scenario
The attacking host sends dynamic negotiation frames (such as Dynamic Trunking Protocol / DTP) to trick an switch port configured in dynamic auto/desirable mode into forming a trunk.
Establishing an 802.1Q trunk gives the connected device access to untagged and tagged frames across all VLANs allowed on that trunk interface.
2
Differentiate Layer 2 VLAN exploitation techniques
Configuring a rogue host to pretend to be a switch to form a trunk connection is explicitly defined as switch spoofing.
This contrasts with double tagging (VLAN hopping via nested 802.1Q tags) or ARP poisoning (manipulating local MAC-IP resolution tables).

Key Concept

Switch Spoofing and VLAN Security
Question 396Question

A network technician is configuring an out-of-the-box managed network switch to establish a secure management baseline prior to production deployment. Arrange the implementation steps in the correct chronological order from first to last to properly configure hardened remote access.

Drag items to arrange them in the correct order

Show answer & explanation

Answer

The correct operational sequence is: 1) Change default administrative credentials, 2) Generate cryptographic asymmetric host keys, 3) Configure VTY line transport to enforce SSH exclusively, 4) Apply an Access Control List (ACL) to the VTY lines, 5) Configure aggressive session exec-timeouts and unauthorized access login banners.
Establishing a hardened management baseline requires a logical, sequential workflow: credentials must first be secured to remove vendor defaults. Next, asymmetric host keys must be generated because SSH cannot operate without active encryption keys. Once keys exist, VTY transport can be set exclusively to SSH while disabling Telnet. VTY Access Control Lists (ACLs) are then applied to restrict remote connections to authorized management subnets, and finally, operational controls such as idle session exec-timeouts and login banners are configured to prevent unattended session hijacking.

Step-by-Step Solution

1
Eliminate administrative default credentials.
Default passwords are replaced with secure, unique administrator accounts.
Default credentials present the immediate primary vector of exposure on factory-reset hardware.
2
Generate device asymmetric key pairs.
An RSA/ECDSA key pair is stored in device flash memory.
Secure Shell (SSH) cannot run or accept connections until local host encryption keys exist.
3
Enforce secure management protocols on virtual terminal (VTY) lines.
Telnet and HTTP transport are blocked; SSH is required.
Enforcing SSH prevents plaintext transmission of management data across the network.
4
Restrict VTY line access using an IPv4/IPv6 ACL.
Only management workstation subnets can initiate VTY connections.
Network-level access control filters reduce exposure by dropping unauthorized connection attempts at the VTY interface.
5
Apply operational safety controls (exec-timeout and security banners).
Inactive sessions terminate automatically and access policies are displayed prior to authentication.
Session timeouts prevent hijacking of unattended administrative terminals, completing the baseline workflow.

Key Concept

Device Management Plane Baseline Hardening Workflow
Question 397Question

A network engineer is deploying a stateless Access Control List (ACL) on a router WAN interface to allow internal hosts on subnet 172.16.10.0/24172.16.10.0/24 to access an external HTTPS web service hosted at 198.51.100.25198.51.100.25. The engineer configures an outbound ACL rule permitting TCP traffic from source subnet 172.16.10.0/24172.16.10.0/24 to destination host 198.51.100.25198.51.100.25 on destination port 443443. However, users report that connection attempts to the external web service continuously time out. Which of the following best explains why the connection fails and identifies the necessary solution?

Show answer & explanation

Answer: The stateless ACL does not automatically permit return traffic; an inbound rule must be configured to permit returning TCP traffic from source port 443 to the internal subnet's ephemeral destination ports.

Answer

The stateless ACL drops return traffic because it does not maintain session state; an inbound ACL entry allowing return TCP traffic from source port 443 to ephemeral destination ports must be added.
Stateless Access Control Lists perform packet-by-packet inspection without keeping track of TCP connection states. While the outbound ACL permits initiating packets from internal hosts to destination port 443, the response traffic from the server back to the client's ephemeral ports is blocked by the router's default implicit deny rule on the return path. To resolve this, a stateless ACL requires an explicit inbound rule permitting TCP traffic originating from port 443 back to internal IP addresses, or the deployment of a stateful firewall that dynamically permits return traffic for established sessions.

Step-by-Step Solution

1
Analyze the behavior of stateless packet filtering.
Stateless filters inspect each packet independently without maintaining connection state tables.
Outbound packets reach the destination server, but returning packets from the server back to the client arrive on dynamic ephemeral ports.
2
Identify the cause of connection timeouts.
The returning packets from the server encounter the ACL's implicit deny all rule on the inbound interface.
Because no explicit inbound rule exists to allow return traffic from port 443, return packets are dropped, preventing completion of the TCP three-way handshake.
3
Determine the required resolution.
Add an inbound ACL rule allowing source port 443 traffic to the internal host subnet, or implement stateful inspection.
Stateful firewalls track TCP handshakes automatically, permitting return packets matching established sessions without manual bi-directional rules.

Key Concept

Stateless vs. Stateful Firewall Filtering
Question 398Question

An enterprise network security administrator discovers anomalous traffic on a switch interface where an attacker on VLAN 10 sent frames directly to a target server on VLAN 20 without passing through a router. Analysis of captured frames reveals two 802.1Q tags embedded within the Ethernet header. Which of the following conditions must be met for this double-tagging VLAN hopping attack to succeed? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: The native VLAN of the 802.1Q trunk link must match the attacker's access VLAN.; The traffic must traverse an 802.1Q trunk line connecting two switches.

Answer

Double-tagging VLAN hopping requires that the native VLAN of the trunk link matches the attacker's VLAN, and that the traffic traverses an 802.1Q trunk connecting switches.
A double-tagging attack succeeds when the attacker's access VLAN matches the native VLAN configured on an 802.1Q trunk port. Upon receiving the frame, the first switch strips the outer tag because it matches the native VLAN. The frame travels across the trunk to the second switch, which reads the inner 802.1Q tag and forwards the frame to the target VLAN, bypassing router access controls.

Step-by-Step Solution

1
Analyze the incident details
The capture shows dual 802.1Q headers used to hop from VLAN 10 to VLAN 20 across a switch infrastructure.
Identifying double tagging isolates the specific conditions required for native VLAN header stripping on switch trunks.
2
Evaluate native VLAN processing behavior
When a frame's outer 802.1Q tag matches the trunk's native VLAN, the first switch strips the outer tag before sending the frame across the trunk.
This establishes that the attacker's VLAN must match the native VLAN of the trunk port.
3
Evaluate downstream switch trunk processing
The second switch inspects the remaining inner 802.1Q tag and forwards the frame to the destination VLAN specified in that tag.
This demonstrates that an active switch-to-switch trunk link is necessary for the second switch to interpret the inner tag.

Key Concept

Double-tagging VLAN hopping exploits native VLAN stripping mechanisms over 802.1Q trunk links to send unidirectional frames to a different VLAN without passing through a Layer 3 device.
Question 399Question

A security engineer is updating the baseline configuration of a remote branch router to comply with corporate security standards. The compliance mandate specifies two primary controls: preventing automated device discovery announcements from leaking network topology details to untrusted segments, and securing interactive management sessions against cleartext eavesdropping. Which set of configuration actions directly fulfills these security requirements?

Show answer & explanation

Answer: Disable CDP/LLDP on untrusted interfaces and restrict VTY lines to SSH transport.

Answer

Disabling CDP/LLDP on untrusted interfaces and restricting VTY lines to SSH transport directly addresses both device hardening requirements.
Hardening best practices require disabling unencrypted discovery mechanisms (CDP/LLDP) on public or untrusted interfaces to minimize intelligence leakage. Simultaneously, remote terminal management must enforce secure, encrypted channels using SSH instead of cleartext protocols like Telnet.

Step-by-Step Solution

1
Identify the protocol responsible for network topology discovery announcements.
CDP and LLDP broadcast device capabilities, system names, and IP addresses periodically.
Disabling CDP/LLDP on untrusted interfaces prevents unauthorized network reconnaissance.
2
Select the secure protocol for interactive remote management.
SSH encrypts session traffic over TCP port 22, whereas Telnet transmits data in cleartext.
Restricting virtual terminal (VTY) lines to accept SSH ensures encrypted management plane communication.

Key Concept

Management plane hardening via discovery protocol suppression and secure protocol enforcement
Question 400Question

A network administrator is implementing firewall policies on a stateful security appliance that protects internal servers on the 10.100.10.0/2410.100.10.0/24 subnet. The administrator needs to allow remote management via SSH from a trusted management workstation (10.200.5.5010.200.5.50) to the internal servers while ensuring unapproved outbound connections from the servers to the Internet are blocked. Which of the following statements correctly describe how a stateful firewall processes traffic for this scenario? (Select TWO.)

Select all that apply

Show answer & explanation

Answer: A single inbound rule permitting TCP port 2222 from 10.200.5.5010.200.5.50 to 10.100.10.0/2410.100.10.0/24 automatically allows outbound return packets for established sessions without needing a separate outbound rule.; A new outbound TCP connection initiated directly by an internal server to an external public IP address will be blocked if no explicit outbound permit rule exists.

Answer

Stateful firewalls automatically allow return traffic for established sessions using state table tracking, and they evaluate any newly initiated outbound connections against rule sets, blocking unmatched sessions via implicit deny.
Stateful firewalls maintain a state table to track established connections. When an inbound SSH connection from the management host is permitted, the firewall dynamically allows the corresponding return traffic from the server without requiring a separate reverse rule. Furthermore, any newly initiated session originated by an internal server requires a matching permit rule; otherwise, the firewall's default implicit deny policy blocks the outbound traffic.

Step-by-Step Solution

1
Analyze stateful connection tracking for inbound SSH connections.
Stateful firewalls record session entries in a state table during the TCP three-way handshake. Return traffic for an established session matching an existing state table entry is automatically permitted.
Eliminates the requirement for manual return rules typical of stateless router ACLs.
2
Evaluate new outbound session initiation from internal servers.
When an internal server initiates a brand-new connection outward, the firewall evaluates it as a new session against configured rules. Without a permit rule, the default implicit deny drops the packet.
Prevents unauthorized internal hosts from initiating connections to external hosts.
3
Verify protocol and port requirements for SSH management.
SSH operates over TCP port 2222, establishing a reliable stream.
Rules configured for UDP port 2222 will fail to match SSH traffic.

Key Concept

Stateful Inspection vs Stateless Filtering
PreviousPage 20 / 22Next
Network Security Practice Questions — CompTIA Network+ — Page 20 | Examkin