Curated

Vulnerability Discovery and Analysis 1 (3.1)

0 votes

Questions76

  1. Question 51

    Vulnerability Discovery and Analysis

    A TCP SYN scan of a server shows only ports 22 and 443 open. The client says the host also runs an SNMP agent on its default port. What should the tester do next?

    Show the answer

    Correct answerB. Run a UDP scan with -sU against port 161

    AWhy not this: Xmas scans send TCP packets with unusual flags, so they cannot detect a UDP listener.

    BWhy this is right: SNMP runs over UDP 161, and -sU is the Nmap option that probes UDP ports.

    CWhy not this: A connect scan is still TCP, so it misses a UDP service just as the SYN scan did.

    DWhy not this: More TCP ports will not help, because SNMP does not use TCP by default.

    SNMP listens on UDP 161 by default, and TCP scans never probe UDP ports, so only a UDP scan with -sU can find it. A Xmas scan is a stealth variant, but it still sends TCP packets and cannot reach a UDP service.

    Open this question
  2. Question 52

    Vulnerability Discovery and Analysis

    Which statements describe an Nmap SYN stealth scan (-sS)? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersB. It normally needs raw-socket privileges, such as rootC. It sends an RST after a SYN/ACK instead of an ACKD. It never completes the three-way handshake with the targetF. It sends a SYN and reads the SYN/ACK or RST reply

    AWhy not this: Stealth means less likely to be logged by applications. IDS and firewalls can still detect it.

    BWhy this is right: Crafting raw SYN packets needs elevated privileges; without them Nmap falls back to a connect scan.

    CWhy this is right: The RST tears down the half-open connection after a SYN/ACK reveals an open port.

    DWhy this is right: The scan stops before the final ACK, which is why it is called half-open.

    EWhy not this: Completing the handshake describes a TCP connect scan, not a SYN scan.

    FWhy this is right: The SYN probe and the SYN/ACK or RST reply are how the scan classifies each port.

    A SYN scan sends a SYN, reads the reply, and resets the connection after a SYN/ACK, so the handshake is never completed. It needs raw sockets, so it normally runs as root. It is not undetectable, because an IDS can still spot the SYN pattern.

    Open this question
  3. Question 53

    Vulnerability Discovery and Analysis

    A tester must scan a server so its logs never record the tester's IP address. An idle printer on the same segment uses sequential IP ID values. Which Nmap scan BEST fits?

    Show the answer

    Correct answerD. Idle scan with -sI using the printer as the zombie

    AWhy not this: Decoys mix in fake sources, but the tester's real IP still reaches the target and is logged.

    BWhy not this: A FIN scan is a TCP flag variant that still sends packets from the tester's own address.

    CWhy not this: Slow timing reduces the probe rate, but every packet still carries the tester's source IP.

    DWhy this is right: Spoofed packets from the zombie let the tester infer port state, so the target logs only the zombie's IP.

    An idle scan bounces probes off a zombie host with predictable IP ID values, so the target sees the zombie's address rather than the tester's. Decoys only add extra source addresses, and the tester's real address still reaches the target.

    Open this question
  4. Question 54

    Vulnerability Discovery and Analysis

    A server exposes only TCP 443, and a network scan of it finds nothing. The tester must check the OS for an outdated local sudo package. Which scan BEST does this?

    Show the answer

    Correct answerA. Host-based scan of installed packages

    AWhy this is right: Checking from inside the host reveals installed package versions that no network service exposes.

    BWhy not this: DAST sends requests to the web app and tests its behavior, not the OS packages beneath it.

    CWhy not this: A UDP scan only probes ports, and a local sudo flaw has no listening port to find.

    DWhy not this: SAST analyzes first-party code, not the packages installed on the server's operating system.

    A host-based scan inspects the operating system from inside, so it can list installed packages and match versions to known flaws that no open port exposes. DAST tests only the running web application through its requests and cannot inventory OS packages.

    Open this question
  5. Question 55

    Vulnerability Discovery and Analysis

    A scanning agent is installed on every laptop and reports missing OS patches and local password-policy settings, even when laptops are off the corporate network. Which scan type is this?

    Show the answer

    Correct answerB. Host-based scan

    AWhy not this: A SYN scan is a network port technique that sees only responses on open ports.

    BWhy this is right: An agent on the host inspects its own patches and settings and reports from wherever the laptop is.

    CWhy not this: Channel scanning surveys wireless frequencies and says nothing about a laptop's configuration.

    DWhy not this: Port probing needs network reachability and shows only listening services, not local patch or policy state.

    A host-based scan runs on the system itself, so it can read patches and local settings and report them without a network path from a scanner. A network TCP/UDP scan only probes ports across the network and cannot see local policy.

    Open this question
  6. Question 56

    Vulnerability Discovery and Analysis

    An SSID scan of a client's building shows "CorpNet" broadcast from two different BSSIDs, but the client says it operates only one access point. What does this MOST likely indicate?

    Show the answer

    Correct answerD. A rogue access point duplicating the corporate SSID

    AWhy not this: A hidden network is missing its name from beacons, while this name is openly broadcast.

    BWhy not this: Roaming uses several legitimate access points, but the client says it runs only one.

    CWhy not this: Interference affects channel quality and does not create a second broadcast of the same name.

    DWhy this is right: An unowned BSSID advertising the same SSID is the sign of an evil twin or rogue access point.

    The same SSID from a second BSSID that the client does not own suggests an evil twin or rogue access point. Interference does not duplicate network names, and a roaming setup would need more than one legitimate access point.

    Open this question
  7. Question 57

    Vulnerability Discovery and Analysis

    A tester has read access to a client's source repository and CI system and must find hardcoded credentials. Which two sources should be scanned? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. CI pipeline build logs that echo environment variablesE. Environment and config files committed to the repository

    AWhy not this: A UDP scan shows reachable services, not credentials stored in code or logs.

    BWhy not this: An SSID list shows nearby wireless network names and holds no repository secrets.

    CWhy this is right: Build logs that echo environment variables can expose tokens and passwords.

    DWhy not this: Channel utilization shows radio congestion and has nothing to do with stored secrets.

    EWhy this is right: Committed .env and config files often hold API keys and passwords in plain text.

    FWhy not this: SCA license fields describe third-party package terms, not credentials.

    Secrets scanning looks for credentials stored in code, config files and pipeline output, where developers often leave them. License data, port scans and wireless survey results do not hold stored credentials.

    Open this question
  8. Question 58

    Vulnerability Discovery and Analysis

    A tester must list the names of wireless networks broadcasting near a client's office. Which scan does this?

    Show the answer

    Correct answerD. SSID scanning

    AWhy not this: Stealth scanning is a low-noise network port technique and does not list wireless names.

    BWhy not this: Channel scanning shows which channels are occupied, not the network names.

    CWhy not this: Signal strength scanning measures signal level and does not list network names.

    DWhy this is right: SSID scanning identifies the network names that nearby access points advertise.

    SSID scanning lists the network names that access points advertise. Channel scanning shows which channels are in use, and signal strength scanning measures how strong each signal is.

    Open this question
  9. Question 59

    Vulnerability Discovery and Analysis

    A secrets scanner's default rules miss a client's internal API tokens, which start with "svc_" followed by 32 hex characters. Lowering the entropy threshold far enough to catch them also flags hundreds of commit hashes. What is the BEST way to find the tokens?

    Show the answer

    Correct answerA. Add a custom regex rule for the svc_ prefix and length

    AWhy this is right: A pattern rule on the fixed prefix and length targets the tokens without matching commit hashes.

    BWhy not this: SCA matches third-party components to known CVEs and does not search for credentials in code.

    CWhy not this: A lower threshold flags more random-looking strings, so hash false positives would multiply.

    DWhy not this: DAST tests a running app from outside and does not read repository contents for tokens.

    Secrets scanners match known patterns and flag high-entropy strings. Hex tokens have low entropy, so a rule matching the fixed prefix and length finds them precisely. Lowering the threshold further only adds more false positives such as commit hashes.

    Open this question
  10. Question 60

    Vulnerability Discovery and Analysis

    A passive wireless scan shows an access point with a blank network name on channel 6. The tester needs its SSID. What is the BEST approach?

    Show the answer

    Correct answerA. Capture frames on channel 6 until a client probe or association request reveals the name

    AWhy this is right: Hidden SSIDs are not in beacons but appear in client probe and association frames on the channel.

    BWhy not this: Signal strength affects reception quality, not whether the beacon carries the SSID.

    CWhy not this: A TCP SYN scan probes IP ports and cannot read an 802.11 network name.

    DWhy not this: The name is not broadcast on other bands, and channel scanning does not reveal SSIDs.

    A hidden SSID is left out of beacon frames, but it still appears in client probe requests and association frames. Monitoring the channel until a client connects reveals it. Signal strength does not change what a beacon contains.

    Open this question
  11. Question 61

    Vulnerability Discovery and Analysis

    A client wants to know which flaws an internet attacker with no account could find on a file server. The tester holds a domain admin account. Which approach answers this?

    Show the answer

    Correct answerA. Unauthenticated scan from the internet

    AWhy this is right: It uses no credentials and starts outside, so it shows exactly what an anonymous attacker could discover.

    BWhy not this: An agent runs on the host and reads local state, which is not an outsider's view.

    CWhy not this: Admin credentials expose local flaws that an outsider cannot see, so the results overstate external risk.

    DWhy not this: No source code is involved, and code review does not show remotely visible exposure.

    An unauthenticated scan from the internet sees only what an outsider with no credentials can see. Using the admin account would reveal local flaws an outsider could never reach, overstating the external exposure.

    Open this question
  12. Question 62

    Vulnerability Discovery and Analysis

    A tester wants a scan to read a server's installed patch levels directly instead of inferring them from banners. Which scan type does this?

    Show the answer

    Correct answerB. Authenticated scan

    AWhy not this: With no login it can only infer versions from exposed responses such as banners.

    BWhy this is right: It logs in with valid credentials, so it reads installed patches and configuration directly.

    CWhy not this: It identifies open TCP or UDP ports and does not log in to read patch data.

    DWhy not this: Stealth describes a half-open probing technique, not the use of credentials.

    An authenticated (credentialed) scan logs in to the target and reads installed software and patch data directly. An unauthenticated scan can only infer versions from what the service exposes, such as banners.

    Open this question
  13. Question 63

    Vulnerability Discovery and Analysis

    Remote employees' laptops seldom connect to the corporate network. The tester must assess local patch levels and security settings on them. Which scan fits BEST?

    Show the answer

    Correct answerD. Host-based scan

    AWhy not this: It probes ports over the network, so it cannot reach an off-network laptop or read its local settings.

    BWhy not this: It identifies wireless networks, not the patch state or configuration of a host.

    CWhy not this: A SYN-style scan still probes ports remotely and shows nothing about installed patches or local configuration.

    DWhy this is right: It runs on the endpoint, so it reads patches and settings even when the laptop is off the corporate network.

    A host-based scan runs on the endpoint itself, usually through an installed agent, so it reads local patches and settings whether or not the laptop is reachable over the network. A TCP/UDP scan only probes ports over the network and cannot read local settings.

    Open this question
  14. Question 64

    Vulnerability Discovery and Analysis

    A tester must find AWS access keys sitting in a repository's .env files, and does not need data-flow tracing or dependency CVEs. Which scan fits BEST?

    Show the answer

    Correct answerC. Secrets scanning

    AWhy not this: It inventories dependencies for known CVEs and licenses and does not read .env files for keys.

    BWhy not this: It needs an instrumented running application and test traffic, so it ignores repository files.

    CWhy this is right: It matches key formats and high-entropy strings in files, so it flags committed access keys.

    DWhy not this: It needs a running application and tests it from outside, so it never reads repository files.

    Secrets scanning matches known key formats and high-entropy strings in repository files, which is what finds committed access keys. SCA only checks dependencies for known CVEs and licenses, so it would not report a key in a .env file.

    Open this question
  15. Question 65

    Vulnerability Discovery and Analysis

    A tester scans a workstation twice, once with a local account and once with none. Which finding appears only in the scan that used the account?

    Show the answer

    Correct answerA. An outdated PDF reader with no listening port

    AWhy this is right: It exposes no network service, so only a login that inspects installed software can find it.

    BWhy not this: SMB signing requirements can be checked remotely, so this appears without credentials.

    CWhy not this: Cipher support is negotiated over the network, so it is visible without logging in.

    DWhy not this: An open port is found by remote probing, so an unauthenticated scan reports it too.

    A client-side application that listens on no port can only be found by logging in and inspecting installed software. Open ports and network service settings such as Telnet, TLS ciphers and SMB signing are visible without credentials.

    Open this question
  16. Question 66

    Vulnerability Discovery and Analysis

    A tester's adapter is in monitor mode and hops across all 2.4 GHz channels. The survey shows the target AP on channel 11, but captures of its client handshake keep coming up incomplete. What should the tester do?

    Show the answer

    Correct answerA. Lock the adapter to channel 11 while capturing

    AWhy this is right: Staying on the AP's channel means the adapter hears every frame, including the full handshake exchange.

    BWhy not this: The AP was seen on a 2.4 GHz channel, so moving to 5 GHz would stop the adapter hearing it at all.

    CWhy not this: An authenticated scan needs network access and does nothing to fix a radio capture that misses frames.

    DWhy not this: SSID probing identifies network names, but the AP is already found; the gap comes from the adapter leaving channel 11.

    Channel scanning shows which channel the AP uses. While hopping, the adapter hears the AP only briefly on each pass and misses frames. Locking to channel 11 captures all of its traffic. Probing for the SSID is SSID scanning and does not change which channel the adapter listens on.

    Open this question
  17. Question 67

    Vulnerability Discovery and Analysis

    A tester must show a client where its Wi-Fi signal extends beyond the building walls. Which deliverable BEST presents that?

    Show the answer

    Correct answerA. A heat map built from signal strength readings

    AWhy this is right: Plotting RSSI readings by location shows coverage boundaries and leakage past the walls.

    BWhy not this: Security type per SSID shows encryption settings, not how far the signal reaches.

    CWhy not this: Port scans test services on the AP's network interfaces and say nothing about radio coverage.

    DWhy not this: Channel and utilization data describes spectrum use, not physical signal reach.

    Signal strength readings taken at many locations can be plotted on a floor plan as a heat map, showing exactly where coverage leaks outside. An SSID list or channel table gives no location-based view of coverage.

    Open this question
  18. Question 68

    Vulnerability Discovery and Analysis

    A tester walks a floor with a directional antenna to locate a suspected rogue AP. Which reading shows the tester is moving toward it?

    Show the answer

    Correct answerC. A rising RSSI, such as -80 to -55 dBm

    AWhy not this: An AP's channel is set in its configuration and does not shift as the tester moves.

    BWhy not this: The beacon interval is an AP setting and does not vary with the listener's distance.

    CWhy this is right: Values closer to 0 dBm mean a stronger signal, so a climbing RSSI indicates getting nearer to the source.

    DWhy not this: More SSIDs mean more networks in range, not a closer position to one specific AP.

    RSSI measures received signal strength in dBm, and values closer to zero mean a stronger signal and a shorter distance to the transmitter. Walking toward the rogue AP raises its RSSI. The channel number is fixed by the AP's configuration and does not change with distance.

    Open this question
  19. Question 69

    Vulnerability Discovery and Analysis

    A client says its Corp network runs on both 2.4 GHz and 5 GHz. A tester's 2.4 GHz-only adapter, hopping all channels, finds Corp APs only on channels 1 and 11. What is the BEST next step to find the 5 GHz APs?

    Show the answer

    Correct answerA. Use a dual-band adapter and hop the 5 GHz channels

    AWhy this is right: Only a radio that supports 5 GHz can listen on those channels, and hopping them lists every AP present.

    BWhy not this: Transmit power affects what the tester sends, not which bands the radio can listen on.

    CWhy not this: A SYN scan is a network port technique and cannot discover radios on another band.

    DWhy not this: Channel 6 is a 2.4 GHz channel, so this shrinks coverage and still cannot reach any 5 GHz APs.

    A channel scan only covers channels the adapter's radio supports. A 2.4 GHz-only adapter cannot hear 5 GHz channels, so the tester needs a dual-band adapter that hops those channels. Locking to channel 6 narrows the scan further and still stays within 2.4 GHz.

    Open this question
  20. Question 70

    Vulnerability Discovery and Analysis

    From the client's car park, a tester's survey shows the guest SSID at -92 dBm. The scope includes attacking the network from outside the building. What should the tester conclude?

    Show the answer

    Correct answerD. Too weak to capture reliably; move closer or add antenna gain

    AWhy not this: Readings near -90 dBm sit close to the noise floor and give poor, lossy captures.

    BWhy not this: The AP was detected, and a weak reading is a distance issue, not evidence of a different band.

    CWhy not this: The SSID appeared in the survey, so it is broadcast and no directed probing is needed.

    DWhy this is right: This reading is near the noise floor, and extra antenna gain or less distance is the way to improve it.

    A reading of -92 dBm is close to the noise floor, so frames will be dropped and captures or association will be unreliable. The tester should get closer or use a higher-gain directional antenna. The SSID was already seen, so it is not hidden, and the weak reading does not indicate a band problem.

    Open this question
  21. Question 71

    Vulnerability Discovery and Analysis

    A tester has a software bill of materials (SBOM) generated by Syft for a client's application and wants to list known vulnerabilities in its packages without access to the image. Which command should the tester run?

    Show the answer

    Correct answerC. grype sbom:./sbom.json

    AWhy not this: trivy config scans IaC and configuration files for misconfigurations, not package vulnerabilities from an SBOM.

    BWhy not this: Nikto scans live web servers by host and cannot take a file as a scan target.

    CWhy this is right: Grype can read an SBOM through the sbom: source and match its packages to known vulnerabilities.

    DWhy not this: TruffleHog hunts for exposed secrets and does not match packages to vulnerability data.

    Grype accepts an SBOM as input with the sbom: prefix and matches the listed packages against its vulnerability database. Trivy's config mode checks IaC and configuration files for misconfigurations, not an SBOM's package list.

    Open this question
  22. Question 72

    Vulnerability Discovery and Analysis

    A tester has a repository of Terraform files and Kubernetes manifests and wants Trivy to flag misconfigurations without any running infrastructure. Which command should the tester run?

    Show the answer

    Correct answerD. trivy config ./repo

    AWhy not this: trivy image targets a container image for packages and vulnerabilities, not IaC files in a directory.

    BWhy not this: trivy sbom reads an existing SBOM file to find vulnerable packages; it does not check IaC settings.

    CWhy not this: trivy k8s scans a live cluster through a kubeconfig, which this scenario does not have.

    DWhy this is right: trivy config checks IaC files such as Terraform and Kubernetes manifests for misconfigurations.

    The trivy config subcommand scans IaC files such as Terraform and Kubernetes manifests for misconfigurations, so nothing needs to be running. The trivy k8s subcommand is tempting but needs a live cluster to scan.

    Open this question
  23. Question 73

    Vulnerability Discovery and Analysis

    A tester has a low-privileged domain user's PowerShell session and no local admin rights. The tester must list domain computers and logged-on sessions using scripts loaded only into memory. Which PowerSploit module fits best?

    Show the answer

    Correct answerD. Recon module, using PowerView functions

    AWhy not this: Invoke-Shellcode injects shellcode into a process; it runs code but performs no domain enumeration.

    BWhy not this: Invoke-Mimikatz extracts credentials and needs elevated rights; it does not list domain computers or sessions.

    CWhy not this: The Persistence module sets up survival across reboots and logons, not domain enumeration.

    DWhy this is right: PowerView in the Recon module enumerates domain computers and sessions with normal user rights, and runs from memory.

    The Recon module's PowerView functions query Active Directory and host sessions as an ordinary domain user, and can be loaded into memory. Invoke-Mimikatz is tempting, but it dumps credentials, needs elevated rights and does not enumerate the domain.

    Open this question
  24. Question 74

    Vulnerability Discovery and Analysis

    A tester has an unpacked application directory, no container image, and wants Grype to list vulnerable dependencies in it. Which command should the tester run?

    Show the answer

    Correct answerA. grype dir:./app

    AWhy this is right: The dir: source makes Grype scan a directory and report vulnerabilities in the packages it finds.

    BWhy not this: Nikto scans web servers by host, not files on disk, so it cannot assess dependencies.

    CWhy not this: Syft catalogs packages into an SBOM but does not match them against vulnerabilities.

    DWhy not this: The trivy image subcommand expects a container image, not a plain directory of files.

    Grype accepts a directory source through the dir: scheme, catalogs the packages found there and matches them against its vulnerability database. Syft also reads dir:, but it only generates an SBOM and reports no vulnerabilities.

    Open this question
  25. Question 75

    Vulnerability Discovery and Analysis

    A Grype scan of an image shows no vulnerable library, yet the tester knows an older vulnerable version was installed in a lower layer and deleted in a later one. The tester wants it reported. What should the tester do?

    Show the answer

    Correct answerA. Add --scope all-layers to the command

    AWhy this is right: The all-layers scope makes Grype catalog packages from every layer, not just the squashed final filesystem.

    BWhy not this: A database update changes known vulnerabilities, but the deleted package is never cataloged under the default scope.

    CWhy not this: --only-fixed filters out findings with no fix; it removes results and cannot reveal deleted packages.

    DWhy not this: --fail-on sets an exit-code severity threshold; it does not change which layers are scanned.

    By default Grype scans the squashed view of the image, so packages removed in later layers are not seen. The all-layers scope includes every layer. Updating the database only changes which vulnerabilities are known, not which packages are cataloged.

    Open this question
  26. Question 76

    Vulnerability Discovery and Analysis

    What is PowerSploit?

    Show the answer

    Correct answerA. A collection of PowerShell modules for post-exploitation tasks

    AWhy this is right: PowerSploit bundles PowerShell modules such as Recon, Privesc and Exfiltration for use after gaining access.

    BWhy not this: This describes BloodHound, which graphs AD relationships rather than running post-exploitation scripts.

    CWhy not this: This describes Nikto, a web server scanner, not a PowerShell post-exploitation toolkit.

    DWhy not this: This describes image scanners such as Grype or Trivy, which match packages against vulnerability data.

    PowerSploit is a collection of PowerShell modules for post-exploitation, covering recon, privilege escalation, code execution, persistence and exfiltration. BloodHound is the tool that graphs Active Directory attack paths, which is a different job.

    Open this question