Courseiva

EC-Council Certified Penetration Testing Professional (CPENT) (CPENT) (CPENT) — Questions 151225

276 questions total · 4pages · All types, answers revealed

Page 2

Page 3 of 4

Page 4
151
MCQmedium

During a Red Team assessment against an enterprise network, an operator wants to execute a Silver Ticket attack against a specific service (e.g., CIFS) on a target server. What is a key operational advantage of a Silver Ticket compared to a Golden Ticket?

A.It can only be detected by physically inspecting the NTDS.dit file on the Domain Controller
B.It does not require interaction with the Domain Controller to generate and does not alert the KDC for a TGT request
C.It grants full Domain Administrator privileges across all domain controllers
D.It automatically updates the KRBTGT password to maintain persistence
AnswerB

Silver tickets forge a Service Ticket (TGS) directly using the target service account's NTLM hash, bypassing the KDC TGT issuance phase.

Why this answer

A Silver Ticket is forged for a specific service using the NTLM hash of that specific service account (or computer account), meaning it does not require interaction with the Domain Controller's KDC for creation, and it does not generate a TGT request that might alert domain-level monitoring.

152
MCQmedium

An operator has compromised an Active Directory domain and wants to extract domain user password hashes without directly dumping LSASS memory on the Domain Controller. Which technique allows this from a machine with Domain Admin privileges?

A.Kerberoasting against computer accounts.
B.Performing an AS-REP Roasting attack on users with Kerberos pre-authentication disabled.
C.Running Responder on the local subnet to capture NTLMv2 hashes.
D.Executing a DCSync attack using tools like Mimikatz to request replication data from a Domain Controller.
AnswerD

DCSync abuses the DRS protocol to replicate domain object data, including password hashes, without running code on the DC.

Why this answer

DCSync is an attack technique that abuses the Directory Replication Service (DRS) remote protocol to simulate a domain controller and request password data (hashes) for user accounts from another domain controller.

153
MCQeasy

An administrator needs to secure communication between microservices running across different AWS Virtual Private Clouds (VPCs). Which native AWS networking feature provides private connectivity without exposing traffic to the public internet?

A.Amazon CloudFront origin access control (OAC).
B.AWS VPC Endpoints powered by AWS PrivateLink.
C.AWS Web Application Firewall (WAF) rule groups.
D.AWS Identity and Access Management resource-based policies.
AnswerB

PrivateLink enables secure, private cross-VPC communication.

Why this answer

AWS VPC Endpoints (powered by AWS PrivateLink) allow private connections between VPCs and AWS services or other VPCs without internet gateways.

154
MCQeasy

During an internal network scan, a pentester identifies an open port 445 on a Windows machine and wants to check if it is vulnerable to MS17-010 (EternalBlue) without crashing the service. Which Nmap Scripting Engine (NSE) script should be executed?

A.smb-brute
B.smb-enum-shares
C.smb-vuln-ms17-010
D.smb-os-discovery
AnswerC

This script checks whether a target is vulnerable to the MS17-010 vulnerability.

Why this answer

smb-vuln-ms17-010 is the specific NSE script designed to safely check for the EternalBlue vulnerability.

155
MCQhard

An attacker has retrieved the KRBTGT account hash and wants to forge a Golden Ticket. Which tool from the Impacket suite is specifically designed to perform this forgery offline and inject the ticket?

A.getTGT.py
B.goldenPac.py
C.ticketer.py
D.raiseChild.py
AnswerC

ticketer.py creates valid Golden or Silver Kerberos tickets given the KRBTGT or service NTLM hash.

Why this answer

ticketer.py from the Impacket framework allows operators to forge custom Kerberos Golden and Silver tickets offline given the correct secret keys.

156
MCQeasy

An external penetration tester is performing reconnaissance against a corporate network and needs to identify live hosts while minimizing direct connection alerts on traditional port scanners. Which Nmap command-line argument should be used to execute an ICMP Echo Request ping sweep without performing port scanning on the discovered live hosts?

A.-sS
B.-sn
C.-Pn
D.-sO
AnswerB

The -sn flag instructs Nmap to perform a ping sweep for host discovery and immediately stop without conducting any port scans.

Why this answer

The -sn parameter tells Nmap to perform host discovery only (formerly known as a ping scan using -sP) and disables port scanning entirely.

157
MCQeasy

During an internal network assessment, you need to identify NetBIOS information such as registered computer names and logged-in usernames on legacy Windows hosts. Which tool performs a NetBIOS name query scan across an IP range?

A.Tcpdump
B.Nbtscan
C.Hydra
D.Sqlmap
AnswerB

Nbtscan is specifically built for querying NetBIOS name services across a network range.

Why this answer

Nbtscan is a program that scans IP networks for NetBIOS name information.

158
MCQmedium

An operator has compromised a Linux server and wants to establish persistence via a Cron job that runs every 5 minutes as the root user. Where should the persistence mechanism be placed to ensure execution without modifying /etc/crontab directly?

A.~/.bashrc of the current low-privileged user.
B./etc/init.d/rc.local execution hook.
C./etc/cron.d/custom_persistence with the format '* * * * * root /bin/nc ...'
D./var/www/html/backdoor.php
AnswerC

Files placed in /etc/cron.d require specifying the username (e.g., root) and execute on the specified schedule.

Why this answer

Placing a script in /etc/cron.d/ or directly in the root user's crontab via crontab -e (stored in /var/spool/cron/crontabs/root) achieves persistence. Alternatively, /etc/cron.5mins/ if configured, but /etc/cron.d/ is standard.

159
MCQeasy

An attacker is scanning a network and needs to determine which operating system is running on a target host by analyzing its TCP/IP stack response behaviors. What feature does Nmap provide for this?

A.-A
B.-O
C.-sV
D.--traceroute
AnswerB

-O enables remote operating system detection via TCP/IP fingerprinting.

Why this answer

Nmap provides OS fingerprinting using the -O flag, which sends a series of TCP and UDP packets to the target and compares the responses to a database of known OS signatures.

160
Multi-Selecteasy

A penetration tester is evaluating an internal network and needs to identify live Windows hosts that have Server Message Block (SMB) services running. Which TWO Nmap Scripting Engine (NSE) scripts can be used to gather SMB version and OS details safely? (Choose TWO)

Select 2 answers
A.smb-brute
B.smb-vuln-ms08-067
C.smb-enum-users
D.smb-os-discovery
E.smb-protocols
AnswersD, E

This script discovers the operating system, computer name, and domain via SMB.

Why this answer

smb-os-discovery and smb-protocols (or smb-enum-shares) gather SMB and OS details. Specifically, smb-os-discovery and smb-security-mode or smb-protocols are standard discovery scripts.

161
MCQhard

An operator is performing data exfiltration from a highly secure network environment where all outbound TCP and UDP ports except 53 are blocked by a strict egress firewall. Furthermore, DNS queries are monitored and restricted to the internal corporate DNS servers. Which advanced exfiltration technique can the operator use to bypass this restriction?

A.Use standard FTP data channels over ephemeral ports to push archives to an external staging server
B.Tunnel data through DNS queries using TXT records sent to a domain controlled by the attacker
C.Establish an ICMP reverse shell by embedding data inside the payload of ICMP echo request packets
D.Establish an HTTPS connection to an external IP address using port 443
AnswerB

Correct because DNS port 53 is open and TXT records allow arbitrary string data to be exfiltrated via queries to an attacker-controlled nameserver.

Why this answer

DNS tunneling encapsulates arbitrary data within DNS query and response types (such as TXT, NULL, or CNAME records) sent to an authoritative nameserver controlled by the attacker, effectively bypassing egress filtering on port 53.

162
MCQhard

A pentester wants to execute a Shadow Credentials attack (Key Credential Link abuse) against a high-value user account in Active Directory. What permission on the target user object is required to successfully perform this attack?

A.ReadLAPSPassword extended right
B.WriteProperty, GenericAll, or GenericWrite over the msDS-KeyCredentialLink attribute / target object
C.DS-Replication-Get-Changes-All domain right
D.SeEnableDelegationPrivilege on the domain controller
AnswerB

Writing to msDS-KeyCredentialLink requires write permissions over the target object to add a rogue public key.

Why this answer

Shadow credentials involve writing to the msDS-KeyCredentialLink attribute of an Active Directory object. Therefore, the attacker must have WriteProperty, GenericAll, or GenericWrite privileges over the target object.

163
MCQeasy

An AWS penetration tester uncovers an IAM policy attached to a user that contains the action 'iam:PutUserPolicy' with a resource of '*'. What privilege escalation vector does this enable?

A.The user can modify the AWS billing dashboard and delete all EC2 instances.
B.The user can decrypt all KMS keys in the AWS region.
C.The user can delete the AWS account root user credentials.
D.The user can attach an inline policy to their own IAM user granting full administrative access (AdministratorAccess).
AnswerD

iam:PutUserPolicy allows adding inline policies to users, enabling self-escalation.

Why this answer

An IAM user with iam:PutUserPolicy can attach an inline policy to their own user account or another user, granting themselves full administrative permissions.

164
MCQmedium

You have successfully compromised a Linux server and need to exfiltrate data. The network perimeter firewall blocks all outbound traffic except over port 443. Which tool would you use to create an encrypted tunnel for data exfiltration?

A.ftp to a remote server.
B.Chisel to establish a tunnel over HTTP.
C.scp using a custom port.
D.netcat with a simple pipe.
AnswerB

Chisel encapsulates traffic within HTTP/S requests, bypassing most restrictive firewalls.

Why this answer

Chisel is a fast TCP/UDP tunnel over HTTP that is ideal for bypassing firewalls by masquerading traffic as web requests.

165
MCQhard

A penetration tester is evaluating a Kubernetes cluster utilizing Role-Based Access Control (RBAC) and notes that a custom role has the create verb on pods/exec resources. What security risk does this specific permission entail?

A.The user can extract the master node's etcd database encryption keys.
B.The user can modify the cluster's underlying cloud provider IAM policies.
C.A user with this permission can execute arbitrary commands inside any running pod in the cluster, leading to potential node or cluster compromise.
D.The user can bypass network policies by altering iptables rules on the host node.
AnswerC

pods/exec permission provides interactive shell access to containers.

Why this answer

The pods/exec permission allows a user to execute commands inside running pods, effectively granting arbitrary code execution in any pod where they can target execution.

166
MCQmedium

During an assessment of a Google Cloud Platform project, a penetration tester finds that a Cloud Storage bucket has the allUsers principal granted the Storage Object Viewer role. What security flaw does this represent, and how should it be fixed?

A.The bucket is vulnerable to GCP IAM privilege escalation via service account impersonation.
B.Google Cloud Armor automatically deletes the bucket objects.
C.The bucket is public; the allUsers or allAuthenticatedUsers IAM binding must be removed to secure the data.
D.Compute Engine instances can no longer mount the bucket as a persistent disk.
AnswerC

allUsers binding grants public access to Cloud Storage buckets.

Why this answer

Granting allUsers IAM role bindings on a Cloud Storage bucket makes its objects publicly readable over the internet. Remediation requires removing the allUsers binding.

167
MCQmedium

You are performing a Linux privilege escalation assessment and identify a binary with the SUID bit set that executes system commands using relative paths. How do you exploit this?

A.Create a malicious script named after the command and prepend its directory to the PATH.
B.Modify /etc/ld.so.preload to inject a malicious library.
C.Exploit a buffer overflow in the binary using a NOP sled.
D.Use the --inject flag on the binary to force command execution.
E.null
AnswerA

By changing the PATH, the binary executes your malicious script with the privileges of the owner.

Why this answer

If a SUID binary calls a command without an absolute path, you can modify the PATH environment variable to point to a malicious version of that command.

168
MCQeasy

An Azure penetration tester identifies a Virtual Machine with public IP access that has an incoming Network Security Group (NSG) rule allowing TCP port 3389 (RDP) from any source ('Any' or 'Internet'). What is the recommended remediation?

A.Restrict the NSG rule source IP to trusted administrative networks or implement Azure Bastion for secure management.
B.Disable the Azure Key Vault service across the subscription.
C.Enable Azure Active Directory Pass-Through Authentication on the VM guest OS.
D.Attach an AWS IAM instance profile to the Azure Virtual Machine.
AnswerA

Restricting RDP source IPs or using Azure Bastion mitigates brute-force attacks.

Why this answer

Exposing RDP directly to the internet is a high risk; remediation involves restricting the source IP range or using Azure Bastion.

169
MCQeasy

A penetration tester has compromised a Linux server and wants to verify if the kernel is vulnerable to a known local privilege escalation exploit (such as Dirty COW). Which command should the tester run to check the exact Linux kernel version?

A.uname -r
B.whoami
C.env
D.cat /etc/issue
AnswerA

Correct because uname -r outputs the kernel release version needed for vulnerability matching.

Why this answer

The command uname -r displays the specific kernel release version, which is critical for identifying applicable kernel-level vulnerabilities.

170
Multi-Selectmedium

An operator has compromised a Windows domain and wants to maintain persistence via Active Directory mechanisms. Which TWO techniques represent valid AD-based persistence methods? Choose two.

Select 2 answers
A.Disabling Windows Defender real-time monitoring via PowerShell.
B.Adding a controlled user account to the Domain Admins or Enterprise Admins group.
C.Configuring a local Windows scheduled task to run netsh.
D.Flushing the local ARP cache on the workstation.
E.Injecting a malicious SID into the sIDHistory attribute of a controlled user account.
AnswersB, E

Adding a user to high-privileged groups ensures persistent administrative access to the domain.

Why this answer

SID History injection and adding members to privileged groups (like Administrators or Domain Admins) are common AD persistence methods.

171
MCQeasy

An auditor identifies that an organization's Azure storage account allows anonymous public read access to containers and blobs. What configuration change must be applied to remediate this finding?

A.Rotate the primary storage account access key every 24 hours.
B.Enable Azure Defender for Storage and configure automatic threat remediation.
C.Set the 'Allow Blob public access' property to Disabled on the storage account.
D.Apply an Azure Firewall rule blocking port 443 inbound to the storage account.
AnswerC

Disabling public blob access prevents anonymous container and blob reading.

Why this answer

Disabling public blob access on the storage account blocks anonymous requests globally.

172
MCQmedium

During a lateral movement phase, a penetration tester needs to move from a compromised Windows workstation to a domain controller. Traditional SMB-based lateral movement using PsExec is blocked by host-based firewalls, but WinRM (Windows Remote Management) port 5985 is open. Which built-in command-line utility should the tester use to establish an interactive remote session?

A.rpcclient -U Administrator TargetServer
B.nbtstat -A TargetServer -winrm
C.mstv -target:TargetServer -port:5985
D.winrs -r:TargetServer -u:Administrator -p:Password cmd.exe
AnswerD

Correct because winrs is a native Windows command-line tool that leverages WinRM to execute commands remotely.

Why this answer

WinRM uses port 5985 for HTTP (and 5986 for HTTPS). The native Windows tool designed to interact with remote systems via WinRM is Winrs (Windows Remote Shell) or PowerShell Remoting (Enter-PSSession).

173
Multi-Selectmedium

Which TWO Active Directory mechanisms or configurations are commonly targeted during lateral movement to bypass traditional perimeter security and leverage built-in domain trust relationships?

Select 2 answers
A.Local Administrator Password Solution (LAPS)
B.Kerberos Constrained and Unconstrained Delegation
C.NTLMv2 hash signing enforcement
D.Account lockout threshold policies
E.External and Forest Trust relationships (with or without SID filtering)
AnswersB, E

Delegation allows impersonating users to access downstream services across systems.

Why this answer

Cross-trust attacks and Kerberos delegation abuse are primary vectors for lateral movement across complex enterprise environments without triggering host firewalls.

174
MCQmedium

You are auditing a perimeter network protected by an Intrusion Detection System (IDS). To bypass signature-based detection mechanisms that look for standard Nmap packet patterns, you decide to fragment outgoing TCP packets into tiny 8-byte blocks. Which Nmap argument accomplishes this packet fragmentation?

A.--mtu
B.--data-length
C.-D
D.-f
AnswerD

The -f option fragments the packet into tiny IP fragments, making it difficult for basic packet inspection and stateless IDSs to reassemble or analyze the payload signature.

Why this answer

The -f option causes Nmap to split the IP packets into tiny fragments. Specifying it twice (-ff) sends 16-byte fragments instead of 8-byte fragments.

175
Multi-Selecteasy

An auditor reviews network security configurations in an AWS VPC. Which TWO of the following network configurations represent potential security risks? (Choose TWO)

Select 2 answers
A.A security group allowing inbound TCP port 3389 (RDP) from 0.0.0.0/0.
B.Enabling AWS Shield Advanced for DDoS protection on Application Load Balancers.
C.Using AWS PrivateLink to connect securely to VPC endpoint services.
D.A security group allowing inbound TCP port 22 (SSH) from 0.0.0.0/0.
E.A VPC Flow Log enabled and streaming traffic data to an encrypted S3 bucket.
AnswersA, D

Open RDP access from the internet allows credential stuffing and brute-forcing.

Why this answer

Exposing management ports like SSH (22) and RDP (3389) to 0.0.0.0/0 is a critical security risk.

176
Multi-Selecthard

An elite penetration tester is conducting network reconnaissance behind a restrictive stateful firewall that drops anomalous TCP flag combinations. Which THREE Nmap scan types are most likely to fail or receive unreliable results because they rely on non-standard TCP flag combinations? (Choose THREE)

Select 3 answers
A.TCP SYN scan (-sS)
B.Null scan (-sN)
C.FIN scan (-sF)
D.Xmas scan (-sX)
E.TCP Connect scan (-sT)
AnswersB, C, D

Null scans send packets with no flags set, easily detected and dropped by stateful firewalls.

Why this answer

Xmas scan (-sX), FIN scan (-sF), and Null scan (-sN) rely on non-standard or empty TCP flag combinations that modern stateful firewalls drop automatically.

177
MCQhard

A penetration tester is analyzing a Kubernetes cluster where a pod has the hostPath volume configured to mount the host's /var/run/docker.sock file. The container runs a standard Linux distribution without tools installed. How can the tester leverage this configuration to achieve a full cluster takeover?

A.Execute a container breakout by exploiting CVE-2019-5736 against the containerd runtime socket.
B.Extract the kube-apiserver TLS private key from the Docker daemon cache.
C.Use the Docker CLI or API via the mounted socket to spin up a new container with the host root filesystem mounted at /mnt, then chroot into /mnt.
D.Send crafted HTTP requests to the Kubernetes API server using the Docker socket as a proxy.
AnswerC

Docker socket access provides full control over the host Docker daemon, allowing container escapes.

Why this answer

Mounting the Docker socket inside a container allows the container to interact with the host Docker daemon, enabling the creation of new containers with arbitrary host paths mounted.

178
Multi-Selecthard

Which THREE methods or attack primitives can be used to achieve domain escalation when an attacker has compromised an account with 'GenericAll' permissions over a Group Policy Object (GPO)?

Select 3 answers
A.Adding a startup script or service configuration within the GPO file share path in SYSVOL
B.Creating restricted local user accounts or modifying local administrator groups across target OUs via GPO settings
C.Modifying the KRBTGT account password directly through Group Policy settings
D.Injecting immediate scheduled tasks into the GPO via Group Policy Preferences (GPP)
E.Directly modifying the NTDS.dit database via unauthenticated LDAP write operations
AnswersA, B, D

GPO control permits writing computer startup or user logon scripts to SYSVOL.

Why this answer

GPO abuse with GenericAll permissions allows modifying startup/shutdown scripts, injecting immediate tasks via Group Policy Preferences, or modifying registry.xml files containing credentials.

179
Multi-Selecteasy

A tester has achieved code execution on a Windows server and needs to clean up event logs or check log activity to evade detection during post-exploitation. Which TWO built-in tools or commands can be used to manage or clear Windows Event Logs? Choose two.

Select 2 answers
A.wevtutil cl <LogName>
B.netsh advfirewall reset
C.taskkill /f /im lsass.exe
D.ipconfig /flushdns
E.Clear-EventLog -LogName <LogName>
AnswersA, E

wevtutil clear-log (cl) clears the specified event log.

Why this answer

wevtutil and PowerShell's Remove-EventLog or Clear-EventLog are standard utilities for managing Windows event logs.

180
Multi-Selecthard

During a lateral movement assessment in an Active Directory environment, a penetration tester wants to verify if SMB signing is disabled on internal subnet hosts to assess vulnerability to NTLM relay attacks. Which TWO tools or methods can be used to identify systems with SMB signing disabled? Choose two.

Select 2 answers
A.tracert <target_ip>
B.ping -t <target_ip>
C.nmap --script smb2-security-mode -p 445 <target_ip>
D.nslookup -type=mx <domain>
E.CrackMapExec (or NetExec) smb <subnet>
AnswersC, E

The nmap smb2-security-mode script queries whether SMB signing is required or disabled.

Why this answer

CrackMapExec (or NetExec) and nmap with the smb2-security-mode script are standard tools used to check SMB signing status across targets.

181
MCQhard

A penetration tester is assessing an industrial MQTT broker that requires client authentication but lacks Access Control Lists (ACLs). The tester successfully connects using valid credentials. Which attack technique can the tester leverage to perform denial-of-service against sensitive actuator topics?

A.Executing an MQTT-specific TCP SYN flood against port 1883
B.Subscribing to the '$SYS/#' system topic hierarchy using wildcard expansion
C.Sending a CONNECT packet with an invalid keep-alive timer value of zero
D.Publishing retained messages with empty payloads to critical command topics
AnswerD

Retained messages are stored by the broker. Sending an empty payload as a retained message to a critical topic forces subscribers to instantly receive a null/cleared state, disrupting operational control.

Why this answer

In MQTT, if ACLs are missing, any authenticated client can publish to any topic. A malicious publisher can flood or retain empty messages on critical command topics to cause a denial-of-service.

182
MCQmedium

During a Windows post-exploitation assessment, you have compromised a local service account with 'SeImpersonatePrivilege'. Which tool and technique should you utilize to escalate to NT AUTHORITY\SYSTEM?

A.Use GPP-decrypt to extract credentials from cached XML files.
B.Use PrintSpoofer to trigger a pipe connection from the spooler service.
C.Run Invoke-TokenManipulation to steal a process token.
D.Execute reg add to modify the ImagePath of a system service.
AnswerB

PrintSpoofer leverages the SeImpersonatePrivilege to force the SYSTEM service to connect to a malicious pipe.

Why this answer

The PrintSpoofer or JuicyPotato exploit tools leverage SeImpersonatePrivilege to impersonate the SYSTEM account, allowing for code execution.

183
Multi-Selecthard

During an Active Directory security review, an assessor examines Kerberos delegation configurations. Which THREE delegation misconfigurations or vulnerabilities represent high-risk attack vectors if exploited? (Choose THREE)

Select 3 answers
A.Standard Kerberos pre-authentication enabled on all standard user accounts with strong passwords
B.Unconstrained Delegation on a computer account, allowing any user's TGT to be cached when they authenticate to the host
C.Resource-Based Constrained Delegation (RBCD) where a compromised machine account has write access to the msDS-AllowedToActOnBehalfOfOtherIdentity attribute of a higher-privileged target
D.Constrained Delegation with Protocol Transition (S4U2Self/S4U2Proxy) enabled on a service account without proper restrictions
E.Automatic workstation registration limits set to allow zero new domain-joined machines
AnswersB, C, D

Unconstrained delegation forces clients to send their TGTs to the spooler/service, allowing an attacker to capture and reuse them.

Why this answer

Kerberos delegation vulnerabilities include Unconstrained Delegation (allowing arbitrary service requests), Constrained Delegation with Protocol Transition (S4U2Self/S4U2Proxy abuse), and Resource-Based Constrained Delegation (RBCD).

184
Multi-Selecthard

Which THREE tactics or actions are effective in defending against or detecting Golden Ticket attacks in an enterprise Active Directory environment?

Select 3 answers
A.Enabling unconstrained delegation on all workstation computer objects
B.Enforcing Tiered Administration models to protect domain controller access
C.Disabling LDAP channel binding on all domain controllers
D.Monitoring Kerberos Ticket Granting Service (TGS) requests with abnormal lifetime values (Event ID 4769)
E.Performing a double-rotation of the KRBTGT account password
AnswersB, D, E

Tiered administration limits where credential material can be exposed, preventing attackers from acquiring KRBTGT hashes.

Why this answer

Golden Tickets rely on the KRBTGT secret key. Rotating the KRBTGT password twice invalidates existing golden tickets. Monitoring for abnormal ticket lifetimes (Event ID 4769/4768) and implementing Tiered Administration also help.

185
Multi-Selecteasy

When performing a network penetration test against an organization with strict perimeter defenses, which TWO Nmap scanning techniques can be utilized to map out firewall rules and filter states? (Choose TWO)

Select 3 answers
A.-sT
B.-sS
C.-sU
D.-sW
E.-sA
AnswersB, D, E

Wait, -sS is SYN scan. Let's check window scan. -sW is TCP Window scan. Let's make sure options match. Let's select -sA and -sW.

Why this answer

TCP ACK scan (-sA) and TCP Window scan (-sW) are specifically designed to map firewall rulesets and determine whether ports are filtered or unfiltered by examining TCP window sizes and RST responses.

186
Multi-Selecteasy

An auditor reviews an enterprise's hybrid cloud identity architecture. Which TWO of the following configurations represent insecure identity practices? (Choose TWO)

Select 2 answers
A.Disabling multi-factor authentication requirements for global administrator accounts during emergency maintenance windows.
B.Enforcing strong password complexity and expiration policies for all cloud user accounts.
C.Implementing Microsoft Entra ID Protection to detect compromised credentials and risky sign-ins.
D.Configuring service accounts with passwords that never expire and granting them interactive logon rights.
E.Utilizing Azure AD managed identities for Azure resources instead of hardcoded credentials.
AnswersA, D

Disabling MFA for admins creates an immediate high-risk entry point.

Why this answer

Disabling MFA for privileged accounts and using never-expiring passwords for service accounts are insecure.

187
MCQmedium

An operator has gained administrative access to a subordinate domain in a multi-domain Active Directory forest and wishes to escalate privileges to Enterprise Admin across the entire forest. What object or group must be compromised to achieve forest-wide control?

A.The Enterprise Admins group in the forest root domain
B.The Cert Publishers group on any workstation
C.The Domain Admins group of the subordinate domain
D.The Account Operators group in the builtin container
AnswerA

Compromising the Enterprise Admins group grants control over every domain in the forest.

Why this answer

Enterprise Admins is a forest-level group residing in the root domain that holds administrative control over all domains in the forest.

188
MCQmedium

A security consultant is performing a penetration test against a smart building HVAC system controlled by BACnet/IP. The consultant wants to discover BACnet devices and their supported object properties on the local subnet. Which utility or Python tool specifically designed for BACnet protocol assessment should the consultant use?

A.ettercap
B.bacpypes (using scripts like whois.py / iam.py)
C.sqlmap
D.msfvenom
AnswerB

bacpypes is an implementation of the BACnet protocol stack in Python, providing scripts to execute Who-Is broadcasts and discover devices.

Why this answer

The 'bacpypes' Python library and its associated command-line scripts are widely used by testers to interact with and enumerate BACnet devices.

189
MCQhard

A penetration tester is evaluating a hybrid Active Directory environment. They compromise an on-premises user account that has been synchronized to Azure AD. They discover that the on-premises account is a member of a high-privilege local group, but Azure AD Connect has filtered out this group synchronization. How can the tester leverage Azure AD Connect configuration weaknesses?

A.Use the Azure AD Connect database password stored in the local SQL Express instance to perform a DCShadow attack.
B.Force Azure AD Connect to disable multi-factor authentication for all cloud administrators.
C.Examine Azure AD Connect synchronization rules and connector filters for misconfigurations or export rules that might inadvertently expose directory objects or allow rule manipulation.
D.Inject a malicious DLL into the Azure AD Connect health agent service to execute arbitrary code on the Azure cloud domain controller.
AnswerC

AD Connect custom sync rules and filters can be audited for misconfigurations that impact hybrid security boundaries.

Why this answer

If Azure AD Connect synchronization rules or filtering configurations are misconfigured, attackers can sometimes modify object attributes or take advantage of synchronization sync cycles to escalate privileges.

190
Multi-Selecthard

An attacker has gained access to a compromised host and wants to establish persistence and covert command-and-control (C2) communication through corporate firewalls. Which THREE protocols or channels are commonly leveraged for outbound covert tunneling because they are rarely blocked by egress filters? (Choose THREE)

Select 3 answers
A.HTTPS (Port 443)
B.SMB (Port 445)
C.ICMP (Ping)
D.BGP (Port 179)
E.DNS (Port 53)
AnswersA, C, E

Outbound HTTPS traffic is required for web browsing and is rarely blocked, allowing encrypted C2 traffic to blend in.

Why this answer

DNS, HTTPS (port 443), and ICMP are frequently allowed outbound through corporate firewalls and are heavily used for tunneling.

191
MCQhard

A penetration tester is evaluating a Zigbee-based smart home lighting network. Using a Texas Instruments CC2531 USB dongle flashed with Sniffer firmware, the tester captures over-the-air packets. To decrypt the Zigbee application layer payload in Wireshark, what critical piece of cryptographic material must the tester input into Wireshark's Zigbee decryption settings?

A.The 128-bit Zigbee Network Key (NWK key)
B.The device's physical serial number printed on the casing
C.The manufacturer's IEEE 802.15.4 MAC address
D.The Wi-Fi WPA2 pre-shared key of the local router
AnswerA

Wireshark requires the 128-bit Network Key to decrypt standard Zigbee frames captured over the air.

Why this answer

Zigbee networks encrypt application data using a Network Key. To inspect encrypted application payloads in Wireshark, the Network Key must be provided in the Zigbee protocol preferences.

192
MCQmedium

A penetration tester is performing network reconnaissance against a hardened target and needs to discover live hosts while avoiding ping probes. Which Nmap option tells Nmap not to perform host discovery before scanning ports, ensuring every target IP is fully port-scanned?

A.-R
B.-p-
C.-Pn
D.-n
AnswerC

-Pn skips the host discovery phase entirely.

Why this answer

The -Pn option disables host discovery, forcing Nmap to proceed with port scanning every specified IP address as if it were online.

193
MCQhard

An attacker wants to bypass egress filtering on a restricted network by encapsulating TCP packets inside ICMP echo request payloads. Which open-source tunneling utility is designed specifically for this purpose?

A.Socat
B.Netcat
C.Ptunnel
D.Iodine
AnswerC

Ptunnel is designed to tunnel reliable TCP connections over ICMP packets.

Why this answer

Ptunnel (Ping Tunnel) is a specialized application that allows tunneling TCP connections reliably through ICMP echo request and reply packets.

194
Multi-Selectmedium

You are performing a privilege escalation on a Windows machine. Which THREE of the following are valid techniques to gather local information for further escalation?

Select 3 answers
A.tasklist /svc
B.dir /s /b config.php
C.whoami /priv
D.systeminfo
E.netsh wlan show profiles
AnswersA, C, D

Lists running processes and associated services for vulnerability analysis.

Why this answer

Running 'whoami /priv' checks current privileges, 'systeminfo' identifies patches, and checking tasklist helps find running services.

195
Multi-Selecteasy

An auditor is evaluating cloud storage security across multiple cloud providers. Which TWO of the following settings indicate improper security configurations for cloud storage buckets? (Choose TWO)

Select 2 answers
A.An Amazon S3 bucket configured with ACLs allowing public read and write access.
B.An Azure Storage Account with 'Secure transfer required' set to Enabled.
C.A Google Cloud Storage bucket with IAM binding granting storage.objectViewer to allUsers.
D.Enabling versioning and object lock on financial data storage buckets.
E.Enabling AWS S3 Block Public Access at the account level.
AnswersA, C

Public write/read access on S3 is a major data exposure risk.

Why this answer

Public read permissions and disabled encryption at rest are critical storage security findings.

196
Multi-Selecthard

When analyzing a compromised Active Directory environment using BloodHound, which THREE common node properties or paths typically signify a high-value target or an immediate path to Domain Admin?

Select 3 answers
A.Principals with GenericAll or WriteDACL over the Domain object
B.Standard users with 'MemberOf' a departmental security group
C.Standard domain user accounts with default password policies
D.Members of the Domain Admins group
E.Computers configured with Unconstrained Delegation
AnswersA, D, E

Control over the Domain object allows granting DCSync rights directly.

Why this answer

BloodHound highlights high-value targets like Domain Admins, Enterprise Admins, and paths involving Group Policy Creator Owners, Domain Controllers, or WriteDACL/GenericAll permissions over administrative objects.

197
MCQhard

A penetration tester is evaluating a Kubernetes environment and discovers that the Kubernetes dashboard is deployed with cluster-admin privileges and is exposed to the internet via a NodePort service without authentication. How can this be exploited?

A.The dashboard exposes the cloud provider root account password in plain text logs.
B.The attacker can harvest Kerberos ticket-granting tickets from the dashboard cache.
C.An external attacker can access the dashboard web interface without credentials and deploy malicious pods with host-level access, resulting in complete cluster compromise.
D.The attacker can perform a buffer overflow against the etcd TLS listener via the dashboard port.
AnswerC

Exposed unauthenticated Kubernetes dashboards allow full administrative control.

Why this answer

An unauthenticated Kubernetes dashboard exposed via NodePort allows an attacker to execute arbitrary commands, deploy malicious pods, and take over the entire cluster.

198
MCQeasy

A penetration tester is auditing an AWS environment and discovers that an IAM role used by an EC2 instance has an overly permissive trust policy allowing any principal in an external AWS account to assume it without specifying an ExternalId. What is the standard security term and remediation for this vulnerability?

A.Access Key exposure; remediate by rotating the static credentials associated with the IAM role.
B.Cross-account confused deputy vulnerability; remediate by adding a Condition block requiring an 'sts:ExternalId'.
C.Resource-based policy escalation; remediate by disabling cross-account access entirely in AWS Organizations.
D.IAM privilege escalation via PassRole; remediate by removing iam:PassRole permissions from the instance profile.
AnswerB

Correct. The lack of an external ID allows third-party actors to exploit the trust relationship via confused deputy attacks.

Why this answer

Allowing external accounts to assume a role without an ExternalId leaves the configuration vulnerable to the 'Confused Deputy' problem. Remediation involves adding a condition using 'sts:ExternalId' to the trust policy.

199
MCQhard

An auditor is reviewing Active Directory Certificate Services and identifies ESC8. What exact AD CS endpoint is exploited during an ESC8 attack vector?

A.The Kerberos Key Distribution Center service on port 88
B.The HTTP-based Web Enrollment (certsrv/) or Certificate Enrollment Web Service endpoints
C.The LDAP signing and LDAP channel binding endpoints on port 636
D.The RPC-based DCOM interface on port 135
AnswerB

HTTP enrollment services do not enforce EPA by default, making them vulnerable to NTLM relay.

Why this answer

ESC8 exploits AD CS Web Enrollment or Certificate Enrollment Web Services endpoints that have HTTP enabled and permit NTLM authentication, allowing NTLM relay from coerced machine accounts.

200
MCQhard

A security analyst is performing a security assessment on a Siemens S7-1200 PLC. Using Nmap, which NSE script should the analyst run to gather detailed device information, including rack, slot, and firmware version via the S7 communication protocol?

A.s7-info
B.modbus-discover
C.bacnet-info
D.enip-info
AnswerA

The 's7-info' NSE script connects to TCP port 102 and retrieves Siemens S7 controller identification details.

Why this answer

Nmap includes specific industrial control scripts in the 'scripts/' directory. The 's7-info' script specifically queries Siemens S7 devices to extract operational data.

201
MCQmedium

During an internal network assessment, a tester discovers that direct routing to a segmented VLAN is blocked, but an accessible host on that VLAN is running an SSH server. Which Metasploit auxiliary module can be used to set up a routing table so subsequent exploit modules can reach the isolated subnet through the compromised SSH host?

A.post/multi/manage/autoroute
B.auxiliary/server/socks4a
C.auxiliary/scanner/portscan/tcp
D.exploit/unix/ssh/libssh_auth_bypass
AnswerA

This post-exploitation module adds a route to the Metasploit routing table to pivot through a session.

Why this answer

auxiliary/server/socks_proxy combined with autoroute (run autoroute -s <subnet>) or ssh_login allows pivoting through an SSH session. Specifically, post/multi/manage/autoroute is commonly used to add routes through a session.

202
MCQeasy

An AWS penetration tester discovers that an Amazon RDS database instance has the 'Publicly Accessible' flag set to true, and its security group allows inbound traffic from 0.0.0.0/0 on port 3306. What is the immediate risk, and what is the recommended control?

A.S3 bucket policies will automatically override database access controls.
B.The database is vulnerable to container escape via Docker socket exposure.
C.IAM role trust policies are bypassed by external SQL injection attacks.
D.The database can be reached from the internet; the security group should be restricted to trusted CIDR blocks and public accessibility disabled.
AnswerD

Public RDS instances with open security groups risk direct brute-force and vulnerability exploitation.

Why this answer

The database is exposed to the public internet, requiring network ACLs, security group restriction, and disabling public accessibility.

203
MCQhard

An attacker has identified an Active Directory Certificate Services (AD CS) template configured with the 'Enrollee Supplies Subject' flag enabled (EDITF_ATTRIBUTESUBJECTALTNAME2 is enabled on the CA), and the template permissions allow low-privileged domain users to enroll. Furthermore, the template allows client authentication. How can this misconfiguration (ESC1) be exploited?

A.Request a certificate specifying an arbitrary SAN (e.g., Domain Admin) and use it for PKINIT authentication
B.Execute a DCSync attack directly against the Certification Authority web enrollment endpoint
C.Force the CA machine account to authenticate to an attacker-controlled SMB share using PetitPotam
D.Perform a Silver Ticket attack by decrypting the CA database with a captured machine hash
AnswerA

By requesting a certificate with the SAN set to a privileged user account, the attacker can authenticate via PKINIT to obtain a high-privileged TGT.

Why this answer

ESC1 occurs when a certificate template allows low-privileged users to enroll, permits client authentication, and allows the enrollee to supply an arbitrary Subject Alternative Name (SAN). An attacker can request a certificate with a SAN belonging to a high-privileged user (e.g., Domain Administrator) and use it for authentication.

204
MCQhard

An ethical hacker is performing a security review of a smart energy grid employing IEC 60870-5-104. The hacker wishes to inject a forged ASDU (Application Service Data Unit) command to open a circuit breaker. Using Python, which library can the hacker use to construct and transmit raw IEC 104 application layer frames over TCP?

A.BeautifulSoup
B.Pandas
C.Pygame
D.Scapy
AnswerD

Scapy provides packet crafting capabilities and supports industrial protocol layers for network injection and protocol testing.

Why this answer

Scapy is a powerful Python-based packet manipulation library that allows building custom packets for industrial protocols like Modbus, DNP3, and IEC 104.

205
Multi-Selectmedium

Which TWO methods can an operator use to verify whether an account has successfully been granted DCSync privileges after modifying access control lists (ACLs)?

Select 2 answers
A.Inspect the local SAM database registry hive.
B.Query the domain object ACLs using PowerView's Get-DomainObjectAcl cmdlet.
C.Execute secretsdump.py with the modified account credentials to attempt pulling domain hashes.
D.Run SharpHound with the LocalAdmin collection flag.
E.Run klist to check cached Kerberos ticket lifetimes.
AnswersB, C

PowerView can inspect the explicit ACEs applied to the domain root to verify replication rights.

Why this answer

After adding DCSync rights (DS-Replication-Get-Changes and DS-Replication-Get-Changes-All), an operator can test the capability using Impacket's secretsdump.py or check ACL modifications using PowerView (Get-DomainObjectAcl).

206
MCQmedium

A penetration tester is conducting a network penetration test and discovers an open SNMP service (UDP port 161) using a default community string. Which tool can be used to enumerate user accounts, routing tables, and running processes via SNMP?

A.Rpcinfo
B.Snmpwalk
C.Smbclient
D.NFSstat
AnswerB

Snmpwalk queries SNMP agents using SNMP GETNEXT requests to enumerate system information.

Why this answer

Snmpwalk is a standard command-line utility used to query SNMP agents and walk the MIB tree to extract system information.

207
Multi-Selectmedium

A penetration tester has compromised an internal machine and needs to pivot deeper into the network. Which TWO tools or features can be utilized to set up a SOCKS proxy for tunneling arbitrary TCP traffic through the compromised host? (Choose TWO)

Select 2 answers
A.Netcat -e flag
B.Wireshark display filter
C.Metasploit auxiliary/server/socks_proxy
D.Nmap -sS scan flag
E.SSH dynamic port forwarding (-D flag)
AnswersC, E

This Metasploit module sets up a SOCKS proxy server routed through a session.

Why this answer

Metasploit's auxiliary/server/socks_proxy and SSH dynamic port forwarding (-D) are primary methods for establishing SOCKS proxies during pivoting.

208
MCQeasy

A penetration tester is scanning a web server and wants to rapidly locate hidden administrative directories and backup files using a wordlist. Which command-line tool is designed specifically for directory brute-forcing?

A.Nmap
B.Gobuster
C.Netcat
D.Hping3
AnswerB

Gobuster is a tool used to brute-force URIs, directories, and DNS subdomains.

Why this answer

Gobuster or Dirb are standard tools for brute-forcing directories and files on web servers. Gobuster is written in Go and is very fast.

209
MCQmedium

A penetration tester is analyzing the firmware of an IoT smart bulb extracted via a flash dump. Using Binwalk, the tester extracts the squashfs-root file system. Which command should the tester execute to search for hardcoded private RSA keys within the extracted directory?

A.strings -k squashfs-root/
B.grep -rn 'BEGIN RSA PRIVATE KEY' squashfs-root/
C.firmadyne -s squashfs-root/
D.binwalk -A squashfs-root/
AnswerB

Searching recursively for the standard PEM header 'BEGIN RSA PRIVATE KEY' inside the extracted file system effectively uncovers hardcoded private keys.

Why this answer

Binwalk is great for extraction, but searching the file system for specific file signatures like private keys is effectively done using grep with regular expressions or specialized tools like 'find' combined with cryptographic headers.

210
Multi-Selectmedium

A penetration tester is evaluating network security controls and wants to check for insecure or plaintext authentication protocols in use across the network. Which TWO protocols transmit credentials or session tokens in cleartext and can be easily sniffed? (Choose TWO)

Select 2 answers
A.SSH v2
B.SFTP (SSH File Transfer Protocol)
C.HTTPS
D.Telnet
E.FTP (File Transfer Protocol)
AnswersD, E

Telnet transmits all data, including usernames and passwords, in cleartext.

Why this answer

Telnet and FTP transmit credentials in cleartext across the network.

211
Multi-Selecthard

Which THREE techniques or remediation steps are recommended to secure Active Directory Certificate Services (AD CS) against certificate-based abuse vectors like ESC1 through ESC8?

Select 3 answers
A.Disable HTTP-based web enrollment or enforce HTTPS with Extended Protection for Authentication (EPA) enabled.
B.Regularly audit AD CS infrastructure and templates using tools like Certipy or BloodHound.
C.Disable Kerberos pre-authentication across all domain controller computer accounts.
D.Enforce unconstrained delegation on all certificate authority servers.
E.Remove the 'ENROLLEE_SUPPLIES_SUBJECT' flag from certificate templates unless strictly required.
AnswersA, B, E

EPA and HTTPS mitigation prevent NTLM relay attacks against ESC8.

Why this answer

Securing AD CS involves disabling NTLM authentication on web enrollment endpoints, enabling Extended Protection for Authentication (EPA), disabling enrollee-supplied SANs on vulnerable templates, and auditing templates using tools like Certipy.

212
Multi-Selecthard

Which THREE conditions or configurations make an Active Directory certificate template vulnerable to ESC3 (Enrollment Agent abuse)?

Select 3 answers
A.The template includes the Certificate Request Agent EKU (Enrollment Agent functionality).
B.Low-privileged users have enrollment rights over the template.
C.The CA requires Manager Approval for all issued certificates.
D.The application policy constraints or authorized signatures are missing or overly permissive.
E.The domain functional level is set to Windows Server 2003.
AnswersA, B, D

Enrollment agent EKUs allow requesting certificates on behalf of other principals.

Why this answer

ESC3 involves a certificate template configured as an Enrollment Agent (containing the Certificate Request Agent EKU), allowing enrollment by low-privileged users, and permitting issuance of certificates on behalf of other users.

213
Multi-Selecthard

When conducting an advanced Active Directory penetration test, which THREE techniques can be used to extract or abuse credentials without interacting with LSASS directly on a domain controller?

Select 3 answers
A.Executing Kerberoasting against service principal names to crack hashes offline
B.Performing a DCSync attack via DRSUAPI replication requests
C.Extracting NTDS.dit and SYSTEM hive using Volume Shadow Copy Service (VSS)
D.Running procdump.exe against the lsass.exe process on the domain controller
E.Injecting DLL payloads into the Local Security Authority Subsystem Service
AnswersA, B, C

Kerberoasting targets ticket requests and does not require touching LSASS on domain controllers.

Why this answer

Avoiding LSASS interaction can be achieved via DCSync (DRSUAPI replication), Kerberoasting (offline cracking of TGS), and NTDS.dit extraction using Volume Shadow Copies (VSS).

214
Multi-Selecthard

An engineering team is hardening an Operational Technology (OT) network segment that relies on legacy SCADA protocols lacking native encryption or authentication. Which THREE compensating controls should the penetration tester recommend to mitigate risks associated with these insecure protocols? (Choose THREE)

Select 3 answers
A.Disable all TCP and UDP ports on the SCADA network switches
B.Deploy industrial Intrusion Detection Systems (IDS) tuned for OT protocol anomalies
C.Deploy network segmentation adhering to the ISA/IEC 62443 zones and conduits model
D.Implement industrial firewalls capable of Deep Packet Inspection (DPI) for SCADA protocols
E.Install traditional endpoint antivirus software directly on the Programmable Logic Controllers (PLCs)
AnswersB, C, D

An OT-aware IDS can detect unauthorized write commands, firmware uploads, or abnormal register queries.

Why this answer

Legacy SCADA protocols like Modbus, DNP3, and S7comm lack native authentication and encryption. Compensating controls include deploying industrial firewalls (deep packet inspection), implementing network segmentation (air-gapping or zones/conduits per ISA/IEC 62443), and using industrial intrusion detection systems (IDS). Antivirus on PLCs is typically not feasible, and disabling all TCP ports is impossible since the protocols require them.

215
MCQhard

A penetration tester gains shell access inside a Docker container running on a Linux host. They inspect the container's capabilities using capsh --print and notice CAP_SYS_ADMIN is enabled, and the cgroup v1 filesystem is mounted read-write inside the container. Which specific container escape vector is immediately available?

A.Writing directly to the host's /etc/passwd file via a shared memory segment mounted at /dev/shm.
B.Leveraging the cgroups release_agent notification mechanism to execute arbitrary commands on the host operating system.
C.Using the ptrace system call to inject code into the host's systemd daemon process.
D.Issuing a mount command to repartition the host's primary storage block device.
AnswerB

CAP_SYS_ADMIN and write access to cgroups allow release_agent exploitation.

Why this answer

Writing a malicious payload to the release_agent file in cgroups combined with triggering a notification via the notify_on_release mechanism allows executing commands on the host as root.

216
Multi-Selectmedium

During a Kubernetes cluster security assessment, a penetration tester identifies multiple misconfigurations. Which TWO of the following findings represent high-risk security flaws in Kubernetes RBAC and cluster setup? (Choose TWO)

Select 2 answers
A.Exposing the Kubernetes API server endpoint directly to the public internet (0.0.0.0/0) without IP whitelisting or robust authentication.
B.Enabling Pod Security Standards (e.g., Restricted profile) across all namespaces.
C.Using network policies to isolate sensitive database pods from frontend web pods.
D.Binding the cluster-admin ClusterRole to the default service account in the default namespace via a ClusterRoleBinding.
E.Enabling Kubernetes Role-Based Access Control (RBAC) across all API groups.
AnswersA, D

Exposing unshielded API servers to the internet invites automated attacks.

Why this answer

Granting cluster-admin via ClusterRoleBinding to default service accounts and exposing the API server publicly without auth are severe risks.

217
MCQeasy

A penetration tester has gained a standard user shell on a Linux target and discovers that the user can execute a specific backup binary using sudo without a password. The binary internally calls the system() function to invoke the tar command using a relative path instead of an absolute path. Which technique should the tester use to escalate privileges?

A.Append a new user account to the /etc/passwd file by leveraging a kernel exploit
B.Modify the /etc/sudoers file directly using a buffer overflow vulnerability
C.Inject shellcode into the target binary's memory space using GDB while running under sudo
D.Modify the PATH environment variable to include a malicious directory containing a crafted tar binary and execute the sudo command
AnswerD

Correct because relative path execution in setuid or sudo binaries allows PATH hijacking to execute arbitrary commands with elevated privileges.

Why this answer

By manipulating the PATH environment variable to point to a directory controlled by the attacker containing a malicious script named tar, executing the sudo binary will cause it to run the malicious script with elevated privileges via the relative path invocation.

218
MCQeasy

An auditor finds an Amazon S3 bucket configured with public read access enabled via an Access Control List (ACL), but the bucket policy explicitly denies public read access. How does AWS evaluate these conflicting permissions?

A.AWS generates a configuration error and blocks all traffic until the conflict is resolved manually.
B.Access is granted because any Allow permission supersedes bucket restrictions.
C.The explicit Deny in the bucket policy takes precedence, resulting in access being denied.
D.The public ACL takes precedence because ACLs are evaluated before bucket policies.
AnswerC

Explicit Deny overrides any Allow permissions.

Why this answer

AWS evaluation logic states that an explicit Deny anywhere in the policy evaluation overrides all allows.

219
MCQeasy

Which technique is most effective for achieving persistence on a Windows system by leveraging the automatic startup mechanism that executes during user login?

A.Creating a hidden scheduled task.
B.Modifying the default shell via Winlogon.
C.Replacing the utilman.exe binary with cmd.exe.
D.Adding an entry to the Run registry key in the current user hive.
AnswerD

This is the standard method for user-level persistence at login.

Why this answer

The 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run' registry key is a common location for persistence that triggers when the current user logs in.

220
MCQhard

You have gained initial access to a Windows host and need to move laterally to a domain controller using Pass-the-Hash. What is the mandatory prerequisite for this attack to succeed?

A.The target must have the Remote Registry service disabled.
B.The target must be running Windows 10 or higher.
C.You must have the plaintext password of the target account.
D.The target must have NTLM authentication enabled in the local security policy.
AnswerD

Pass-the-Hash relies on NTLM authentication protocols.

Why this answer

Pass-the-Hash requires that the target machine allows NTLM authentication and the user has not disabled it or enforced Kerberos-only authentication (Restricted Admin mode).

221
MCQmedium

A tester gains code execution on a Linux host inside a Docker container and discovers they can access the Docker socket (/var/run/docker.sock) from within the container. How can the tester exploit this to escape the container and compromise the host?

A.Modify /etc/passwd inside the container to add a root user.
B.Run 'docker run -v /:/hostfs --rm -it alpine chroot /hostfs' to mount the host root directory inside a new container.
C.Send a SIGKILL signal to the docker daemon process via kill -9 1.
D.Execute 'sudo su' inside the container environment.
AnswerB

Mounting the host root filesystem via the Docker socket enables complete host compromise.

Why this answer

Access to /var/run/docker.sock allows the container to interact with the host's Docker daemon. The tester can spin up a new container that mounts the host's root filesystem (/) and provides a chroot or direct execution shell on the host.

222
Multi-Selecteasy

When reviewing container security and Kubernetes cluster configurations, which THREE practices or misconfigurations commonly lead to container escapes or host compromise? (Choose three)

Select 3 answers
A.Using a non-root user directive (USER 1000) inside the Dockerfile.
B.Exposing sensitive host directories (such as '/' or '/proc') via 'hostPath' volumes.
C.Enabling the 'privileged: true' security context flag in the pod specification.
D.Mounting the Docker daemon UNIX socket (/var/run/docker.sock) inside a container.
E.Enabling Kubernetes Role-Based Access Control (RBAC) with least-privilege binding.
AnswersB, C, D

Correct. Mounting host root directories allows direct manipulation of host files, cron jobs, or binaries.

Why this answer

Common container security issues include mounting the Docker socket, running containers in privileged mode, and exposing sensitive host paths.

223
MCQeasy

An organization stores sensitive application backups in an Amazon S3 bucket. During a cloud penetration test, the tester finds that the S3 bucket policy explicitly allows 's3:GetObject' to '*' without any AWS:SourceIp or aws:SourceArn conditions, but the bucket is marked with 'Block Public Access' enabled at the account level. What is the impact of this configuration?

A.Public access is successfully blocked because S3 Account-level Block Public Access settings override individual bucket policies.
B.Anyone on the internet can read the objects because the bucket policy takes precedence over account settings.
C.An error occurs during S3 bucket creation, preventing the policy from being applied.
D.The bucket becomes completely inaccessible even to internal authenticated AWS IAM users.
AnswerA

Correct. S3 Block Public Access settings act as a safety net that supersedes bucket policies and ACLs.

Why this answer

AWS S3 Account-level Block Public Access overrides all bucket policies and ACLs, ensuring that public access is blocked regardless of the overly permissive policy.

224
Multi-Selectmedium

A penetration tester is evaluating the security posture of an industrial SCADA network. Which THREE of the following operational technology (OT) vulnerabilities are most commonly found during network penetration tests of legacy control systems? (Choose THREE)

Select 3 answers
A.Lack of cryptographic authentication on control commands (allowing spoofing)
B.Strict implementation of mandatory end-to-end TLS 1.3 encryption on all internal PLC racks
C.Cleartext transmission of industrial control protocols (e.g., Modbus, Telnet)
D.Automatic hardware-level isolation preventing any lateral movement from the corporate IT network
E.Use of default or hardcoded service credentials on engineering workstations and PLCs
AnswersA, C, E

Many protocols like Modbus and DNP3 lack native message authentication, enabling attackers to inject arbitrary commands.

Why this answer

Legacy OT systems often lack encryption, authentication, and secure update mechanisms, exposing them to cleartext sniffing, command spoofing, and unauthenticated firmware updates.

225
MCQeasy

A tester is analyzing an IoT gateway that runs a web management interface. During discovery, the tester finds that the device exposes an unauthenticated API endpoint that accepts JSON input. Which command-line HTTP client should the tester use to send a custom POST request containing JSON data to test for command injection?

A.ping -c 4 -p '{"cmd":"id"}' 192.168.1.100
B.netstat -an | grep 80
C.traceroute -p 80 192.168.1.100
D.curl -X POST -H 'Content-Type: application/json' -d '{"cmd":"id"}' http://192.168.1.100/api
AnswerD

The curl command allows specifying the HTTP method (-X), headers (-H), and request body data (-d) to test API endpoints.

Why this answer

cURL is the standard command-line utility for transferring data with URLs, supporting custom HTTP methods, headers, and data payloads.

Page 2

Page 3 of 4

Page 4

All pages