Curated

Attacks and Exploits 3 (4.6–4.8)

0 votes

Questions86

  1. Question 1

    Attacks and Exploits

    A tester holds the access keys of a low-privileged AWS IAM user. The tester must map that user's permissions, then actively attempt IAM privilege escalation and keep the results in one session. Which tool BEST fits?

    Show the answer

    Correct answerD. Pacu, using its IAM privilege escalation scan

    AWhy not this: ScoutSuite audits cloud configurations and produces a report; it does not attempt escalation with the stolen keys.

    BWhy not this: Kube-hunter probes Kubernetes clusters and has no AWS IAM modules, so it cannot escalate an IAM user.

    CWhy not this: Prowler audits AWS against benchmarks and reports findings, but it does not try to exploit or escalate privileges.

    DWhy this is right: Pacu is an AWS exploitation framework with modules that enumerate permissions and test escalation paths, saving data per session.

    Pacu is an AWS exploitation framework. Its modules enumerate IAM permissions and test escalation paths, and it stores results in a session. Prowler checks AWS against benchmarks but only reports findings; it never attempts escalation.

    Open this question
  2. Question 2

    Attacks and Exploits

    A tester has root on a standalone Linux host that runs Docker containers, with no Kubernetes. The tester must check the daemon and container runtime settings against the CIS Docker Benchmark. Which tool should be used?

    Show the answer

    Correct answerC. Docker Bench

    AWhy not this: Prowler audits cloud accounts such as AWS and does not inspect a local Docker daemon's settings.

    BWhy not this: ScoutSuite audits cloud provider configurations and does not check a Docker host against the CIS benchmark.

    CWhy this is right: Docker Bench for Security runs on the Docker host and checks it against the CIS Docker Benchmark.

    DWhy not this: Kube-hunter looks for weaknesses in Kubernetes clusters, which this standalone Docker host does not have.

    Docker Bench for Security runs on the host and tests Docker daemon, host and container configuration against the CIS Docker Benchmark. Kube-hunter is tempting because it concerns containers, but it targets Kubernetes clusters, not a standalone Docker host.

    Open this question
  3. Question 3

    Attacks and Exploits

    A tester on the internal network has no credentials for a Kubernetes cluster. The tester wants to probe it remotely for weaknesses such as an exposed kubelet port. Which tool should be used?

    Show the answer

    Correct answerB. Kube-hunter

    AWhy not this: Docker Bench runs on a Docker host and checks it against the CIS Docker Benchmark; it does not probe clusters remotely.

    BWhy this is right: Kube-hunter probes a cluster from the network for exposed components and known weaknesses without credentials.

    CWhy not this: Pacu is an AWS exploitation framework and does not scan Kubernetes clusters for exposed ports.

    DWhy not this: ScoutSuite audits cloud provider accounts with credentials and does not hunt for exposed Kubernetes components.

    Kube-hunter actively probes Kubernetes clusters for weaknesses such as open kubelet or API server ports, and needs no credentials. Docker Bench is wrong because it runs on a Docker host and checks configuration against the CIS Docker Benchmark.

    Open this question
  4. Question 4

    Attacks and Exploits

    A tester finds AWS access keys in a leaked code repository. The tester needs a framework with post-compromise modules to enumerate and exploit that account. Which tool should the tester use?

    Show the answer

    Correct answerD. Pacu

    AWhy not this: Docker Bench checks a Docker host against the CIS Docker Benchmark and does not work with AWS keys.

    BWhy not this: Kube-hunter hunts for weaknesses in Kubernetes clusters and does not use AWS access keys.

    CWhy not this: Prowler uses AWS credentials but audits against benchmarks; it offers no exploitation modules.

    DWhy this is right: Pacu is built to run offensive modules against an AWS account using compromised access keys.

    Pacu is a modular AWS exploitation framework built for use with compromised keys. Prowler also accepts AWS credentials but is a defensive auditing tool that reports misconfigurations without exploiting them.

    Open this question
  5. Question 5

    Attacks and Exploits

    A tester must clone a client's guest SSID and then harvest credentials from users who connect to it, using one framework. Which capabilities of WiFi-Pumpkin fit this task? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Deauthenticating clients from the legitimate access pointC. Proxying and sniffing traffic of associated clientsD. Hosting a rogue access point with a captive portal

    AWhy this is right: Its deauthentication module knocks clients off the real AP so they may reconnect to the rogue one.

    BWhy not this: Offline dictionary cracking of handshakes is done with Aircrack-ng; WiFi-Pumpkin does not crack WPA2 keys.

    CWhy this is right: Once clients associate, its proxy and sniffing modules let the tester capture and inspect their traffic.

    DWhy this is right: WiFi-Pumpkin builds an evil twin AP and can serve a captive portal to phish credentials from connecting users.

    EWhy not this: WiFi-Pumpkin works on 802.11 networks; Bluetooth LE sniffing needs other tools, such as Ubertooth.

    WiFi-Pumpkin is a rogue AP framework: it runs a fake AP with a captive portal, proxies and sniffs client traffic, and can deauthenticate clients to push them to the rogue AP. Offline passphrase cracking is Aircrack-ng's job, not WiFi-Pumpkin's. Bluetooth sniffing is outside the framework entirely.

    Open this question
  6. Question 6

    Attacks and Exploits

    A tester answers a client's failed DNS and LLMNR lookups for "wpad" with the tester's own host, which serves a proxy configuration script. What is the goal of this attack?

    Show the answer

    Correct answerC. Route the client's browser traffic through an attacker-controlled proxy

    AWhy not this: Mapping SSIDs to locations is what WiGLE.net does with wardriving data; it does not involve name poisoning.

    BWhy not this: Handshake cracking works on captured WPA2 data offline; it has nothing to do with proxy lookups on a wired or wireless LAN.

    CWhy this is right: WPAD abuse feeds the browser a rogue proxy configuration, so its web traffic passes through the attacker's proxy.

    DWhy not this: Passive frame capture is what Kismet does; poisoned name lookups are not 802.11 sniffing.

    WPAD lets browsers discover a proxy configuration file by name. Answering the lookup with a malicious file makes the browser send its traffic through the tester's proxy. Handshake cracking is a different attack, done offline with a tool such as Aircrack-ng.

    Open this question
  7. Question 7

    Attacks and Exploits

    A tester has captured a WPA2 four-way handshake and needs to recover the passphrase offline. Which tool should the tester use?

    Show the answer

    Correct answerD. Aircrack-ng

    AWhy not this: InSSIDer is a Wi-Fi discovery and channel analysis tool; it does not crack keys.

    BWhy not this: WiFi-Pumpkin creates rogue access points; it does not crack handshakes offline.

    CWhy not this: WiGLE.net is a crowdsourced database of mapped networks; it holds no cracking function.

    DWhy this is right: Aircrack-ng cracks WPA/WPA2 pre-shared keys from a captured handshake using a wordlist.

    Aircrack-ng is a wireless attack suite that cracks WEP keys and WPA/WPA2 pre-shared keys from captured traffic. InSSIDer only analyzes nearby networks and channels, so it cannot recover a passphrase.

    Open this question
  8. Question 8

    Attacks and Exploits

    During an on-site engagement, a tester wants to leave USB drives that run a payload when plugged in. Which SET attack vector should the tester use to build the payload and its listener?

    Show the answer

    Correct answerC. Infectious Media Generator

    AWhy not this: The Credential Harvester clones a login page to capture submitted credentials; it produces no media payload.

    BWhy not this: The QR code attack encodes a malicious URL into a QR image; it does not build a media payload.

    CWhy this is right: Infectious Media Generator builds an autorun payload for USB or optical media and can start a listener for it.

    DWhy not this: Mass Mailer sends bulk phishing email; it does not prepare a payload for physical media.

    SET's Infectious Media Generator creates an autorun payload for USB, CD or DVD media and can set up a Metasploit listener. The Credential Harvester clones sites to capture logins and uses no physical media.

    Open this question
  9. Question 9

    Attacks and Exploits

    A tester needs a menu-driven framework that can clone a website and launch credential-harvesting attacks. Which tool fits?

    Show the answer

    Correct answerB. Social Engineering Toolkit (SET)

    AWhy not this: Maltego maps relationships between entities for OSINT; it does not run credential-harvesting attacks.

    BWhy this is right: SET offers menu-driven attack vectors, including cloning a site to capture submitted credentials.

    CWhy not this: theHarvester collects emails, subdomains and names from open sources; it does not clone sites or harvest credentials.

    DWhy not this: Recon-ng is a reconnaissance framework with modules for gathering data; it does not clone sites to harvest credentials.

    SET is a menu-driven framework for social engineering attacks, including website cloning for credential harvesting. theHarvester only gathers emails, hosts and names from public sources and launches no attacks.

    Open this question
  10. Question 10

    Attacks and Exploits

    A target organization enforces MFA on its web login. A tester wants to capture the victim's authenticated session after the MFA step completes, using a phishing link. Which tool is best?

    Show the answer

    Correct answerA. Evilginx

    AWhy this is right: Evilginx proxies the real site and steals the session cookie issued after MFA, bypassing the second factor.

    BWhy not this: SET's harvester serves a static clone that records typed credentials but cannot relay MFA or capture the session.

    CWhy not this: BeEF controls a browser hooked through injected JavaScript; it does not proxy the login to capture post-MFA sessions.

    DWhy not this: Gophish delivers and tracks phishing emails; it does not proxy logins or capture session cookies.

    Evilginx acts as a reverse proxy between victim and real site, so it captures the session cookie issued after MFA succeeds. A static cloned page, like SET's harvester, captures only typed credentials and cannot complete MFA.

    Open this question
  11. Question 11

    Attacks and Exploits

    A tester must run a phishing simulation for a client and track which recipients opened the email, clicked the link and submitted data. Which tool provides this campaign tracking?

    Show the answer

    Correct answerB. Gophish

    AWhy not this: Recon-ng gathers reconnaissance data through modules; it does not send phishing emails or track responses.

    BWhy this is right: Gophish runs phishing campaigns and records opens, clicks and submitted data per recipient.

    CWhy not this: Maltego visualizes relationships between OSINT entities; it does not send or track phishing campaigns.

    DWhy not this: Evilginx proxies logins to steal credentials and session tokens; it lacks campaign management and per-recipient tracking.

    Gophish is a phishing framework that manages campaigns with templates, landing pages and sending profiles, and records opens, clicks and submitted data. Evilginx is a reverse proxy that captures sessions rather than managing campaigns.

    Open this question
  12. Question 12

    Attacks and Exploits

    A tester emails the same generic payroll-portal lure, with a link to a cloned login page, to every address scraped from a client's website. Which attack type is this?

    Show the answer

    Correct answerB. Phishing

    AWhy not this: Spearphishing needs content tailored to specific people, which this generic lure lacks.

    BWhy this is right: An identical, untailored email sent to many addresses is a standard phishing campaign.

    CWhy not this: Whaling targets senior executives specifically, but this goes to every scraped address.

    DWhy not this: Smishing delivers the lure by SMS text message, not by email.

    Phishing is a broad, untargeted email lure sent to many recipients at once. Spearphishing would need a message tailored to specific individuals, and this identical message names no one.

    Open this question
  13. Question 13

    Attacks and Exploits

    A tester calls a help desk and talks an agent into resetting a password over the phone. Which attack type is this?

    Show the answer

    Correct answerD. Vishing

    AWhy not this: Tailgating is physically following an authorized person through a secured door.

    BWhy not this: Whaling aims at senior executives and is not defined by the phone channel.

    CWhy not this: Smishing uses SMS text messages, not a live phone conversation.

    DWhy this is right: Vishing is social engineering carried out by voice, usually over the phone.

    Vishing is voice phishing: the social engineering happens over a phone call. Smishing uses text messages instead of a voice call.

    Open this question
  14. Question 14

    Attacks and Exploits

    A client wants to know whether its CFO would approve a fraudulent wire request sent by email. Which attack type is built for this target?

    Show the answer

    Correct answerB. Whaling

    AWhy not this: Smishing is defined by SMS delivery, not by who the target is.

    BWhy this is right: Whaling targets high-ranking executives such as the CFO, who can authorize payments.

    CWhy not this: Dumpster diving recovers discarded documents and sends no message to an executive.

    DWhy not this: A watering hole infects a site a group visits rather than sending a request to one person.

    Whaling is phishing aimed at senior executives, who hold the authority to approve payments. A watering hole compromises a site a group visits and does not send a request to one executive.

    Open this question
  15. Question 15

    Attacks and Exploits

    A tester's campaign against a client's C-suite draws almost no clicks from a generic mailbox-quota email. Which change BEST suits an attack aimed at senior executives?

    Show the answer

    Correct answerB. Rewrite the lure as a regulatory subpoena addressed to each executive by name

    AWhy not this: Sending to everyone drops the executive focus and becomes untargeted phishing.

    BWhy this is right: An executive-relevant pretext aimed at named C-suite targets is how whaling lures are built.

    CWhy not this: Waiting for visits to a trusted site is a watering hole, not a message aimed at executives.

    DWhy not this: A phone call to an assistant is vishing and targets someone other than the executives.

    Whaling relies on pretexts that matter to executives, such as legal or regulatory matters, addressed to them personally. Widening the audience would turn the test back into mass phishing.

    Open this question
  16. Question 16

    Attacks and Exploits

    A tester must run a spearphishing test against five named accounts payable staff at a client. The rules of engagement allow open-source research and a lookalike domain registered for the test. Which three actions fit this attack? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Send the messages from a lookalike domain registered for the engagementB. Research each target's role and vendors from public sourcesD. Write each message around a real vendor or project the target handles

    AWhy this is right: A lookalike domain is permitted and gives the tailored message a believable sender.

    BWhy this is right: Open-source research on roles and vendors supplies the details that make the lure personal.

    CWhy not this: Dropping USB drives is baiting, a different attack that the rules of engagement do not allow.

    DWhy this is right: A pretext built on a real vendor or project makes the message credible to that person.

    EWhy not this: An identical message to everyone is mass phishing and goes beyond the five named targets.

    Spearphishing is tailored to specific individuals: research them, build a believable pretext from what you find, and deliver it from a convincing sender. A generic notice to the whole directory is mass phishing and ignores the five-person scope. USB drops are baiting, which the rules of engagement do not allow.

    Open this question
  17. Question 17

    Attacks and Exploits

    A tester finds a developer's access key in a public repository. It still authenticates but can only read one bucket, and its policy is least-privilege. What is the primary misconfiguration to report?

    Show the answer

    Correct answerB. Hard-coded long-lived credentials exposed in a repository

    AWhy not this: The key was found in a repository, not retrieved from a running instance's metadata endpoint.

    BWhy this is right: The key is a static secret stored in public source code, so anyone can authenticate with it.

    CWhy not this: The stem says the policy is least-privilege, so permissions are not the flaw.

    DWhy not this: No role assumption or trust policy is involved; the key authenticates directly.

    The weakness is the long-lived key committed to a public repository, which lets anyone authenticate as the developer. The least-privilege policy rules out an over-permissioned identity. The metadata service is irrelevant because the key came from source code, not from an instance.

    Open this question
  18. Question 18

    Attacks and Exploits

    A tester compromises one web server in a cloud environment and then reaches database and administrative hosts directly. Which four findings explain this unrestricted lateral movement? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersB. Web and database tiers share one subnet with no filtering between themC. Peering routes let a test VPC reach production address rangesE. Admin ports on all hosts are reachable from every workload subnetF. Production and development workloads run in one VPC with no isolation

    AWhy not this: A public bucket is an exposed-storage finding that gives data access, not network lateral movement.

    BWhy this is right: A flat tier layout lets a compromised web host connect straight to the database.

    CWhy this is right: Open peering routes remove the boundary between test and production networks.

    DWhy not this: A leaked key is an IAM credential finding that gives account access, not network movement.

    EWhy this is right: Admin ports open to all subnets let any foothold reach management interfaces; a management subnet would isolate them.

    FWhy this is right: With no isolation between environments, a development foothold reaches production.

    Segmentation failures let an attacker move from a foothold to other tiers and environments: shared subnets, open peering routes, reachable admin ports and no environment isolation. A public bucket and a leaked key are real findings, but they give direct access to data or accounts rather than lateral movement.

    Open this question
  19. Question 19

    Attacks and Exploits

    A tester scans a cloud VM and finds every TCP port reachable from the internet, although the application needs only HTTPS. Which misconfiguration is the root cause?

    Show the answer

    Correct answerB. Overly permissive security group inbound rules

    AWhy not this: Bucket permissions govern object access and have no effect on VM port exposure.

    BWhy this is right: Inbound rules allowing all ports from any source are the network control that exposes the VM.

    CWhy not this: The metadata service is reached from the instance itself and does not open ports to the internet.

    DWhy not this: A role trust policy controls who can assume the role, not which ports are reachable.

    Security groups and network ACLs are the network controls that decide which ports and sources can reach a VM. Allowing all ports from any source is an overly permissive rule. A metadata service weakness would expose instance credentials to code running on the host, not open ports to the internet.

    Open this question
  20. Question 20

    Attacks and Exploits

    A tester lists and downloads a cloud bucket's objects without authenticating. Which misconfiguration allows this?

    Show the answer

    Correct answerC. Public access permissions on the bucket

    AWhy not this: The metadata endpoint exposes instance credentials from inside a host, not bucket contents to outsiders.

    BWhy not this: An unsigned image is an artifact tampering risk and unrelated to bucket access.

    CWhy this is right: A policy or ACL granting access to everyone lets anonymous users list and read objects.

    DWhy not this: Segmentation limits traffic between hosts and does not govern anonymous access to a bucket.

    A bucket policy or ACL that grants access to anonymous users lets anyone list and read its objects. Network segmentation concerns traffic between hosts, so it would not explain unauthenticated access to an object store.

    Open this question
  21. Question 21

    Attacks and Exploits

    A tester has only employees' mobile numbers. The tester sends each of them an SMS saying a parcel is held, with a link to a fake page that collects corporate logins. Which attack type is this?

    Show the answer

    Correct answerB. Smishing

    AWhy not this: Whaling targets senior executives with tailored lures; nothing here singles out executives.

    BWhy this is right: The lure arrives by SMS and pushes the target to a fake page, which is smishing.

    CWhy not this: Spearphishing needs research and a tailored lure for specific people; this lure is generic.

    DWhy not this: Vishing uses voice calls or voicemail, not text messages with a link.

    Smishing is phishing delivered by SMS text message, which matches a generic lure sent to phone numbers. Vishing also targets phones, but it uses voice calls rather than text messages.

    Open this question
  22. Question 22

    Attacks and Exploits

    A tester without a badge walks closely behind an employee through a badge-controlled door, saying nothing and claiming no identity. Which attack type is this?

    Show the answer

    Correct answerD. Tailgating

    AWhy not this: Shoulder surfing captures information by viewing; no information is read here.

    BWhy not this: Surveillance is observation over time; here the tester actually gains entry.

    CWhy not this: Impersonation needs a claimed identity or role; the tester presents none.

    DWhy this is right: Following an authorized employee through a badge-controlled door is tailgating.

    Tailgating is gaining physical entry by following an authorized person through a controlled door. Impersonation depends on pretending to be a specific person or role, and the tester here claims no identity.

    Open this question
  23. Question 23

    Attacks and Exploits

    In a client's open-plan office, a tester stands behind an employee and reads a password as it is typed. No tools are used. Which attack type is this?

    Show the answer

    Correct answerB. Shoulder surfing

    AWhy not this: Surveillance is longer observation of a site or routines, not capturing one typed password.

    BWhy this is right: Reading a password over someone's shoulder as it is typed is shoulder surfing.

    CWhy not this: Eavesdropping captures spoken or transmitted information; here the password is seen.

    DWhy not this: Impersonation means posing as someone else; the tester claims no identity.

    Shoulder surfing is directly observing a person entering credentials or reading sensitive data on a screen or keypad. Eavesdropping would involve listening to speech or intercepting communications, not viewing a screen.

    Open this question
  24. Question 24

    Attacks and Exploits

    A tester recovers discarded printouts containing VPN setup steps from a client's outdoor recycling bins. Which recommendation BEST addresses the attack technique used?

    Show the answer

    Correct answerD. Cross-cut shredding of sensitive documents

    AWhy not this: Privacy filters stop onlookers reading screens; they do nothing for paper in the bins.

    BWhy not this: Reporting training counters smishing; it does not protect discarded documents.

    CWhy not this: Vestibules limit physical entry and tailgating; the bins were reached without entering.

    DWhy this is right: Shredding destroys the paper before disposal, so a dumpster diver finds nothing usable.

    The technique is dumpster diving: recovering sensitive information from discarded material. Destroying documents before disposal removes what the attacker would find. Privacy filters counter shoulder surfing, not recovery of discarded paper.

    Open this question
  25. Question 25

    Attacks and Exploits

    A tester watches a client's entrance from a parked car for several days to note staff arrival times and badge use. Which technique is this?

    Show the answer

    Correct answerB. Surveillance

    AWhy not this: Eavesdropping is listening to conversations or traffic; the tester is only watching.

    BWhy this is right: Watching the site over several days to learn routines is surveillance.

    CWhy not this: Shoulder surfing reads a screen or keypad at close range; this is watching from a distance.

    DWhy not this: Tailgating means following someone through a controlled door; the tester never enters.

    Surveillance is observing a target over time to gather information about routines and security practices. Shoulder surfing is close-range viewing of what a person is entering or reading, not extended observation of a site.

    Open this question
  26. Question 26

    Attacks and Exploits

    A victim's browser loads the hook.js script from a tester's server. What does the tester gain?

    Show the answer

    Correct answerC. Control of the hooked browser through command modules

    AWhy not this: Cloning a login page to log passwords is a SET attack, not what hook.js does.

    BWhy not this: Open and click reporting comes from a campaign tool such as Gophish, not from hook.js.

    CWhy this is right: hook.js enrols the browser in BeEF, where the tester runs command modules against it.

    DWhy not this: Capturing a session after MFA is done by a reverse-proxy tool such as Evilginx, not by a hook script.

    The hook.js script is BeEF's hook. Once loaded, the browser appears in the BeEF panel and the tester can run command modules against it. Session relaying is Evilginx, campaign reporting is Gophish, and site cloning is SET.

    Open this question
  27. Question 27

    Attacks and Exploits

    A tester has one employee's email address and wants a visual graph linking that person to related domains, social profiles and infrastructure by running transforms. Which tool is best?

    Show the answer

    Correct answerC. Maltego

    AWhy not this: Recon-ng stores findings in a database and shows them as text; it has no graphical link analysis.

    BWhy not this: theHarvester lists emails, hosts and subdomains as text output and draws no relationship graph.

    CWhy this is right: It runs transforms on entities and displays the relationships between them as a graph.

    DWhy not this: Gophish launches and tracks phishing campaigns and does not map relationships between entities.

    Maltego runs transforms on entities such as an email address and draws the results as a relationship graph. theHarvester and Recon-ng gather data as text or database records and do not build an interactive link graph.

    Open this question
  28. Question 28

    Attacks and Exploits

    To build a phishing pretext, a tester runs a command with the flags -d example.com -b bing to collect employee email addresses and hostnames from public sources. Which tool is being used?

    Show the answer

    Correct answerD. theHarvester

    AWhy not this: Gophish sends and tracks phishing campaigns and does not gather OSINT on a domain.

    BWhy not this: Recon-ng works inside a console by loading modules and storing results in workspaces, not by these flags.

    CWhy not this: Maltego is a graphical link-analysis tool driven by transforms, not a one-line command with flags.

    DWhy this is right: Its -d (domain) and -b (data source) flags gather emails and hostnames from public sources in one command.

    theHarvester is a command-line OSINT tool. The -d flag sets the target domain and -b sets the public data source, and it returns emails, subdomains and hosts. Recon-ng is also OSINT, but it is driven by loading modules in a console, not by these flags.

    Open this question
  29. Question 29

    Attacks and Exploits

    A tester finds stored XSS in a client's intranet page and wants to show employees a fake session-expired login prompt on the genuine site. Which tool fits best?

    Show the answer

    Correct answerA. Browser Exploitation Framework (BeEF)

    AWhy this is right: The XSS delivers its hook, and its modules can show a fake login prompt inside the real page.

    BWhy not this: SET clones a site and serves it from another host; it does not act inside the genuine page.

    CWhy not this: Gophish sends and tracks phishing emails and cannot act inside a victim's browser.

    DWhy not this: Evilginx proxies a login to capture sessions and does not run prompts inside an XSS-hooked page.

    The XSS can load BeEF's hook into employees' browsers, and BeEF's social-engineering modules can then display a fake login prompt on the real page. SET would clone the site at a different URL, and Evilginx proxies the login and does not inject script into the genuine page.

    Open this question
  30. Question 30

    Attacks and Exploits

    Which tool is a modular, console-based OSINT framework with workspaces and a database, similar in feel to Metasploit?

    Show the answer

    Correct answerB. Recon-ng

    AWhy not this: BeEF controls hooked browsers after exploitation and is not a reconnaissance framework.

    BWhy this is right: It is a Metasploit-style console that loads recon modules and keeps results in workspaces.

    CWhy not this: SET builds social-engineering attacks such as cloned sites; it is not an OSINT framework.

    DWhy not this: Evilginx is a reverse-proxy phishing tool that captures sessions; it does no reconnaissance.

    Recon-ng is a reconnaissance framework where you load modules, keep results in workspaces and query a built-in database. The others are attack tools, not OSINT frameworks.

    Open this question
  31. Question 31

    Attacks and Exploits

    Before travelling to a client's campus, a tester wants a map of nearby wireless networks and their reported encryption types from earlier wardriving. Which resource provides this?

    Show the answer

    Correct answerC. WiGLE.net

    AWhy not this: It scans only nearby networks through the local adapter and has no map of previously reported ones.

    BWhy not this: It collects data only from networks in radio range, so it cannot be used before travelling.

    CWhy this is right: It is a crowdsourced map of wardriven networks with SSID and encryption details, usable remotely.

    DWhy not this: It is a rogue access point framework for attacking clients, not a source of historical survey data.

    WiGLE.net aggregates wardriving submissions on a map, with details such as SSID and encryption, so the tester can survey an area remotely. Kismet and InSSIDer need the tester to be within radio range of the networks.

    Open this question
  32. Question 32

    Attacks and Exploits

    A tester's Windows laptop has a built-in Wi-Fi adapter that does not support monitor mode. The tester wants to graph signal strength and channel overlap of nearby access points. Which tool fits?

    Show the answer

    Correct answerD. InSSIDer

    AWhy not this: It is an online database of past sightings and shows no live signal or channel data.

    BWhy not this: Its capture tools need a monitor-mode adapter, and it focuses on attacks rather than signal graphing.

    CWhy not this: It is a passive sniffer and IDS that depends on monitor mode, which this adapter lacks.

    DWhy this is right: It graphs signal strength and channel overlap of visible access points through a normal adapter.

    InSSIDer is a Wi-Fi scanner that graphs signal strength, channels and security of visible networks using a standard adapter, with no monitor mode needed. Kismet is a packet sniffer and IDS that needs monitor mode.

    Open this question
  33. Question 33

    Attacks and Exploits

    A tester recorded the BSSID of an unknown access point in a client's lobby. To judge whether it is a fixed device or a mobile hotspot, the tester wants its historical sighting locations from existing public data, without collecting more traffic. Which resource should the tester query?

    Show the answer

    Correct answerB. WiGLE.net

    AWhy not this: It captures only live traffic in range and keeps no database of sightings reported by others elsewhere.

    BWhy this is right: It is a public crowdsourced database searchable by BSSID, showing past reported sighting locations.

    CWhy not this: It is a toolset for attacking Wi-Fi encryption, not for looking up where a device was seen before.

    DWhy not this: It scans only the networks currently visible to the local adapter, with no historical location data.

    WiGLE.net is a crowdsourced wardriving database that can be searched by BSSID to show where that access point has been reported. Several sightings in different places suggest a mobile hotspot. Kismet only sees what is in range now, so it cannot give past locations.

    Open this question
  34. Question 34

    Attacks and Exploits

    A tester needs a passive tool that detects access points and clients in monitor mode, uncovers hidden SSIDs, and can also act as a wireless intrusion detection system. Which tool fits?

    Show the answer

    Correct answerC. Kismet

    AWhy not this: It is an online database of past wardriving data and captures nothing itself.

    BWhy not this: It is a cracking and injection suite and does not provide wireless intrusion detection.

    CWhy this is right: It passively captures in monitor mode, reveals hidden SSIDs and works as a wireless IDS.

    DWhy not this: It is an active rogue access point framework that lures clients, not a passive detector or IDS.

    Kismet is a passive wireless detector, sniffer and WIDS that uses monitor mode to find networks, clients and hidden SSIDs. Aircrack-ng can capture packets but is a cracking suite, not an intrusion detection system.

    Open this question
  35. Question 35

    Attacks and Exploits

    A tester finds that a managed cloud database has a public IP and accepts connections from any internet address, although only application servers in the same virtual network use it. What is the BEST remediation?

    Show the answer

    Correct answerC. Remove the public endpoint and use private access

    AWhy not this: Versioning protects stored objects against overwrite or deletion and has no effect on network reachability of a database.

    BWhy not this: A least-privilege role limits what the servers can do in the account, but the database would still accept internet connections.

    CWhy this is right: Only internal servers need the database, so removing the public endpoint takes away the unnecessary internet exposure.

    DWhy not this: Rotation limits credential age but leaves the database reachable from the internet to anyone who can guess or steal a password.

    The database is reachable from the internet although only internal hosts need it. Removing the public endpoint and using private networking removes the exposure itself. Rotating the password only makes guessing harder; the service stays publicly reachable.

    Open this question
  36. Question 36

    Attacks and Exploits

    During an authorized test, a tester finds CI/CD build logs readable by every employee that show an unmasked cloud access key. The rules of engagement prohibit changing any resources. Which action BEST demonstrates impact in scope?

    Show the answer

    Correct answerB. Run a read-only identity query with the key

    AWhy not this: Deleting logs alters evidence and resources, is outside the rules, and proves nothing about what the exposed key can do.

    BWhy this is right: It validates the leaked key and reveals its principal and permissions without altering any resource, so it fits the rules.

    CWhy not this: Scanning the build server tests network exposure and does not use the leaked key to show the impact of the log exposure.

    DWhy not this: Creating a user changes the environment, which the rules of engagement forbid, even though it would show high impact.

    A read-only identity query shows that the leaked key is valid and which principal and permissions it carries, without changing anything. Creating an admin user alters resources and breaks the rules of engagement, so it is out of scope.

    Open this question
  37. Question 37

    Attacks and Exploits

    A tester with a read-only monitoring role finds plaintext database passwords in a cloud logging service's debug entries. All buckets are private and the source code is clean. What is the primary finding?

    Show the answer

    Correct answerA. Logging information exposure

    AWhy this is right: Sensitive values written into debug logs and readable by a broad role are the textbook case of logging information exposure.

    BWhy not this: Buckets are stated to be private, and the secrets were found in a logging service rather than in object storage.

    CWhy not this: No instance metadata service was queried; the passwords came from log entries, not from instance metadata.

    DWhy not this: The source code is clean, so the passwords were not embedded in code; they were written out at runtime.

    The secrets sit in log entries readable by a monitoring role, which is logging information exposure. Hard-coded credentials would be found in code or repositories, and the stem rules that out along with public buckets.

    Open this question
  38. Question 38

    Attacks and Exploits

    A tester has push access to a private container registry. Deployments pull app:latest with no signature verification. Which action demonstrates image tampering?

    Show the answer

    Correct answerA. Push a backdoored image under the same tag

    AWhy this is right: With push access and no signature checks, replacing the tagged image gets the backdoor deployed automatically.

    BWhy not this: A look-alike public package targets dependency resolution, which is a supply chain attack rather than altering the registry image.

    CWhy not this: This abuses the metadata service from inside a running workload and does not alter any image or artifact.

    DWhy not this: This is a container escape technique that works on a running container, not tampering with a stored image.

    Overwriting the mutable tag with a backdoored image means the next deployment runs the attacker's artifact, since nothing verifies signatures. A look-alike public package is a supply chain dependency attack, not tampering with the organization's own image.

    Open this question
  39. Question 39

    Attacks and Exploits

    Engineers at a client all read one industry forum daily. A tester compromises the forum and serves an exploit only to visitors from the client's IP range. Which attack type is this?

    Show the answer

    Correct answerD. Watering hole

    AWhy not this: Spearphishing sends tailored messages to chosen victims; here no message is sent at all.

    BWhy not this: Phishing relies on deceptive messages, usually broad ones; here the targets simply browse a site.

    CWhy not this: Smishing uses SMS messages, and no text message is involved in this scenario.

    DWhy this is right: The attacker compromises a trusted third-party site that the targets habitually visit and filters for them.

    A watering hole attack compromises a site the targets already trust and visit, so victims come to the attacker. Nothing is sent to them. Spearphishing also targets a group, but it delivers a tailored message to the victims instead of waiting on a third-party site.

    Open this question
  40. Question 40

    Attacks and Exploits

    A tester is authorized to pose as a vendor technician to reach a client's server room. Which three actions BEST support the impersonation? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Preparing a vendor identity with uniform and badgeD. Rehearsing answers to questions staff will likely askF. Learning the real vendor's name and visit procedures

    AWhy this is right: A matching uniform and badge make the claimed identity visually believable to staff.

    BWhy not this: Reading keystrokes is shoulder surfing and does not involve claiming an identity.

    CWhy not this: Entering silently behind someone claims no identity, so it is tailgating, not impersonation.

    DWhy this is right: Rehearsed answers help the tester hold the false identity when challenged.

    EWhy not this: A mass email with a cloned page is phishing or credential harvesting, not posing as a person on site.

    FWhy this is right: Accurate details of the real vendor make the claimed identity credible under questioning.

    Impersonation succeeds when the tester convincingly pretends to be a trusted person: believable props, accurate research and a rehearsed story. Following someone silently through a door is tailgating, because no identity is claimed.

    Open this question
  41. Question 41

    Attacks and Exploits

    A tester repeatedly followed staff through a badge-controlled door, unbadged and unchallenged. The client wants a preventive control that works even when an authorized employee badges in and does not depend on staff behavior. Which control BEST fits?

    Show the answer

    Correct answerD. A vestibule admitting one person per badge read

    AWhy not this: Training depends on staff behavior, which the client wants to avoid, and it does not physically stop a follower.

    BWhy not this: A PIN strengthens authentication of the person at the reader, but a follower still walks in behind them.

    CWhy not this: Recordings are detective, not preventive, and would only show the entry after it happened.

    DWhy this is right: It physically limits entry to one person per authentication, so a follower cannot pass on someone else's badge read.

    Tailgating works because a second person enters on an authorized person's badge read. An access control vestibule physically admits one person at a time, so it prevents this without relying on staff. A reader PIN only authenticates the first person, who still lets the follower in.

    Open this question
  42. Question 42

    Attacks and Exploits

    A tester hosts a cloned VPN portal that stores every submitted username and password, then redirects victims to the real portal. No malware is delivered, and success is measured by valid accounts captured. Which attack type is this?

    Show the answer

    Correct answerB. Credential harvesting

    AWhy not this: Eavesdropping is listening to conversations, not capturing data typed into a fake page.

    BWhy this is right: The page exists to capture and store valid credentials, and success is counted in accounts obtained.

    CWhy not this: Smishing is defined by SMS delivery, and nothing in the scenario mentions text messages.

    DWhy not this: Whaling is defined by targeting senior executives, and no such target is given.

    Credential harvesting is defined by its goal: collecting valid usernames and passwords, here through a spoofed login page that logs submissions. Smishing describes an SMS delivery channel, which the scenario never states, and the metric is accounts captured, not the channel.

    Open this question
  43. Question 43

    Attacks and Exploits

    A tester sits in a café near a client's office and listens as two engineers discuss a server's administrator password. The tester contacts no one. Which attack type is this?

    Show the answer

    Correct answerB. Eavesdropping

    AWhy not this: Surveillance is observing activity or locations over time; the tester here only overhears a conversation.

    BWhy this is right: Covertly listening to a private spoken conversation to learn sensitive information is eavesdropping.

    CWhy not this: Vishing is a deceptive phone call to the target, and the tester contacts no one.

    DWhy not this: Shoulder surfing means watching someone type or view information on a screen, not hearing speech.

    Eavesdropping is covertly listening to private conversations to gain information. Here the tester only hears spoken details. Surveillance is observing people or locations over time, and nothing here involves watching a pattern of activity.

    Open this question
  44. Question 44

    Attacks and Exploits

    A tester exploits a code injection flaw in a serverless function and dumps its environment variables to harvest credentials. Which attack type is this?

    Show the answer

    Correct answerC. Workload runtime attack

    AWhy not this: Tampering alters stored images or artifacts before deployment, not a function that is already running.

    BWhy not this: Escape means breaking out of a container to the host, and no container boundary is crossed here.

    CWhy this is right: Exploiting the running function and reading its runtime environment is a workload runtime attack.

    DWhy not this: Bucket access abuses storage permissions, not code execution in a running workload.

    A workload runtime attack targets a running workload, such as a function, VM or container, by exploiting its live code or environment. Container escape would require breaking out of a container to its host, which this scenario does not involve.

    Open this question
  45. Question 45

    Attacks and Exploits

    A tester has a shell inside a Kubernetes pod and wants to reach the underlying node. Which three pod settings would allow this? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Mount the host's container runtime socket into the podC. Run the container with the privileged flag setE. Mount the node's root filesystem into the pod with hostPath

    AWhy not this: Resource limits cap usage to protect the node from exhaustion and give the pod no access to the host.

    BWhy this is right: With the runtime socket, the tester can start a new container that mounts the host, reaching the node.

    CWhy this is right: Privileged mode gives the container near-host capabilities and device access, enabling escape.

    DWhy not this: A read-only root filesystem limits what can be written and does not expose the host.

    EWhy this is right: A hostPath mount of the node's root lets the tester read and write host files, such as credentials or cron jobs.

    A privileged container, an exposed runtime socket and a hostPath mount of the node's root each remove the isolation boundary and give access to the host. A read-only root filesystem is a hardening setting that restricts writes inside the container and does not expose the node. CPU and memory limits only cap resource use.

    Open this question
  46. Question 46

    Attacks and Exploits

    A tester finds that a CI pipeline resolves a private internal package name from the public registry, and that name is not registered publicly. Which action demonstrates the supply chain weakness?

    Show the answer

    Correct answerC. Publish a public package using the internal name and a higher version

    AWhy not this: Tag overwriting tampers with container images and does not use the unregistered package name.

    BWhy not this: OAuth grant abuse targets third-party integrations and has no link to package name resolution.

    CWhy this is right: Package managers that check public registries can pull the higher-versioned malicious package, which is dependency confusion.

    DWhy not this: The metadata service yields instance credentials and does not affect how dependencies are resolved.

    Dependency confusion works because the package manager prefers a higher version from the public registry, so a public package with the internal name gets pulled into the build. Overwriting an image tag tampers with a deployed artifact, but it does not exploit how the pipeline resolves package names.

    Open this question
  47. Question 47

    Attacks and Exploits

    A tester assumes a role in a partner's cloud account because the role's trust policy permits the tester's account. Which attack type is this?

    Show the answer

    Correct answerA. Trust relationship abuse

    AWhy this is right: Using a trust policy to assume a role across accounts is trust relationship abuse.

    BWhy not this: Escape breaks out of a container to its host and has no link to cross-account roles.

    CWhy not this: Tampering modifies images or artifacts and does not involve assuming roles.

    DWhy not this: Metadata attacks query an instance's local endpoint for credentials and involve no cross-account trust.

    Trust relationship abuse uses an existing trust between accounts or identities, such as a role trust policy, to gain access in another environment. A metadata service attack instead steals credentials from an instance's local metadata endpoint.

    Open this question
  48. Question 48

    Attacks and Exploits

    A tester needs a multi-cloud auditing tool that pulls configuration through provider APIs and produces an HTML report of risky settings. Which tool fits?

    Show the answer

    Correct answerA. ScoutSuite

    AWhy this is right: ScoutSuite audits several cloud providers through their APIs and reports risky settings in HTML.

    BWhy not this: Docker Bench checks a Docker host against the CIS Docker Benchmark and does not audit cloud providers.

    CWhy not this: Kube-hunter hunts for weaknesses in Kubernetes clusters and does not audit cloud account configuration.

    DWhy not this: Pacu is an AWS-only exploitation framework, not a multi-cloud auditor with an HTML report.

    ScoutSuite is a multi-cloud security auditing tool that collects configuration data through provider APIs and presents the risky settings in an HTML report. Pacu only targets AWS and is built for exploitation, not reporting.

    Open this question
  49. Question 49

    Attacks and Exploits

    A tester has read-only audit credentials for a client's AWS account, and the rules of engagement forbid changing resources. The tester must run command-line checks against the CIS AWS Foundations Benchmark. Which tool BEST fits?

    Show the answer

    Correct answerC. Prowler

    AWhy not this: Kube-hunter probes Kubernetes clusters for weaknesses and does not audit an AWS account against CIS.

    BWhy not this: Pacu is an exploitation framework that attempts changes and escalation, which the no-modification rule forbids.

    CWhy this is right: Prowler audits an AWS account from the command line against CIS and other frameworks without modifying resources.

    DWhy not this: Docker Bench uses the CIS Docker Benchmark and checks a Docker host, not AWS account configuration.

    Prowler is a read-only command-line auditor that checks AWS accounts against the CIS AWS Foundations Benchmark and other compliance frameworks. Docker Bench also uses a CIS benchmark, but it checks Docker hosts, not AWS accounts.

    Open this question
  50. Question 50

    Attacks and Exploits

    A tester holds valid credentials for a client's Azure subscription and must list role assignments using a tool Microsoft provides, avoiding third-party software. Which tool fits?

    Show the answer

    Correct answerA. Azure CLI

    AWhy this is right: Azure CLI is Microsoft's native tool and can query role assignments in an Azure subscription.

    BWhy not this: Kube-hunter is a third-party tool that probes Kubernetes clusters, not a Microsoft tool for role assignments.

    CWhy not this: ScoutSuite supports Azure but is a third-party auditing tool, which the stem rules out.

    DWhy not this: AWS CLI is a native vendor tool, but for Amazon Web Services, so it cannot query an Azure subscription.

    Azure CLI is Microsoft's own command-line tool and can list role assignments in a subscription. AWS CLI is also a vendor tool, but it manages Amazon's platform, not Azure.

    Open this question