All GIAC exams

Free GSEC practice test: 30 questions with answers

30 original questions for GIAC Security Essentials, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions
Real exam
106 questions, 240 min
Passing score
72% (exam versions released on or after 2026-04-06)

GSEC exam guide: topics, cost and format

All 30 GSEC questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Access Control and Authentication (5 questions)

  1. Question 1

    A contractor needs access to a project share for a fixed two-week engagement. Which access approach best limits the exposure?

    1. AA shared domain administrator account for the team
    2. BPermanent discretionary ACL entries on the share
    3. CTime-limited role assignment that expires automatically
    4. DAnonymous guest access with a warning banner
    Show answer and explanation
    Correct answer: C

    A time-limited role grants access only for the engagement and removes it automatically, which limits standing privilege. Permanent entries and shared administrator accounts keep access open, and anonymous access removes accountability.

  2. Question 2

    A laptop unlocks with a fingerprint reader. Which authentication factor category does the fingerprint represent?

    1. ASomething you have
    2. BSomething you know
    3. CSomewhere you are
    4. DSomething you are
    Show answer and explanation
    Correct answer: D

    Biometrics such as fingerprints are inherence factors, or something you are. A password is something you know, a token is something you have, and location is a contextual attribute rather than a factor.

  3. Question 3

    An organisation forces password changes every 30 days. Which change does current NIST guidance recommend instead?

    1. AChange passwords every seven days with stricter complexity rules enforced by Group Policy
    2. BStore passwords in a plaintext file on the shared admin drive so auditors can check them
    3. CChange passwords when compromise is suspected and screen new passwords against breached-password lists
    4. DRemove the minimum password length to make passwords easier to remember for each user account
    Show answer and explanation
    Correct answer: C

    NIST SP 800-63B advises against routine forced rotation and recommends screening passwords against known breaches. Frequent rotation tends to produce predictable patterns, and the other options weaken security.

  4. Question 4

    Under which access control model does the owner of a resource decide who may access it?

    1. AAttribute-based access control
    2. BDiscretionary access control
    3. CMandatory access control
    4. DRole-based access control
    Show answer and explanation
    Correct answer: B

    In discretionary access control the resource owner grants or revokes access. Mandatory access control enforces central labels, role-based control assigns permissions to roles, and attribute-based control evaluates attributes.

  5. Question 5

    Which two controls reduce the damage from a stolen password? (Choose two.)

    1. AHardware-backed or passwordless authentication
    2. BSharing one password across the whole team
    3. CKeeping passwords in a shared spreadsheet
    4. DAllowing unlimited login attempts
    5. EMulti-factor authentication
    Show answer and explanation
    Correct answer: A, E

    Multi-factor and hardware-backed credentials mean a stolen password alone does not grant access. Shared passwords, spreadsheets and unlimited attempts all increase the risk.

Cryptography (5 questions)

  1. Question 6

    What does a message authentication code (MAC) provide that a plain hash does not?

    1. AConfidentiality through public key encryption of the payload
    2. BKey exchange without prior trust between the two endpoints
    3. CNon-repudiation through a signed certificate chain in a PKI
    4. DIntegrity and authenticity using a shared secret key
    Show answer and explanation
    Correct answer: D

    A MAC is computed with a secret key, so only holders of the key can produce a valid tag, which proves authenticity as well as integrity. A plain hash lacks a key, and a MAC alone does not provide confidentiality or non-repudiation.

  2. Question 7

    A web server presents a certificate to prove its identity. Which party's signature makes that certificate trustworthy to browsers?

    1. AThe domain's registered DNS hosting provider
    2. BA certificate authority that the browser trusts
    3. CThe domain's mail exchanger MX record set
    4. DThe server's encrypted session cookie store
    Show answer and explanation
    Correct answer: B

    A trusted certificate authority signs the certificate, and browsers trust it because the CA's root is in their trust store. DNS providers, session cookies and MX records have no signing role.

  3. Question 8

    Which AES mode should be avoided for most purposes because identical plaintext blocks produce identical ciphertext blocks?

    1. AECB
    2. BGCM
    3. CCTR with a unique nonce
    4. DCBC with a random IV
    Show answer and explanation
    Correct answer: A

    ECB encrypts each block independently, so repeated plaintext patterns remain visible in the ciphertext. GCM, CBC with a random IV and CTR with a unique nonce avoid this when used correctly.

  4. Question 9

    Which approach is most appropriate for storing user passwords in a database?

    1. ABase64 encoding of the stored user password column
    2. BAn unsalted MD5 hash of the plaintext password
    3. CA slow, salted password hash such as Argon2 or bcrypt
    4. DAES encryption with a key stored beside the data
    Show answer and explanation
    Correct answer: C

    Argon2 and bcrypt are deliberately slow and use per-user salts, which resists offline guessing. Unsalted MD5 is fast to brute force, AES with a co-located key is reversible, and Base64 is an encoding rather than protection.

  5. Question 10

    What does perfect forward secrecy provide in a TLS session?

    1. APast sessions stay confidential even if the server's long-term private key is later compromised
    2. BCompression of encrypted records before transmission to reduce bandwidth across the outbound TLS link
    3. CAutomatic renewal of certificates through ACME clients on a scheduled 60-day cycle with DNS validation
    4. DProtection against DNS spoofing and cache poisoning on the resolver path during lookup
    Show answer and explanation
    Correct answer: A

    Ephemeral key exchange such as ECDHE means each session key is independent of the long-term key, so a later key compromise does not expose earlier traffic. The other options are unrelated to session key secrecy.

Network Security (4 questions)

  1. Question 11

    Which firewall type inspects application protocols and content, not just packet headers?

    1. AA stateless packet filter
    2. BAn application-layer (next-generation) firewall
    3. CA hub that repeats traffic to every port
    4. DA circuit-level proxy that relays connections without inspection
    Show answer and explanation
    Correct answer: B

    Application-layer and next-generation firewalls parse application protocols and enforce policy on content. Stateless filters examine headers only, circuit-level proxies relay without content checks, and hubs do not filter at all.

  2. Question 12

    Which two controls help absorb or filter a volumetric distributed denial of service attack? (Choose two.)

    1. ASharing administrator passwords with the ISP
    2. BUpstream scrubbing or a DDoS mitigation service
    3. CRate limiting and traffic filtering at the network edge
    4. DDisabling the firewall to reduce processing load
    5. EStoring all logs on the attacked server only
    Show answer and explanation
    Correct answer: B, C

    Upstream scrubbing and edge rate limiting absorb or filter volumetric traffic before it exhausts the target. Disabling the firewall, local-only logging and password sharing do not help and add risk.

  3. Question 13

    Two branch offices need an encrypted tunnel across the public internet. Which standard suite is commonly used for site-to-site VPNs?

    1. AHTTP basic authentication
    2. BIPsec with IKE
    3. CPPTP
    4. DSNMP version 1
    Show answer and explanation
    Correct answer: B

    IPsec with IKE is the standard approach for site-to-site VPNs. PPTP has well-known cryptographic weaknesses, basic HTTP authentication is not a tunnel, and SNMP version 1 is a management protocol with weak community strings.

  4. Question 14

    Public-facing web servers must be isolated from the internal network by placing them in a segment between two firewalls. What is this segment called?

    1. AA management VLAN for routers
    2. BA honeynet of decoy hosts
    3. CA flat network with no zones
    4. DA DMZ or screened subnet
    Show answer and explanation
    Correct answer: D

    A DMZ, or screened subnet, isolates public-facing systems from internal networks. A flat network removes segmentation, a management VLAN carries device administration traffic, and a honeynet is a decoy environment.

Security Operations and Incident Handling (4 questions)

  1. Question 15

    In the incident handling process, which phase directly follows containment?

    1. AEradication
    2. BDetection
    3. CPreparation
    4. DLessons learned
    Show answer and explanation
    Correct answer: A

    Eradication removes the attacker's access and malicious artefacts once the incident is contained. Preparation comes before incidents, detection precedes containment, and lessons learned closes the process.

  2. Question 16

    Which two actions help preserve volatile evidence during an incident? (Choose two.)

    1. ARun an antivirus scan that overwrites memory
    2. BCapture memory before the system loses power
    3. CRecord the system time and current network connections
    4. DReboot the system to clear the malware
    5. EDelete temporary files to reduce noise
    Show answer and explanation
    Correct answer: B, C

    Capturing memory and recording connections preserves state that disappears on reboot. Rebooting, deleting temporary files and overwriting memory all destroy volatile evidence.

  3. Question 17

    Which Linux log source is most useful for determining which user ran a privileged command?

    1. ABrowser cache folders in the user profile
    2. BDHCP offer messages from relay agents
    3. CAudit records from auditd or sudo logs
    4. DPrinter job logs on the print server spooler
    Show answer and explanation
    Correct answer: C

    auditd and sudo records show which user executed privileged commands and when. Printer jobs, browser caches and DHCP offers do not record command execution by users.

  4. Question 18

    An alert shows a process reading the memory of the LSASS process on a Windows host to obtain credentials. Which MITRE ATT&CK tactic does this activity belong to?

    1. AActive Reconnaissance
    2. BImpact Tactic
    3. CCredential Access
    4. DInitial Access
    Show answer and explanation
    Correct answer: C

    Credential dumping from memory falls under the Credential Access tactic. Reconnaissance gathers information before an attack, Impact disrupts or destroys systems, and Initial Access is the point of entry.

Security Policy and Risk Management (4 questions)

  1. Question 19

    An organisation buys cyber insurance to cover financial losses from a breach. Which risk response does this represent?

    1. ARisk acceptance
    2. BRisk transfer
    3. CRisk avoidance
    4. DRisk mitigation
    Show answer and explanation
    Correct answer: B

    Insurance transfers the financial impact to another party. Acceptance keeps the risk, avoidance removes the activity that creates it, and mitigation reduces likelihood or impact through controls.

  2. Question 20

    Which two items does a high-level information security policy typically define? (Choose two.)

    1. AThe colour scheme of security training slides
    2. BRoles and responsibilities for information security
    3. CAcceptable use requirements for company systems
    4. DThe exact brand of firewall to purchase
    5. EThe current price of security tools
    Show answer and explanation
    Correct answer: B, C

    Policies set roles and acceptable use at a principle level. Specific products, prices and presentation details belong in standards, procedures or procurement records.

  3. Question 21

    Which publication provides a catalogue of security controls organised into families such as access control and audit?

    1. ANIST SP 800-53
    2. BCOBIT 2019 Core
    3. CITIL 4 Practices
    4. DISO/IEC 9001:2015
    Show answer and explanation
    Correct answer: A

    NIST SP 800-53 organises security controls into families such as AC for access control and AU for audit. ITIL covers service management, COBIT is a governance framework, and ISO 9001 is a quality management standard.

  4. Question 22

    In a qualitative risk assessment, a team rates likelihood and impact on scales and combines them. Which relationship is the usual basis for the resulting risk score?

    1. ARisk equals likelihood multiplied by impact
    2. BRisk equals the number of open alerts
    3. CRisk equals the number of installed patches
    4. DRisk equals cost divided by budget
    Show answer and explanation
    Correct answer: A

    Qualitative and semi-quantitative methods commonly combine likelihood and impact into a score. The other formulas are not standard ways of measuring risk.

Vulnerability Management (4 questions)

  1. Question 23

    A scanner reports a critical flaw on a host that is not exposed to the internet. What is the best next step?

    1. ADisable the vulnerability scanner to reduce alert noise across the network segments
    2. BShut the host down immediately without notifying the asset owner or its key services
    3. CIgnore it because the host is not internet-facing and sits behind the perimeter firewall
    4. DAssess exploitability and business context, then prioritise remediation
    Show answer and explanation
    Correct answer: D

    Priority depends on exploit availability, reachability inside the network and business impact, and internal exposure still matters. Ignoring the finding, shutting the host down or disabling scanning are not sound responses.

  2. Question 24

    How does a vulnerability assessment differ from a penetration test?

    1. AAn assessment replaces patch management because its scan reports list every missing update, so no separate fix cycle is needed
    2. BA penetration test is limited to checking password strength against wordlists, leaving services and web applications untested
    3. CAn assessment identifies weaknesses, while a penetration test attempts to exploit them within agreed scope
    4. DA penetration test is fully automated by scanners that run without tester input, producing a report of findings in one pass
    Show answer and explanation
    Correct answer: C

    An assessment catalogues weaknesses, and a penetration test validates exploitability within an agreed scope. Penetration tests are not limited to passwords, do not replace patching, and are often manual.

  3. Question 25

    Which tool tests web applications for flaws such as SQL injection and cross-site scripting?

    1. AHashcat or Mimikatz
    2. BAnsible or Terraform or Chef
    3. COWASP ZAP or Burp Suite
    4. DWireshark or Nmap or Snort
    Show answer and explanation
    Correct answer: C

    OWASP ZAP and Burp Suite are web application testing tools that detect injection and scripting flaws. Wireshark captures packets, Hashcat recovers password hashes, and Ansible automates configuration.

  4. Question 26

    Which two practices shorten the time between vulnerability disclosure and remediation? (Choose two.)

    1. AWaiting for quarterly patch windows for every system
    2. BInstalling patches only after a breach occurs
    3. CDisabling vulnerability scanning to reduce noise
    4. DPrioritising patches for actively exploited flaws and internet-facing systems
    5. EMaintaining an accurate and current asset inventory
    Show answer and explanation
    Correct answer: D, E

    Risk-based prioritisation and an accurate inventory let teams fix the right systems first. Quarterly-only windows, breach-driven patching and disabling scans all delay or hide exposure.

Systems and Application Security (4 questions)

  1. Question 27

    Which octal permission value gives the file owner read and write access, and gives group and others read-only access?

    1. A644
    2. B777
    3. C600
    4. D755
    Show answer and explanation
    Correct answer: A

    644 gives the owner read and write, and the group and others read only. 777 grants everyone full access, 600 denies access to others, and 755 gives the owner full control while others can only read and execute.

  2. Question 28

    Which Windows command displays the status of the firewall profiles and their rules?

    1. Asfc /scannow /offbootdir=C:\ /offwindir=C:
    2. Bnetsh advfirewall show allprofiles
    3. Cgpupdate /force /boot /wait:0
    4. Dchkdsk C: /f /r /x /b /spotfix /perf
    Show answer and explanation
    Correct answer: B

    netsh advfirewall shows the status of each firewall profile. chkdsk repairs disk errors, sfc checks protected system files, and gpupdate reapplies Group Policy.

  3. Question 29

    Which Linux command should be used to edit the sudoers file, because it locks the file and checks syntax before saving?

    1. Achmod 777 /etc/sudoers
    2. Bpasswd -l
    3. Cvisudo
    4. Dcat /etc/shadow
    Show answer and explanation
    Correct answer: C

    visudo locks the sudoers file and validates syntax before saving, which prevents lockouts. Making the file world-writable, locking passwords and printing the shadow file are unsafe actions.

  4. Question 30

    Which Linux command lists listening TCP sockets along with the names of the processes that own them?

    1. Auname -a
    2. Bss -ltnp
    3. Cls -la /var
    4. Dcat /etc/motd
    Show answer and explanation
    Correct answer: B

    ss with the -l, -t, -n and -p options lists listening TCP sockets with their owning processes. The other commands list directories, show a login banner and print system details, but not listening sockets.