Question 230
The testing team seeks a specific preventive recommendation for this finding: A Linux host advertises RPC services to workstation networks that have no operational need to reach the portmapper or its dynamic endpoints. What should be implemented?
- Use SNMPv3 with authentication, privacy, and management ACLs
- Restrict share listing and access through SMB permissions and segmentation
- Disable anonymous enumeration and review guest or null-session policies
- Restrict rpcbind access to networks that need RPC services
Explanation
Correct Answer
D:Management network controls suppress unnecessary program enumeration and narrow exposure of related RPC daemons. The underlying condition is that rpcbind maps ONC RPC program identifiers to network addresses or ports, providing service discovery without directly enumerating file content.
Incorrect Answers
A:SNMPv3 protects management exchanges, while device and network restrictions reduce exposure of sensitive interface and configuration details; the required correction concerns rpcbind service inventory, so this is not the targeted control.
B:Share and NTFS permissions plus network isolation reduce unauthorized resource browsing even when SMB must remain available to staff; its security benefit applies principally to SMB share enumeration, not the defect described; the tested fault instead involves rpcbind service inventory.
C:Explicitly limiting unauthenticated SMB and RPC access prevents account and share disclosure while preserving required authenticated service use; the exposure here is rpcbind service inventory, which calls for another protective mechanism.
Question 231
A defender analyzing an approved exercise sees this pattern: A tester establishes that port 443 is reachable but needs to determine the actual application software and protocol version behind it. Which mechanism is most consistent with it?
- TCP NULL scan
- Rate-limited scan results
- TLS endpoint inspection
- Service version probing
Explanation
Correct Answer
D:Service detection sends protocol-aware probes and interprets server responses; the port number alone does not prove which application is listening. The control that addresses this failure path is to patch identified software and minimize optional version disclosure; version knowledge supports accurate inventory and remediation; changing a port or suppressing a banner alone does not remove vulnerable code.
Incorrect Answers
A:NULL scanning sends a zero-flag TCP segment and infers states from implementation-dependent responses; it is not a universally reliable port test; this would classify another type of evidence, whereas the actual finding shows service version probing.
B:Scan rate and retransmission timing influence responses when devices enforce thresholds; an apparent missing port may be a rate-limit artifact; the relevant mechanism in the observed workflow is service version probing instead.
C:A TLS handshake probe identifies negotiated protocols, cipher suites, and certificate identity; bare TCP availability does not prove encryption; those effects are not the service version probing pattern evidenced by the assessment.
Question 232
The post-assessment action plan cites this evidence: A delegated reverse-DNS zone exposes a detailed inventory of internal service labels that should not be inferable from publicly routable IP addresses. Which corrective measure should be prioritized?
- Restrict share listing and access through SMB permissions and segmentation
- Manage service-account permissions and use strong managed secrets
- Disable external VRFY responses or normalize recipient disclosure
- Review reverse zone permissions and publicly visible PTR values
Explanation
Correct Answer
D:Administrative naming policies limit unintended disclosure, though reverse DNS changes do not remove reachable hosts or vulnerable applications. It targets the actual failure mode: a PTR lookup maps an IP address to a reverse DNS name; the result may reveal server role labels but not proof that services are running.
Incorrect Answers
A:Share and NTFS permissions plus network isolation reduce unauthorized resource browsing even when SMB must remain available to staff; it would improve SMB share enumeration, not directly correct the reported PTR record enumeration issue.
B:Tight account privileges and long, rotated secrets limit subsequent ticket-based password attacks after SPN exposure; the measure addresses a different trust boundary from the PTR record enumeration finding.
C:Reducing account-validity feedback limits mailbox harvesting without blocking ordinary SMTP acceptance and queued delivery; the required correction concerns PTR record enumeration, so this is not the targeted control.
Question 233
The assessor confirmed this exposure: A banking endpoint accepts form-encoded transfers triggered by any website when the customer's browser already has an authenticated session and no request-specific anti-forgery check. Which change most directly closes the underlying security gap?
- Apply Content-Security-Policy frame-ancestors restrictions
- Enforce outbound destination allowlists and block internal metadata ranges
- Replace unsafe DOM sinks with text-safe APIs and validate client data
- Require unpredictable anti-CSRF tokens for state-changing requests
Explanation
Correct Answer
D:Per-session tokens and origin checks bind sensitive operations to legitimate application flows beyond the presence of browser cookies. The technical basis for the recommendation is that CSRF exploits automatic credential attachment on cross-site requests; it does not require the attacker to read the victim's authenticated response.
Incorrect Answers
A:A framing policy lets browsers prevent unauthorized embedding of sensitive pages, removing the overlay surface used in this deception; the action is aimed at clickjacking; it leaves the central cross-site request forgery condition unresolved.
B:URL and IP validation plus restricted egress prevent the server from acting as a proxy to sensitive services outside the feature's intended scope; this is relevant to a separate server-side request forgery scenario, rather than the identified exposure; the tested fault instead involves cross-site request forgery.
C:Using textContent or safe templating blocks markup interpretation even when attacker-controlled fragments never pass through the server; the tested weakness is cross-site request forgery, not the DOM-based cross-site scripting configuration addressed here.
Question 234
The asset owner wants to stop the verified condition recurring: An approved sensor sees many half-open connection attempts across a set of listening TCP ports, and the defender must decide how to track and limit the probe traffic. What is the most targeted improvement?
- Monitor SYN probing patterns and apply network exposure controls
- Alert on unusual multi-flag probes and validate with conventional scans
- Correlate unusual completed connections across many service ports
- Use layered scan detection and verify FIN findings with ordinary service probes
Explanation
Correct Answer
A:Connection attempts to many ports can indicate reconnaissance; reducing reachable listeners is stronger protection than hiding TCP banners alone. This matters for the observed attack path because a SYN scan infers open ports from SYN-ACK replies and commonly avoids completing the full TCP connection, subject to privilege and firewall behavior.
Incorrect Answers
B:Filtering and traffic analysis detect atypical reconnaissance, but a missing response should not be reported as confirmed open access; that change targets TCP Xmas scan, while the confirmed weakness involves TCP SYN scan.
C:Service logs and perimeter telemetry can reveal this scan pattern even when the scanner lacks the privileges needed to craft raw packets; it would improve TCP connect scan, not directly correct the reported TCP SYN scan issue.
D:Anomaly telemetry can flag unusual TCP flags, and corroborating normal connection behavior prevents treating silent responses as proof of openness; the measure addresses a different trust boundary from the TCP SYN scan finding.
Question 235
An incident analyst is asked to classify this observed activity: A stored script executes in a victim's browser and reads a session cookie that was accessible to JavaScript. Which concept is the closest match?
- XSS-mediated cookie theft
- Unrevoked logout token
- HttpOnly cookie attribute
- SameSite cookie behavior
Explanation
Correct Answer
A:Cross-site scripting can expose session cookies when HttpOnly is absent; the attacker obtains the bearer token rather than learning the account password. This is why teams should use HttpOnly cookies plus contextual output encoding; HttpOnly blocks JavaScript cookie reads, while output encoding addresses the script execution source; neither control alone covers all session attacks.
Incorrect Answers
B:A logout operation that only clears client storage may leave a server-side session valid, permitting reuse of an earlier stolen bearer token; the test record points specifically to XSS-mediated cookie theft, not this separate mechanism.
C:HttpOnly prevents browser JavaScript from reading a cookie, but the browser can still attach it to legitimate HTTP requests; that behavior is distinct from the XSS-mediated cookie theft finding being classified.
D:SameSite controls when browsers attach cookies to cross-site requests; Strict and Lax differ in their treatment of navigation and request methods; the scenario identifies XSS-mediated cookie theft, which has a different triggering condition.
Question 236
A production hardening ticket was raised after this confirmed observation: A low-power sensor transmits operational commands over bare CoAP without datagram security, making both message confidentiality and authenticity questionable on a shared radio network. Which action best targets the risk?
- Segment historian access and enforce application-specific read permissions
- Disable unnecessary UPnP mapping or strictly constrain authorized clients
- Use secure commissioning and device-specific join procedures
- Use DTLS or OSCORE where device capabilities and deployment permit
- Enable supported DNP3 secure authentication and tightly manage control keys
Explanation
Correct Answer
D:Appropriate message protection reduces interception and command forgery for constrained devices while acknowledging resource limitations. That correction is linked to the fact that CoAP is an application protocol often run over UDP; without DTLS, OSCORE, or a protected network, messages may lack confidentiality and authenticity.
Incorrect Answers
A:Controlled paths preserve authorized reporting while reducing broad visibility into industrial telemetry and possible pivot routes; that safeguard does not directly close the CoAP plaintext exchange route highlighted by the test.
B:Explicit port-forwarding policy prevents untrusted devices from silently publishing internal services through the edge gateway; the proposed improvement would make sense for exposed UPnP forwarding but not as the main fix here; the tested fault instead involves CoAP plaintext exchange.
C:Verified joining limits rogue devices and prevents a shared public commissioning secret from undermining mesh admission security; the specific root cause belongs to CoAP plaintext exchange, beyond this control's intended scope.
E:Authenticated commands reduce spoofing of control operations, with segmentation still required for legacy devices and unsupported functions; it would improve DNP3 secure authentication, not directly correct the reported CoAP plaintext exchange issue.
Question 237
A security engineer examines the following result: A device accepts a low-assurance pairing method without user confirmation even though sensitive data will be exchanged afterward. Which described weakness or technique does it demonstrate?
- Wireless jamming
- WPA3-SAE authentication
- Evil-twin access point
- Bluetooth pairing downgrade
Explanation
Correct Answer
D:Bluetooth pairing methods have different authentication guarantees; Just Works pairing can lack MITM resistance in situations requiring verified peer identity. A practical defensive response is to use authenticated pairing methods and verify device identities; numeric comparison or suitable authenticated pairing reduces undetected peer impersonation compared with accepting every unsolicited pairing prompt.
Incorrect Answers
A:RF jamming disrupts availability at the physical layer; stronger cryptographic keys do not eliminate interference in the shared radio spectrum; that behavior is distinct from the bluetooth pairing downgrade finding being classified.
B:WPA3-Personal uses SAE rather than the WPA2-Personal PSK handshake, improving resistance to passive offline password guessing under proper implementation; the scenario identifies bluetooth pairing downgrade, which has a different triggering condition.
C:An evil twin imitates a legitimate wireless network's identity to intercept associations or lead clients into fraudulent authentication and traffic paths; the defining symptom in the prompt is associated with bluetooth pairing downgrade instead.
Question 238
The tester submits the following verified finding: An application keeps a database password in its source repository although a cloud-native secrets service is available. Which technique or condition is involved?
- Overly permissive security group
- Static cloud access keys
- Cloud secret management
- Public object storage exposure
Explanation
Correct Answer
C:Application secret material embedded in code spreads across source control, build logs, and deployments, making controlled rotation and access auditing harder. On affected systems, it is useful to store secrets in a managed vault and use workload identity retrieval; centralized access policy and audit trails separate secret handling from source code, enabling rotation without distributing plaintext credentials in artifacts.
Incorrect Answers
A:Security groups regulate network reachability around workloads; an unrestricted source range exposes a service to unrelated internet hosts; the scenario identifies cloud secret management, which has a different triggering condition.
B:Long-lived static credentials remain useful after an instance is discarded unless revoked, creating persistent exposure across build artifacts and logs; the defining symptom in the prompt is associated with cloud secret management instead.
D:Public object permissions expose stored data independently of whether the bucket name is difficult to guess; link obscurity does not enforce authorization; the reported conditions are characteristic of cloud secret management, not that path.
Question 239
A security engineer examines the following result: Reviewers receive application source, architecture diagrams, and test credentials for every supported privilege level. Which described weakness or technique does it demonstrate?
- White-box assessment
- Gray-box assessment
- Black-box assessment
- Risk assessment
Explanation
Correct Answer
A:White-box assessment uses extensive design and implementation knowledge to inspect hidden execution paths, business logic, and code-level weaknesses unavailable externally. The appropriate hardening measure is to reconcile source review with runtime verification of discovered flaws, since knowing the code does not itself demonstrate exploitability in the deployed configuration; validated runtime behavior makes the finding dependable.
Incorrect Answers
B:Gray-box testing combines partial internal knowledge with constrained access; it helps examine authorization boundaries while retaining a realistic nonadministrative perspective; the events given do not establish this behavior but do support white-box assessment.
C:Black-box testing models an outside party with little prior knowledge; it emphasizes externally discoverable paths but offers less coverage of privileged or internal behaviors; the reported conditions are characteristic of white-box assessment, not that path.
D:Risk incorporates likelihood, business exposure, and impact; technical severity alone does not determine the order of remediation for distinct operational contexts; those prerequisites differ from the white-box assessment behavior in the record.
Question 240
A security change request summarizes the problem as follows: An attacker includes a fabricated client-address forwarding header, and the application mistakenly uses that untrusted value to bypass a location-based administrative restriction. Which remediation is best suited to it?
- Restrict management access through private networks and strong authentication
- Set a safe default virtual host and validate expected hostnames
- Mark sensitive responses private or no-store and review cache keys
- Accept forwarding headers only from trusted proxy addresses
Explanation
Correct Answer
D:Header sanitization and source validation prevent direct clients from impersonating internal addresses or bypassing IP-based controls. The technical basis for the recommendation is that proxy metadata headers are only trustworthy when inserted or sanitized by an authenticated, trusted upstream hop; arbitrary clients may forge them.
Incorrect Answers
A:Network isolation narrows who can attempt administrative operations, while MFA and role controls protect approved administrators; the exposure here is reverse proxy trust boundary, which calls for another protective mechanism.
B:Explicit host routing prevents arbitrary names from reaching sensitive virtual hosts or generating unsafe absolute links; the action is aimed at name-based virtual hosting; it leaves the central reverse proxy trust boundary condition unresolved.
C:Correct cache behavior prevents personal content from being reused for unrelated clients even when the backend authorization check was sound; this is relevant to a separate sensitive response caching scenario, rather than the identified exposure; the tested fault instead involves reverse proxy trust boundary.