Quiz · Hard
Applied, Security+ style scenarios on incident response, controls, vulnerabilities and architecture decisions.
Employees report an email from the 'CEO' asking them to buy gift cards urgently. Which attack is this, and what is the best first response?
Ransomware; restore from backup
DDoS; enable rate limiting
Business email compromise / whaling; verify through another channel and report it
SQL injection; use prepared statements
This is a social engineering fraud. Verify requests out of band using known contact details and report to security so the sender can be blocked.
A developer's code concatenates user input into SQL queries. Which fix is most effective?
Hiding the error messages
Parameterized queries (prepared statements)
Blocking the word SELECT
Encrypting the database
Parameterized queries separate code from data so input cannot change the query structure. Keyword blocking is easily bypassed.
After a phishing attack stole credentials, the attacker logged in from another country. Which control would have best prevented the access?
Phishing-resistant MFA plus conditional access
A longer password policy
Disabling the firewall logs
A stricter email signature policy
With MFA the stolen password alone is insufficient; conditional access can block unusual locations.
A server shows outbound traffic every 60 seconds to an unknown IP, with small packets of regular size. What does this suggest?
A DHCP renewal
A normal NTP sync
A failed backup
Command-and-control beaconing
Regular, small, periodic connections to an external IP are classic C2 beacons. NTP would use UDP 123 to known servers.
You discover ransomware on one workstation. What should you do first?
Reboot it to clear memory
Pay the ransom immediately
Isolate the host from the network
Delete the encrypted files
Containment stops the spread. Rebooting destroys volatile evidence and paying is a business decision made later, not step one.
A vulnerability scan reports a critical flaw on an internet-facing server but no patch exists yet. What is the best interim action?
Ignore it until a patch appears
Apply a compensating control such as WAF rules, isolation or disabling the service
Delete the scan results
Lower the CVSS score
If you cannot patch, reduce exposure with compensating controls and monitor closely.
A pen tester is given user credentials and network diagrams but not source code. What type of test is this?
Gray box
Black box
White box
Red team only
Partial knowledge makes it gray box. White box includes source code and full architecture.
A company wants employees to reach internal apps from anywhere, granting access per application based on identity and device health. Which approach fits?
A flat VLAN with a shared VPN password
Port forwarding on the router
A guest Wi-Fi network
Zero trust network access (ZTNA)
ZTNA verifies identity and posture per request rather than trusting the network location.
A user clicks a link and a script in the URL runs in their browser, stealing their session cookie from a legitimate site. Which vulnerability is this?
CSRF
Buffer overflow
Reflected cross-site scripting (XSS)
Directory traversal
A malicious script embedded in a request and reflected by the site executes in the victim's browser. Output encoding and a CSP are the main defenses.
An admin account was used at 3 a.m. to download the entire customer database. Logs show the real admin was asleep. Which detection capability is MOST relevant?
Antivirus signatures
User and entity behavior analytics (UEBA)
Port scanning
Content filtering
UEBA baselines normal behavior and flags anomalies such as unusual hours and volumes.
Which is an example of a corrective control?
Restoring from backup after an incident
A mandatory security awareness course
A mantrap at the entrance
A warning banner at login
Corrective controls repair damage after an event. Training is preventive, mantraps preventive/physical, and banners are deterrent.
A web server must allow only HTTPS and SSH from a management subnet. Which firewall rule set best follows least privilege?
Allow all TCP from any; deny UDP
Allow TCP 22 and 443 from any source
Allow all from the management subnet and from any on port 443
Allow TCP 443 from any; allow TCP 22 only from the management subnet; deny all else
Open only what is needed, restrict admin protocols to the management network and end with an implicit deny.
A third-party library used in your app has a newly disclosed critical CVE. Which artifact helps you find where it is used fastest?
A network diagram
A business continuity plan
An SBOM
A password policy
A Software Bill of Materials lists every component and version across your software.
An attacker with a standard user account gains Domain Admin rights by exploiting a flaw. Which attack category is this?
Lateral movement only
Privilege escalation
Data exfiltration
Session hijacking
Gaining higher privileges than intended is privilege escalation; lateral movement is moving to other systems.
Which Wi-Fi security setting best protects a corporate network where each user has their own login?
WPA3-Enterprise (802.1X with RADIUS)
WPA2-Personal with a long passphrase
WEP with a hidden SSID
An open network with a captive portal
Enterprise mode authenticates each user individually so one leaked passphrase does not expose everyone, and access can be revoked per user.
A company stores encryption keys in application config files on the same server as the data. What is the main problem?
Keys expire too quickly
AES cannot be used on servers
The data cannot be backed up
A server compromise exposes both the data and the keys
Keys should live in an HSM or key vault separate from the data they protect.
Which activity is part of the 'Recovery' phase of incident response?
Collecting volatile evidence
Writing the post-incident report
Restoring systems from clean backups and monitoring for reinfection
Isolating the infected host
Recovery returns systems to normal operation. Collecting evidence and isolation belong to containment; the report belongs to lessons learned.
Two-factor authentication using a password and a security question is...
True MFA
Not true multi-factor, because both are 'something you know'
Stronger than a hardware token
Biometric authentication
Different factor types are required: knowledge, possession, inherence. Two knowledge factors are still one factor type.
A contractor leaves the company, but their VPN account still works three weeks later. Which process failed?
Offboarding / account deprovisioning
Patch management
Backup rotation
Change control for firewalls
Accounts must be disabled promptly when access is no longer needed; orphaned accounts are a common entry point.
Which of the following best describes a zero-day vulnerability?
A flaw patched on the day of release
A vulnerability that only affects beta software
A flaw that expires after 24 hours
A flaw unknown to the vendor with no patch available
Zero-day means defenders have had zero days to fix it, so detection and mitigation (not patching) are the only defenses at first.