Courseiva

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

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

Page 3

Page 4 of 4

226
MCQmedium

An operator has compromised an Active Directory domain and wants to establish persistence using a Golden Ticket. What critical piece of information from the domain is required to forge this ticket?

A.The NTLM hash (or AES keys) of the krbtgt service account.
B.The krbtgt account's public SSH key stored in Active Directory.
C.The global catalog server IP address and LDAP bind credentials.
D.The Domain Administrator's plaintext password.
AnswerA

The krbtgt hash is the cryptographic secret used to sign all TGTs in the domain.

Why this answer

A Golden Ticket is forged using the KRBTGT account's NTLM hash (or AES keys), which allows the attacker to generate valid Kerberos Ticket Granting Tickets (TGTs) for any user.

227
MCQeasy

A penetration tester is reviewing an Azure Active Directory (Azure AD) tenant and finds that user writeback and device writeback are enabled in Azure AD Connect, but the service account lacks appropriate permissions in on-premises Active Directory. What security risk does misconfigured Azure AD Connect writeback pose?

A.It automatically grants all Azure AD users Domain Admin privileges on the on-premises domain controllers.
B.If compromised, cloud-based attackers could potentially manipulate synchronized objects or abuse writeback channels to affect on-premises Active Directory integrity.
C.It allows cloud-only users to bypass conditional access policies by syncing fake device objects.
D.It exposes the Azure AD global administrator password in plaintext via the Active Directory Recycle Bin.
AnswerB

Correct. Improperly secured writeback features can be a vector for attackers to push malicious changes from Azure AD back into the on-premises AD environment.

Why this answer

Misconfigured writeback permissions or insecure cloud-to-on-premises sync configurations can allow compromised cloud accounts to modify on-premises objects, potentially leading to privilege escalation in the local AD.

228
Multi-Selecteasy

A penetration tester has gained initial access to a Windows system and needs to enumerate local users and groups to identify high-privileged accounts for potential escalation. Which TWO built-in Windows command-line commands can be used to list local user accounts? Choose two.

Select 2 answers
A.wmic useraccount get name
B.ipconfig /all
C.net user
D.tasklist /v
E.systeminfo
AnswersA, C

WMIC useraccount queries local user account names.

Why this answer

net user and wmic useraccount (or Get-LocalUser in PowerShell) are standard built-in mechanisms to list local users on Windows.

229
MCQeasy

An internal penetration tester is performing reconnaissance using BloodHound to map out attack paths in an Active Directory domain. Which automated data collection tool is officially supported and widely utilized to gather ACLs, session information, and object relationships for BloodHound ingestion?

A.BloodHound-Collector-GUI
B.AD-Collector-Pro
C.Responder
D.SharpHound
AnswerD

SharpHound is the designated collector executable/script used to gather data for BloodHound analysis.

Why this answer

SharpHound is the official data collector for BloodHound, written in C#, designed to query Active Directory via LDAP and WinAPI to gather telemetry for mapping attack paths.

230
Multi-Selecteasy

An auditor is reviewing an AWS cloud environment and identifies several common misconfigurations related to identity and access management. Which TWO of the following practices represent significant security risks? (Choose TWO)

Select 2 answers
A.Enabling multi-factor authentication (MFA) on all IAM users with console access.
B.Enabling AWS CloudTrail logging across all regions in the account.
C.Using the AWS account root user credentials for day-to-day operational tasks.
D.Maintaining active access keys for the AWS account root user.
E.Attaching AWS managed policies for read-only access to auditing roles.
AnswersC, D

Root user has unrestricted access and should only be used when necessary.

Why this answer

Using root credentials for daily tasks and creating active access keys for root users violate foundational AWS security best practices.

231
MCQmedium

A penetration tester executing lateral movement in a Windows domain wants to hide their network activity and command execution by using WinRM (Windows Remote Management). Which PowerShell cmdlet is specifically designed to execute commands on a remote trusted host via WinRM?

A.Get-WmiObject -ComputerName TargetHost -Class Win32_Process
B.Start-Process -FilePath "powershell.exe" -Credential ...
C.Invoke-Command -ComputerName TargetHost -ScriptBlock { ... }
D.Enter-PSSession -ComputerName TargetHost
AnswerC

Invoke-Command runs commands on remote computers and returns output as objects.

Why this answer

Invoke-Command allows running script blocks or scripts on local or remote computers using WinRM.

232
MCQmedium

An attacker gains access to an Azure environment and enumerates App Service Configuration settings. They discover that connection strings and database passwords are stored in plaintext within the application settings rather than being referenced via Azure Key Vault references. What attack path does this enable?

A.The attacker can perform a Golden Ticket attack against the Azure Active Directory Domain Services.
B.Azure Firewall automatically terminates the web application due to compliance violations.
C.Any user or service principal with read access to the App Service configuration can extract plaintext database credentials.
D.The App Service hypervisor becomes vulnerable to guest-to-host breakout.
AnswerC

App Service settings are readable by users with appropriate resource permissions, exposing embedded secrets.

Why this answer

Storing secrets in plaintext in App Service configuration settings allows any user or service principal with Reader or Contributor access to the App Service to harvest sensitive credentials.

233
MCQeasy

An external penetration tester is conducting reconnaissance against a corporate network and needs to discover valid email addresses and associated infrastructure hosted publicly. Which tool uses search engines and public databases to gather open-source intelligence on target domains?

A.TheHarvester
B.Metasploit
C.Wireshark
D.Burp Suite
AnswerA

TheHarvester gathers OSINT data including emails, names, and subdomains.

Why this answer

TheHarvester is a popular tool designed to gather emails, subdomains, and names from public sources like search engines and PGP key servers.

234
Multi-Selectmedium

Which TWO commands or tools are standard for performing AS-REP Roasting against an Active Directory domain from an external or internal position?

Select 2 answers
A.secretsdump.py -asrep
B.Rubeus.exe asreproast
C.SharpHound.exe -CollectionMethod ASREP
D.Impacket's GetNPUsers.py script
E.certipy asrep
AnswersB, D

Rubeus includes an asreproast module designed to harvest AS-REP tickets on Windows hosts.

Why this answer

GetNPUsers.py from Impacket and Rubeus (using 'rubeus asreproast') are the two primary tools used to request AS-REP responses for accounts without pre-auth.

235
MCQhard

A penetration tester is assessing an AWS environment where an AWS Lambda function has an execution role with permissions to invoke other Lambda functions and update IAM policies. The function code is vulnerable to command injection. How can this be leveraged for persistence or privilege escalation?

A.Exploit the command injection vulnerability to execute AWS CLI commands using the Lambda execution role, allowing privilege escalation or creation of persistent IAM backdoors.
B.Trigger a buffer overflow in the AWS Lambda microVM hypervisor to gain root access to the underlying physical server.
C.Modify the Lambda function's VPC security group to expose the host kernel to the internet.
D.Inject malicious kernel modules into the Lambda execution container.
AnswerA

Lambda execution roles can be abused via command injection to modify IAM policies or create persistent users.

Why this answer

Command injection in a Lambda function allows an attacker to execute arbitrary commands, using the execution role to modify IAM policies or create new administrative users.

236
MCQhard

An elite penetration tester needs to bypass a strict perimeter stateful inspection firewall that drops fragmented packets and inspects TCP payload flags. They decide to use Nmap to send packets with the FIN, PSH, and URG flags set simultaneously (a Xmas scan). Which Nmap flag implements this?

A.-sN
B.-sF
C.-sX
D.-sW
AnswerC

-sX enables the Xmas tree scan setting FIN, PSH, and URG.

Why this answer

The -sX flag instructs Nmap to perform a Xmas tree scan, setting the FIN, PSH, and URG flags, which can bypass certain stateless firewalls or exploit RFC compliance quirks in TCP stacks.

237
MCQeasy

A penetration tester is attempting to perform Kerberoasting using Impacket. Which specific service principal name (SPN) format must be requested against the target domain controller to successfully extract TGS-AEAD tickets that can be cracked offline?

A.CIFS/dc01.corp.local
B.MSSQLSvc/sqlserver01.corp.local:1433
C.LDAP/dc01.corp.local
D.HOST/dc01.corp.local
AnswerB

This is a valid SPN associated with a service account, making it susceptible to Kerberoasting if it maps to a standard user object.

Why this answer

Kerberoasting targets service principal names mapped to user accounts rather than machine accounts. Impacket's GetUserSPNs.py queries the Global Catalog for user accounts with a non-null servicePrincipalName attribute.

238
MCQhard

An attacker has gained access to a Linux machine and wants to scan the local subnet for live hosts using raw sockets via ping sweep, but does not have root privileges. Which Nmap flag allows unprivileged users to perform host discovery and port scanning without raw socket access?

A.-sP
B.--privileged
C.-Pn
D.--unprivileged
AnswerD

--unprivileged forces Nmap to rely on system calls like connect() which do not require root privileges.

Why this answer

The --unprivileged flag tells Nmap to assume the user lacks raw socket privileges, forcing Nmap to use connect() system calls instead of raw packet generation.

239
MCQeasy

During an assessment of an Operational Technology (OT) network, a tester discovers a Programmable Logic Controller (PLC) using the Modbus TCP protocol. The tester needs to query holding registers to understand the operational state of the industrial process. Which default TCP port should the tester target for Modbus communications?

A.Port 80
B.Port 502
C.Port 443
D.Port 1883
AnswerB

Port 502 is the official IANA assigned port for Modbus protocol communications.

Why this answer

Modbus TCP uses port 502 by default. Port 80 is HTTP, port 443 is HTTPS, and port 1883 is MQTT.

240
Multi-Selectmedium

During a hybrid cloud assessment, a penetration tester examines the connection between an on-premises Active Directory and Azure AD. Which THREE of the following mechanisms or misconfigurations could lead to credential exposure or privilege escalation in the hybrid environment? (Choose THREE)

Select 3 answers
A.Storing application secrets and database connection strings in plaintext within Azure App Service configuration settings.
B.Enforcing Azure AD Conditional Access policies requiring compliant devices for access.
C.An attacker compromising an on-premises account with Password Hash Sync enabled, enabling offline hash cracking of synchronized accounts if tenant is targeted.
D.Using Azure Key Vault with managed hardware security modules (HSMs) for cryptographic keys.
E.Configuring Azure Bastion for secure administrative RDP and SSH connectivity.
.An Azure AD Connect sync account possessing excessive privileges in on-premises Active Directory beyond the required MS-DS-Consistency-Guid and replication rights.
AnswersA, C

Plaintext configuration secrets expose credentials to users with resource read access.

Why this answer

Over-privileged sync accounts, storing secrets in plaintext, and unmitigated PHS/PTA risks are major hybrid threats.

241
MCQeasy

An auditor reviews an Azure storage account and notes that 'Secure transfer required' is set to Disabled. What security risk does this misconfiguration introduce?

A.Storage account access keys are transmitted in plaintext during Azure Resource Manager API calls.
B.Shared Access Signatures (SAS) tokens expire immediately upon generation.
C.Data in transit between clients and the storage account can be intercepted over unencrypted HTTP connections.
D.Blob storage data at rest is stored without AES-256 encryption.
AnswerC

Disabling secure transfer permits HTTP traffic instead of enforcing HTTPS.

Why this answer

Disabling secure transfer allows unencrypted HTTP connections to the storage account, enabling potential Man-in-the-Middle (MitM) attacks to intercept data in transit.

242
MCQhard

A penetration tester is analyzing an ARM-based IoT router firmware. The tester wants to statically analyze a compiled ELF binary named 'auth_service' to identify potential buffer overflows. Which open-source reverse engineering framework, developed by NSA, should the tester utilize to perform disassembly and decompilation of this binary?

A.Snort
B.Autopsy
C.Wireshark
D.Ghidra
AnswerD

Ghidra provides robust disassembly and decompiler support for embedded architectures like ARM, facilitating vulnerability identification.

Why this answer

Ghidra is an open-source reverse engineering suite developed by the NSA that supports multiple processor architectures, including ARM, MIPS, and PowerPC, making it ideal for IoT firmware analysis.

243
MCQmedium

A penetration tester is operating inside a segmented corporate network and needs to scan a target subnet using TCP SYN packets while randomizing the order of scanned hosts and ports to evade intrusion detection systems. Which Nmap option implements this randomization?

A.-T0
B.--spoof-mac
C.-D
D.--randomize-hosts
AnswerD

--randomize-hosts randomizes target host scanning order to reduce detection.

Why this answer

The --randomize-hosts option tells Nmap to randomize the order in which it scans hosts, helping to evade threshold-based IDS/IPS alerts.

244
MCQhard

A penetration tester is analyzing a Kubernetes cluster deployed on AWS (EKS) where a compromised pod is running with a service account that has access to the AWS IAM OIDC provider endpoint. The pod's container is running as root and has the host network namespace enabled. Which technique allows the tester to pivot from the container to the underlying cloud infrastructure?

A.Execute the docker-runc exploit directly against the Docker daemon socket mounted inside the container.
B.Query the local Kubernetes API server using the projected service account token mounted in the pod to extract AWS STS credentials if an IAM role is annotated.
C.Modify the kube-dns deployment manifest to redirect cloud control plane traffic to a local proxy.
D.Leverage the Azure Instance Metadata Service endpoint to retrieve subscription-level access tokens.
AnswerB

Projected service account tokens are used in EKS for IAM roles for service accounts (IRSA), allowing cloud access.

Why this answer

Accessing the container metadata or using the token exchange via the IAM OIDC provider allows the tester to obtain cloud credentials.

245
MCQeasy

An analyst is reviewing PCAP files captured from an ICS environment where Modbus/TCP traffic is flowing. The analyst notices cleartext commands being sent to alter coil values. Which tool can the analyst use to automatically extract Modbus registers and visualize the register state changes over time from the PCAP file?

A.John the Ripper
B.Wireshark
C.Hashcat
D.Dirb
AnswerB

Wireshark decodes Modbus/TCP packets natively, allowing the analyst to filter by 'modbus' and view function codes, reference numbers, and register values.

Why this answer

Wireshark includes built-in dissectors for Modbus/TCP and filters that allow inspecting every register read/write operation, making it the primary tool for packet-level ICS analysis.

246
MCQeasy

A tester is conducting a physical security and RF assessment against a wireless building automation system operating at 433 MHz. The tester wants to capture and replay the radio frequency signal emitted by a key fob to unlock a gate. Which hardware tool is specifically designed for software-defined radio (SDR) signal capture and analysis in this frequency range?

A.JTAGulator
B.Bus Pirate
C.Rubber Ducky
D.HackRF One / RTL-SDR
AnswerD

Software-defined radios like HackRF One and RTL-SDR tune into sub-GHz frequencies (such as 433 MHz) to capture, demodulate, and replay RF signals.

Why this answer

HackRF One, RTL-SDR, and similar software-defined radios are used for capturing RF signals. Specifically, devices like RTL-SDR or HackRF paired with GNU Radio or Universal Radio Hacker (URH) cover the 433 MHz band.

247
MCQmedium

A penetration tester is analyzing network traffic and notices an attacker is leveraging IPv6 neighbor discovery protocol (NDP) spoofing to intercept local traffic. Which mitigation feature implemented on enterprise switches prevents malicious rogue advertisements on local networks?

A.Dynamic ARP Inspection (DAI)
B.IPv6 RA Guard
C.DHCP Snooping
D.Port Security
AnswerB

IPv6 RA Guard mitigates rogue router advertisements and bogus neighbor discovery messages.

Why this answer

IPv6 Neighbor Discovery Inspection (ND Inspection) or RA Guard is a layer 2 security feature on switches that validates IPv6 neighbor discovery messages, similar to DHCP snooping for IPv4.

248
MCQhard

During lateral movement, you decide to use 'Pass-the-Ticket' to access a target. Which file format does Mimikatz typically use to export Kerberos tickets?

A..kirbi
B..ntds
C..sam
D..pfx
AnswerA

The .kirbi format is the standard for Mimikatz Kerberos tickets.

Why this answer

Mimikatz uses the .kirbi file extension to save exported Kerberos tickets.

249
Multi-Selecteasy

A penetration tester needs to enumerate available shares and permissions on a remote Windows file server during an internal audit. Which TWO tools or commands can be used to query SMB shares? (Choose TWO)

Select 2 answers
A.smbclient -L //target-ip
B.sqlmap -u target-url
C.enum4linux -a target-ip
D.nmap --script http-enum
E.aircrack-ng target.cap
AnswersA, C

The smbclient tool with the -L flag lists available shares on the target host.

Why this answer

Smbclient and enum4linux are standard tools for enumerating SMB shares on Windows and Samba servers.

250
MCQmedium

A penetration tester is analyzing a network where ICMP echo requests are blocked by perimeter firewalls, making traditional host discovery fail. Which Nmap host discovery option should be used to discover live hosts using TCP ACK packets sent to port 80?

A.-PS80
B.-PA80
C.-PE
D.-PU80
AnswerB

-PA uses a TCP ACK probe targeting the specified port.

Why this answer

The -PA flag in Nmap specifies a TCP ACK probe to determine if hosts are alive, as port 80 is frequently allowed through corporate firewalls.

251
MCQmedium

In a hybrid enterprise environment, an organization uses Azure AD Seamless Single Sign-On (Seamless SSO). During a penetration test, an attacker compromises a domain-joined workstation and attempts to abuse Seamless SSO. What is the mechanism by which Seamless SSO authenticates users, and what is a known security consideration?

A.It requires all users to store their plaintext Active Directory passwords in Azure Key Vault.
B.It bypasses all Conditional Access policies for users connecting from corporate networks.
C.It forces the domain controllers to export NTLMv1 hashes to the Azure cloud directory.
D.It uses a computer account (AZUREADSSOACC$) in on-premises AD to generate Kerberos tickets for users authenticating to cloud services via browser redirection.
AnswerD

Seamless SSO relies on a kerberos computer account in local AD.

Why this answer

Seamless SSO uses a Kerberos computer account (AZUREADSSOACC$) registered in on-premises AD; if compromised or poorly managed, it can be targeted for Kerberoasting or ticket manipulation.

252
Multi-Selectmedium

When conducting a firmware security review of an embedded IoT device, a tester extracts the root filesystem and wants to identify potential memory corruption vulnerabilities introduced by compiler hardening settings. Which THREE security hardening flags or mechanisms should the tester verify are missing from the compiled binaries using tools like checksec? (Choose THREE)

Select 3 answers
A.Stack Canaries (Canary / GS)
B.Address Space Layout Randomization (ASLR)
C.Bandwidth Throttling
D.Read-Only Relocations (RELRO)
E.Non-Executable Bit (NX / DEP)
AnswersA, D, E

Stack canaries protect against stack-based buffer overflows by placing a sentinel value before the return address.

Why this answer

Checksec identifies binary protections such as RELRO, Stack Canaries, NX (No-Execute / DEP), and PIE (Position Independent Executable). ASLR is an OS-level feature, not a binary compilation flag. Therefore, Stack Canaries, NX, and RELRO are the correct binary compilation mitigations.

253
MCQhard

During an Active Directory assessment, an operator discovers that the KRBTGT account password has not been rotated in over ten years. They decide to craft a Golden Ticket to maintain persistent domain-wide access. Which critical piece of information, in addition to the KRBTGT NTLM hash and domain SID, is strictly required to generate a fully valid Golden Ticket that includes group membership and privilege attributes?

A.The NTLM hash of the KRBTGT account and the Domain SID
B.The Enterprise Admin public key certificate stored in the NTDS.dit
C.An active session token issued by the Active Directory Certificate Services (AD CS)
D.The plaintext password of the Domain Administrator and SYSVOL shared secret
AnswerA

A Golden Ticket is signed using the Kerberos master key (KRBTGT hash) and stamped with the Domain SID and target user/group RIDs.

Why this answer

When forging a Golden Ticket using Impacket's ticketer or Mimikatz, specifying the target user's RID (Relative Identifier) and valid Group RIDs (such as Domain Admins RID 512) is necessary, but the foundational secret required is the KRBTGT NTLM hash and the Domain SID. Additionally, the FQDN and domain GUID are needed, but the primary cryptographic key is the KRBTGT NTLM hash.

254
MCQeasy

A penetration tester is analyzing a Linux system and finds that the binary /bin/ping has the SUID bit set along with root ownership. What is the security implication of this finding?

A.It allows remote attackers to execute system calls over ICMP tunneling.
B.Any local user can execute commands as root by passing malicious arguments to the SUID binary.
C.The system is immune to local privilege escalation because SUID is disabled by SELinux.
D.It allows the binary to execute with the privileges of the file owner (root), which can be exploited if the binary has flaws or drops to a shell.
AnswerD

SUID binaries execute with the privileges of the file owner, presenting a privilege escalation risk if vulnerable.

Why this answer

While ping traditionally required SUID root to open raw sockets, modern Linux kernels support CAP_NET_RAW capability. If a misconfigured SUID binary allows arbitrary command execution, it leads to privilege escalation, but standard SUID ping is typically safe unless a vulnerability exists in that specific version. Let's frame it around exploiting a known SUID binary vulnerability or misconfigured SUID finder.

255
MCQeasy

A penetration tester is evaluating an AWS environment and discovers that an IAM role attached to an Amazon EC2 instance has an overly permissive trust policy allowing any user in the account to assume it via the sts:AssumeRole API without external conditions. Which specific remediation step should the cloud administrator apply to fix this risk?

A.Modify the IAM role trust policy to include a Condition block restricting the principal or requiring multi-factor authentication.
B.Rotate the AWS account root user access keys immediately.
C.Attach an explicit Deny policy to the EC2 instance metadata service version 2 configuration.
D.Disable the AWS Security Token Service endpoint globally across the AWS organization.
AnswerA

Adding a condition block restricts the assume-role capability to trusted principals.

Why this answer

Restricting the trust policy with conditions such as aws:PrincipalTag or source ARN ensures only authorized entities can assume the role.

256
Multi-Selecthard

A penetration tester is evaluating cloud container security and hybrid orchestration platforms. Which THREE of the following techniques or conditions facilitate container escapes or host compromise? (Choose THREE)

Select 3 answers
A.Running a container with the --privileged flag, which disables nearly all kernel namespace and capability isolation.
B.Enabling read-only root filesystems (readOnlyRootFilesystem: true) on container deployment manifests.
C.Using distroless container images that omit package managers and shells.
D.Implementing container image vulnerability scanning in the CI/CD pipeline.
E.Running containers with the host PID namespace enabled (hostPID: true), allowing visibility and interaction with host processes.
.Having CAP_SYS_ADMIN capabilities combined with write access to the cgroup release_agent file.
AnswersA, E

Privileged containers share host devices and namespaces, allowing direct escape.

Why this answer

Privileged mode, host PID/IPC namespaces, and write access to kernel release_agent files enable container escapes.

257
MCQhard

An operator has identified an Active Directory domain trust relationship where a trusted forest has 'SID History' filtering disabled (Quarantined Domain Trust set to disabled/unfiltered). What attack does this enable?

A.AD CS ESC8 NTLM relay attacks
B.Forest-wide privilege escalation via SID History injection
C.Standard Kerberoasting against domain controllers
D.Unconstrained delegation exploitation via print spooler
AnswerB

Disabling SID filtering allows forged SIDs in the ticket history to be accepted by the target forest, granting administrative privileges.

Why this answer

When SID filtering is disabled on an external or forest trust, an attacker who compromises the trusting/trusted child domain can inject enterprise admin SIDs into the SID History attribute of a forged ticket, granting access across the trust boundary.

258
MCQhard

A penetration tester is assessing an AWS environment where an EC2 instance is associated with an IAM role that trusts an external third-party AWS account in its trust policy, but the external account ID was mistyped or left overly broad (e.g., condition missing external ID or using an insecure principal). What vulnerability does this introduce?

A.The EC2 instance is vulnerable to local root privilege escalation via kernel module injection.
B.AWS CloudTrail logs for the instance are permanently deleted.
C.The third-party account gains direct SSH access to the EC2 instance filesystem.
D.The trusted external account can assume the role, and without an ExternalID condition, it is vulnerable to cross-account confusion or unauthorized assumption.
AnswerD

Trust policies without ExternalID conditions risk cross-account security issues.

Why this answer

A misconfigured trust policy trusting an external account without a mandatory ExternalID condition exposes the role to the 'Confused Deputy' problem or unauthorized assumption by actors in the trusted account.

259
MCQmedium

A penetration tester is analyzing a proprietary IoT device protocol that operates over UDP. The tester has captured raw binary network traffic and wants to write a custom dissector script to parse the packet structure in Wireshark. What scripting language does Wireshark natively support for writing lightweight protocol dissectors?

A.Bash
B.PowerShell
C.Lua
D.Ruby
AnswerC

Wireshark has a built-in Lua interpreter that enables security analysts to quickly write custom protocol dissectors.

Why this answer

Wireshark supports Lua natively for writing post-dissection scripts, custom dissectors, and heuristic analyzers without needing to recompile the source code in C.

260
Multi-Selectmedium

During an Azure subscription review, a security assessor checks for role-based access control and resource configuration best practices. Which TWO of the following findings represent high-severity security risks? (Choose TWO)

Select 2 answers
A.Enabling Azure Defender for SQL on all Azure SQL databases.
B.Assigning the Owner role to external guest users at the root management group level without justification.
C.Configuring Azure Monitor alerts for failed sign-in attempts.
D.Enabling soft-delete and purge protection on Azure Key Vaults.
E.Storage account access keys remaining unchanged for over a year with broad data access.
AnswersB, E

Subscription-wide or root Owner access for guests gives complete tenant compromise potential.

Why this answer

Assigning Owner/Contributor at the subscription root and leaving storage account access keys unrotated are major risks.

261
Multi-Selectmedium

During an AWS security review, a penetration tester identifies several identity and storage policies. Which TWO of the following configurations are considered insecure? (Choose TWO)

Select 2 answers
A.An IAM role trust policy that permits assumption by any AWS account across the entire AWS partition without external ID checks.
B.Enabling Amazon S3 Object Versioning on critical document storage buckets.
C.Enabling AWS KMS key rotation for all customer-managed cryptographic keys annually.
D.An AWS KMS key policy granting kms:* permissions to the root user and trusted admin roles only.
E.An S3 bucket policy utilizing a wildcard principal ("Principal": "*") combined with an Allow action without sufficient condition constraints.
AnswersA, E

Trusting any AWS account globally without external ID conditions enables cross-account abuse.

Why this answer

Wildcard principal in resource policies and overly broad KMS key policies are insecure.

262
MCQeasy

Which Active Directory right or permission allows a security principal to perform a DCSync attack, thereby replicating domain secrets?

A.GenericAll over thekrbtgt account
B.DS-Replication-Get-Changes and DS-Replication-Get-Changes-All
C.FullControl over the Domain Controllers OU
D.WriteDACL on the builtin Administrators group
AnswerB

These two extended rights are necessary and sufficient to request password replication from domain controllers.

Why this answer

DCSync functionality requires the DS-Replication-Get-Changes and DS-Replication-Get-Changes-All extended rights on the domain root object.

263
MCQeasy

A penetration tester needs to perform a stealthy TCP SYN scan against a target network using Nmap to avoid triggering simple stateless packet filters. Which command-line flag should be used?

A.-sA
B.-sU
C.-sT
D.-sS
AnswerD

-sS executes a stealthy TCP SYN scan.

Why this answer

The -sS flag tells Nmap to perform a TCP SYN scan, which sends a SYN packet and waits for a SYN-ACK response, never completing the full 3-way handshake, thus remaining stealthier.

264
MCQhard

An attacker is performing a man-in-the-middle attack against an industrial control network utilizing the S7comm protocol between a Siemens S7-300 PLC and an engineering station. The attacker wants to inject malicious logic into the PLC memory. Which tool can be used to craft and send malicious S7comm packets to manipulate the PLC operating mode?

A.Snap7 library scripts
B.Aircrack-ng
C.Hydra
D.Wireshark
AnswerA

Snap7 provides a set of communication functions specifically designed to interface with Siemens S7 PLCs, allowing block reading, writing, and mode switching.

Why this answer

Snap7 is an open-source Siemens S7 communication library that allows developers and testers to interact with Siemens PLCs. Wireshark is passive, Metasploit has limited industrial modules, and Scapy can craft raw packets but Snap7 is the standard library for S7comm manipulation.

265
MCQmedium

During an Azure assessment, an attacker discovers that an App Service web application has Managed Identity enabled and the underlying application code is vulnerable to Server-Side Request Forgery (SSRF). How can the attacker chain these vulnerabilities?

A.By extracting the plaintext storage account keys from the kudu SCM debug console logs.
B.By using the SSRF vulnerability to query the Azure Instance Metadata Service (IMDS) and retrieve access tokens for the Managed Identity.
C.By forcing the App Service to downgrade its TLS version to SSLv3.
D.By injecting malicious PowerShell commands into the Azure Active Directory synchronization pipe.
AnswerB

IMDS endpoints are accessible via SSRF, leaking managed identity access tokens.

Why this answer

An attacker exploiting SSRF can query the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254 to acquire OAuth access tokens for the managed identity.

266
MCQeasy

A tester discovers that an internal Windows host has the AlwaysInstallElevated registry key set to 1 in both HKCU and HKLM. How can the tester leverage this misconfiguration to escalate privileges?

A.Run a batch script that directly modifies the SAM database registry hive.
B.Execute a local exploit targeting the Print Spooler service via named pipes.
C.Generate a malicious MSI file using msfvenom and execute it using msiexec /quiet /qn /i exploit.msi.
D.Extract plaintext credentials from the lsass.exe process memory.
AnswerC

The msiexec command will install the MSI with elevated privileges when AlwaysInstallElevated is enabled.

Why this answer

AlwaysInstallElevated allows MSI packages to be installed with elevated (NT AUTHORITY\SYSTEM) privileges. The tester can generate a malicious MSI file using msfvenom and install it silently.

267
MCQhard

During a container security assessment, a penetration tester identifies a Kubernetes pod running with 'CAP_SYS_ADMIN' capabilities and the host's PID namespace shared ('hostPID: true'). Which technique allows the tester to escape the container and execute code on the host?

A.Mount the Docker socket inside the container using the mount syscall enabled by CAP_SYS_ADMIN.
B.Execute the 'docker run' command inside the container to spin up a sibling container.
C.Use 'nsenter --target 1 --mount --uts --ipc --net --pid' to enter the host's namespaces and spawn a root shell on the host node.
D.Write directly to the host's /proc/sysrq-trigger file without any additional mounts.
AnswerC

Correct. Combining hostPID and capabilities like CAP_SYS_ADMIN allows the use of nsenter targeting PID 1 on the host to break out of the container boundary.

Why this answer

With CAP_SYS_ADMIN and hostPID enabled, the tester can inspect processes running on the host, locate processes like systemd or docker daemon, and use tools like nsenter or inject payloads into host namespaces.

268
Multi-Selecthard

A penetration tester is evaluating AWS IAM policies for privilege escalation paths. Which THREE of the following IAM action combinations enable direct or indirect privilege escalation in an AWS environment? (Choose THREE)

Select 3 answers
A.cloudwatch:PutMetricData combined with logs:CreateLogGroup.
B.s3:GetObject combined with s3:PutObject on non-sensitive S3 buckets.
C.ec2:RunInstances combined with iam:PassRole allowing assignment of high-privilege IAM roles to newly launched instances.
D.iam:CreateAccessKey combined with iam:UpdateAccessKey on an administrator user account.
E.iam:PutUserPolicy or iam:PutRolePolicy granting administrative permissions to a user or role controlled by the attacker.
.rds:DescribeDBInstances combined with ec2:DescribeSecurityGroups.
AnswersC, D, E

Passing privileged roles to EC2 instances allows extracting credentials and escalating privileges.

Why this answer

iam:CreateAccessKey, iam:PutUserPolicy, and iam:PassRole combined with compute actions allow privilege escalation.

269
MCQmedium

A penetration tester is performing post-exploitation on a Linux system and wants to exploit an NFS share with the 'no_root_squash' option enabled. Which of the following steps must the tester perform from their attacking machine to successfully write a SUID shell to the share?

A.Mount the NFS share using sudo privileges, copy /bin/bash to the share, and set the SUID permission using chmod +s.
B.Modify the /etc/exports file on the remote target directly via standard FTP.
C.Mount the NFS share using standard user privileges and create a standard user shell script.
D.Log into the NFS server directly via SSH using the exported share credentials.
AnswerA

Using sudo to mount allows root mapping, and chmod +s creates a functional SUID binary.

Why this answer

Because no_root_squash allows root access from remote clients to map to root on the NFS server, the attacker must mount the share as local root (using sudo) and compile a SUID binary or copy /bin/bash with the SUID bit set.

270
MCQmedium

An operator captures a valid Ticket Granting Ticket (TGT) for a domain user from memory and wants to inject it into their current session to access network resources without re-authenticating. Which tool and command syntax should be used to import this ticket into the local LSASS session on Windows?

A.Rubeus: golden /ticket:ticket.kirbi
B.PowerView: Invoke-TicketInjection -Path ticket.kirbi
C.Mimikatz: kerberos::ptt ticket.kirbi
D.Impacket: ticketer.py -nthash ...
AnswerC

The kerberos::ptt (Pass-The-Ticket) module in Mimikatz injects the specified ticket file into the current Windows session's LSA memory space.

Why this answer

Pass-the-Ticket involves injecting exported ticket files (such as .kirbi or .ccache format) into memory. Mimikatz uses the 'kerberos::ptt' command to inject a ticket into the current Windows logon session.

271
MCQmedium

During an internal penetration test, you successfully compromise a Linux host with two network interfaces: eth0 (10.10.10.50) connected to the initial segment, and eth1 (192.168.100.10) connected to an isolated internal subnet. To route subsequent Nmap TCP SYN scans through this compromised host into the 192.168.100.0/24 network using Metasploit, which post-exploitation module must you configure and run first?

A.auxiliary/scanner/portscan/tcp
B.post/multi/manage/autoroute
C.exploit/windows/local/payload_inject
D.auxiliary/server/socks_proxy
AnswerB

This is the correct Meterpreter post-exploitation module used to add routes to the session's routing table, enabling communication with hosts on otherwise unreachable subnets.

Why this answer

The autoroute module creates a SOCKS routing table entry inside the Metasploit framework, allowing auxiliary and exploit modules to communicate through the established Meterpreter session into the target subnet.

272
Multi-Selecthard

A penetration tester is assessing an advanced hybrid cloud and Kubernetes infrastructure. Which THREE of the following scenarios represent critical architecture or configuration flaws? (Choose THREE)

Select 3 answers
A.Enabling TLS encryption for all intra-pod and kubelet communications.
B.Enabling Kubernetes audit logs and exporting them to a secure SIEM platform.
C.Exposing the Kubernetes etcd database port (2379) directly to the public internet without mutual TLS authentication.
D.Using RBAC authorization mode with narrowly scoped roles for all cluster service accounts.
E.Storing database credentials in plain Kubernetes ConfigMaps instead of encrypted Secrets or external secret stores.
.Configuring admission webhook servers (ValidatingWebhookConfiguration) without validating TLS certificates or securing webhook endpoints.
AnswersC, E

Exposing unauthenticated etcd allows complete cluster data theft and root takeover.

Why this answer

Shared secrets in configmaps, unauthenticated etcd, and weak webhook configurations are critical flaws.

273
Multi-Selectmedium

Which TWO native Windows tools or Sysinternals utilities can be used by an operator during post-exploitation to dump credentials from the LSASS process memory?

Select 2 answers
A.tasklist.exe /v
B.Sysinternals ProcDump.exe
C.gpresult.exe /h report.html
D.rundll32.exe comsvcs.dll, MiniDump
E.netstat.exe -ano
AnswersB, D

ProcDump can capture a full memory dump of lsass.exe for offline credential extraction.

Why this answer

Procdump (from Sysinternals) and Task Manager / comsvcs.dll or built-in tools likerundll32 with comsvcs.dll are common methods to dump LSASS. Tasklist is just for listing.

274
MCQmedium

An operator has discovered a computer object with Unconstrained Delegation enabled in Active Directory. How can this configuration be abused if a Domain Administrator account can be coerced to authenticate to it?

A.Extract the NTLM hash of the domain controller directly from the SYSVOL share.
B.Forge a Kerberos ticket using the machine account's local SAM database.
C.Modify group policy objects via unauthenticated LDAP queries.
D.Capture the coerced Domain Admin's TGT from the machine's memory to impersonate them across the domain.
AnswerD

Unconstrained delegation causes the TGT to be stored in LSASS memory upon authentication, enabling full domain takeover.

Why this answer

When unconstrained delegation is enabled, any service ticket sent to the machine caches the authenticating user's TGT in memory. If a Domain Admin authenticates (e.g., via PrinterBug), the operator can extract the cached TGT and perform DCSync.

275
MCQhard

During an internal penetration test, an operator wants to perform lateral movement using PsExec. Which underlying Windows mechanism does PsExec rely on to deploy and execute its service binary on the remote target?

A.Initiating an RDP cliprdr channel file transfer.
B.Writing a payload to the target's startup folder via FTP.
C.Injecting shellcode into the lsass.exe process over WinRM.
D.Copying an executable to the ADMIN$ share and creating a remote Windows service via the Service Control Manager (SCM).
AnswerD

PsExec uses SMB to upload the binary to ADMIN$ and RPC to create/start the service via SCM.

Why this answer

PsExec connects to the remote ADMIN$ share, uploads a service executable (such as Psexecsvc.exe), and then creates and starts a Windows service using the Service Control Manager (SCM) via RPC.

276
MCQhard

A pentester is performing a security review of a smart meter that utilizes an unencrypted CoAP (Constrained Application Protocol) service running over UDP. Using Python and Scapy, the tester crafts a packet to interact with the device. Which default UDP port should the tester target for standard unencrypted CoAP communications?

A.UDP 1900
B.UDP 5353
C.UDP 5060
D.UDP 5683
AnswerD

UDP port 5683 is the IANA-assigned default port for standard, unencrypted CoAP messaging.

Why this answer

CoAP is designed for resource-constrained internet devices and typically operates over UDP port 5683 for unencrypted traffic and port 5684 for secure DTLS traffic.

Page 3

Page 4 of 4

All pages