Question 180
During a documented lab review, an analyst notes: A search parameter is returned directly in an HTML response and executes script when a victim opens the specially crafted link. What mechanism should be recorded?
- DOM-based cross-site scripting
- Cross-site request forgery
- Reflected cross-site scripting
- Stored cross-site scripting
Explanation
Correct Answer
C:Reflected XSS returns unsafely embedded input in the immediate server response; the payload does not need to be permanently stored by the application. For a production safeguard, operators can encode untrusted values for the exact HTML or script output context; context-appropriate escaping prevents user-controlled text from becoming executable markup while preserving legitimate displayed search terms.
Incorrect Answers
A:DOM XSS occurs when client-side JavaScript moves untrusted data into a dangerous DOM sink; the server response may be static; the events given do not establish this behavior but do support reflected cross-site scripting.
B:CSRF exploits automatic credential attachment on cross-site requests; it does not require the attacker to read the victim's authenticated response; the reported conditions are characteristic of reflected cross-site scripting, not that path.
D:Stored XSS persists attacker-controlled content server-side and delivers it to later viewers through unsafe rendering; this would classify another type of evidence, whereas the actual finding shows reflected cross-site scripting.
Question 181
The tester submits the following verified finding: A function assumes that every JSON field supplied by a public event trigger is trusted and uses one field to invoke privileged backend actions. Which technique or condition is involved?
- Overly permissive security group
- Multitenant isolation
- Serverless event injection
- Public object storage exposure
Explanation
Correct Answer
C:Serverless triggers deliver data but do not guarantee every event field has appropriate business authorization; code must validate and authenticate the request context. A targeted mitigation is to validate event schemas and apply function-level authorization; schema checks and explicit authorization prevent a public trigger from translating arbitrary input into privileged cloud operations.
Incorrect Answers
A:Security groups regulate network reachability around workloads; an unrestricted source range exposes a service to unrelated internet hosts; the reported conditions are characteristic of serverless event injection, not that path.
B:Multitenant applications must enforce tenant context at every relevant data access path; unique identifiers are not authorization checks; those prerequisites differ from the serverless event injection behavior in the record.
D:Public object permissions expose stored data independently of whether the bucket name is difficult to guess; link obscurity does not enforce authorization; the relevant mechanism in the observed workflow is serverless event injection instead.
Question 182
During a documented lab review, an analyst notes: A network engineer configures a switch to copy selected VLAN traffic to a monitoring interface used by a packet sensor. What mechanism should be recorded?
- Promiscuous-mode capture
- Rogue DHCP server
- SPAN mirror-port collection
- DHCP snooping bindings
Explanation
Correct Answer
C:Switch port mirroring delivers copies of specified traffic to an analyzer without placing it inline in the production forwarding path. To constrain the corresponding risk, defenders should restrict and audit mirror-port configuration and sensor access; capture destinations can contain sensitive traffic; management authorization and storage controls protect copied packets from unauthorized readers.
Incorrect Answers
A:Promiscuous mode lets an interface pass additional received frames to capture software; a modern switched network still limits which frames physically reach that port; those prerequisites differ from the SPAN mirror-port collection behavior in the record.
B:Rogue DHCP replies can provide malicious network settings that redirect subsequent name resolution and traffic even without changing host applications; this would classify another type of evidence, whereas the actual finding shows SPAN mirror-port collection.
D:DHCP snooping establishes trusted DHCP-server direction and binding data used by other access-layer protections such as dynamic ARP inspection; those effects are not the SPAN mirror-port collection pattern evidenced by the assessment.
Question 183
During a scoped review the analyst records both conditions: A server is fully patched but has an unnecessary service enabled and a permissive audit setting that violates the organization's hardening baseline. Separately, the standardized exploitability and impact assessment for one disclosed bug stays numerically stable when the affected software is moved from a staging host to a production billing server. Which TWO interpretations match the evidence? Choose TWO.
- Configuration benchmark assessment
- Unauthenticated assessment
- CVSS base score
- Authenticated vulnerability scan
- CVE identifier
Explanation
Correct Answers
A:Configuration assessment compares deployed settings to a defined security benchmark; vulnerability risk can result from misconfiguration without a missing software update; this technical behavior accounts for the configuration benchmark assessment observation, while CVSS base score concerns the other independent evidence.
C:CVSS base metrics characterize intrinsic exploitability and impact; local exposure and business consequences are captured separately through context or environmental assessment; its indicators are tied to the CVSS base score record, not to the finding involving configuration benchmark assessment.
Incorrect Answers
B:Unauthenticated scanning assesses exposed services and observable configuration from a chosen network vantage point, not hidden local state; the relevant mechanism in the observed workflow is configuration benchmark assessment, CVSS base score instead.
D:Credentialed scanning examines installed versions, configurations, and local patch state; network-only checks may miss software with no exposed banner; the case demonstrates configuration benchmark assessment, CVSS base score rather than the alternate mechanism.
E:A CVE is a standardized identifier for a disclosed vulnerability; it is not itself a severity score, exploit proof, or patch confirmation; the observed evidence concerns configuration benchmark assessment, CVSS base score instead.
Question 184
The testing team seeks a specific preventive recommendation for this finding: An office document process unexpectedly spawns a shell and then a web downloader; signature scans find no known malware hash on disk. What should be implemented?
- Combine static indicators with isolated dynamic observation
- Inspect anomalous periodic egress and block unapproved destinations
- Investigate process ancestry and enforce endpoint response policy
- Limit untrusted extensions and investigate unauthorized collection processes
Explanation
Correct Answer
C:Parent-child telemetry reveals unusual execution chains and supports containment of suspicious behavior across multiple different payload hashes. It directly addresses this mechanism: behavioral detection evaluates execution relationships and suspicious actions rather than requiring an exact previously known malware file signature.
Incorrect Answers
A:A controlled sandbox can expose unpacked behavior and runtime imports while avoiding conclusions based only on unusual file entropy; it would improve packed executable analysis, not directly correct the reported behavioral EDR alert issue.
B:Network telemetry and destination reputation can reveal remote-control channels even when the payload hides its instructions inside ordinary-looking requests; the measure addresses a different trust boundary from the behavioral EDR alert finding.
D:Browser and endpoint controls reduce hidden collection channels, while network egress monitoring can identify telemetry sent to unapproved destinations; its security benefit applies principally to spyware collection, not the defect described; the tested fault instead involves behavioral EDR alert.
Question 185
A security engineer examines the following result: A retrieved web page tells an AI analysis tool to ignore its task and disclose internal assessment notes instead of summarizing page content. Which described weakness or technique does it demonstrate?
- Confidentiality
- Least privilege
- Threat modeling
- Prompt injection of an assessment assistant
Explanation
Correct Answer
D:Prompt injection places adversarial instructions inside lower-trust material that a language model reads as data. The trust boundary fails if that text gains control authority. This is why teams should treat retrieved content as untrusted data and constrain tool privileges; instruction separation, restricted tool permissions, and output validation reduce the chance that untrusted document text can redirect an automated assessment workflow.
Incorrect Answers
A:Confidentiality protects information against unauthorized disclosure; a system can preserve availability and integrity while still failing to restrict who reads sensitive material; those effects are not the prompt injection of an assessment assistant pattern evidenced by the assessment.
B:Least privilege assigns only the specific permissions and duration needed for a task; excess authority expands the impact of error or credential compromise; the case demonstrates prompt injection of an assessment assistant rather than the alternate mechanism.
C:Threat modeling is a structured way to reason about assets, entry points, trust boundaries, and attack paths before or during implementation; the observed evidence concerns prompt injection of an assessment assistant instead.
Question 186
The assessment evidence reads as follows: A log-processing function has full account-administrator permissions even though it only needs to append entries to one storage destination. Which technical concept explains the result?
- Overly permissive security group
- Kubernetes RBAC escalation
- Cloud posture drift
- Overbroad cloud IAM role
- Cloud audit logging gap
Explanation
Correct Answer
D:Excess IAM privileges magnify damage from leaked tokens or compromised workloads; role scope should follow the actual API operations required. For a production safeguard, operators can grant a task-specific least-privilege service role; limiting API actions and target resources preserves log writing without granting unrelated account configuration or data deletion authority.
Incorrect Answers
A:Security groups regulate network reachability around workloads; an unrestricted source range exposes a service to unrelated internet hosts; the case demonstrates overbroad cloud IAM role rather than the alternate mechanism.
B:Kubernetes RBAC controls API operations on resource types and scopes; excessive role-binding authority can indirectly yield broad cluster privileges; the observed evidence concerns overbroad cloud IAM role instead.
C:Cloud posture drift occurs when deployed configuration departs from defined policy through manual edits or automated infrastructure changes; the test record points specifically to overbroad cloud IAM role, not this separate mechanism.
E:Cloud control-plane audit trails record resource and identity operations; without centralized retention, policy changes can escape meaningful attribution; the scenario identifies overbroad cloud IAM role, which has a different triggering condition.
Question 187
An incident analyst is asked to classify this observed activity: A system must encrypt a short random symmetric key using an RSA public key without relying on outdated deterministic RSA padding. Which concept is the closest match?
- Cryptographic key rotation
- Hash collision concept
- RSA-OAEP encryption
- Quantum risk to public-key cryptography
- Full-disk encryption boundary
Explanation
Correct Answer
C:RSA-OAEP uses randomized asymmetric encryption padding suitable for wrapping short secrets, not for bulk data encryption at high throughput. The control that addresses this failure path is to use an approved OAEP padding mode and hybrid encryption design; a random symmetric data key handles bulk encryption efficiently while correctly padded RSA protects key transport.
Incorrect Answers
A:Key rotation periodically replaces cryptographic key material, reducing exposure windows; encrypted historical data may still depend on older keys; the observed evidence concerns RSA-OAEP encryption instead.
B:A cryptographic collision occurs when distinct inputs produce the same digest; fixed-size hashes necessarily have possible collisions, with practical resistance varying by algorithm; the test record points specifically to RSA-OAEP encryption, not this separate mechanism.
D:Sufficiently capable quantum computers threaten widely deployed factoring and discrete-logarithm public-key schemes; symmetric cryptography faces a different security trade-off; the scenario identifies RSA-OAEP encryption, which has a different triggering condition.
E:Full-disk encryption protects data at rest against offline media access; it does not stop a logged-in or fully compromised running system from reading unlocked files; the defining symptom in the prompt is associated with RSA-OAEP encryption instead.
Question 188
During a documented lab review, an analyst notes: A diagnostic web endpoint passes a form field into a shell command and unexpected shell metacharacters change execution behavior. What mechanism should be recorded?
- DOM-based cross-site scripting
- Operating-system command injection
- Unsafe file upload
- XML external entity processing
Explanation
Correct Answer
B:Command injection arises when untrusted text is interpreted as operating-system command syntax rather than a literal argument or data value. The control that addresses this failure path is to avoid shell invocation and pass validated arguments to direct process APIs; separating executable selection from user data prevents shell parsing from transforming input into additional commands.
Incorrect Answers
A:DOM XSS occurs when client-side JavaScript moves untrusted data into a dangerous DOM sink; the server response may be static; the test record points specifically to operating-system command injection, not this separate mechanism.
C:Unsafe upload handling combines untrusted file content with executable storage or insecure processing, potentially turning an image feature into a code path; the scenario identifies operating-system command injection, which has a different triggering condition.
D:XXE occurs when XML parsing resolves untrusted external entities or DTD resources, potentially reaching files or internal URLs from the server; the defining symptom in the prompt is associated with operating-system command injection instead.
Question 189
The post-assessment action plan cites this evidence: During an incident, cloud administrators find no retained record of who modified an IAM policy because control-plane audit collection was never enabled for the affected environment. Which corrective measure should be prioritized?
- Enable organization-wide control-plane logging with protected retention
- Grant a task-specific least-privilege service role
- Drop unnecessary capabilities and avoid privileged containers or host mounts
- Block public access and apply explicit identity-based bucket policies
Explanation
Correct Answer
A:Independent log storage and consistent account coverage preserve an audit trail even after a compromised account attempts to alter local settings. The specific weakness being corrected is that cloud control-plane audit trails record resource and identity operations; without centralized retention, policy changes can escape meaningful attribution.
Incorrect Answers
B:Limiting API actions and target resources preserves log writing without granting unrelated account configuration or data deletion authority; the required correction concerns cloud audit logging gap, so this is not the targeted control.
C:Hardened runtime profiles and minimal mount exposure contain a compromised process within a narrower host attack surface; its security benefit applies principally to container runtime escape, not the defect described; the tested fault instead involves cloud audit logging gap.
D:Least-privilege resource policies and public-access guardrails stop anonymous reads while preserving approved application retrieval; the exposure here is cloud audit logging gap, which calls for another protective mechanism.
Question 190
An authorized security review documents this behavior: A detector and a server disagree about sequence-number handling after crafted overlapping segments appear in a session. Which mechanism best accounts for the finding?
- Encrypted traffic blind spot
- TCP stream desynchronization
- IP fragmentation evasion
- TTL-based sensor desynchronization
Explanation
Correct Answer
B:TCP desynchronization exploits differences in stream tracking or overlap resolution, so a detector inspects a byte stream unlike the server's accepted data. For a production safeguard, operators can normalize TCP streams and enforce consistent retransmission handling; reconciling overlap behavior at the boundary prevents ambiguous segments from presenting different effective payloads to sensor and endpoint.
Incorrect Answers
A:Network encryption preserves content confidentiality from passive inspection points; metadata remains visible but payload signatures may be unavailable; the scenario identifies TCP stream desynchronization, which has a different triggering condition.
C:Fragmentation evasion exploits inconsistent packet reassembly between sensors and endpoints, potentially creating divergent views of one logical datagram; the events given do not establish this behavior but do support TCP stream desynchronization.
D:TTL manipulation can create packets observed by one device but not by the endpoint, confusing state tracking when paths and hop counts differ; the reported conditions are characteristic of TCP stream desynchronization, not that path.