Curated

Post-exploitation and Lateral Movement 3 (5.3–5.4)

0 votes

Questions44

  1. Question 1

    Post-exploitation and Lateral Movement

    A tester added their own public key to the authorized_keys file of the existing backup user on a Linux host, creating no new account. Which cleanup action removes only what the tester added?

    Show the answer

    Correct answerC. Remove the tester's public key entry from authorized_keys and keep the account

    AWhy not this: Deleting the private key on the tester's machine leaves the public key authorizing access on the host.

    BWhy not this: The backup account belongs to the client; deleting it causes damage beyond the tester's changes.

    CWhy this is right: Deleting only the tester's key line revokes the added access and leaves the client's account intact.

    DWhy not this: A password reset does not invalidate an authorized SSH key, so key access would remain.

    The injected key is a tester-created credential tied to an existing client account, so removing that entry revokes the access without harming the client's account. Resetting the password does not affect key-based login.

    Open this question
  2. Question 2

    Post-exploitation and Lateral Movement

    A tester enabled PermitRootLogin on a client's production SSH server, first saving the original sshd_config, which held site-specific hardening beyond package defaults. The rules of engagement require the pre-test state. What is the BEST cleanup?

    Show the answer

    Correct answerA. Restore the saved original file, reload sshd and verify the settings against the client's baseline

    AWhy this is right: Restoring the saved original returns the exact pre-test state, and verifying it confirms the revert.

    BWhy not this: Defaults would erase the client's custom hardening, so the result differs from the pre-test state.

    CWhy not this: Stopping sshd breaks client availability and does not revert the configuration.

    DWhy not this: A single value change may not match the original, and it leaves other tester edits in place.

    Cleanup must return each setting to its documented original value. Restoring the saved file and verifying it against the baseline does that. Package defaults would discard the client's site-specific hardening and so would not match the pre-test state.

    Open this question
  3. Question 3

    Post-exploitation and Lateral Movement

    During a test, a tester created a local administrator account named svc_test on three servers. What should the tester do at cleanup?

    Show the answer

    Correct answerB. Delete the account on all three servers and verify it is gone

    AWhy not this: A startup entry is a persistence mechanism, not a credential.

    BWhy this is right: Deleting the account everywhere and verifying removal leaves no tester-created access behind.

    CWhy not this: Wiping the tester's drive is data destruction and does not touch accounts on client servers.

    DWhy not this: A disabled account still exists and can be re-enabled, so it is not removed.

    Accounts the tester created must be deleted from every system where they exist, and removal should be verified. Disabling leaves a privileged account in the client's environment and is not removal.

    Open this question
  4. Question 4

    Post-exploitation and Lateral Movement

    A tester killed a reverse shell process on a client server, but it relaunches after every reboot through a scheduled task the tester created. Which cleanup action BEST stops the relaunch?

    Show the answer

    Correct answerC. Delete the scheduled task that launches the payload at startup

    AWhy not this: Removing an account deals with credentials, not with what launches the payload at boot.

    BWhy not this: Preserving logs keeps evidence for the report but changes nothing about the relaunch.

    CWhy this is right: The task is the persistence mechanism; deleting it ends the automatic relaunch at startup.

    DWhy not this: Spinning down infrastructure stops callbacks but leaves the persistent task on the client host.

    The scheduled task is the persistence mechanism, so deleting it removes the cause of the relaunch. Shutting down the C2 server only stops callbacks. The task stays on the host and would run again if the infrastructure came back.

    Open this question
  5. Question 5

    Post-exploitation and Lateral Movement

    A client asks for proof that the tester's copies of captured sensitive data were destroyed after the engagement. What should the tester provide?

    Show the answer

    Correct answerD. A certificate of destruction listing the media, method and date

    AWhy not this: Hashes of preserved artifacts show what was kept, not that sensitive data was destroyed.

    BWhy not this: Rules of engagement define scope and permissions; they do not document destruction.

    CWhy not this: That list documents persistence removal, not the destruction of collected data.

    DWhy this is right: A certificate of destruction records the media, method and date, which is the proof requested.

    A certificate of destruction documents which media were sanitized, by what method and when, giving the client proof of secure data destruction. A persistence removal list or artifact hashes document different cleanup activities.

    Open this question
  6. Question 6

    Post-exploitation and Lateral Movement

    A tester uploaded a privilege escalation binary and a Netcat copy to a client server. Which cleanup action addresses these files?

    Show the answer

    Correct answerB. Delete the uploaded binaries and utilities from the host

    AWhy not this: Reverting configuration changes restores altered settings; it does not delete the files the tester uploaded.

    BWhy this is right: Uploaded binaries and utilities are tools, and cleanup requires deleting them from the host.

    CWhy not this: Removing tester-created credentials deals with accounts, not uploaded files.

    DWhy not this: Persistence removal deals with mechanisms that relaunch code, not the files themselves.

    Removing tools means deleting the tester's binaries, scripts and utilities from every host they were placed on. Reverting settings, deleting accounts or removing scheduled tasks handle other leftovers, not the uploaded files themselves.

    Open this question
  7. Question 7

    Post-exploitation and Lateral Movement

    A tester's SSD laptop holds the client's exfiltrated PII after the retention period has ended, and the laptop will be reused on other engagements. Which method is BEST?

    Show the answer

    Correct answerA. Run the drive's cryptographic erase command

    AWhy this is right: Cryptographic erase renders the SSD data unrecoverable and leaves the drive reusable.

    BWhy not this: Degaussing works on magnetic media and does not sanitize flash storage.

    CWhy not this: Shredding destroys the data but also the drive, which conflicts with reuse.

    DWhy not this: A quick format and reinstall leave the underlying data recoverable.

    Cryptographic erase sanitizes the SSD by destroying its encryption key, so the data is unrecoverable and the laptop stays reusable. Shredding prevents reuse, and degaussing does not affect flash memory. A quick format leaves the data recoverable.

    Open this question
  8. Question 8

    Post-exploitation and Lateral Movement

    A tester ran a C2 server, a redirector and a payload-hosting web server on cloud VMs for an engagement that has now ended. Which actions spin down this infrastructure? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Remove the DNS records and release the IP addresses used by the C2 domainsD. Delete the temporary virtual network and storage volumes created for the engagementF. Terminate the cloud instances hosting the C2 server and redirector

    AWhy this is right: Removing DNS records and releasing IPs stops the C2 domains from pointing at anything.

    BWhy not this: This is tester-created credential removal on a client system, not infrastructure teardown.

    CWhy not this: This is persistence removal on a client host, not decommissioning of tester infrastructure.

    DWhy this is right: Temporary networks and storage built for the engagement are tester infrastructure to be deleted.

    EWhy not this: Reverting a client firewall change is configuration restoration on the client side.

    FWhy this is right: Terminating the C2 and redirector instances shuts down the tester's attack infrastructure.

    Spinning down infrastructure decommissions the tester's own attack resources: instances, DNS records, IP addresses, networks and storage. Scheduled tasks, firewall rules and accounts on the client's systems are persistence, configuration and credential cleanup instead.

    Open this question
  9. Question 9

    Post-exploitation and Lateral Movement

    The contract requires proof of every action taken. The tester is about to terminate the cloud C2 server that holds session logs and screenshots. What should the tester do first?

    Show the answer

    Correct answerA. Hash the logs and screenshots and copy them to encrypted storage

    AWhy this is right: Hashing and storing artifacts in encrypted storage keeps verifiable evidence before teardown.

    BWhy not this: Terminating first loses the evidence, and a recollection cannot prove actions.

    CWhy not this: Restoring a baseline reverts the server and overwrites the logs and screenshots.

    DWhy not this: Secure destruction comes after retention needs are met; wiping now destroys the proof required.

    Artifacts such as logs and screenshots must be preserved, with hashes for integrity, before the server is destroyed so the findings and actions can be proven. Wiping or restoring the server first destroys that evidence, and destruction belongs after retention requirements are met.

    Open this question
  10. Question 10

    Post-exploitation and Lateral Movement

    A compromised host can send only ping to the internet; all TCP and UDP egress, including DNS, is dropped. Which covert channel can still carry data out?

    Show the answer

    Correct answerB. Data in echo request and reply payloads

    AWhy not this: HTTPS runs over TCP, which is dropped, so no connection to port 443 can be made.

    BWhy this is right: ICMP tunneling carries data in echo payloads, the only traffic type the policy lets out.

    CWhy not this: DNS queries use UDP or TCP port 53, and all TCP and UDP egress is dropped.

    DWhy not this: Steganography only hides data in a file; it provides no transport and the file still needs a permitted path out.

    ICMP tunneling hides data in the payload of echo requests and replies, which the policy still permits. DNS tunneling rides on UDP or TCP port 53, which is dropped, so it cannot leave the network.

    Open this question
  11. Question 11

    Post-exploitation and Lateral Movement

    Staff may legitimately upload photos to a public image-sharing site. A tester must exfiltrate data so that even a reviewer examining the uploaded files sees nothing unusual. Which technique BEST meets this need?

    Show the answer

    Correct answerC. Embedding data in image pixel bits

    AWhy not this: DNS tunneling uses odd query names, which can look suspicious, and it does not hide data in the uploaded files.

    BWhy not this: TLS encrypts content but the transfer to an unknown server is still visible, so it does not hide that data exists.

    CWhy this is right: Steganography conceals the data inside an ordinary-looking image, so the files give no sign that anything is hidden.

    DWhy not this: ICMP tunneling puts data in ping packets; it does not use the permitted image uploads or conceal data in files.

    Steganography hides the data inside a harmless carrier such as an image, so the existence of the data is concealed even from someone who inspects the files. TLS only hides content; the encrypted traffic is still visible as an unusual transfer.

    Open this question
  12. Question 12

    Post-exploitation and Lateral Movement

    A firewall permits outbound web traffic on TCP 443 without TLS inspection and blocks all other egress. Which covert channel would BEST carry exfiltrated data while blending in with normal traffic?

    Show the answer

    Correct answerD. POST requests to a tester web server

    AWhy not this: Steganography conceals data in a file but is not a transport, so it still needs an allowed channel such as HTTPS.

    BWhy not this: ICMP is blocked because only TCP 443 is permitted outbound.

    CWhy not this: DNS tunneling needs port 53 egress or a relaying resolver, and all other egress is blocked.

    DWhy this is right: HTTPS to a tester server uses the permitted port, and uninspected TLS hides the content among normal web traffic.

    HTTPS over port 443 is allowed and encrypted, and without TLS inspection the payload cannot be examined, so it looks like ordinary browsing. ICMP and DNS tunnels depend on traffic the firewall blocks.

    Open this question
  13. Question 13

    Post-exploitation and Lateral Movement

    An egress firewall blocks all direct outbound traffic, but internal hosts may query the corporate DNS resolver, which forwards external lookups. Which covert channel should the tester use to exfiltrate data?

    Show the answer

    Correct answerB. Data encoded in subdomain labels of queries

    AWhy not this: Steganography hides data in a file but still needs a permitted path out, which is not available here.

    BWhy this is right: DNS tunneling relays data through the allowed resolver to the tester's authoritative name server.

    CWhy not this: ICMP packets would need direct egress, which the firewall blocks; the resolver does not relay them.

    DWhy not this: HTTPS needs a direct outbound connection to the server, which the firewall blocks.

    DNS tunneling encodes data in query names that the resolver forwards to a tester-controlled authoritative server, so it works through the permitted resolver. HTTPS needs direct outbound access, which is blocked.

    Open this question
  14. Question 14

    Post-exploitation and Lateral Movement

    A tester exfiltrates files by sending HTTPS POST requests to an attacker-controlled web server. The proxy passes TLS traffic without decrypting it. What can defenders' network monitoring still observe?

    Show the answer

    Correct answerB. The server name and the data volume

    AWhy not this: file names are part of the encrypted payload or headers, so they are not visible without TLS inspection.

    BWhy this is right: connection metadata such as the server name, destination IP and byte counts stays visible outside the encrypted TLS session.

    CWhy not this: the URL path and query string are part of the encrypted HTTP request, so only the hostname leaks.

    DWhy not this: the body is inside the TLS session and unreadable without decryption, which is why HTTPS hides exfiltrated content.

    TLS encrypts the HTTP request, so a proxy that does not decrypt it still sees only connection metadata such as the destination server name, IP address, timing and volume. The POST body is inside the encrypted session, so content inspection cannot read it.

    Open this question
  15. Question 15

    Post-exploitation and Lateral Movement

    Which finding in resolver logs best indicates DNS tunneling used for exfiltration?

    Show the answer

    Correct answerA. Long, random-looking subdomains under one external domain

    AWhy this is right: Encoded data in query labels produces long, high-entropy subdomains all pointing to one attacker-controlled domain.

    BWhy not this: Zone transfers copy zone data between servers and are not how data is exfiltrated through queries.

    CWhy not this: Reverse lookups of internal addresses are typical of reconnaissance or logging tools, not data leaving the network.

    DWhy not this: Identical repeated lookups look like routine refresh or polling and contain no varying encoded data.

    DNS tunneling encodes data into query labels, which appear as many long, high-entropy subdomains under one attacker-controlled domain. Repeated lookups of one host are ordinary caching or polling behavior and carry no encoded payload.

    Open this question
  16. Question 16

    Post-exploitation and Lateral Movement

    A capture shows one workstation sending ICMP echo requests every second to a single external IP, each with a 1,000-byte high-entropy payload, and getting same-sized replies. What does this most likely show?

    Show the answer

    Correct answerB. ICMP tunneling carrying data out

    AWhy not this: Path MTU discovery relies on Destination Unreachable messages, not sustained oversized echo traffic.

    BWhy this is right: Large high-entropy echo payloads exchanged with one host in both directions indicate an ICMP tunnel.

    CWhy not this: The capture shows no TCP or UDP, and DNS runs over UDP or TCP, so this cannot be DNS tunneling.

    DWhy not this: A sweep probes many different addresses with small default payloads, not one host with large random data.

    Steady echo traffic to one host with large, random-looking payloads in both directions is the pattern of an ICMP tunnel. A ping sweep would target many addresses with small standard payloads instead.

    Open this question
  17. Question 17

    Post-exploitation and Lateral Movement

    A steganography tool reports that a 4 MB archive will not fit in a 60 KB logo image. What should the tester do?

    Show the answer

    Correct answerB. Spread it over several larger images

    AWhy not this: Changing the extension embeds nothing in an image and would be obvious on inspection.

    BWhy this is right: Hiding capacity depends on carrier size, so splitting the payload over several larger carriers solves the fit.

    CWhy not this: Encryption hides content but leaves the size unchanged, so the archive still exceeds the carrier's capacity.

    DWhy not this: Base64 encoding inflates data by about a third, so it makes the payload bigger and worsens the fit.

    A carrier file can hide only a limited amount of data, so a payload far larger than the carrier must be split across more or larger carriers. Encryption is tempting, but it protects content and does not reduce size or create capacity.

    Open this question
  18. Question 18

    Post-exploitation and Lateral Movement

    A client allows only outbound web browsing on TCP 443, and a tester must move 2 GB of staged data out. Which covert channel fits best?

    Show the answer

    Correct answerA. HTTPS uploads to a tester-controlled server

    AWhy this is right: Uploads over the permitted TCP 443 path blend with web traffic and support large transfers.

    BWhy not this: ICMP is not permitted by a rule that allows only TCP 443, and tunnel throughput would be low anyway.

    CWhy not this: Steganography only hides data in files; it still needs a permitted channel and has limited capacity.

    DWhy not this: DNS tunneling has very low bandwidth for 2 GB and needs DNS egress, which is not stated as allowed.

    HTTPS uploads use the one permitted egress path, TCP 443, and handle bulk volume with traffic that resembles normal web use. DNS tunneling is too slow for 2 GB and would also need DNS egress.

    Open this question
  19. Question 19

    Post-exploitation and Lateral Movement

    Which port must an egress firewall allow for an ICMP covert channel to work?

    Show the answer

    Correct answerA. No port

    AWhy this is right: ICMP sits directly on IP with no port numbers, so rules match the protocol and type instead.

    BWhy not this: Port 22 carries SSH and plays no part in ICMP traffic.

    CWhy not this: Port 53 is used by DNS, a separate covert channel, and has nothing to do with ICMP.

    DWhy not this: Port 443 carries HTTPS, which is a different channel from ICMP.

    ICMP is carried directly in IP and has no TCP or UDP ports, so a firewall permits or blocks it by protocol and message type. Port 53 belongs to DNS, a different covert channel.

    Open this question
  20. Question 20

    Post-exploitation and Lateral Movement

    A tester mounts a virtual disk image on a compromised workstation and copies collected files into it. What is the main benefit for staging?

    Show the answer

    Correct answerA. The files are gathered in one container that can be moved out as a single file

    AWhy this is right: the image acts as a drive while mounted, then becomes one portable file for exfiltration.

    BWhy not this: mounting changes where files are copied to, not whether the tester may read the source files.

    CWhy not this: hiding data in a file's stream is an alternate data stream technique, not drive mounting.

    DWhy not this: a mounted image is local storage and does not transmit data to any cloud account.

    A mounted virtual disk appears as a drive, so files can be collected into one container file and later transferred as a single object. Mounting does not bypass permissions, and it does not hide data in a stream or send it anywhere.

    Open this question
  21. Question 21

    Post-exploitation and Lateral Movement

    A tester hid staged data in a second named stream of a file on an NTFS share, then copies that file to a FAT32 USB drive. What happens to the hidden data?

    Show the answer

    Correct answerC. It is lost, because FAT32 cannot store extra streams

    AWhy not this: compression does not add stream support to FAT32, so the data is still lost.

    BWhy not this: no separate hidden file is created; the copy simply omits the stream the target cannot hold.

    CWhy this is right: Streams depend on NTFS; FAT32 stores only the main data, so the hidden stream is dropped on copy.

    DWhy not this: the stream is separate from the file's main content, so it does not travel with it onto other file systems.

    Alternate data streams are an NTFS feature. FAT32 has no place to store them, so copying the host file there keeps only the main stream. The data does not live in the primary content, so it does not travel with a plain copy.

    Open this question
  22. Question 22

    Post-exploitation and Lateral Movement

    In an authorized test, a few KB of base64-encoded text must leave a host. The proxy blocks file uploads, cloud storage and outbound mail but allows HTTPS to note-sharing sites. Which channel fits best?

    Show the answer

    Correct answerB. Post the text to a text storage site

    AWhy not this: outbound mail is blocked, so an attachment cannot leave the network.

    BWhy this is right: Plain text posted over allowed HTTPS to a note-sharing site fits the size, format and proxy rules.

    CWhy not this: the proxy blocks cloud storage categories, so this path is closed.

    DWhy not this: a mounted virtual disk is a local staging container, not a path out of the network.

    Small encoded text can be posted through a web form on a text storage site, which the proxy still permits. Cloud storage and mail are blocked, and a mounted virtual disk stays on the host and is not an exfiltration channel.

    Open this question
  23. Question 23

    Post-exploitation and Lateral Movement

    What is an alternate data stream on an NTFS volume?

    Show the answer

    Correct answerA. An extra named data stream attached to a file, not shown in its listed size

    AWhy this is right: NTFS lets a file carry extra named streams that normal directory listings do not count or display.

    BWhy not this: this describes a text storage site, which is an external web service, not an NTFS feature.

    CWhy not this: this describes virtual drive mounting, where a container file is presented as a drive.

    DWhy not this: this describes file compression and archiving, which creates a visible, separate file.

    An alternate data stream is an additional named stream of data attached to an NTFS file, so a tester can stage data without adding a visible file or changing the listed size. A mounted disk image is a different technique that presents a container as a drive.

    Open this question
  24. Question 24

    Post-exploitation and Lateral Movement

    In an authorized test, 2 GB of text documents must leave over a link capped at 500 MB, and a DLP tool inspects clear-text content. How should the data be prepared for staging?

    Show the answer

    Correct answerD. Compress the files into one archive, then encrypt the archive

    AWhy not this: This fits the cap, but the clear-text content stays readable to the DLP tool.

    BWhy not this: Per-file encryption hides content but leaves 2 GB, far over the cap, with no size reduction.

    CWhy not this: Ciphertext looks random and barely compresses, so the size cap would still be exceeded.

    DWhy this is right: Compression shrinks the text to fit the cap, and encryption then hides the content from DLP.

    Text compresses well, so compressing first meets the size cap, and encrypting the archive afterward hides the content from DLP inspection. Encrypting first fails because ciphertext is high-entropy and barely compresses, so the cap would be missed.

    Open this question
  25. Question 25

    Post-exploitation and Lateral Movement

    In an authorized cloud test, the tester has admin rights in the client's account. Which action gets a storage snapshot out without sending it through the client's egress firewall?

    Show the answer

    Correct answerD. Share the snapshot with a cloud account the tester controls

    AWhy not this: A bucket in the client's own account keeps the data inside the client's environment.

    BWhy not this: Mail relay traffic crosses the client's egress and is impractical for a snapshot's size.

    CWhy not this: Mounting the snapshot only exposes it on a client host; nothing leaves the account.

    DWhy this is right: Cross-account sharing moves the data inside the provider, bypassing client egress controls.

    Sharing the snapshot with a separate tester-controlled account uses the provider's cross-account permissions, so the data moves inside the cloud and never crosses the client's egress. Copying it to a bucket in the client's own account leaves the data in the client's environment.

    Open this question
  26. Question 26

    Post-exploitation and Lateral Movement

    During an authorized test, outbound web traffic is blocked, but a compromised user's mailbox can send external mail. Which channel best moves a 5 MB encrypted archive out?

    Show the answer

    Correct answerB. Send it as an attachment to a tester-controlled external address

    AWhy not this: Text storage sites are reached over web traffic, which is blocked here.

    BWhy this is right: Mail is the permitted path, and 5 MB fits typical attachment limits.

    CWhy not this: An alternate data stream only hides data on the host; it does not move it off the network.

    DWhy not this: Cloud storage sync also needs outbound web access, which is blocked.

    A compromised mailbox can send external mail, so an attachment small enough for mail limits reaches a tester-controlled address without using the blocked web path. Text storage sites and cloud storage depend on web traffic, which is blocked.

    Open this question
  27. Question 27

    Post-exploitation and Lateral Movement

    A tester finds a copy of a server's virtual disk file on a backup share. Which action lets the tester browse its files without booting the VM?

    Show the answer

    Correct answerD. Mount it as a local drive on the tester's system

    AWhy not this: A disk image is not a compressed archive, so archive extraction does not expose its file system.

    BWhy not this: Syncing to the cloud only relocates the image file; its contents remain unread.

    CWhy not this: Alternate data streams are NTFS attachments to files and are not a way to read a disk image's contents.

    DWhy this is right: Mounting exposes the image's file system as a drive, so files can be browsed and copied without booting the VM.

    Mounting presents the virtual disk's file system as a local drive, so its files can be browsed and copied directly. A compression tool cannot parse a disk image's file system, and syncing it to the cloud only moves the file without exposing its contents.

    Open this question
  28. Question 28

    Post-exploitation and Lateral Movement

    A tester hid 5 MB in a named stream of a 2 KB log file on an NTFS server. The standard directory listing shows the file unchanged at 2 KB. What would let a defender find the hidden data?

    Show the answer

    Correct answerC. List the file's streams with a stream-enumerating directory option or tool

    AWhy not this: A hash covers only the default stream, which is unchanged, so it matches the baseline and hides the extra data.

    BWhy not this: The hidden attribute only hides a file from normal views; it has nothing to do with named streams.

    CWhy this is right: Enumerating streams lists every named stream and its size, exposing data that the default listing omits.

    DWhy not this: A standard listing shows timestamps and the default stream size; neither reveals a named stream.

    Named streams are separate data attached to the file and are not shown by default, so a defender must enumerate streams explicitly. A hash of the primary stream is unchanged, and the hidden attribute is an unrelated file flag.

    Open this question
  29. Question 29

    Post-exploitation and Lateral Movement

    In an authorized test, a tester must move 4 KB of harvested hashes through a paste site the proxy allows. The rules of engagement forbid exposing client data publicly, and DLP flags clear-text hash patterns. What is the BEST approach?

    Show the answer

    Correct answerD. Encrypt the text, post it as a private paste with an expiry, then retrieve and delete it

    AWhy not this: Paste sites accept text rather than file uploads, and compression alone does not hide content from inspection.

    BWhy not this: Base64 is reversible encoding, not protection, and a public paste exposes client data to anyone.

    CWhy not this: Clear text still matches DLP hash patterns, and an unlisted paste stays reachable by anyone with the link.

    DWhy this is right: Encryption hides hash patterns from DLP, and a private, expiring, deleted paste limits exposure as the rules require.

    Encryption defeats DLP pattern matching, and a private, expiring, deleted paste keeps client data from public exposure. Base64 is only encoding and a public paste breaks the rules of engagement, while clear text in an unlisted paste still trips DLP.

    Open this question
  30. Question 30

    Post-exploitation and Lateral Movement

    A client's proxy allows HTTPS only to the cloud provider's storage domain that staff use daily. In an authorized test, which channel is MOST likely to carry a staged archive out unblocked?

    Show the answer

    Correct answerA. Upload the archive to a tester-owned bucket on that provider

    AWhy this is right: The storage service is an allowed HTTPS destination, so the upload looks like routine staff traffic to a permitted domain.

    BWhy not this: A paste site is a separate domain outside the allowlist, so the proxy would block it.

    CWhy not this: Mounting a virtual drive only exposes data locally; it moves nothing off the host.

    DWhy not this: Email depends on an outbound mail path, which the proxy setup does not permit; only the storage domain is allowed.

    Uploading to a tester-owned bucket on the allowed provider sends the data over HTTPS to a domain the proxy already permits, so it blends with normal traffic. Email needs a mail path the proxy does not allow, and a paste site is a different, unlisted domain.

    Open this question
  31. Question 31

    Post-exploitation and Lateral Movement

    In an authorized cloud test, the tester can edit the resource policy on a client storage bucket holding staged data. The tester's own account is separate, and no new identities may be created in the client's account. Which action gives the tester access?

    Show the answer

    Correct answerC. Add a policy statement granting the tester's account ID read access to the bucket

    AWhy not this: Public access is not tied to the tester's account and exposes the staged data to anyone on the internet.

    BWhy not this: This creates a new identity in the client's account, which the scenario forbids.

    CWhy this is right: A resource policy naming an external account ID grants cross-account access without creating identities in the client account.

    DWhy not this: Mounting uses the host's existing credentials and the client's environment, so it is not a cross-account grant.

    A resource-based policy naming the tester's external account grants cross-account access, so the tester's own identities can read the data without any new user in the client's account. Making the bucket public exposes the data to everyone and is not scoped to one account.

    Open this question
  32. Question 32

    Post-exploitation and Lateral Movement

    A tester must move 3 GB of logs out in uploads capped at 200 MB each. A DLP tool inspects content, and defenders review archive file listings for sensitive file names. Which preparation meets all three constraints?

    Show the answer

    Correct answerA. Compress into a split archive that encrypts contents and file names

    AWhy this is right: Compression and splitting meet the size cap, and header encryption hides both contents and file names.

    BWhy not this: Encrypted data barely compresses, so size shrinks little, and the archive listing still exposes file names.

    CWhy not this: Base64 is an encoding, not encryption, and it enlarges the data, so DLP can still decode the content.

    DWhy not this: Contents are protected, but the readable listing still reveals sensitive file names to defenders.

    Compressing first shrinks the data, splitting meets the per-upload cap, and encrypting both contents and headers hides the data and the file names. Encrypting contents only leaves the file listing readable, which defenders and DLP can still flag.

    Open this question
  33. Question 33

    Post-exploitation and Lateral Movement

    A tester evaluates email as a staging and exfiltration path in an authorized engagement. Which four statements about email in this role are accurate? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Server attachment size limits can force the tester to compress or split staged dataC. Mail transport logs record sender, recipient and message size for defenders to reviewD. A compromised internal mailbox sends data that looks like ordinary business mailF. Mail gateway DLP rules can inspect attachments, so data is often encrypted first

    AWhy this is right: Mail servers cap attachment size, so larger staged data must be compressed or split into several messages.

    BWhy not this: TLS protects mail between servers, but the organization's own gateway still sees the decrypted message.

    CWhy this is right: Transport and message tracking logs keep message metadata, which gives defenders evidence of the transfer.

    DWhy this is right: Mail from a legitimate internal account appears as normal business traffic and is less likely to be flagged.

    EWhy not this: Sent-item deletion changes only the mailbox copy; server-side transport logs still keep the message record.

    FWhy this is right: Gateways scan attachments for sensitive patterns, so encrypting the data first avoids content matches.

    Email is limited by attachment size, can blend in when sent from a trusted internal mailbox, is inspected by gateway DLP, and is recorded in transport logs. Deleting sent items only affects the user's mailbox, not the server-side logs. TLS is hop by hop, so the organization's own gateway still sees the content.

    Open this question
  34. Question 34

    Post-exploitation and Lateral Movement

    A client's proxy lets staff use the company's cloud storage tenant. A tester's upload of staged data to a personal account on the same provider succeeds. Which control would have blocked it while keeping corporate use working?

    Show the answer

    Correct answerD. Tenant restrictions enforced at the proxy

    AWhy not this: Cross-account policies control access to the client's buckets, not uploads out to an external account.

    BWhy not this: Text storage sites are a different channel and are not the one used here.

    CWhy not this: Mail limits govern attachments, not web uploads to a storage provider.

    DWhy this is right: The proxy allows only the corporate tenant, so personal-account uploads are denied.

    Tenant restrictions let the proxy permit only the corporate tenant on the provider's storage domain, so uploads to personal accounts fail. Removing cross-account bucket access only governs who can reach the client's own buckets, not uploads to an outside account.

    Open this question
  35. Question 35

    Post-exploitation and Lateral Movement

    A tester stores staged data in a named stream of a monitored configuration file on an NTFS server. The integrity monitor, which hashes file contents through a standard read, reports no change. What explains this?

    Show the answer

    Correct answerA. The hash read opens only the default unnamed stream, so the named stream is excluded.

    AWhy this is right: A normal file read and hash cover only the default stream, so named streams add nothing to the hash.

    BWhy not this: The data is in a stream of the file itself, not in a separate mounted virtual disk.

    CWhy not this: Nothing in the stem says the file is encrypted, and the hash is unchanged only because the stream is excluded.

    DWhy not this: NTFS compression does not merge a named stream into the default stream's content or hash.

    A standard read opens the unnamed default data stream, so a hash of it ignores any named stream attached to the same file. Virtual drive mounting would put data in a separate volume, but here the data is still inside the monitored file's own streams.

    Open this question
  36. Question 36

    Post-exploitation and Lateral Movement

    In an authorized test, 30 KB of client data must leave via a text storage site where anyone with the URL can read a post. DLP inspects clear text, and the rules of engagement forbid leaving client data exposed. Which approach fits?

    Show the answer

    Correct answerB. Encrypt, text-encode, post unlisted, delete after retrieval

    AWhy not this: Base64 is trivially reversible, so DLP and any reader can recover the clear text.

    BWhy this is right: Encryption protects the content, text encoding fits the site, and deletion removes the exposure.

    CWhy not this: Compression is not encryption, so the content stays recoverable by anyone who reads the post.

    DWhy not this: Leaving the post online keeps client data exposed, which the rules of engagement forbid.

    Encrypting first defeats clear-text DLP and protects the data from anyone who finds the URL. Text encoding makes it postable, and deleting the post after retrieval meets the no-exposure rule. Base64 is reversible encoding, not protection.

    Open this question
  37. Question 37

    Post-exploitation and Lateral Movement

    A tester uses virtual drive mounting while staging data in an authorized test. Which three statements about it are accurate? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. One image file can hold many staged files, so one file moves out instead of many.C. Volume encryption on the image keeps contents unreadable once the file is copied off the host.E. Mounting an image read-only lets a tester inspect it without altering the original.

    AWhy this is right: The image is a single container file, which simplifies moving many files out.

    BWhy not this: A mounted image appears as an ordinary drive or mount point, and mount events can be logged.

    CWhy this is right: Encrypting the volume inside the image protects the data even after the file leaves the host.

    DWhy not this: Mounting only presents the disk as a drive; it adds no encryption or compression.

    EWhy this is right: A read-only mount exposes the contents for inspection while preserving the original file.

    A virtual disk bundles many files into one portable file, can carry volume encryption, and can be mounted read-only to leave the source unchanged. Mounting itself applies no encryption or compression; those must be configured separately. A mounted image also shows up as an ordinary drive and is not hidden from the host.

    Open this question
  38. Question 38

    Post-exploitation and Lateral Movement

    In an authorized test, 4 GB of text documents must leave through a 1 GB cap. Responders may recover the staged file from the host, and only the tester may be able to read it. Which preparation meets all of this?

    Show the answer

    Correct answerC. Compress, then encrypt with the tester's public key, keeping the private key offsite

    AWhy not this: The key sits next to the archive, so anyone who recovers the staged file also recovers the means to decrypt it.

    BWhy not this: Ciphertext is high-entropy and barely compresses, so the 4 GB would not fit the 1 GB cap, even though the offsite key keeps it unreadable.

    CWhy this is right: Compression shrinks the text first, and only the offsite private key can decrypt, so a recovered file stays unreadable.

    DWhy not this: A key derived from host details can be rebuilt by responders, so it does not restrict reading to the tester.

    Compressing first keeps the data under the cap, and encrypting with the tester's public key means the host never holds anything that can decrypt it. A symmetric key left on or derived from the host can be recovered by responders.

    Open this question
  39. Question 39

    Post-exploitation and Lateral Movement

    A tester holds a compromised identity in a client's development cloud account. A role in the production account has a trust policy naming the development account and can read the production storage. What should the tester do to reach the data?

    Show the answer

    Correct answerC. Assume the production role from the development identity

    AWhy not this: The identity has no permissions in the production account, so its own keys are refused there.

    BWhy not this: Copying to a personal account is a separate exfiltration step and does not use the trust relationship that grants access.

    CWhy this is right: The trust policy permits this, and the role's temporary credentials grant read access to production storage.

    DWhy not this: Group membership is local to one account; an identity from another account cannot simply be added to it.

    The trust policy lets principals in the development account assume the production role, which returns temporary credentials with the role's read permissions. The development identity's own keys carry no rights in the production account.

    Open this question
  40. Question 40

    Post-exploitation and Lateral Movement

    In an authorized test, staged client data is uploaded to a bucket the tester controls and must stay unreadable to everyone else until retrieved. Which setting meets this?

    Show the answer

    Correct answerA. Block public access and limit the bucket to the tester's identity

    AWhy this is right: Access is denied to everyone except the tester's identity, so only the tester can read the staged data.

    BWhy not this: A random name is obscurity, not control; public-read still lets anyone who learns the name read the data.

    CWhy not this: An open, non-expiring link gives access to anyone holding it, which exposes the client's data.

    DWhy not this: Any authenticated provider user includes countless unrelated accounts, so the data is effectively exposed.

    Blocking public access and granting only the tester's identity keeps the objects private regardless of whether the name is guessed. An obscure name or an open link is not access control, and any authenticated provider user can still be anyone.

    Open this question
  41. Question 41

    Post-exploitation and Lateral Movement

    A client asks how defenders could detect or limit a tester using email to exfiltrate staged data during an authorized test. Which four controls apply? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Size limits on outbound attachmentsB. DLP rules that inspect outbound message bodies and attachmentsD. Alerts on mail sent to personal webmail or unfamiliar external domainsF. Blocking direct outbound SMTP from workstations so mail must use the gateway

    AWhy this is right: Attachment size limits stop large staged archives from leaving in a single message.

    BWhy this is right: Content inspection of messages and attachments can flag staged client data leaving by mail.

    CWhy not this: DNSSEC protects DNS records from spoofing; it does not inspect or restrict outbound mail.

    DWhy this is right: Mail to personal webmail or unusual external domains is a common sign of exfiltration, so alerting on it helps.

    EWhy not this: This finds data hidden in NTFS streams on a server; it does nothing to see or restrict outbound mail.

    FWhy this is right: Forcing mail through the gateway means every outbound message can be logged, inspected and blocked.

    Email exfiltration passes through the mail path, so content inspection, size limits, recipient-domain alerting and forcing mail through a gateway all detect or restrict it. Auditing alternate data streams addresses data hidden in NTFS files, not mail traffic. DNSSEC protects DNS records and does not touch mail.

    Open this question
  42. Question 42

    Post-exploitation and Lateral Movement

    Proxy logs show a workstation sending an HTTPS POST of near-identical size to the same rarely seen domain every 60 seconds, around the clock. What does this pattern MOST likely indicate?

    Show the answer

    Correct answerA. A covert channel carried over HTTPS

    AWhy this is right: Fixed-interval, same-size POSTs to a rare domain are classic beaconing hidden inside permitted HTTPS web traffic.

    BWhy not this: Steganography hides data inside file content and has no fixed-interval callback pattern.

    CWhy not this: DNS tunneling shows up as unusual query names in resolver logs, not as POST requests in proxy logs.

    DWhy not this: ICMP tunneling uses echo packets, which a web proxy would never log as HTTPS requests.

    Regular, same-size POSTs to one uncommon web domain are typical of beaconing over HTTPS, where a covert channel hides in permitted web traffic. DNS tunneling would appear in resolver logs as long encoded subdomains, not as proxy-logged web POSTs.

    Open this question
  43. Question 43

    Post-exploitation and Lateral Movement

    A tester exfiltrates staged data to an external web server in HTTPS POST requests, and the client's defenders want to read the uploaded content. Which control would let them do that?

    Show the answer

    Correct answerB. TLS inspection at a forward proxy

    AWhy not this: ICMP limits apply to ping traffic and have no effect on an HTTPS upload over TCP.

    BWhy this is right: The proxy decrypts and re-encrypts the session, so it can read the request body of the HTTPS upload.

    CWhy not this: DNS logs show only which names were looked up, not the content sent over the later HTTPS session.

    DWhy not this: NetFlow shows source, destination and volume, but not the encrypted payload.

    A forward proxy that performs TLS inspection terminates and re-establishes the HTTPS session, so it can read the POST body that would otherwise stay encrypted. NetFlow only records endpoints and volume, so it cannot reveal what was uploaded.

    Open this question
  44. Question 44

    Post-exploitation and Lateral Movement

    During an authorized test, an implant sends staged data to the tester's web server as randomly timed POST requests protected by a valid certificate. Which covert channel is this?

    Show the answer

    Correct answerD. HTTPS

    AWhy not this: DNS tunneling encodes data in query labels sent to a resolver, not in POST requests to a web server.

    BWhy not this: Steganography hides data inside a carrier file and is not a network protocol that sends POST requests.

    CWhy not this: ICMP tunneling puts data in echo payloads and uses no web server, POST requests or certificate.

    DWhy this is right: Data in HTTP POST bodies over a certificate-protected session is HTTPS, which blends with normal web browsing.

    POST requests to a web server over a certificate-protected session are HTTPS. The data rides in request bodies and blends with ordinary web traffic. DNS tunneling would instead put data in query names sent to a resolver, so it is the tempting but wrong choice.

    Open this question