GIAC Security Essentials (GSEC) Exam-style mock test
GIAC Security Essentials (GSEC) Practice Exams|Practice test
Full explanations
Exam format
Pass line 73%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Network Security & Defense-in-Depth
A B2B SaaS company hosts its customer portal behind a perimeter firewall only. An auditor warns that one bypassed control exposes every tenant's data. Which design change best reflects defense-in-depth for this environment?
・Replace the perimeter firewall with a newer next-generation firewall that includes integrated intrusion prevention and application awareness features
Incorrect. Upgrading the single perimeter device keeps all protection concentrated at one layer, so a bypass still exposes everything.
✓Add independent controls at the host, application, and data layers so no single failure exposes tenant data across the stack
Correct. Layering independent controls across host, application, and data tiers ensures that defeating one control does not compromise the others.
・Harden the perimeter firewall ruleset and schedule quarterly reviews of the access control list by the security team
Incorrect. Tightening and reviewing the one firewall improves that control but still leaves a single enforcement point protecting all tenants.
・Deploy a second perimeter firewall from a different vendor in parallel to provide redundant filtering at the network edge
Incorrect. A second edge firewall adds redundancy at the same layer, not depth across the host, application, and data tiers.
Explanation
Defense-in-depth distributes controls across multiple layers so a single bypass does not grant access to protected data; redundancy or upgrades at one layer do not provide depth.
Example2 · Cryptography & PKI
A B2B SaaS platform must encrypt a 40 GB nightly tenant data export before writing it to object storage. Engineers want the fastest bulk encryption while still meeting modern security standards. Which approach should the team choose for the bulk data itself?
・Encrypt the entire export with the recipient's RSA-2048 public key so only their private key can decrypt it later
Incorrect. RSA is asymmetric and extremely slow for large volumes; it is used to wrap keys, not to bulk-encrypt gigabytes of data.
✓Use AES-256 in an authenticated mode to encrypt the bulk export quickly on the server before upload
Correct. Symmetric AES-256 is fast and designed for bulk encryption; an authenticated mode adds integrity, making it the right choice for large exports.
・Hash the export with SHA-256 and store the digest alongside the file to protect its confidentiality in storage
Incorrect. Hashing provides integrity, not confidentiality; a SHA-256 digest does not encrypt or hide the file contents.
・Encrypt each file block with the sender's ECDSA signing key, relying on the asymmetric operation for speed
Incorrect. ECDSA is a signing algorithm, not an encryption cipher, and asymmetric operations are far slower than symmetric ones for bulk data.
Explanation
Symmetric ciphers like AES handle bulk data efficiently, while asymmetric algorithms are reserved for key exchange and signatures.
Example3 · Access Control, Authentication & Active Directory
A B2B SaaS company lets each client organization assign its staff to job functions such as Billing Clerk or Support Agent, and each job function grants a fixed bundle of application permissions. The security team wants to manage entitlements by job function rather than per individual user. Which access control model directly supports this requirement?
✓Role-based access control, where permissions are grouped into roles that are then assigned to users by their job function
Correct. Role-based access control (RBAC) assigns permissions to roles and roles to users, which matches managing entitlements by job function.
・Discretionary access control, where each resource owner independently decides which users may read or modify their files
Incorrect. Discretionary access control places control in the hands of individual resource owners, not centralized job-function roles.
・Mandatory access control, where the system enforces security labels and clearances that users cannot override at all
Incorrect. Mandatory access control enforces labels and clearances and is not oriented around business job functions.
・Rule-based access control using ACL conditions evaluated at the perimeter firewall for each traffic flow
Incorrect. Rule-based access control at a firewall governs traffic flows, not application entitlements tied to job functions.
Explanation
RBAC is the model built around assigning permissions to roles and roles to users, making it the correct fit for job-function-based entitlement management.
Example4 · Incident Handling, Malware & Endpoint Security
A hospital's SOC analyst confirms that a billing workstation is actively communicating with a known command-and-control server. The incident handling team has already prepared playbooks and identified the host. According to the standard six-step incident handling process, which action should the team take as its immediate next step?
✓Isolate the infected workstation from the network to stop the attacker's active communication channel
Correct. After preparation and identification, the next phase is containment, which includes isolating the affected host to halt the attacker's active C2 channel.
・Rebuild the workstation from a known-good image and restore the billing application data
Incorrect. Rebuilding and restoring is part of the recovery phase, which occurs only after containment and eradication are complete.
・Draft a detailed post-incident report summarizing the root cause and the lessons learned
Incorrect. Writing the post-incident report belongs to the lessons-learned phase, the final step of the process, not the immediate action.
・Review firewall and proxy logs to confirm whether other hospital hosts show the same beaconing
Incorrect. Reviewing logs to scope the compromise is part of identification, which has already been completed in this scenario.
Explanation
The six-step process is Preparation, Identification, Containment, Eradication, Recovery, and Lessons Learned. With preparation and identification done, containment (isolating the host) is the correct next step.
Example5 · Cloud, Linux & Windows Security
At a healthcare services firm, an auditor finds that a Linux billing server runs a script owned by root with permissions set to 4755. A standard clerk account can execute it, and the script internally calls a shell utility by relative name. Which concern should the analyst raise first?
✓The SetUID bit lets the script run with root privileges, and its reliance on a relative command path exposes a PATH hijacking escalation risk
Correct. The leading 4 sets SetUID, so the process runs as root; calling a utility by relative name lets an attacker manipulate PATH to run a planted binary with root rights.
・The world-writable permission bit allows any clerk to overwrite the billing script and inject malicious billing logic directly
Incorrect. 4755 does not grant world-write; the last three digits (755) give owner rwx and group/other r-x, so the file cannot be overwritten by the clerk.
・The sticky bit on the file prevents non-owners from deleting it, which could block the clerk from updating billing records
Incorrect. The sticky bit value is 1 (e.g., 1755), not 4; 4755 is SetUID, so this misreads the special permission bit entirely.
・The group-execute bit is missing, so the billing clerks cannot run the script at all during normal operations
Incorrect. 755 includes execute for group and other, so clerks can run it; the real issue is the elevated privilege and unsafe path handling.
Explanation
A SetUID-root program that invokes commands by relative path is a classic privilege-escalation vector through PATH manipulation, which outweighs the misread permission concerns.
Example6 · Network Security & Defense-in-Depth
A healthcare services firm stores patient records on an internal database server. Security staff add a perimeter firewall, network segmentation, host hardening, and endpoint detection so one failed control does not expose the data. Which security principle best describes this layered approach?
・Least privilege, where each account and service receives only the minimum access rights required to perform its function
Incorrect. Least privilege limits per-account rights and is only one supporting control, not the layered strategy of stacking independent defenses described here.
✓Defense-in-depth, using multiple independent and overlapping controls so a single failure does not expose assets
Correct. Stacking independent, overlapping controls so the failure of any single layer does not expose the asset is the definition of defense-in-depth.
・Separation of duties, which splits sensitive tasks between staff to reduce fraud risk
Incorrect. Separation of duties divides tasks among people to reduce fraud, which does not describe layering technical network and host controls.
・Fail-safe defaults, which deny access unless it is explicitly permitted by policy
Incorrect. Fail-safe defaults address the default outcome of an access decision, not the use of multiple overlapping protective layers.
Explanation
Defense-in-depth deliberately deploys multiple, independent, overlapping safeguards so that compromising one layer still leaves others protecting the asset.
Example7 · Network Security & Defense-in-Depth
NorthPeak Outfitters, a regional outdoor-gear retailer, places a firewall at the perimeter but puts no other controls between its point-of-sale subnet and its back-office servers. An auditor flags that one breached layer exposes everything behind it. Which change best embodies defense-in-depth for this environment?
・Replace the perimeter firewall with a higher-throughput next-generation appliance tuned for the store traffic
Incorrect. A faster single perimeter device still leaves one layer; defeating it exposes all internal systems.
✓Deploy internal segmentation, host hardening, and monitoring so an attacker past the perimeter still meets independent controls
Correct. Independent overlapping layers inside the network mean compromising the perimeter does not grant full access.
・Harden every store workstation with endpoint protection while leaving the flat internal network unchanged throughout
Incorrect. Endpoint protection alone on a flat network is a single control type without layered network separation.
・Rewrite the firewall ruleset so the perimeter denies all inbound sessions except explicitly approved vendor IP addresses
Incorrect. A tighter inbound ruleset strengthens only the perimeter and provides no additional internal layers.
Explanation
Defense-in-depth stacks independent controls (segmentation, hardening, monitoring) so no single failure is catastrophic, rather than reinforcing one layer.
Example8 · Network Security & Defense-in-Depth
NorthPeak Outfitters replaces an old stateless packet filter with a stateful inspection firewall between its web tier and the Internet. A network engineer asks what new capability the stateful firewall provides that the old filter could not. What is the correct answer?
・It inspects the application-layer payload of every HTTPS session to detect malicious commands inside encrypted traffic
Incorrect. Stateful inspection tracks connection state but does not decrypt or deeply parse encrypted application payloads by itself.
✓It tracks the state of active connections so return traffic is permitted only when it matches an established session
Correct. A stateful firewall maintains a connection table and allows return packets only if they belong to an established session.
・It encrypts traffic between the web tier and clients so that packet contents cannot be read in transit anywhere
Incorrect. Stateful inspection does not provide encryption; it evaluates session state, not confidentiality of traffic.
・It caches frequently requested web pages to reduce load on the origin servers during peak shopping periods
Incorrect. Web caching is a proxy/CDN function, unrelated to stateful connection tracking.
Explanation
Stateful firewalls add a connection state table so responses are matched to legitimate outbound sessions, unlike stateless packet filters that evaluate each packet in isolation.
Example9 · Network Security & Defense-in-Depth
NorthPeak Outfitters must isolate cardholder data systems from its guest Wi-Fi and general corporate LAN to limit the scope of a breach. The team wants traffic between these zones to pass only through inspected choke points. Which approach best meets this goal?
・Assign every device a unique strong password and rotate those passwords on a strict monthly schedule across all zones
Incorrect. Password rotation is an authentication control and does not isolate network zones or create inspected choke points.
✓Place guest, corporate, and cardholder systems on separate VLANs or subnets controlled by firewall rules at the boundaries
Correct. Segmenting zones into separate VLANs/subnets with firewall-controlled boundaries forces inter-zone traffic through inspection points.
・Enable full-disk encryption on all endpoints so cardholder data remains confidential even if a device is physically lost
Incorrect. Disk encryption protects data at rest on lost devices but does not restrict network traffic between zones.
・Install antivirus on the cardholder systems and schedule frequent signature updates to block the latest known malware
Incorrect. Antivirus mitigates malware on hosts but provides no network isolation between the sensitive and untrusted zones.
Explanation
Network segmentation using VLANs/subnets with firewall boundaries limits breach scope by funneling inter-zone traffic through controlled, inspected points.
Example10 · Network Security & Defense-in-Depth
A regional bank is designing controls for its online banking platform and wants to ensure that no single control failure exposes customer account data. The security architect proposes placing a perimeter firewall, a web application firewall, network segmentation, host hardening, and endpoint detection along the path to the database. Which security principle does this layered arrangement of independent, overlapping controls most directly implement?
・Least privilege, by restricting each user and service account to only the permissions needed to perform its specific job function
Incorrect. Least privilege limits the scope of granted permissions, but it does not describe stacking multiple overlapping network and host controls along a path.
✓Defense in depth, by deploying multiple independent layers so that one control's failure does not grant an attacker direct access
Correct. Defense in depth places several independent, overlapping controls so that the compromise or failure of any one layer still leaves other layers protecting the asset.
・Fail-safe defaults, by denying all traffic and access unless a rule explicitly permits the connection to proceed
Incorrect. Fail-safe defaults address default-deny behavior of a single control, not the layering of many distinct controls across the network path.
・Separation of duties, by dividing sensitive tasks so no single administrator can complete a risky action alone
Incorrect. Separation of duties divides responsibilities among people to prevent fraud, which is unrelated to stacking technical network controls.
Explanation
Deploying perimeter, application, segmentation, host, and endpoint controls in series so no single failure is catastrophic is the defining characteristic of defense in depth.
Example11 · Network Security & Defense-in-Depth
An investment firm must keep its cardholder data environment isolated from the general corporate network that staff use for email and browsing. The network team wants to limit the scope of systems that can reach the payment servers and reduce lateral movement if a workstation is compromised. Which approach best achieves this isolation goal?
・Place the payment servers and corporate workstations on one flat VLAN and rely on host firewalls installed individually on each payment server
Incorrect. A flat VLAN keeps payment and corporate systems in the same broadcast domain, so host firewalls alone do not meaningfully reduce lateral movement scope.
✓Segment the payment systems into a separate, tightly firewalled network zone that permits only the specific flows required for processing
Correct. Isolating payment systems into a dedicated firewalled zone that allows only required flows directly limits reachable systems and lateral movement.
・Deploy antivirus software on every corporate workstation and schedule frequent signature updates to detect any malware infections quickly
Incorrect. Antivirus reduces malware risk on endpoints but does nothing to isolate the payment network or restrict which systems can reach it.
・Require all staff to use longer passphrases and enable multifactor authentication when they log in to their corporate email accounts
Incorrect. Stronger authentication protects accounts but does not create the network boundary needed to isolate the cardholder data environment.
Explanation
Segmenting sensitive payment systems into a separate firewalled zone with minimal permitted flows is the core technique for scope reduction and lateral-movement containment.
Example12 · Network Security & Defense-in-Depth
A manufacturing distributor runs business applications and plant-floor PLCs on one flat network. A security engineer is asked to apply defense-in-depth. Which action best embodies the layered-defense principle rather than relying on a single control?
✓Segment the plant-floor OT systems from corporate IT and add firewalls, monitoring, and access controls at each boundary
Correct. Separating OT from IT and placing independent controls at each boundary creates multiple overlapping layers, which is the essence of defense-in-depth.
・Deploy one next-generation firewall at the internet edge and route all plant and office traffic through its inspection engine
Incorrect. A single edge firewall is one control at one boundary; it leaves internal lateral movement unchecked and is not layered defense.
・Install current endpoint antivirus on every workstation and plant server so malware is blocked before it executes anywhere
Incorrect. Antivirus alone is a single control type and cannot stop threats that evade signatures or originate inside the flat network.
・Require complex passwords for all plant-floor and corporate user accounts and rotate them on a fixed ninety-day schedule
Incorrect. Password policy is a single authentication control and does nothing to add network or monitoring layers between IT and OT.
Explanation
Defense-in-depth means multiple independent, overlapping controls so that failure of one layer does not expose the whole environment. Segmenting OT from IT and controlling each boundary provides that layering, unlike any single edge, endpoint, or password control.
Example13 · Network Security & Defense-in-Depth
The distributor hosts a public order-tracking web server that customers reach from the internet, and it also stores the warehouse inventory database internally. The security team wants to minimize exposure if the web server is compromised. Where should the web server be placed?
✓In a screened DMZ segment that is isolated by firewall rules from the internal inventory database network
Correct. A DMZ isolates internet-facing hosts so a compromise cannot directly reach internal databases, limiting the blast radius.
・On the internal LAN next to the inventory database so application and data traffic never leaves the trusted zone
Incorrect. Placing the public server on the internal LAN gives an attacker who compromises it direct access to the sensitive inventory database.
・Directly on the internet edge with host-based firewalling so no additional network segment must be designed or maintained
Incorrect. Exposing the server on the edge with only host firewalling removes the network buffer a DMZ provides and increases risk.
・Inside the plant-floor OT segment where industrial monitoring tools can watch the server for anomalous behavior continuously
Incorrect. Putting an internet-facing web server in the OT segment bridges the most sensitive zone to the internet, which is dangerous.
Explanation
A DMZ is a semi-trusted segment for internet-facing services, firewalled away from internal resources so a compromised public host cannot pivot straight into sensitive internal data.
Example14 · Network Security & Defense-in-Depth
A telecom operator's security team is designing protection for its customer billing platform. They want to ensure that a failure or bypass of any single control does not expose the platform. Which approach best embodies the defense-in-depth principle for this design?
・Deploy a single next-generation firewall at the perimeter that performs filtering, intrusion prevention, and application inspection for all inbound traffic
Incorrect. Consolidating all functions into one device creates a single point of failure, which is the opposite of defense-in-depth.
✓Layer independent controls such as perimeter filtering, network segmentation, host hardening, and monitoring so that no single control is a sole point of failure
Correct. Multiple independent, overlapping layers ensure that defeating one control still leaves others to protect the asset.
・Harden every billing server to a strict configuration baseline and rely on the host-level controls to stop all attacks against the platform
Incorrect. Relying only on host controls provides a single layer and ignores network and monitoring defenses.
・Encrypt all billing traffic end to end so that intercepted packets cannot be read by anyone positioned on the internal network path
Incorrect. Encryption protects confidentiality in transit but is only one control and does not provide layered protection.
Explanation
Defense-in-depth deliberately overlaps independent controls across the perimeter, network, host, and monitoring layers so that no single failure exposes the asset.
Example15 · Network Security & Defense-in-Depth
The telecom operator replaces an old packet filter with a stateful inspection firewall in front of its SMS gateway. An administrator asks what new capability this firewall gains over the old packet filter. Which statement correctly describes the added capability?
・It inspects the full application-layer payload of each session and rewrites malicious SMS content before forwarding it to the gateway
Incorrect. Application-layer payload inspection and content rewriting is a proxy or deep-inspection function, not the defining feature of stateful inspection.
✓It tracks the state of active connections so that return traffic belonging to an established session is permitted without a separate static rule
Correct. Stateful inspection maintains a connection state table so return packets of an established session are allowed without an explicit reverse rule.
・It filters traffic using only source and destination addresses, ports, and protocol flags defined in a fixed rule list for each packet
Incorrect. Filtering on addresses, ports, and flags per packet describes the old stateless packet filter, not the new capability.
・It decrypts all TLS sessions terminating at the gateway to examine the plaintext and then re-encrypts them before delivery
Incorrect. TLS decryption and re-encryption is an SSL inspection feature, separate from stateful connection tracking.
Explanation
Stateful inspection adds a state table that tracks connections, allowing legitimate return traffic automatically, which a stateless packet filter cannot do.
▶ Try 10 free questions (graded)