Courseiva

CCNA Network Attacks And Defense Strategies Questions

37 questions · Network Attacks And Defense Strategies · All types, answers revealed

1
Multi-Selectmedium

An organization is hardening its network architecture against supply chain attacks targeting third-party software dependencies and vendor integrations. Which TWO best practices and controls should be implemented? (Choose TWO)

Select 2 answers
A.Disable all code signing requirements for internal and external software builds.
B.Maintain a comprehensive Software Bill of Materials (SBOM) and perform automated Software Composition Analysis (SCA) for third-party libraries.
C.Grant third-party vendor support accounts permanent, unmonitored Domain Administrator privileges.
D.Rely entirely on vendor self-assessments without conducting independent code audits or penetration testing.
E.Enforce strict vendor access controls, multi-factor authentication (MFA), and just-in-time (JIT) privileged access management.
AnswersB, E

An SBOM inventories every third-party component, while automated SCA continuously detects known vulnerabilities in those dependencies, directly countering supply chain attacks. This satisfies the stem's requirement to harden against compromised third-party software dependencies and vendor integrations.

Why this answer

Option B is correct because maintaining a comprehensive Software Bill of Materials (SBOM) gives the organization visibility into every third-party component and transitive dependency in its software, while automated Software Composition Analysis (SCA) continuously detects known vulnerabilities (CVEs) and license risks in those libraries, directly countering supply chain attacks that hide in dependencies. Option E is correct because strict vendor access controls combined with multi-factor authentication (MFA) and just-in-time (JIT) privileged access management ensure that third-party support accounts receive only time-bound, least-privilege access that is monitored and revoked after use, preventing attackers from abusing persistent vendor credentials to pivot into the environment. Option A is wrong because disabling code signing removes integrity verification of builds and enables tampered or malicious artifacts to run undetected.

Option C is wrong because granting permanent, unmonitored Domain Administrator rights to vendors creates an uncontrolled privileged backdoor and violates least privilege. Option D is wrong because relying solely on vendor self-assessments provides no independent verification and leaves supply chain risks unaudited.

Exam trap

CND often tests the misconception that vendor trust or self-attestation is sufficient for supply chain security, luring candidates toward options that grant broad vendor privileges or skip independent verification instead of combining SBOM/SCA with strict vendor access controls.

2
MCQmedium

During an incident response engagement, a security analyst discovers that an attacker executed a Server-Side Request Forgery (SSRF) vulnerability on an internal web application to access cloud instance metadata services (IMDS). Which remediation step should be applied immediately to the cloud application architecture to prevent future SSRF exploitation against IMDS?

A.Upgrade the web server operating system and apply all vendor-supplied kernel patches.
B.Implement a traditional Layer 3 network firewall rule to block all outbound TCP traffic on port 80.
C.Install a host-based intrusion detection system (HIDS) to monitor web application log directories.
D.Enforce Instance Metadata Service Version 2 (IMDSv2) requiring session tokens and configure strict URL parsing libraries on the web application.
AnswerD

IMDSv2 mitigates SSRF by requiring a PUT request to obtain a session token before any metadata query, which attacker-controlled URL parameters cannot supply. Combined with strict URL parsing libraries that reject malformed or redirecting inputs, this directly satisfies the stem's constraint: preventing SSRF exploitation against the instance metadata service.

Why this answer

Option D is correct because IMDSv2 requires a session token obtained via a PUT request before metadata can be retrieved, which defeats most SSRF attacks that can only issue simple GET requests. Combining IMDSv2 with strict URL parsing and allow-listing on the web application prevents attackers from crafting requests to 169.254.169.254, addressing both the architectural and application-layer causes.

Exam trap

CND often tests whether candidates pick generic network or host controls (firewall rules, patching, HIDS) for SSRF remediation, when the correct fix is enforcing IMDSv2 and hardening the application's URL handling.

How to eliminate wrong answers

Option A is wrong because OS and kernel patching does not remediate SSRF, which is an application-layer vulnerability — the attacker abuses legitimate server functionality, not an OS flaw. Option B is wrong because blocking outbound port 80 does not stop SSRF to the metadata service, which listens on 169.254.169.254 over HTTP (port 80) but is reachable internally; a blanket block would also break legitimate traffic and is not targeted at the root cause. Option C is wrong because a HIDS monitoring log directories is detective, not preventive, and does nothing to stop SSRF exploitation against IMDS.

3
MCQmedium

A SOC analyst reviewing perimeter firewall logs notices a high volume of inbound TCP SYN packets with randomized source IP addresses targeting multiple open ports on a public-facing web server, and the server's connection table is nearly exhausted. The organization wants to stop this activity at the network edge without blocking legitimate clients. Which solution should the analyst recommend?

A.Create an access control list that blocks all inbound traffic to the web server except from the organization's known customer IP ranges.
B.Enable port security on the switch port connected to the web server to limit the number of source MAC addresses.
C.Deploy a firewall feature that performs SYN proxy and rate limiting on inbound connections to the web server.
D.Enable SYN cookies on the web server and lower the TCP half-open connection timeout.
AnswerC

A SYN proxy on the firewall completes the TCP three-way handshake on behalf of the protected server, only forwarding connections that successfully finish the handshake, which defeats spoofed-source SYN floods. Combined with per-source rate limiting, legitimate clients still connect while randomized-source floods are absorbed at the perimeter, matching the requirement to mitigate at the network edge.

Why this answer

A SYN flood exhausts the server's half-open connection table using spoofed sources. Mitigating it at the network edge requires a device that validates the handshake before passing traffic to the server, which is exactly what a firewall SYN proxy does. Pairing that with rate limiting preserves service for legitimate clients while dropping spoofed connection attempts before they reach the web server.

Exam trap

The trap here is assuming host-side SYN cookies alone constitute edge mitigation, when the scenario requires stopping the flood before it reaches the server.

4
MCQmedium

An organization's web application is vulnerable to SQL injection (SQLi). An attacker is using union-based queries to extract database contents. Which defensive technology placed in front of the web application can inspect HTTP parameters and block SQLi signatures dynamically?

A.Configure a reverse proxy load balancer with IP hashing persistence algorithms.
B.Enable Unicast Reverse Path Forwarding (uRPF) on the network edge routing equipment.
C.Deploy a Web Application Firewall (WAF) configured with SQL injection signature rule sets and request anomaly scoring.
D.Implement a stateful network firewall configured with Layer 4 packet inspection rules.
AnswerC

A WAF terminates HTTP traffic and inspects parameters, headers and bodies against signature rule sets, matching union-based SQLi patterns. Anomaly scoring aggregates suspicious attributes, letting it block malicious requests before they reach the application, satisfying the requirement for dynamic inspection of HTTP parameters.

Why this answer

A Web Application Firewall (WAF) is specifically designed to inspect HTTP/HTTPS traffic at Layer 7, analyze parameters, and block SQL injection signatures using rule sets and anomaly scoring. It sits in front of the web application and can dynamically detect and mitigate SQLi attempts, including union-based queries.

Exam trap

The trap is confusing network-layer firewalls with application-layer WAFs, leading candidates to select a stateful firewall that cannot inspect HTTP payloads.

How to eliminate wrong answers

Option A is wrong because a reverse proxy load balancer with IP hashing only distributes traffic and does not inspect application-layer payloads for SQLi. Option B is wrong because uRPF is a network-layer anti-spoofing technique, not an application-layer defense. Option D is wrong because a stateful network firewall operates at Layer 4 and cannot inspect HTTP parameters for SQL injection patterns.

5
MCQmedium

An administrator notices unusual traffic volume exiting an internal server toward an unknown external IP address on TCP port 4443. Further investigation reveals data exfiltration. Which firewall feature should be configured at the perimeter to inspect and block unauthorized outbound application traffic and unknown protocols?

A.Configure a stateless packet filtering access control list on the core router interface.
B.Activate standard IP source guard on all internal user-facing switch access ports.
C.Enable Network Address Translation (NAT) overload (PAT) on the perimeter router.
D.Deploy a Next-Generation Firewall (NGFW) with Deep Packet Inspection (DPI) and App-ID controls.
AnswerD

An NGFW with Deep Packet Inspection and App-ID identifies applications regardless of port, so exfiltration over TCP 4443 to an unknown host is recognised and blocked. Port-based filtering alone would miss this, since the traffic uses a non-standard port.

Why this answer

A Next-Generation Firewall (NGFW) with Deep Packet Inspection (DPI) and App-ID can identify applications regardless of port, inspect payloads, and block unauthorized outbound traffic and unknown protocols. This is essential for detecting and stopping data exfiltration over non-standard ports like TCP 4443. Traditional stateless filtering and NAT cannot perform this level of application-aware inspection.

Exam trap

CND often tests the difference between stateless/stateful packet filtering and application-aware inspection, catching candidates who choose NAT or ACLs for threats that require Layer 7 visibility and control.

How to eliminate wrong answers

Option A is wrong because a stateless packet filtering ACL on a core router only inspects headers (source/destination IP, port) without tracking sessions or application context, so it cannot identify or block unknown protocols or application-layer exfiltration. Option B is wrong because IP source guard prevents IP spoofing on switch access ports by binding to DHCP snooping entries; it does not inspect outbound application traffic. Option C is wrong because NAT overload (PAT) translates many internal addresses to one public address for connectivity, providing no security inspection or blocking capability.

6
MCQmedium

A company suspects that an insider is using a DNS tunneling tool to exfiltrate small amounts of sensitive data through the corporate recursive resolver. The tool encodes data in the leftmost labels of queries to a domain the company does not own. Which detection approach is most likely to reveal this activity on existing network telemetry?

A.Inspecting TLS certificate transparency logs for the tunnel domain
B.Enabling DNSSEC validation on the recursive resolver
C.Monitoring for unusually long or high-entropy subdomain labels and abnormally high query volume to a single domain
D.Blocking outbound TCP port 53 at the perimeter firewall
AnswerC

DNS tunneling encodes payload data into query names, producing unusually long labels, high character entropy, and a flood of unique subdomains under one parent domain. These are observable in resolver logs and passive DNS metadata without any decryption, making them the most reliable indicator. Baseline deviation on query length, entropy, and volume per domain exposes the tunnel even when the encoded content itself is unreadable.

Why this answer

DNS tunneling smuggles data inside query names, so the detectable footprint is structural: long labels, high entropy, many unique subdomains under one parent, and elevated query rates. These signals are visible in resolver logs and passive DNS without decrypting anything. Blocking outbound port 53 or enabling DNSSEC does not address a tunnel already riding through the sanctioned recursive resolver.

Exam trap

The trap here is assuming that restricting outbound DNS traffic prevents DNS tunnelling, when the channel is already flowing through the permitted corporate resolver.

7
Multi-Selecthard

A security team is implementing defense-in-depth controls to protect an enterprise wireless network against advanced attacks. Which TWO advanced hardening and security configurations should be deployed? (Choose TWO)

Select 2 answers
A.Using Wired Equivalent Privacy (WEP) with static 40-bit pre-shared keys.
B.Configuring hidden SSIDs across all access points as the primary perimeter defense mechanism.
C.Mandatory Protected Management Frames (PMF / 802.11w) to prevent forged deauthentication and disassociation attacks.
D.Disabling all encryption ciphers to maximize wireless throughput and signal range.
E.Wireless Intrusion Detection Systems (WIDS / wIPS) to monitor radio frequencies and alert on rogue APs or MAC spoofing.
AnswersC, E

Mandatory Protected Management Frames cryptographically authenticate unicast and broadcast management frames, blocking forged deauthentication and disassociation frames that attackers use to force client disconnections and capture handshakes. This directly satisfies the stem's requirement for advanced hardening against sophisticated wireless attacks, closing a gap that WPA2 alone leaves open.

Why this answer

Option C is correct because mandatory Protected Management Frames (PMF, standardized as 802.11w) cryptographically protects unicast and broadcast management frames such as deauthentication and disassociation, preventing forged-frame denial-of-service and disassociation attacks that are common in advanced wireless threats. Option E is correct because a Wireless Intrusion Detection/Prevention System (WIDS/wIPS) continuously monitors the RF spectrum, detects rogue access points, evil twins, MAC spoofing, and other anomalies, and can alert or automatically contain them, which is a core defense-in-depth layer for enterprise WLANs. Option A is wrong because WEP with static 40-bit pre-shared keys is cryptographically broken and trivially cracked, so it weakens rather than hardens security.

Option B is wrong because hiding SSIDs is only weak obscurity, easily discovered by passive monitoring, and can disrupt legitimate clients without providing real protection. Option D is wrong because disabling encryption exposes all wireless traffic in cleartext, eliminating confidentiality and integrity regardless of throughput gains.

Exam trap

The trap here is selecting 'hidden SSIDs' as a security control — a persistent myth — instead of recognizing that PMF and WIDS/wIPS are the actual advanced hardening mechanisms tested on the CND exam.

8
MCQmedium

An organization is implementing cloud security posture management (CSPM) for its multi-cloud environment. The security team needs to ensure that Amazon S3 storage buckets are not publicly accessible due to misconfigurations. Which automated preventive control should be enforced?

A.Enable Amazon S3 Block Public Access settings across all AWS accounts and buckets.
B.Deploy an AWS WAF web access control list on Amazon CloudFront distributions.
C.Configure AWS Security Hub with CIS AWS Foundations Benchmark compliance standards.
D.Install a host-based antivirus agent on all EC2 virtual machine instances.
AnswerA

Amazon S3 Block Public Access applies account-level and bucket-level controls that override bucket policies and ACLs, preventing public exposure at the source rather than merely detecting it afterwards. This satisfies the stem's requirement for an automated preventive control across all AWS accounts, blocking misconfigured public access before it occurs.

Why this answer

Amazon S3 Block Public Access is a preventive control that overrides bucket policies and ACLs to reject any public access, regardless of how the bucket is configured. Enabling it at the account level ensures that even newly created buckets or misconfigured policies cannot expose data publicly. This directly addresses the requirement to prevent public accessibility due to misconfigurations.

Exam trap

CND often tests the difference between preventive controls (Block Public Access) and detective controls (Security Hub, Config rules), so candidates who pick compliance monitoring tools instead of enforcement mechanisms fall into the trap.

How to eliminate wrong answers

Option B is wrong because AWS WAF protects web applications from HTTP exploits (SQLi, XSS) at CloudFront or ALB, not S3 bucket ACLs or policies — it does not prevent public S3 exposure. Option C is wrong because AWS Security Hub with CIS benchmarks is a detective control that identifies non-compliance after the fact; it does not prevent public access. Option D is wrong because host-based antivirus on EC2 instances has no bearing on S3 bucket permissions, which are managed at the storage service layer, not the compute layer.

9
MCQmedium

A hospital's network team observes that a single internal host is flooding the Layer 2 CAM table of an access switch with thousands of frames, each carrying a different source MAC address. As a result, the switch begins flooding all unicast traffic out of every port, allowing the attacker to capture traffic destined for other hosts. Which attack is being executed, and which countermeasure most directly addresses it?

A.MAC flooding; enable port security with a maximum MAC count and violation action on access ports
B.ARP spoofing; enable Dynamic ARP Inspection with DHCP snooping bindings on the VLAN
C.VLAN hopping; change all access ports to trunk ports and prune unused VLANs
D.DHCP starvation; configure DHCP snooping with rate limiting on untrusted ports
AnswerA

MAC flooding exhausts the finite CAM table, forcing the switch to behave like a hub and flood unicast frames to all ports, enabling passive capture. Port security limits the number of source MAC addresses learned per interface and can restrict, protect, or shut down the port on violation, directly restoring the integrity of the forwarding table and preventing the overflow condition.

Why this answer

The described symptom is a classic MAC flooding attack, where an attacker fills the switch's content-addressable memory with bogus source MAC entries so legitimate entries age out and unknown-unicast frames are flooded to every port. Port security caps the number of MAC addresses learned on an interface and enforces a violation action, which directly prevents CAM table exhaustion and preserves normal forwarding behaviour.

Exam trap

The trap here is assuming that any switch-level traffic capture attack must be ARP spoofing, when the flooding of all ports is actually the signature of CAM table exhaustion.

10
MCQeasy

A wireless security audit reveals that an unauthorized rogue access point has been deployed within the corporate perimeter, configured with the exact same SSID as the corporate enterprise network to perform an evil twin attack. Which enterprise wireless feature should the network administrator configure on the Wireless LAN Controller (WLC) to automatically detect and contain this rogue AP?

A.Enable Rogue AP Detection and Automated Containment on the Wireless LAN Controller (WLC).
B.Migrate the enterprise wireless network from WPA2-Personal to WPA3-Enterprise (SAE).
C.Disable SSID broadcasting (hidden SSID) across all corporate wireless access points.
D.Configure MAC filtering to allow only corporate-approved wireless client hardware addresses.
AnswerA

Rogue AP Detection with Automated Containment lets the WLC classify access points by comparing their wired MAC addresses against the known authorised list, then issue 802.11 deauthentication frames to clients associated with the offending BSSID. This directly satisfies the stem's requirement to automatically detect and contain the evil twin without manual intervention.

Why this answer

Enabling Rogue AP Detection and Automated Containment on the WLC is correct because the WLC can continuously scan for unauthorized APs, classify them as rogue, and automatically send deauthentication frames to contain the threat. This directly addresses the evil twin attack by detecting the unauthorized AP using the corporate SSID and neutralizing it without manual intervention. It is the purpose-built enterprise wireless feature for this scenario.

Exam trap

The trap here is assuming that stronger encryption (WPA3) or hiding the SSID stops an evil twin; in reality, only active rogue AP detection and containment addresses the unauthorized AP itself.

How to eliminate wrong answers

Option B is wrong because migrating to WPA3-Enterprise (SAE) improves authentication and encryption but does not detect or contain a rogue AP broadcasting the same SSID. Option C is wrong because hiding the SSID is a weak obscurity measure; the evil twin can still broadcast the hidden SSID, and clients that probe for it remain vulnerable. Option D is wrong because MAC filtering only restricts which client hardware addresses can associate; it does not detect or stop an unauthorized AP from operating.

11
Multi-Selecthard

An enterprise incident response team is analyzing a ransomware attack that encrypted network file shares and endpoints. Which TWO immediate containment and eradication actions should the team execute? (Choose TWO)

Select 2 answers
A.Immediately format all backup tape repositories to delete potentially corrupted backup indexes.
B.Immediately isolate infected endpoints from the network by disconnecting physical links or invoking EDR containment features.
C.Delete all firewall access control lists to allow unrestricted threat intelligence sharing.
D.Pay the ransom immediately to obtain decryption keys before beginning forensic analysis.
E.Revoke active user sessions and disable compromised user credentials in Active Directory.
AnswersB, E

Severing network connectivity halts lateral spread and blocks command-and-control or encryption traffic to still-connected shares. Disconnecting physical links or triggering EDR network containment satisfies the stem's immediate containment requirement, isolating compromised endpoints before eradication and recovery proceed.

Why this answer

Option B is correct because isolating infected endpoints by disconnecting physical links or using EDR containment features stops the ransomware from spreading laterally across the network and preserves the affected systems for forensic analysis. Option E is correct because revoking active user sessions and disabling compromised credentials in Active Directory prevents attackers from continuing to authenticate, move laterally, or re-encrypt resources using stolen accounts. Option A is wrong because formatting backup repositories destroys the very recovery data needed to restore encrypted shares and endpoints, and corrupted indexes should be preserved for investigation.

Option C is wrong because deleting firewall ACLs removes critical network segmentation and access controls, increasing exposure rather than containing the incident. Option D is wrong because paying the ransom is not an immediate containment or eradication action, does not guarantee decryption, and can fund criminal activity while destroying forensic evidence.

Exam trap

CND often tests whether candidates confuse destructive actions (formatting backups, paying ransom) with legitimate containment steps, or whether they overlook the credential-based persistence that ransomware operators rely on after initial encryption.

12
Multi-Selectmedium

An organization's security engineer is configuring a Web Application Firewall (WAF) to protect against common web attacks. Which TWO attack types should the WAF rules be specifically tuned to detect and block? (Choose TWO)

Select 2 answers
A.ARP cache poisoning by validating ARP reply frames against DHCP snooping bindings.
B.Cross-Site Scripting (XSS) by inspecting parameters for malicious injected client-side script tags.
C.BGP route hijacking by verifying autonomous system path announcements.
D.DHCP starvation attacks by monitoring DHCP Discover message rates on edge switches.
E.SQL Injection (SQLi) by parsing request parameters for database command syntax.
AnswersB, E

XSS attacks embed client-side script in request parameters, which browsers later execute. WAF rules inspect parameter values for injected script tags and block matching requests, satisfying the requirement to detect and block common web attacks.

Why this answer

Option B is correct because Cross-Site Scripting (XSS) is a classic Layer 7 web application attack in which malicious client-side script (e.g., <script> tags or JavaScript event handlers) is injected through request parameters, headers, or form fields, and a WAF is specifically designed to inspect HTTP/HTTPS traffic and block such payloads. Option E is correct because SQL Injection (SQLi) is another core web application attack where attackers embed database command syntax (such as UNION SELECT, OR 1=1, or stacked queries) into request parameters, and WAF rules tuned to parse and pattern-match these inputs can detect and block it. The other options do not belong: A (ARP cache poisoning) is a Layer 2 LAN attack mitigated by Dynamic ARP Inspection with DHCP snooping bindings, not by a WAF; C (BGP route hijacking) is a Layer 3 inter-domain routing attack mitigated by RPKI, route filtering, and BGPsec, not by a WAF; and D (DHCP starvation) is a Layer 2/3 attack mitigated by DHCP snooping rate limiting and port security on switches, not by a WAF.

Exam trap

CND often tests whether candidates can distinguish application-layer (WAF) controls from network-layer (DAI, uRPF, RPKI) controls — the trap is picking a Layer 2/3 mitigation for a Layer 7 attack type.

13
MCQeasy

A company's intrusion detection system (IDS) flags multiple suspicious packets containing shellcode signatures destined for an internal database server. However, the security team determines that the application was updated and the traffic was a false positive. Which action should the security analyst take within the Snort configuration to prevent this specific signature from generating future alerts?

A.Delete the rule definition entirely from the Snort local rules file.
B.Modify the Snort rule configuration file to add a 'suppress' rule specifying the event signature ID and target IP.
C.Disable all preprocessor inspection engines within the snort.conf configuration file.
D.Change the sensor mode from inline IPS mode to passive IDS sniffing mode.
AnswerB

A suppress rule in snort.conf tells Snort to stop generating alerts for a specific signature ID, optionally scoped to a target IP, satisfying the stem's need to silence this false-positive signature. It disables alerting without deleting the rule, preserving detection elsewhere.

Why this answer

Snort's suppress directive allows analysts to silence a specific signature (by SID) for a specific target IP without removing the rule entirely. This preserves detection for other hosts while eliminating the false positive noise from the known-benign traffic to the database server. It is the surgical, recommended approach for tuning out false positives.

Exam trap

CND often tests whether candidates choose the nuclear option (deleting rules or disabling preprocessors) instead of the targeted suppress directive that preserves detection while eliminating the specific false positive.

How to eliminate wrong answers

Option A is wrong because deleting the rule removes detection capability entirely, so a real attack using that signature against other hosts would go unnoticed. Option C is wrong because disabling all preprocessor engines cripples Snort's ability to reassemble streams and detect protocol anomalies, causing massive detection gaps. Option D is wrong because switching from inline IPS to passive IDS changes the response mode but does nothing to suppress the specific false-positive signature.

14
MCQmedium

A security engineer is hardening a corporate Linux server against privilege escalation. A local user account executes a poorly written binary with the SUID (Set Owner User ID) permission set, gaining root privileges. Which command should the engineer run to locate and remove SUID permissions from unauthorized binaries across the filesystem?

A.Execute 'chmod -R 777 /' to reset all filesystem file permissions to secure defaults.
B.Run 'netstat -tulnp' to identify listening network ports associated with SUID processes.
C.Execute 'find / -perm /4000 -type f 2>/dev/null' to audit files with the SUID bit set.
D.Run 'iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT' to lock down network access.
AnswerC

The find command with -perm /4000 recursively scans the filesystem for regular files carrying the SUID bit, and 2>/dev/null suppresses permission errors. This enumerates every SUID binary so the engineer can identify and remove unauthorised ones, directly addressing the privilege escalation vector.

Why this answer

The command 'find / -perm /4000 -type f 2>/dev/null' searches the entire filesystem for regular files with the SUID bit set (octal 4000), redirecting permission-denied errors to /dev/null. This allows the engineer to audit and then remove SUID permissions from unauthorized binaries, directly mitigating the privilege escalation vector described.

Exam trap

The trap is picking a command that sounds security-related (like chmod 777 or iptables) without verifying it actually locates SUID binaries; candidates must recognize the octal 4000 permission and the find syntax.

How to eliminate wrong answers

Option A is wrong because 'chmod -R 777 /' sets all files to world-readable/writable/executable, which is a catastrophic security misconfiguration, not a hardening step. Option B is wrong because 'netstat -tulnp' lists listening TCP/UDP ports and associated processes; it does not identify SUID binaries. Option D is wrong because the iptables rule shown accepts established connections and does not address SUID permissions or privilege escalation at all.

15
MCQhard

A security analyst reviewing firewall logs notices periodic outbound connections from an internal engineering workstation to a small set of foreign IP addresses, always at roughly 60-second intervals, with payload sizes that vary slightly and destinations that rotate through a hardcoded list. The traffic uses TCP port 443 but the TLS certificate presented by the remote endpoint is self-signed and the User-Agent string is unusual. Which technique is most consistent with these observations?

A.Domain fronting through a legitimate content delivery network
B.Command-and-control beaconing with jitter over a custom TLS channel
C.Fast-flux DNS used to rotate malicious A records for a botnet
D.A misconfigured software update agent polling a vendor server
AnswerB

Fixed-interval callbacks with slight payload variation indicate beacon jitter designed to frustrate pattern-based detection, while a self-signed certificate on port 443 signals a non-standard TLS implementation rather than a real web service. The rotating destination list is a fallback mechanism so the implant survives takedowns of individual C2 nodes, all of which is characteristic of custom command-and-control beaconing.

Why this answer

Regular, jittered callbacks to a rotating set of hardcoded foreign addresses over non-standard TLS strongly indicate malware beaconing to command-and-control infrastructure. The self-signed certificate and unusual User-Agent reinforce that this is not a legitimate cloud service. Analysts should block the destinations, isolate the host, and hunt for the implant rather than dismiss the pattern as normal application traffic.

Exam trap

The trap here is assuming that any traffic on TCP port 443 is legitimate web browsing, when port choice alone says nothing about whether the endpoint is trustworthy.

16
MCQhard

An organization's Security Information and Event Management (SIEM) system alerts on suspicious Active Directory enumeration activity. An internal workstation is executing frequent unauthenticated LDAP queries requesting large numbers of user and group attributes. Which protocol mechanism and defensive configuration should be implemented to mitigate this reconnaissance technique?

A.Enable Kerberos pre-authentication enforcement on all Domain Controller service principal accounts.
B.Configure SMB packet signing globally and disable SMBv1 across all domain member servers.
C.Enforce LDAP signing and channel binding while disabling anonymous LDAP enumeration via Group Policy.
D.Implement NT LAN Manager (NTLM) v2 exclusive authentication and disable NTLM fallback.
AnswerC

Anonymous LDAP binds let the workstation enumerate users and groups without credentials. Enforcing LDAP signing and channel binding via Group Policy authenticates and integrity-protects the session, while disabling anonymous enumeration removes the unauthenticated query path the SIEM detected.

Why this answer

Anonymous LDAP enumeration allows unauthenticated attackers to query the directory for user, group, and attribute information, which is exactly the reconnaissance described. Enforcing LDAP signing and channel binding via Group Policy hardens the LDAP channel against relay and tampering attacks, while disabling anonymous LDAP enumeration blocks the unauthenticated queries. Together these controls directly mitigate the observed technique.

Exam trap

CND often tests the confusion between authentication hardening (Kerberos, NTLM) and directory query hardening (LDAP signing, anonymous bind) — candidates pick the authentication option because it sounds security-relevant, but the scenario is specifically about unauthenticated LDAP enumeration.

How to eliminate wrong answers

Option A is wrong because Kerberos pre-authentication enforcement prevents AS-REP roasting of accounts without pre-auth, but it does not stop unauthenticated LDAP queries — the attacker in this scenario is not using Kerberos. Option B is wrong because SMB signing and disabling SMBv1 address SMB relay and legacy protocol attacks, not LDAP enumeration. Option D is wrong because enforcing NTLMv2 and disabling NTLM fallback hardens authentication against relay and downgrade attacks, but it does not prevent anonymous LDAP binds or enumeration.

17
MCQhard

An attacker compromises an internal workstation and attempts to perform lateral movement using PsExec. The security team wants to detect and block this activity across the internal Windows domain. Which Windows Defender Firewall with Advanced Security rule or Group Policy setting should be deployed?

A.Configure IPsec tunnel-mode policies between all internal client workstations.
B.Restrict inbound SMB (TCP 445) and RPC access to authorized administrative jump hosts and enable Windows Defender Application Control (WDAC).
C.Disable Remote Desktop Protocol (RDP) and Terminal Services across all domain controllers.
D.Enforce User Account Control (UAC) remote restriction registry settings to disable all admin approval modes.
AnswerB

PsExec moves laterally over SMB TCP 445 and RPC, so restricting inbound access on those ports to authorised jump hosts blocks the technique domain-wide. WDAC adds application control, preventing execution of the PsExec binary on non-administrative endpoints.

Why this answer

Restricting inbound SMB (TCP 445) and RPC access to authorized administrative jump hosts blocks PsExec lateral movement, which relies on these protocols to execute commands remotely. Enabling WDAC further prevents unauthorized executables (like PsExec) from running, providing defense in depth.

Exam trap

CND often tests the confusion between RDP and SMB/RPC for lateral movement; candidates may incorrectly think disabling RDP stops PsExec, but PsExec uses SMB/RPC.

How to eliminate wrong answers

Option A is wrong because IPsec tunnel-mode policies between workstations do not specifically block PsExec and are complex to manage; they encrypt traffic but do not restrict SMB/RPC access. Option C is wrong because disabling RDP and Terminal Services does not stop PsExec, which uses SMB/RPC, not RDP. Option D is wrong because UAC remote restrictions, while helpful, do not fully block PsExec and disabling admin approval modes would weaken security, not strengthen it.

18
Multi-Selectmedium

An organization's security team is designing a defense-in-depth network architecture to protect critical internal data zones. Which THREE architectural principles and controls should be implemented to align with an adaptive defense strategy? (Choose THREE)

Select 3 answers
A.Deploy behavioral anomaly detection and Endpoint Detection and Response (EDR) solutions across all internal endpoints.
B.Disable all logging and auditing mechanisms to reduce SIEM ingestion noise and storage costs.
C.Enforce a Zero Trust Architecture (ZTA) utilizing continuous identity and device health verification for all access requests.
D.Implement micro-segmentation using internal next-generation firewalls or software-defined networking to isolate critical data assets.
E.Rely exclusively on a strong perimeter firewall and demilitarized zone (DMZ) to secure internal assets.
AnswersA, C, D

Behavioural anomaly detection plus EDR identifies malicious activity on internal endpoints by monitoring process behaviour rather than static signatures, enabling rapid detection and response. This satisfies the adaptive strategy's requirement for continuous monitoring within trusted internal zones.

Why this answer

Option A is correct because behavioral anomaly detection and EDR provide continuous monitoring and rapid detection/response to advanced threats that evade signature-based defenses, which is essential for an adaptive defense strategy. Option C is correct because Zero Trust Architecture enforces continuous identity and device health verification for every access request, eliminating implicit trust and aligning with adaptive, assume-breach principles. Option D is correct because micro-segmentation using internal next-generation firewalls or SDN isolates critical data zones, limits lateral movement, and supports granular, adaptive policy enforcement.

Option B is incorrect because disabling logging and auditing destroys the visibility and forensic evidence needed for detection, response, and compliance. Option E is incorrect because relying exclusively on a perimeter firewall and DMZ assumes a hardened perimeter and ignores insider threats and lateral movement, which contradicts defense-in-depth and adaptive defense.

Exam trap

CND often tests the misconception that a strong perimeter firewall and DMZ constitute sufficient defense — the exam expects recognition that adaptive defense assumes breach and requires internal controls like EDR, ZTA, and micro-segmentation.

19
MCQeasy

A security engineer is configuring a Snort Intrusion Prevention System (IPS) rule to detect ICMP echo requests with payloads larger than 1000 bytes, which may indicate covert channel data exfiltration. Which rule header and options combination is correct?

A.log ip any any -> any any (msg:"ICMP Check"; length:1000; sid:1000001; rev:1;)
B.alert icmp any any -> any any (msg:"Large ICMP Payload Detected"; dsize:>1000; sid:1000001; rev:1;)
C.drop tcp any any -> any 80 (msg:"ICMP Large Payload"; payload_size:>1000; sid:1000001; rev:1;)
D.pass udp any any -> any 53 (msg:"ICMP Alert"; size:1000; sid:1000001; rev:1;)
AnswerB

The `dsize:>1000` option matches packets whose payload exceeds 1000 bytes, directly satisfying the stem's covert-channel detection constraint. The `icmp` protocol keyword restricts inspection to ICMP traffic, so oversized echo requests carrying tunnelled data trigger the alert while normal pings pass uninspected.

Why this answer

Option B is correct because it uses the proper Snort rule syntax for detecting large ICMP echo requests. The header 'alert icmp any any -> any any' correctly specifies the ICMP protocol and action, while the option 'dsize:>1000' accurately matches packets with payloads greater than 1000 bytes. This combination directly addresses the requirement to detect ICMP echo requests with payloads exceeding 1000 bytes, which could indicate covert channel data exfiltration.

Exam trap

CND often tests the distinction between valid Snort keywords like 'dsize' and invalid ones like 'length' or 'size', and the correct protocol specification for ICMP rules, causing candidates to pick options with incorrect syntax or protocols.

How to eliminate wrong answers

Option A is wrong because it uses 'log' as the action instead of 'alert', and the 'length' option is not a valid Snort keyword for payload size; Snort uses 'dsize' for payload size. Option C is wrong because it specifies 'tcp' as the protocol and port 80, which is unrelated to ICMP, and 'payload_size' is not a valid Snort option. Option D is wrong because it uses 'udp' and port 53, which are incorrect for ICMP traffic, and 'size' is not a valid Snort keyword for payload size.

20
MCQeasy

A security team receives alerts indicating that an attacker is performing ARP cache poisoning on the local subnet to conduct a Man-in-the-Middle (MitM) attack. Which switch feature should the network administrator enable to mitigate this threat?

A.Enable Dynamic ARP Inspection (DAI) bound to the DHCP snooping database.
B.Activate Unicast Reverse Path Forwarding (uRPF) on the default gateway router.
C.Deploy IEEE 802.1Q VLAN trunking with native VLAN mismatch remediation.
D.Configure Port Fast and BPDU Guard on all access-layer switch interfaces.
AnswerA

Dynamic ARP Inspection validates ARP packets against the DHCP snooping binding table, dropping replies with spoofed IP-to-MAC mappings. This directly neutralises ARP cache poisoning on the subnet, satisfying the requirement to stop the MitM attack at the switch rather than relying on host-based detection.

Why this answer

Dynamic ARP Inspection (DAI) bound to the DHCP snooping database is correct because DAI validates ARP packets on untrusted ports by comparing IP-to-MAC bindings against the trusted DHCP snooping table. This prevents an attacker from poisoning ARP caches with forged mappings, thereby mitigating man-in-the-middle attacks. It is the standard switch-level defense against ARP cache poisoning.

Exam trap

The trap is confusing ARP poisoning mitigation with other Layer 2/3 protections; candidates must remember that DAI (with DHCP snooping) is the specific switch feature for ARP validation, while uRPF, BPDU Guard, and VLAN trunking solve different problems.

How to eliminate wrong answers

Option B is wrong because Unicast Reverse Path Forwarding (uRPF) is a router feature that mitigates IP spoofing by verifying source addresses against the routing table, not ARP poisoning. Option C is wrong because 802.1Q VLAN trunking and native VLAN mismatch remediation address VLAN hopping and trunking misconfigurations, not ARP cache poisoning. Option D is wrong because Port Fast and BPDU Guard are Spanning Tree Protocol enhancements that prevent loops and rogue switches, not ARP spoofing.

21
MCQmedium

An organization is hardening its public-facing email infrastructure against spoofing and phishing attacks. The security engineer needs to configure a DNS record that specifies which mail servers are authorized to send email on behalf of the domain. Which DNS record type must be created?

A.Configure a DomainKeys Identified Mail (DKIM) CNAME record.
B.Implement a Domain-based Message Authentication, Reporting, and Conformance (DMARC) TXT record.
C.Create a Sender Policy Framework (SPF) TXT record specifying authorized sending IP addresses.
D.Deploy a Mail Exchange (MX) record pointing to the internal relay gateway.
AnswerC

An SPF TXT record lists the IP addresses and hosts authorised to send mail for the domain. Receiving servers check the envelope sender against this record, so unauthorised senders fail the check and spoofed messages are rejected.

Why this answer

SPF is the DNS TXT record that lists the IP addresses and hostnames authorized to send mail for a domain, allowing receiving servers to verify the envelope sender. Publishing an SPF record directly addresses the requirement to specify authorized sending mail servers. It is the foundational layer of email authentication, complemented by DKIM (cryptographic signature) and DMARC (policy and reporting).

Exam trap

The trap is confusing the three email authentication records — SPF, DKIM, and DMARC — and picking DMARC because it sounds more comprehensive, when the question specifically asks which record lists authorized sending servers.

How to eliminate wrong answers

Option A is wrong because DKIM uses a TXT record (not a CNAME) containing a public key to verify a cryptographic signature on message headers; it authenticates message integrity, not the list of authorized sending servers. Option B is wrong because DMARC is a TXT record that specifies policy (none/quarantine/reject) and reporting addresses based on SPF and DKIM alignment — it does not itself list authorized sending IPs. Option D is wrong because an MX record directs inbound mail to the domain's mail servers; it has no role in authorizing outbound senders and does not prevent spoofing.

22
Multi-Selecthard

A retail company's security team is designing defenses against Distributed Denial of Service (DDoS) attacks targeting its public web tier. The team wants to reduce the impact of volumetric floods while preserving legitimate customer traffic. Which THREE measures are appropriate components of the defense strategy? (Choose three.)

Select 3 answers
A.Disable TCP SYN cookies on all internet-facing servers to reduce CPU overhead
B.Publish the origin server's IP address in a public DNS record so clients bypass the CDN during an attack
C.Enable rate limiting and connection thresholds on the edge load balancers and reverse proxies
D.Deploy upstream scrubbing through a cloud DDoS mitigation provider with BGP or DNS-based traffic redirection
E.Configure anycast distribution so attack traffic is spread across many geographically dispersed points of presence
AnswersC, D, E

Load balancers and reverse proxies terminate connections and can enforce per-source rate limits, concurrent connection caps, and request thresholds, absorbing application-layer and some volumetric bursts that reach the edge. Combined with health checks and SYN cookie protections, these controls keep backend servers responsive during a flood by shedding abusive sessions while allowing normal clients through.

Why this answer

Effective DDoS defense layers global absorption with local traffic shaping. Upstream scrubbing redirects volumetric floods to a provider with massive capacity, anycast distributes load across many points of presence, and edge rate limiting and connection thresholds protect backend resources from whatever reaches the perimeter. Together these preserve availability for legitimate customers while denying attackers a single choke point to saturate.

Exam trap

The trap here is treating server-side tuning such as disabling SYN cookies as a defense, when it actually removes a key protection against SYN floods.

23
MCQmedium

A network security analyst observes an ongoing brute-force attack against an SSH service running on a Linux server. Which tool can the analyst configure to automatically inspect authentication failure logs and dynamically block attacker IP addresses via iptables?

A.Deploy Wireshark with a real-time command-line display filter for SSH packets.
B.Execute 'tcpdump' with a packet filter expression capturing TCP port 22 traffic.
C.Configure and run 'fail2ban' to parse authentication logs and dynamically insert iptables firewall drop rules.
D.Enable the Linux auditd daemon and review audit logs manually using the ausearch utility.
AnswerC

fail2ban tails authentication logs, matches repeated failure patterns against configured filters, and inserts temporary iptables drop rules for offending source addresses. This satisfies the requirement for automatic log inspection coupled with dynamic firewall blocking, without manual intervention during the ongoing brute-force attack.

Why this answer

Fail2ban is a log-parsing intrusion prevention tool that monitors authentication logs (such as /var/log/auth.log or /var/log/secure) for repeated failures and dynamically inserts iptables rules to block offending IP addresses. It directly addresses the requirement to automatically inspect logs and block attackers. This is the standard Linux tool for automated brute-force mitigation.

Exam trap

CND often tests the difference between detection tools (Wireshark, tcpdump, auditd) and automated response tools (fail2ban) — candidates must recognize that only fail2ban both parses logs and dynamically blocks IPs via iptables.

How to eliminate wrong answers

Option A is wrong because Wireshark is a packet capture and analysis tool; it can display SSH traffic but cannot parse auth logs or modify iptables to block IPs. Option B is wrong because tcpdump captures packets but does not analyze authentication failures or enforce firewall blocks. Option D is wrong because auditd and ausearch are for auditing and reviewing logs manually; they do not automatically block IPs via iptables.

24
Multi-Selecthard

A security analyst is reviewing network traffic logs and discovers indicators of an Advanced Persistent Threat (APT) utilizing covert command-and-control (C2) communication. Which TWO methods are commonly used by attackers to obfuscate C2 traffic through legitimate network services? (Choose TWO)

Select 2 answers
A.Standard FTP file transfers over TCP ports 20 and 21 using anonymous credentials.
B.Domain Fronting via Content Delivery Networks (CDNs) to obscure the true destination of HTTPS C2 traffic.
C.Static IP routing table modifications on core border routers using BGP community strings.
D.DNS tunneling by encoding exfiltration data into subdomain queries destined for an attacker-controlled authoritative nameserver.
E.Cleartext HTTP communication over port 80 without encryption or encapsulation.
AnswersB, D

Domain fronting exploits CDN SNI/Host header separation: the TLS SNI shows a benign CDN domain while the inner HTTP Host header routes to the attacker's backend. This satisfies the requirement to obfuscate C2 through legitimate network services, since traffic appears destined for a trusted CDN.

Why this answer

Option B is correct because domain fronting exploits CDNs (e.g., CloudFront, Azure CDN) by sending an HTTPS request with a legitimate SNI/host header matching the CDN while the inner HTTP Host header points to the attacker's domain, so the TLS connection appears to terminate at a trusted CDN and the true C2 destination is hidden from network inspection. Option D is correct because DNS tunneling encodes C2 commands or exfiltrated data into subdomain labels of queries sent to an attacker-controlled authoritative nameserver, abusing DNS (typically UDP/TCP 53) as a ubiquitous, often-allowed service to blend malicious traffic with legitimate resolution. Option A is not a common APT obfuscation method because standard FTP with anonymous credentials is cleartext, easily flagged, and not a legitimate service attackers typically masquerade through for covert C2.

Option C is incorrect because BGP community strings and static route modifications are routing-policy mechanisms, not a technique for hiding C2 payloads inside legitimate application-layer services. Option E is incorrect because cleartext HTTP on port 80 provides no encryption or encapsulation, making the C2 traffic trivially detectable rather than obfuscated.

Exam trap

The trap is selecting obviously insecure or unrelated options (cleartext FTP/HTTP, BGP manipulation) as 'C2 methods' because they sound technical, when the question specifically asks for obfuscation through legitimate services — only CDN fronting and DNS tunneling fit that description.

25
MCQhard

A security engineer discovers that an attacker is exploiting a vulnerability in a web application's JSON Web Token (JWT) implementation by modifying the algorithm header to 'none' and bypassing signature verification. How should the application's JWT validation code be updated to fix this vulnerability?

A.Upgrade the JWT token expiration time (exp claim) to expire within five minutes of creation.
B.Explicitly enforce a whitelist of approved cryptographic signing algorithms (e.g., RS256) and explicitly reject the 'none' algorithm in the JWT validation function.
C.Implement JSON Web Encryption (JWE) to payload data without verifying headers.
D.Store JWT tokens in HTTP-only, Secure cookies instead of local browser storage.
AnswerB

Algorithm confusion attacks succeed because the validator trusts the token's alg header. Enforcing an explicit allowlist such as RS256 and rejecting 'none' ensures the signature is always verified with the expected algorithm, closing the bypass.

Why this answer

The vulnerability arises because the JWT validation code trusts the 'alg' header from the token without verifying it against a list of allowed algorithms. An attacker can set 'alg' to 'none' and remove the signature, and if the code accepts it, signature verification is bypassed. The fix is to explicitly whitelist approved algorithms (e.g., RS256) and reject 'none' in the validation function, ensuring the token is signed with an expected algorithm.

This prevents algorithm confusion attacks and enforces cryptographic integrity.

Exam trap

CND often tests the misconception that token expiration or secure storage alone can mitigate JWT algorithm tampering, when the core fix is server-side algorithm enforcement.

How to eliminate wrong answers

Option A is wrong because shortening the token expiration time does not address the signature bypass; an attacker can still forge a token with 'alg: none' and a valid or expired timestamp, and the application would accept it if the algorithm is not validated. Option C is wrong because JWE is used for encryption, not for fixing signature verification; implementing JWE without verifying headers would still allow the 'none' algorithm attack if the JWT validation logic remains flawed. Option D is wrong because storing tokens in HTTP-only cookies mitigates XSS-based token theft but does not prevent an attacker from crafting a malicious JWT with 'alg: none' and sending it to the server; the server-side validation must still reject unsigned tokens.

26
MCQeasy

A security analyst notices unusual outbound traffic matching command-and-control (C2) beaconing patterns over HTTPS. The organization wants to inspect outbound encrypted traffic to detect malicious payloads without violating compliance policies. Which enterprise security architecture technique should be implemented?

A.Enforce strict client-side certificate pinning on all corporate web browsers.
B.Configure IPsec VPN tunnels between all endpoints and the corporate perimeter router.
C.Deploy a Layer 2 network tap connected to a passive intrusion detection sensor.
D.Implement SSL/TLS Decryption (SSL Inspection) on the Next-Generation Firewall or Secure Web Gateway.
AnswerD

SSL/TLS decryption on the NGFW or Secure Web Gateway terminates outbound TLS, inspects the plaintext for C2 payloads, then re-encrypts. This satisfies the requirement to detect malicious HTTPS beaconing content while enforcing compliance controls over what is inspected and logged.

Why this answer

SSL/TLS Decryption on a Next-Generation Firewall or Secure Web Gateway allows the organization to inspect encrypted outbound traffic for malicious payloads and C2 beaconing patterns. This technique terminates the TLS session, inspects the plaintext, and re-encrypts it, enabling deep packet inspection without violating compliance if proper legal and privacy controls are in place. It is the standard enterprise architecture technique for inspecting HTTPS traffic.

Exam trap

CND often tests the misconception that a passive IDS or VPN can inspect encrypted traffic, so candidates who pick network taps or VPN tunnels instead of SSL decryption fall into the trap.

How to eliminate wrong answers

Option A is wrong because certificate pinning on browsers would actually prevent SSL inspection and break the ability to decrypt traffic — it hardens the client against MITM, which is the opposite of what the organization needs. Option B is wrong because IPsec VPN tunnels encrypt traffic between endpoints and the perimeter, but they do not enable inspection of the encrypted payload; the traffic remains encrypted end-to-end. Option C is wrong because a Layer 2 network tap with a passive IDS sensor can only observe encrypted traffic and cannot decrypt it, so it cannot detect malicious payloads inside HTTPS.

27
MCQmedium

A security analyst suspects that an internal host has been compromised and is communicating via an encrypted Command and Control (C2) channel utilizing DNS tunneling. Which Wireshark filter and analysis technique should the analyst employ to definitively identify this anomaly?

A.Filter for 'http.request.method == POST' and look for binary attachments.
B.Filter for 'tcp.port == 443' and inspect the TLS Server Name Indication (SNI) extension.
C.Filter for 'dns' and inspect query strings for abnormally high length, high entropy, or encoded character patterns.
D.Filter for 'icmp' and examine the payload size of Echo Request packets.
AnswerC

DNS tunnelling encodes stolen data or C2 instructions inside DNS query names, so filtering 'dns' and examining query strings for abnormal length, high entropy, or encoded patterns exposes the exfiltration channel that normal DNS traffic would not exhibit.

Why this answer

DNS tunneling encapsulates C2 traffic within DNS queries and responses, often encoding data in the query name (e.g., subdomain labels) to bypass firewalls. The analyst should filter for 'dns' in Wireshark and examine query strings for anomalies such as unusually long labels, high entropy (random-looking characters), or Base64/hex encoding patterns. These indicators distinguish malicious tunneling from normal DNS resolution, which typically uses short, human-readable domain names.

Exam trap

CND often tests the misconception that encrypted C2 always uses HTTPS or TLS, causing candidates to overlook DNS as a covert channel; the trap is confusing DNS tunneling with HTTP or ICMP tunneling.

How to eliminate wrong answers

Option A is wrong because HTTP POST filtering targets cleartext or TLS-encrypted HTTP traffic, not DNS tunneling; binary attachments in HTTP are unrelated to DNS-based C2. Option B is wrong because filtering TCP port 443 and inspecting TLS SNI only detects HTTPS-based C2 or domain fronting, not DNS tunneling which uses UDP/TCP port 53. Option D is wrong because ICMP filtering examines Echo Request payloads for ICMP tunneling, a different covert channel that does not involve DNS queries.

28
Multi-Selecthard

An enterprise cloud security team is reviewing common cloud security vulnerabilities and misconfigurations that lead to data breaches. Which TWO threats are primary vectors in cloud environments? (Choose TWO)

Select 2 answers
A.Direct physical bus-sniffing attacks against hypervisor memory modules on multi-tenant hosts.
B.BIOS firmware flashing attacks against local endpoint motherboard EEPROMs.
C.Insecure Management APIs lacking proper authentication, rate limiting, and input validation.
D.Physical access tampering of rack-mounted server hardware within third-party data center cages.
E.Overly permissive Identity and Access Management (IAM) policies granting excessive administrative privileges.
AnswersC, E

Management APIs exposed without authentication, rate limiting or input validation let attackers enumerate resources, brute-force credentials or inject commands, directly reaching cloud control planes. This satisfies the stem's requirement for a primary cloud breach vector arising from misconfiguration.

Why this answer

Option C is correct because cloud management APIs are the primary control plane for provisioning and configuring resources, so APIs lacking strong authentication, rate limiting, and input validation are directly exploitable for unauthorized access, resource hijacking, and data exfiltration. Option E is correct because overly permissive IAM policies that grant excessive administrative privileges violate least privilege and are a leading cause of cloud data breaches, allowing compromised credentials or roles to escalate access across accounts and services. The unmarked options do not belong: A and D describe physical attacks against hypervisor memory or data center hardware, which are largely mitigated by cloud provider physical controls and are not primary cloud threat vectors for customers, while B targets local endpoint BIOS firmware and is an endpoint-level rather than cloud-specific vector.

Exam trap

The trap is that physical-layer attacks (bus sniffing, BIOS flashing, hardware tampering) sound technically sophisticated and security-relevant, but they are not primary cloud threat vectors because cloud providers control physical access — candidates must recognize the shared responsibility boundary.

29
MCQhard

An attacker performs a cross-site scripting (XSS) attack against a web application, successfully stealing sensitive session cookies from victim browsers. The security team is tasked with updating the application's cookie configuration attributes. Which two cookie flags must be set to protect session cookies against theft via XSS and network sniffing?

A.Set the 'HttpOnly' and 'Secure' attributes on all session cookies.
B.Configure the 'SameSite=Strict' and 'Max-Age' attributes on session cookies.
C.Implement the 'Domain' and 'Path' restriction attributes on all authentication cookies.
D.Enable the 'Partitioned' (CHIPS) attribute and 'HttpOnly' flag on cookies.
AnswerA

HttpOnly blocks JavaScript access to the cookie, defeating document.cookie theft during XSS execution. Secure ensures the cookie transmits only over HTTPS, preventing interception through network sniffing. Together they satisfy both stated attack vectors, whereas either flag alone leaves one exposure unaddressed.

Why this answer

The HttpOnly flag prevents client-side scripts (such as JavaScript in XSS attacks) from accessing document.cookie. The Secure flag ensures that the cookie is transmitted only over encrypted (HTTPS) connections, preventing network sniffing.

30
MCQhard

An attacker performs a pass-the-hash attack to move laterally across an enterprise network using compromised NTLM hashes. The security architecture team wants to implement host-based mitigations to render harvested NTLM hashes unusable for authentication. Which Windows security feature should be enabled?

A.Enforce User Account Control (UAC) with highest privilege elevation prompts.
B.Enable Windows Defender Credential Guard utilizing Virtualization-based Security (VBS).
C.Configure Windows Defender Exploit Guard with Network Protection enabled.
D.Deploy BitLocker Drive Encryption with TPM 2.0 hardware backing on all endpoints.
AnswerB

Credential Guard uses Virtualization-based Security to isolate NTLM password hashes and derived credentials in a separate virtualised process, so harvested hashes cannot be replayed for authentication. This directly neutralises pass-the-hash lateral movement at the host level.

Why this answer

Credential Guard uses Virtualization-based Security (VBS) to isolate LSA secrets, including NTLM hashes and Kerberos TGTs, in a separate virtualized environment that even a compromised kernel cannot read. This renders harvested hashes unusable for Pass-the-Hash because the attacker cannot extract them from the protected process.

Exam trap

CND often tests the confusion between disk encryption (BitLocker), exploit mitigation (Exploit Guard), and credential isolation (Credential Guard) — candidates must recognize that only VBS-backed Credential Guard removes NTLM hashes from reachable memory.

How to eliminate wrong answers

Option A is wrong because UAC controls privilege elevation prompts and does not protect credential material in memory. Option C is wrong because Exploit Guard Network Protection blocks outbound connections to malicious sites and does not shield NTLM hashes. Option D is wrong because BitLocker encrypts data at rest on disk and has no effect on in-memory credential theft or Pass-the-Hash.

31
MCQhard

An attacker targets an enterprise Active Directory domain by performing a DCSync attack, successfully replicating domain controller password data without being a domain controller. Which Active Directory access control rights must be audited and protected to prevent non-administrative users from executing DCSync?

A.Audit and restrict the 'Replicating Directory Changes' and 'Replicating Directory Changes All' extended access rights on the domain object.
B.Enforce LDAP signing and channel binding on all domain controller NTDS settings.
C.Monitor the 'GenericAll' and 'WriteDacl' permissions on all computer account objects.
D.Disable NT LAN Manager (NTLM) authentication and enforce Kerberos ticket granting settings.
AnswerA

DCSync abuses the directory replication protocol by impersonating a domain controller. Granting 'Replicating Directory Changes' and 'Replicating Directory Changes All' on the domain object lets a principal request password hashes via DRSUAPI. Auditing and restricting these rights removes the non-administrative path to credential material.

Why this answer

DCSync abuses the Directory Replication Service (DRS) Remote Protocol by impersonating a domain controller and requesting password hashes via GetNCChanges. The two extended rights that grant this capability are 'Replicating Directory Changes' (DS-Replication-Get-Changes) and 'Replicating Directory Changes All' (DS-Replication-Get-Changes-All), plus 'Replicating Directory Changes In Filtered Set' in some cases. Auditing and restricting these ACEs on the domain NC head prevents non-DC principals from performing replication.

Exam trap

CND often tests whether candidates confuse DCSync's replication-rights abuse with LDAP-based attacks or delegation attacks, so the trap is picking LDAP signing or GenericAll instead of the two Replicating Directory Changes extended rights.

How to eliminate wrong answers

Option B is wrong because LDAP signing and channel binding protect against LDAP relay and man-in-the-middle attacks, not DRS replication abuse — DCSync uses the DRSUAPI RPC interface, not LDAP. Option C is wrong because GenericAll/WriteDacl on computer objects enables resource-based constrained delegation and RBCD attacks, not DCSync; those rights are unrelated to replication. Option D is wrong because disabling NTLM and enforcing Kerberos does not stop DCSync — DCSync authenticates via Kerberos by default and abuses legitimate replication rights, not NTLM relay.

32
MCQeasy

An attacker on the same wireless network as a corporate user sets up a rogue access point that broadcasts the same SSID as the legitimate corporate network and offers a stronger signal. Users connect automatically, and the attacker captures their credentials through a fake captive portal. Which attack has been performed?

A.Evil twin access point attack
B.WPS PIN brute-force against the access point
C.Deauthentication flood to force reconnection
D.WPA2 four-way handshake capture for offline cracking
AnswerA

An evil twin is a rogue access point that clones the SSID and, often, the BSSID of a legitimate network while offering a stronger signal to entice automatic client association. Once users connect, the attacker controls all traffic and can present a counterfeit captive portal to harvest credentials. This matches the scenario exactly, including the stronger signal and the fake portal used for credential capture.

Why this answer

The rogue access point imitating the corporate SSID with a stronger signal, combined with a counterfeit captive portal that captures credentials, is the defining pattern of an evil twin attack. Clients configured to auto-connect to a known SSID will associate with the strongest matching signal, giving the attacker a man-in-the-middle position and a convincing pretext for collecting user logins.

Exam trap

The trap here is conflating any rogue access point with a deauthentication attack, when the credential-harvesting portal makes this specifically an evil twin.

33
Multi-Selectmedium

A network administrator is hardening a Cisco switch infrastructure against Layer 2 attacks. Which THREE features should be enabled and configured on the access and distribution layers? (Choose THREE)

Select 3 answers
A.Dynamic ARP Inspection (DAI) leveraging the DHCP snooping database to drop spoofed ARP packets.
B.Border Gateway Protocol (BGP) Route Flap Damping to stabilize wide-area inter-domain routing.
C.Port Security to limit the number of learned MAC addresses per switch port and specify violation actions.
D.Web Application Firewall (WAF) rule sets for HTTP parameter parsing and inspection.
E.DHCP Snooping to maintain a binding database of legitimate IP-to-MAC addresses and block rogue DHCP servers.
AnswersA, C, E

Dynamic ARP Inspection validates ARP packets against the DHCP snooping binding table, dropping those with mismatched MAC-to-IP mappings. This directly satisfies the stem's Layer 2 hardening requirement by preventing ARP spoofing and man-in-the-middle attacks on access and distribution switches, where untrusted hosts could otherwise poison gateway caches.

Why this answer

Option A is correct because Dynamic ARP Inspection (DAI) uses the DHCP snooping binding table to validate ARP packets on untrusted ports, dropping ARP spoofing attempts that would otherwise enable man-in-the-middle attacks at Layer 2. Option C is correct because Port Security restricts the number of source MAC addresses learned on an access port and can take violation actions such as shutdown, restrict, or protect, mitigating MAC flooding and unauthorized device attachment. Option E is correct because DHCP Snooping builds the trusted IP-to-MAC binding database that DAI and IP Source Guard rely on, while also rate-limiting and blocking rogue DHCP server offers on untrusted ports.

Option B does not belong because BGP Route Flap Damping is an inter-domain routing stability mechanism applied at the WAN/ISP edge, not a Layer 2 switch hardening feature. Option D does not belong because a Web Application Firewall inspects HTTP application-layer traffic and is irrelevant to protecting a switch's Layer 2 control plane.

Exam trap

The trap is selecting features that are not Layer 2 security mechanisms, such as BGP or WAF, due to familiarity with those terms, rather than focusing on the specific layer and attack types.

34
MCQmedium

An organization wants to protect its internal network against unauthorized DHCP servers (DHCP spoofing and rogue DHCP starvation attacks). Which switch security feature should be enabled on all untrusted access switch ports?

A.Enable DHCP Snooping globally and configure untrusted user access ports as untrusted.
B.Activate IP Source Guard with static binding entries on all edge switch ports.
C.Configure Dynamic ARP Inspection (DAI) on all trunk ports connecting to core switches.
D.Enable Port Security with maximum MAC address limits and restrict violation actions.
AnswerA

DHCP snooping filters DHCP messages on untrusted ports, dropping rogue OFFERs and ACKs from unauthorised servers while rate-limiting DISCOVER floods. Marking user access ports untrusted satisfies the constraint of blocking both spoofed servers and starvation attacks at the access layer.

Why this answer

DHCP Snooping is the switch security feature designed to prevent rogue DHCP servers and DHCP starvation attacks. By enabling it globally and configuring user access ports as untrusted, the switch only allows DHCP server responses (OFFER, ACK) from trusted ports (e.g., uplinks to legitimate DHCP servers), blocking unauthorized DHCP servers.

Exam trap

CND often tests the distinction between DHCP Snooping, DAI, and IP Source Guard; candidates may confuse which feature addresses DHCP spoofing versus ARP spoofing.

How to eliminate wrong answers

Option B is wrong because IP Source Guard with static bindings prevents IP spoofing but does not stop rogue DHCP servers; it relies on DHCP Snooping bindings to be effective. Option C is wrong because Dynamic ARP Inspection (DAI) on trunk ports protects against ARP spoofing, not DHCP spoofing, and should be configured on access ports, not just trunks. Option D is wrong because Port Security limits MAC addresses but does not prevent DHCP spoofing or starvation attacks.

35
Multi-Selectmedium

A security operations center (SOC) analyst is investigating a compromised Linux web server. Which TWO log files and forensic artifacts should the analyst examine to determine the initial access vector and persistence mechanisms used by the attacker? (Choose TWO)

Select 2 answers
A.Cron job tables and spool directories (/etc/crontab and /var/spool/cron) to check for unauthorized scheduled tasks.
B.Active Directory SYSVOL replication logs for Group Policy object modifications.
C.Master Boot Record (MBR) partition table geometry and cylinder sector metrics.
D.Windows Registry hives (SAM, SYSTEM, SOFTWARE) for user credential artifacts.
E.Authentication logs (/var/log/auth.log or /var/log/secure) to inspect login attempts and sudo usage.
AnswersA, E

Cron tables and spool directories hold scheduled task definitions per user and system-wide. Attackers persist by inserting entries that re-execute payloads after reboot, so inspecting /etc/crontab and /var/spool/cron reveals unauthorised jobs, directly satisfying the persistence mechanism requirement in the stem.

Why this answer

Option A is correct because on Linux, persistence is frequently achieved through scheduled tasks, and examining /etc/crontab along with the per-user spool directories under /var/spool/cron (and /etc/cron.d, /etc/cron.*) reveals unauthorized cron entries that re-execute attacker payloads. Option E is correct because /var/log/auth.log (Debian/Ubuntu) or /var/log/secure (RHEL/CentOS) records authentication events, including SSH logins, failed password attempts, accepted publickey sessions, and sudo/su command usage, which are essential for identifying the initial access vector such as brute force or stolen credentials. Option B is not applicable because SYSVOL replication and Group Policy are Active Directory components on Windows domain controllers, not artifacts found on a Linux web server.

Option C is irrelevant since MBR partition geometry and cylinder/sector metrics are disk-layout metadata and do not reveal attacker access or persistence. Option D is incorrect because SAM, SYSTEM, and SOFTWARE registry hives are Windows artifacts and do not exist on a Linux host.

Exam trap

CND often tests cross-platform artifact confusion — candidates must recognize that Windows-only artifacts (Registry hives, SYSVOL) are distractors when the compromised host is explicitly Linux.

36
MCQeasy

A security analyst is hardening a Linux-based web server and wants to implement mandatory access control (MAC) to restrict processes to only the resources necessary for their function. Which built-in Linux kernel security module should the analyst configure?

A.Configure Security-Enhanced Linux (SELinux) or AppArmor in enforcing mode.
B.Modify standard Linux file permission bits (chmod and chown) for all application binaries.
C.Enable the Linux audit daemon (auditd) to log all system call activities.
D.Install and configure a host-based firewall using iptables or nftables.
AnswerA

SELinux and AppArmor are Linux Security Modules built into the kernel that enforce mandatory access control, confining each process to a defined policy regardless of user privileges. Running in enforcing mode blocks any access outside that policy, satisfying the requirement to restrict processes to only necessary resources.

Why this answer

SELinux and AppArmor are Linux kernel security modules that implement mandatory access control (MAC), confining processes to only the resources defined by policy regardless of user privileges. Running them in enforcing mode ensures that policy violations are blocked, not just logged, which is the correct way to restrict processes to only necessary resources.

Exam trap

CND often tests the distinction between DAC and MAC, so candidates pick chmod/chown or auditd when the question specifically requires a kernel-level mandatory access control module like SELinux or AppArmor.

How to eliminate wrong answers

Option B is wrong because standard file permission bits (chmod/chown) implement discretionary access control (DAC), where the file owner controls access; DAC does not confine processes and can be bypassed by root or compromised services. Option C is wrong because auditd logs system calls for auditing and forensics but does not enforce access restrictions; it is a monitoring tool, not a MAC mechanism. Option D is wrong because iptables/nftables are host-based firewalls that filter network traffic, not process-level mandatory access control; they do not restrict which files or system resources a process can access.

37
Multi-Selecteasy

An enterprise is updating its email security controls to prevent phishing, credential harvesting, and spoofing attacks. Which THREE protocols and DNS records should be implemented and strictly enforced? (Choose THREE)

Select 3 answers
A.DomainKeys Identified Mail (DKIM) to cryptographically sign outbound emails and verify integrity.
B.Dynamic Host Configuration Protocol (DHCP) snooping for IP-to-MAC address allocation tracking.
C.Domain-based Message Authentication, Reporting, and Conformance (DMARC) to specify handling policies for failed SPF/DKIM checks.
D.Unicast Reverse Path Forwarding (uRPF) for IP routing packet verification on routers.
E.Sender Policy Framework (SPF) to define authorized sending mail servers for the domain.
AnswersA, C, E

DKIM adds a cryptographic signature to outbound mail headers, letting receivers verify the message was authorised by the sending domain and was not altered in transit. This directly counters spoofing and tampering, satisfying the requirement to enforce authentication records against phishing and credential harvesting.

Why this answer

Option A (DKIM) is correct because it adds a cryptographic signature to outbound messages using a private key, with the public key published in a DNS TXT record, allowing receivers to verify message integrity and detect tampering or spoofing. Option C (DMARC) is correct because it builds on SPF and DKIM by publishing a DNS TXT record at _dmarc that tells receivers how to handle messages failing alignment checks (none, quarantine, or reject) and provides aggregate/forensic reporting, directly countering spoofing and credential-harvesting phishing. Option E (SPF) is correct because it publishes a DNS TXT record listing authorized sending hosts (e.g., ip4, ip6, include, -all) so receivers can reject mail from unauthorized servers forging the domain.

Option B (DHCP snooping) is incorrect because it is a Layer 2 switch feature that filters rogue DHCP servers and builds IP-to-MAC bindings, unrelated to email authentication. Option D (uRPF) is incorrect because it is a router anti-spoofing technique for validating source IP addresses against the routing table, not an email or DNS control.

Exam trap

CND often tests the confusion between network-layer anti-spoofing (uRPF, DHCP snooping) and email-layer authentication (SPF, DKIM, DMARC) — candidates must select only the email-specific protocols for email security questions.

Ready to test yourself?

Try a timed practice session using only Network Attacks And Defense Strategies questions.