Docsity

LPT Master Certification Program Practice Exam: Network Security, Exams of Cybersecurity

Toggle sidebar
bg1
LPT Master Certification Program Practice Exam
**Question 1.** Which IPv6 attack involves sending malicious Router Advertisement messages to
redirect traffic to an attacker‑controlled device?
A) Neighbor Discovery Spoofing
B) Rogue Router Advertisement
C) DHCPv6 Replay
D) Stateless Address Autoconfiguration Hijack
**Answer:** B
**Explanation:** Rogue Router Advertisement attacks flood the network with fake RA packets, causing
hosts to update their default gateway to the attacker’s router.
**Question 2.** In BGP, the “prefix hijack” attack primarily exploits which of the following weaknesses?
A) Lack of authentication for UPDATE messages
B) Mandatory route‑flap damping
C) Mandatory use of MD5 signatures
D) Automatic route aggregation
**Answer:** A
**Explanation:** BGP does not require cryptographic authentication by default, allowing an attacker to
announce illegitimate prefixes and hijack traffic.
**Question 3.** Which MPLS label operation can be abused to create a “label stack overflow” that
disrupts traffic forwarding?
A) POP label
B) SWAP label
C) PUSH label
D) PHP (Penultimate Hop Popping)
**Answer:** C
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59

Partial preview of the text

Download LPT Master Certification Program Practice Exam: Network Security and more Exams Cybersecurity in PDF only on Docsity!

Question 1. Which IPv6 attack involves sending malicious Router Advertisement messages to redirect traffic to an attacker‑controlled device? A) Neighbor Discovery Spoofing B) Rogue Router Advertisement C) DHCPv6 Replay D) Stateless Address Autoconfiguration Hijack Answer: B Explanation: Rogue Router Advertisement attacks flood the network with fake RA packets, causing hosts to update their default gateway to the attacker’s router. Question 2. In BGP, the “prefix hijack” attack primarily exploits which of the following weaknesses? A) Lack of authentication for UPDATE messages B) Mandatory route‑flap damping C) Mandatory use of MD5 signatures D) Automatic route aggregation Answer: A Explanation: BGP does not require cryptographic authentication by default, allowing an attacker to announce illegitimate prefixes and hijack traffic. Question 3. Which MPLS label operation can be abused to create a “label stack overflow” that disrupts traffic forwarding? A) POP label B) SWAP label C) PUSH label D) PHP (Penultimate Hop Popping) Answer: C

Explanation: PUSH adds additional labels; an attacker can repeatedly push labels to exceed the label stack size, causing packet drops. Question 4. When performing segmented port scanning to evade IDS, the scanner divides the target ports into groups and sends each group with a different source IP. This technique mainly defeats which detection method? A) Signature‑based IDS B) Anomaly‑based IDS C) Stateful firewall logging D) Netflow aggregation Answer: B Explanation: Anomaly‑based IDS expects a burst of scans from one source; segmenting the scan across multiple IPs lowers per‑source anomaly scores. Question 5. Double‑tagging VLAN hopping works by inserting two VLAN tags in a frame. Which device type is most vulnerable to this technique? A) Layer‑3 router B) Access‑layer switch with port‑based VLANs C) Multi‑layer switch with trunk ports D) Wireless LAN controller Answer: B Explanation: Access ports that accept only a single VLAN tag can be tricked when the first tag is stripped by the first switch, leaving the second tag intact for the victim VLAN. Question 6. In STP manipulation, an attacker injects a superior Bridge ID to become the root bridge. What immediate effect does this have on the network? A) All traffic is blocked by BPDU guard.

Question 9. WPA3’s Simultaneous Authentication of Equals (SAE) replaces which insecure component of WPA2? A) TKIP encryption B) PSK (Pre‑Shared Key) handshake C) EAP‑TLS authentication D) WEP key exchange Answer: B Explanation: SAE provides a password‑authenticated key exchange that resists offline dictionary attacks, unlike the static PSK handshake in WPA2. Question 10. Which BLE attack technique exploits the “Just Works” pairing mode to perform a man‑in‑the‑middle (MITM) attack? A) Passive sniffing of advertising packets B) Spoofing the device’s public address C) Initiating a “re‑pair” with a rogue peripheral D) Exploiting the lack of authentication in “Just Works” Answer: D Explanation: “Just Works” does not authenticate the devices, allowing an attacker to insert themselves in the pairing process. Question 11. NFC relay attacks typically require which of the following capabilities? A) Ability to read encrypted NDEF messages. B) Ability to emulate a card and forward APDUs in real time. C) Ability to modify the UID of a tag. D) Ability to jam the 13.56 MHz carrier. Answer: B

Explanation: Relay attacks forward communication between a legitimate reader and card, requiring real‑time emulation and forwarding of APDUs. Question 12. When extracting firmware from an IoT device, which file format is most commonly encountered and requires reverse‑engineering of its filesystem? A) ELF executable B) SquashFS image C) PE binary D) ISO9660 image Answer: B Explanation: Many embedded devices use compressed SquashFS images to store the root filesystem, necessitating extraction and analysis. Question 13. SIP protocol fuzzing aims to discover vulnerabilities in which component of a VoIP system? A) Media codec negotiation B) Call‑control message parsing C) RTP payload encryption D) SIP TLS certificate handling Answer: B Explanation: Fuzzing SIP messages targets the parsing logic of call‑control commands (INVITE, BYE, etc.), where input validation bugs often reside. Question 14. Toll fraud in VoIP often exploits which misconfiguration? A) Open SIP proxy allowing unauthenticated INVITE requests. B) Disabled SRTP encryption. C) Unrestricted SIP OPTIONS method.

B) Windows C) macOS D) FreeBSD Answer: B Explanation: SEH is a Windows‑specific mechanism for handling exceptions; overwriting it can redirect execution flow. Question 18. Return‑Oriented Programming (ROP) chains rely on which of the following? A) Injected shellcode in the data segment. B) Reusing existing “gadgets” ending in a RET instruction. C) Overwriting the GOT entries. D) Modifying the program’s .text section. Answer: B Explanation: ROP builds a chain of short instruction sequences (gadgets) already present in memory, each ending with a RET, to perform arbitrary computation. Question 19. In black‑box fuzzing, which metric is most commonly used to assess progress? A) Code coverage obtained via instrumentation. B) Number of unique inputs generated. C) Execution time per test case. D) Number of crashes detected. Answer: D Explanation: Without source code, black‑box fuzzers primarily track crashes as indicators of potential vulnerabilities. Question 20. Null‑free shellcode is required when exploiting which type of vulnerability?

A) Format string bug in a 64‑bit binary. B) Stack overflow where the target buffer contains a null‑terminated string. C) Heap overflow with a size field. D) Use‑after‑free in a Windows service. Answer: B Explanation: If the vulnerable buffer is processed as a C string, any null byte will truncate the payload, so the shellcode must avoid null bytes. Question 21. Polymorphic shellcode primarily defeats detection by: A) Encrypting the payload with a static key. B] Using a variable decryption stub that changes on each generation. C) Embedding the shellcode in a PDF file. D) Compressing the shellcode with gzip. Answer: B Explanation: Polymorphic shellcode changes its appearance (decryption routine) each time, evading signature‑based scanners. Question 22. Which architecture requires the use of “thumb” instructions for compact shellcode on ARM devices? A) ARMv8‑A (64‑bit) B) ARMv7‑M (Cortex‑M) C) ARMv5TE D) ARMv6‑J Answer: B Explanation: Cortex‑M microcontrollers use the Thumb instruction set, which is 16‑bit and suitable for small shellcode.

Answer: D Explanation: The nop instruction (0x90) does nothing and is used to create a landing area for the instruction pointer. Question 26. Blind SQL injection using time‑based payloads relies on which database behavior? A) Returning error messages to the client. B) Delaying execution when a condition is true. C) Writing data to a log file. D) Changing the HTTP status code. Answer: B Explanation: The payload causes the database to pause (e.g., WAITFOR DELAY) when a condition holds, allowing the attacker to infer true/false. Question 27. A second‑order SQL injection occurs when: A) User input is directly concatenated into a query. B) Malicious data is stored and later used in a different context without sanitization. C) The application uses prepared statements. D) The database uses stored procedures. Answer: B Explanation: The payload is stored (e.g., in a profile field) and later executed when the data is used elsewhere, bypassing immediate detection. Question 28. Command injection through image metadata typically exploits which feature of the target application? A) Automatic image resizing. B) EXIF parsing library that executes embedded commands.

C) Thumbnail generation using a shell script. D) Image format validation. Answer: C Explanation: If the application calls an external tool (e.g., ImageMagick) with unsanitized metadata, an attacker can inject shell commands. Question 29. In SSRF exploitation, using the file:// scheme can achieve which of the following? A) Bypass firewall rules that filter HTTP URLs. B) Access internal files on the vulnerable server. C) Perform DNS rebinding attacks. D) Trigger a remote code execution on the target. Answer: B Explanation: file:// URLs instruct the server to read local files, allowing data exfiltration if the SSRF handler does not restrict schemes. Question 30. An out‑of‑band (OOB) XXE attack typically retrieves data by: A) Including a large external entity that crashes the parser. B) Using a DOCTYPE declaration that references a remote URL, causing the server to send the response to the attacker. C) Embedding a base64‑encoded payload in the XML. D) Exploiting the XML parser’s XPath injection. Answer: B Explanation: The parser fetches the external entity; if the attacker controls the URL, the server’s request can be captured, leaking data. Question 31. Insecure deserialization of Java objects often leads to which type of exploit?

Question 34. API rate‑limiting bypass can be achieved by: A) Using a different HTTP method that is not throttled. B) Adding random whitespace to the request body. C) Sending requests over multiple subdomains of the same API host. D) Encrypting the payload with TLS. Answer: A Explanation: If the rate limit is applied only to GET requests, using POST (or vice versa) can circumvent the restriction. Question 35. When crafting an advanced XSS payload that evades naïve filters, which encoding technique is most effective? A) URL‑encoding of < and > characters. B) HTML entity encoding of quotes only. C) Using backticks in a JavaScript template literal. D) Using svg with onload attribute. Answer: D Explanation: SVG onload can execute JavaScript while bypassing filters that only look for <script> tags. Question 36. A CSRF attack that exploits the “SameSite=None” cookie attribute succeeds because: A) The cookie is sent with cross‑origin requests. B) The cookie is encrypted with a static key. C) The browser blocks the request. D) The server validates the Origin header. Answer: A

Explanation: SameSite=None tells browsers to include the cookie on cross‑site requests, enabling CSRF. Question 37. Which evasion technique allows malware to run without writing any file to disk on Windows? A) DLL side‑loading. B) PowerShell fileless execution using Invoke‑Expression. C) Using a scheduled task that points to a UNC path. D) Packing the binary with UPX. Answer: B Explanation: PowerShell can download and execute code directly in memory (- EncodedCommand), leaving no file artifacts. Question 38. To bypass modern AV signatures, a payload is often encoded with a polymorphic XOR encoder that changes the key each run. This approach mainly defeats detection based on: A) Heuristic behavior analysis. B) Static hash matching. C) Sandbox execution monitoring. D) Network traffic inspection. Answer: B Explanation: Changing the key produces a different byte pattern each time, preventing signature‑based detection that relies on static hashes. Question 39. Pass‑the‑Ticket (PtT) attacks target which Kerberos component? A) Password hashes stored in LSASS. B) Ticket Granting Ticket (TGT). C) Service Principal Name (SPN).

B) Log tampering. C) Scheduled task. D) SSH authorized_keys backdoor. Answer: C Explanation: Cron jobs are scheduled tasks that execute commands at defined intervals, providing a reliable persistence mechanism. Question 43. Covert data exfiltration using HTTP fragmented packets relies on which network behavior? A) HTTP pipelining. B) TCP segmentation offloading. C) IP fragmentation reassembly at the destination. D) HTTP chunked transfer encoding. Answer: C Explanation: By splitting data across multiple IP fragments, the attacker can hide the payload within normal-looking HTTP traffic, reassembled only by the receiver. Question 44. Steganography for data hiding in images commonly uses which technique? A) Embedding data in the file’s metadata fields. B) Modifying the least significant bits (LSB) of pixel values. C) Adding extra PNG chunks. D) Encrypting the image with a symmetric key. Answer: B Explanation: LSB manipulation changes pixel values imperceptibly while storing hidden data.

Question 45. In AWS, a misconfigured S3 bucket with “PublicRead” ACL can lead to which of the following? A) Credential leakage via IAM role assumption. B) Exposure of stored objects to anyone on the internet. C) Execution of arbitrary code on the S3 service. D) Privilege escalation to root on EC2 instances. Answer: B Explanation: “PublicRead” makes all objects publicly accessible, allowing data disclosure. Question 46. Which Kubernetes component is most often targeted to achieve container escape? A) kube‑proxy B) kube‑apiserver C) kubelet D) etcd Answer: C Explanation: The kubelet runs with high privileges on the host and can be abused to mount host file systems or execute privileged commands. Question 47. Serverless function (e.g., AWS Lambda) injection attacks commonly exploit which misconfiguration? A) Overly permissive IAM role attached to the function. B) Disabled VPC routing. C) Encrypted environment variables. D) Use of Amazon CloudFront. Answer: A

Answer: B Explanation: az role assignment list returns role assignments, revealing granted permissions. Question 51. A “Rogue DHCPv6 server” can perform which attack to compromise IPv6 hosts? A) Assigning a malicious DNS server address. B) Flooding the network with RA packets. C) Overwriting the MAC address table. D) Sending ICMPv6 redirect messages. Answer: A Explanation: By providing a malicious DNS server via DHCPv6, the attacker can control name resolution for IPv6 clients. Question 52. In BGP route‑reflection, an attacker can cause a “route leak” by: A) Advertising a more specific prefix from a non‑client. B) Sending UPDATE messages with an invalid AS_PATH length. C) Using MD5 authentication on all peers. D) Disabling route aggregation. Answer: A Explanation: Route reflectors should not advertise client‑specific routes to other clients; doing so leaks internal routes to the wider internet. Question 53. Which MPLS label operation is used by “Penultimate Hop Popping” (PHP) to improve performance? A) The egress router removes the outermost label. B) The penultimate router swaps the label with a new one. C) The penultimate router removes the outermost label before forwarding to the egress.

D) The egress router pushes an additional label. Answer: C Explanation: PHP removes the top label at the second‑last hop, so the egress router receives an unlabeled packet, reducing processing. Question 54. A covert channel using TCP urgent pointer field is an example of: A) Timing channel. B) Storage channel. C) Side‑channel attack. D) Network protocol tunneling. Answer: B Explanation: Data is stored in an unused header field (urgent pointer), constituting a storage covert channel. Question 55. Double‑tag VLAN hopping can be mitigated by: A) Enabling DTP on all ports. B) Configuring native VLANs to be the same on trunk ports. C) Enabling VLAN pruning. D) Setting the trunk ports to “tagged” only. Answer: B Explanation: If the native VLAN matches on trunk and access ports, the second tag will be dropped, preventing the hop. Question 56. In STP, the “BPDU guard” feature on access ports helps to: A) Prevent loops caused by rogue switches. B) Accelerate convergence.