Cybersecurity — 315 questions
Play ▸- #1 · What kind of scan does the -sS flag perform? nmap -sS 10.0.0.5
- #2 · What does the -sV flag enable? nmap -sV 10.0.0.5
- #3 · Which ports does -p- scan? nmap -p- 10.0.0.5
- #4 · What does the -O flag do? nmap -O 10.0.0.5
- #5 · What does -sU perform? nmap -sU 10.0.0.5
- #6 · What does the -A flag enable? nmap -A 10.0.0.5
- #7 · What does this command run? nmap --script vuln 10.0.0.5
- #8 · Which tool is the de-facto standard network port scanner?
- #9 · Malware that encrypts your files and demands payment is called?
- #10 · Self-replicating malware that spreads across networks on its own is a?
- #11 · Malware disguised as legitimate software is a?
- #12 · Malware that hides itself and grants stealthy privileged access is a?
- #13 · Software that secretly records keystrokes to steal credentials is a?
- #14 · A network of compromised machines remotely controlled by an attacker is a?
- #15 · Malware that needs a host program and runs when that program executes is a?
- #16 · Malicious code that triggers when a specific condition or date is met is a?
- #17 · msfconsole is the main interface for which framework? msfconsole
- #18 · Which vulnerability does this Metasploit module target? use exploit/windows/smb/ms17_010_eternalblue
- #19 · In Metasploit, what is a 'payload'?
- #20 · What is Meterpreter?
- #21 · In Metasploit, what does RHOSTS set? set RHOSTS 10.0.0.5
- #22 · What is msfvenom used for? msfvenom -p windows/meterpreter/reverse_tcp LHOST=
- #23 · Which tool captures and analyzes network packets with a GUI?
- #24 · Which tool is an intercepting proxy/scanner for web application testing?
- #25 · What does sqlmap automate? sqlmap -u "http://site/?id=1" --dbs
- #26 · What is John the Ripper used for? john --wordlist=rockyou.txt hashes.txt
- #27 · What does Hydra do? hydra -l admin -P pass.txt ssh://10.0.0.5
- #28 · Which suite assesses Wi-Fi (WEP/WPA) security?
- #29 · What is hashcat? hashcat -m 0 hash.txt rockyou.txt
- #30 · Which Linux distribution is purpose-built for penetration testing?
- #31 · What does tcpdump do? tcpdump -i eth0 port 80
- #32 · Which is an open-source vulnerability scanner (Nessus-like)?
- #33 · Injecting malicious SQL through user input to manipulate a database is?
- #34 · Injecting client-side scripts into pages viewed by other users is?
- #35 · Tricking a victim's browser into making unwanted authenticated requests is?
- #36 · Secretly intercepting communication between two parties is a ... attack?
- #37 · Flooding a service with traffic from many sources to take it offline is?
- #38 · A deceptive email that tricks users into revealing credentials is?
- #39 · Which is a SECURE choice for password storage?
- #40 · Giving users only the access they need is the principle of?
- #41 · What does the -Pn flag do? nmap -Pn 10.0.0.5
- #42 · What does -sn perform? nmap -sn 10.0.0.0/24
- #43 · What does -T4 control? nmap -T4 10.0.0.5
- #44 · What does -F do? nmap -F 10.0.0.5
- #45 · What does -oN do? nmap -oN scan.txt 10.0.0.5
- #46 · What is netcat (nc) doing here? nc -lvnp 4444
- #47 · What does gobuster do here? gobuster dir -u http://site -w words.txt
- #48 · Which tool scans web servers for known vulnerabilities/misconfigurations?
- #49 · Mimikatz is primarily used to?
- #50 · BloodHound is used to?
- #51 · Responder is used to?
- #52 · Which is a commercial command-and-control / adversary-simulation framework?
- #53 · Ghidra and IDA are tools for?
- #54 · Volatility is used for?
- #55 · Which tool enumerates SMB shares and users on Windows?
- #56 · Burp Suite's 'Intruder' is used for?
- #57 · Malware that secretly collects a user's information/activity is?
- #58 · Malware that gives an attacker full remote control of a host is a?
- #59 · Malware that runs entirely in memory, leaving little on disk, is?
- #60 · Malware whose only goal is to destroy data is a?
- #61 · A small program that downloads and installs other malware is a?
- #62 · Hijacking a victim's resources to secretly mine cryptocurrency is?
- #63 · Gaining higher permissions than originally granted is?
- #64 · Moving from one compromised host to others on the network is?
- #65 · Writing past the end of a memory buffer to corrupt memory is a?
- #66 · Using ../ sequences to read files outside the web root is?
- #67 · Injecting operating-system commands through application input is?
- #68 · Accessing another user's record by changing an id parameter is?
- #69 · Forcing a server to make requests to internal resources is?
- #70 · The C-I-A triad stands for?
- #71 · Adding random data to a password before hashing is called?
- #72 · Which uses a public/private key pair?
- #73 · What does certificate pinning defend against?
- #74 · Which port does SSH use by default?
- #75 · What is a jump host (bastion)?
- #76 · What is DNS tunneling used for?
- #77 · SMB (exploited by EternalBlue) commonly runs on which port?
- #78 · An IPS differs from an IDS because it?
- #79 · A decoy system designed to lure and study attackers is a?
- #80 · What does --top-ports 20 scan? nmap --top-ports 20 10.0.0.5
- #81 · What does the -sn option do? nmap -sn 192.168.1.0/24
- #82 · Which tool captures and inspects network packets?
- #83 · What is hydra doing in this command? hydra -l admin -P rockyou.txt ssh://10.0.0.5
- #84 · What does non-repudiation provide?
- #85 · What is a zero-day vulnerability?
- #86 · Why is a salt added when hashing passwords?
- #87 · What distinguishes a worm from a virus?
- #88 · What defines adware?
- #89 · What does this line choose? set PAYLOAD windows/x64/meterpreter/reverse_tcp
- #90 · What does this Metasploit command list? sessions -l
- #91 · In TLS, what is the role of a Certificate Authority (CA)?
- #92 · What is a watering-hole attack?
- #93 · How does authorization differ from authentication?
- #94 · This input in a login form is a classic example of which attack? ' OR '1'='1
- #95 · Storing this in a comment field to run in the browsers of other users is which attack? <script>alert(1)</script>
- #96 · The -m 0 mode tells hashcat the hashes are which type? hashcat -m 0 hash.txt words.txt
- #97 · Adding a random salt to passwords before hashing mainly defeats what?
- #99 · In Metasploit, what does LPORT set? set LPORT 4444
- #100 · What does key stretching do to a password?
- #101 · What best describes phishing?
- #102 · This request is attempting which attack? GET /files?name=../../etc/passwd
- #103 · Symmetric encryption is defined by what property?
- #104 · Wireshark is primarily used to do what?
- #106 · What is a backdoor?
- #107 · What does two-factor authentication add?
- #109 · What does this openssl command create? openssl req -new -x509 -days 365 -key key.pem
- #110 · Unlike encryption, hashing is primarily used for what?
- #111 · What is a -sT connect scan? nmap -sT 10.0.0.5
- #112 · What does the -6 flag enable? nmap -6 ::1
- #113 · Why set a source port with -g 53? nmap -g 53 10.0.0.5
- #114 · What does the --open flag limit output to? nmap --open 10.0.0.5
- #115 · What best defends a login against online brute force?
- #116 · What makes offline hash cracking possible?
- #117 · What is captured here? tcpdump -i eth0 port 80 -w capture.pcap
- #118 · What does this command inspect? openssl s_client -connect example.com:443
- #119 · Which attack does this payload represent? ' OR '1'='1' --
- #120 · Which attack does this header stop? X-Frame-Options: DENY
- #121 · Which attack is this? GET /download?file=../../etc/passwd
- #122 · Which response header forces browsers to use HTTPS only?
- #123 · What does a CSRF attack abuse?
- #124 · What is the principle of least privilege?
- #125 · Which of these is asymmetric encryption?
- #126 · What does salting a password hash prevent?
- #127 · What is privilege escalation?
- #128 · What does a web application firewall do?
- #129 · What is polymorphic malware?
- #130 · What is a rootkit's main goal?
- #131 · What does this line do in msfconsole? use exploit/windows/smb/ms17_010_eternalblue
- #132 · What is LHOST? set LHOST 10.0.0.2
- #134 · What does a firewall's default-deny rule do?
- #135 · What is a brute-force attack?
- #136 · What does hashing a password store?
- #137 · What is a supply-chain attack?
- #138 · What does two-factor authentication protect against?
- #139 · What is phishing aimed at?
- #140 · What is a CVE identifier?
- #141 · What is 'lateral movement'?
- #142 · What does encryption primarily protect?
- #143 · Which vulnerability does this demonstrate? "<script>alert(1)</script>" stored and shown
- #144 · Why store a salted bcrypt hash? store: bcrypt(password + salt)
- #145 · How is this best fixed? query = "SELECT * FROM u WHERE id=" + input
- #146 · What security control is this? // login asks password + phone code
- #147 · What attack is being described? // attacker relays traffic between two parties
- #148 · Which attack does a missing token enable? // form submits without an anti-forgery token
- #149 · Which principle is this? // access limited to the current case file
- #150 · What type of encryption is this? // same key encrypts and decrypts
- #151 · What malware category is this? // files encrypted, ransom note appears
- #152 · What is this bearer token typically? Authorization: Bearer eyJhbGci...
- #153 · This is an example of what? // email: 'verify your bank now' fake link
- #154 · Which attack overwhelms a service with traffic? // huge traffic floods the site offline
- #155 · What does the HttpOnly flag do? Set-Cookie: session=abc; HttpOnly; Secure
- #156 · What strategy layers many defenses? // firewall + MFA + backups + training
- #157 · What does matching the hash verify? sha256(file) == published_hash
- #158 · Which change removes the vulnerability? query = "SELECT * FROM users WHERE id = '" + userI
- #159 · Which risk does this create? element.innerHTML = commentText;
- #160 · What does a CSRF token protect against?
- #161 · What does the HttpOnly flag do? Set-Cookie: sid=abc; HttpOnly; Secure; SameSite=St
- #162 · Which uses one shared secret key?
- #163 · What is the salt for? hash = bcrypt(password + salt)
- #164 · Why is this a weak choice? stored = sha256(password)
- #165 · What does multi-factor authentication add?
- #166 · What does the third segment provide? eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.9x7Kp
- #167 · What does OpenID Connect add to OAuth 2.0?
- #168 · What defines a phishing attack?
- #169 · How does a dictionary attack differ from brute force?
- #170 · What happens in a man-in-the-middle attack?
- #171 · What makes pass-the-hash possible?
- #172 · What is double-extortion ransomware?
- #173 · What is a rootkit built to do?
- #174 · How does a worm differ from a virus?
- #175 · What is Wireshark used for?
- #176 · What is Burp Suite mainly used for?
- #177 · What does this command attempt? hashcat -m 0 hashes.txt wordlist.txt
- #178 · What does an -sA ACK scan map? nmap -sA 10.0.0.5
- #179 · What does -iL read from the file? nmap -iL targets.txt
- #180 · What does a reverse payload do? msf6 > set PAYLOAD windows/meterpreter/reverse_tcp
- #181 · Where does a WAF sit?
- #182 · What policy does this set? iptables -P INPUT DROP
- #183 · Which CIA triad goal does a DDoS attack break?
- #184 · What does defence in depth assume?
- #185 · What does the SameSite cookie attribute limit?
- #186 · What does the HttpOnly flag prevent?
- #187 · What is the point of a CSRF token?
- #188 · Why salt a password hash?
- #189 · Why is bcrypt preferred over SHA-256 for passwords?
- #190 · What does hashing not give you?
- #191 · What is an IV for?
- #192 · What does an access control list define?
- #193 · What should a system do when a check errors?
- #194 · What is the difference between a vulnerability and an exploit?
- #195 · What is the fix? db.query(SELECT * FROM users WHERE id = ${req.quer
- #196 · Which class of bug is this? el.innerHTML = userComment;
- #197 · What does SSRF abuse?
- #198 · What does a strict CSP mainly stop?
- #199 · What is an IDOR?
- #200 · Why is open redirect dangerous?
- #201 · Why rotate a session id at login?
- #202 · Why is SMS a weak second factor?
- #203 · What makes a security key phishing resistant?
- #204 · Why compare secrets in constant time?
- #205 · What does an HMAC provide that a plain hash does not?
- #206 · What does forward secrecy protect?
- #207 · What is credential stuffing?
- #208 · What does password spraying avoid?
- #209 · What is a supply chain attack?
- #210 · What does a rootkit try hardest to do?
- #211 · What does a dropper do?
- #212 · What is a WAF good at?
- #213 · What does SAST analyse?
- #214 · Why segment a network?
- #215 · What is the value of a canary token?
- #216 · What does a CVSS score describe?
- #217 · What is a zero-day?
- #218 · What makes pretexting effective?
- #219 · What enables request smuggling?
- #220 · Why is CORS not an access control?
- #221 · Why must a nonce never repeat in AES-GCM?
- #222 · Why is this JWT header dangerous? { "alg": "none" }
- #223 · What is a TOCTOU bug?
- #224 · What does zero trust actually replace?
- #225 · What does an HttpOnly cookie block?
- #226 · What does MFA add beyond a password?
- #227 · What does hashing a password prevent?
- #228 · What is Burp Suite typically used for?
- #229 · What does defence in depth mean?
- #230 · What does the SameSite cookie attribute mitigate?
- #231 · What does a Content Security Policy restrict?
- #232 · Why are prepared statements safer?
- #233 · What does a salt stop attackers reusing?
- #234 · What is a pepper in password hashing?
- #235 · What makes a supply chain attack effective?
- #236 · What does separation of duties prevent?
- #237 · What does threat modelling produce?
- #238 · Why are refresh tokens stored server-side?
- #239 · What does an nmap SYN scan avoid?
- #240 · What does a packer do to malware?
- #241 · What does a honeytoken reveal?
- #242 · What makes a timing side channel exploitable?
- #243 · What does Subresource Integrity verify?
- #244 · What does a DNS rebinding attack bypass?
- #245 · A scam phone call posing as your bank to extract account details is called?
- #246 · Slipping through a badge-controlled door behind an employee is called?
- #247 · Hiding a secret message inside an ordinary image file is called?
- #248 · Which system gathers logs from many sources and correlates them into alerts?
- #249 · Which search engine indexes internet-exposed devices and their service banners?
- #250 · In a security exercise, what is the blue team's job?
- #251 · Which attack does this XML payload attempt? <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/pa
- #252 · What does the OAuth 2.0 state parameter mainly defend against?
- #253 · Why is ECB mode unsafe for encrypting images or structured data?
- #254 · What does a Diffie-Hellman exchange let two parties do?
- #255 · Which protocol lets a client ask a CA whether a certificate has been revoked?
- #256 · A rogue access point broadcasting a trusted Wi-Fi network's name is a?
- #257 · Publishing a public package with an internal package's name but a higher version is?
- #258 · Running a sample in an isolated VM to watch what it actually does is?
- #259 · What is MITRE ATT&CK?
- #260 · What are YARA rules used for?
- #261 · What sets a Metasploit auxiliary module apart from an exploit module?
- #262 · Why is deserializing untrusted data in Java or PHP dangerous?
- #263 · Merging this JSON into an object unsafely causes what in JavaScript? {"__proto__": {"isAdmin": true}}
- #264 · What does PKCE add to the OAuth authorization code flow?
- #265 · In Kerberoasting, what does the attacker crack offline?
- #266 · What does an attacker need to forge a Kerberos golden ticket?
- #267 · What does a padding oracle attack exploit?
- #268 · How does ASLR hinder memory-corruption exploits?
- #269 · What does the -D option do here? nmap -D RND:10 10.0.0.5
- #270 · Which security tool continuously watches endpoints for malicious behaviour and can isolate a compromised host?
- #271 · Which XML-based standard lets one identity provider sign a user into many separate web applications?
- #272 · A network kept physically isolated with no connection to the internet or other networks is called?
- #273 · Permitting only pre-approved applications to run and blocking everything else is known as?
- #274 · Which control inspects outbound traffic and files to stop sensitive data from leaving the organisation?
- #275 · An attacker scatters malware-infected USB drives in a car park hoping staff plug them in. This social-engineering tactic is?
- #276 · Which platform automates and orchestrates incident response using predefined playbooks across security tools?
- #277 · A page echoes user input into a template engine and {{7*7}} renders as 49. Which vulnerability is this? name={{7*7}} -> page renders: 49
- #278 · A tiny XML file defines entities that reference each other repeatedly, expanding to gigabytes in memory. This attack is? <!ENTITY lol "lol"><!ENTITY lol2 "&lol;&lol;"> ...
- #279 · A user adds an unexpected isAdmin field to a request and the framework binds it straight onto the model. This flaw is? POST /users {"name":"al","isAdmin":true}
- #280 · What does adding a nonce value to a Content-Security-Policy script-src directive achieve? Content-Security-Policy: script-src 'nonce-a1b2c3'
- #281 · What does the response header X-Content-Type-Options: nosniff instruct the browser to do? X-Content-Type-Options: nosniff
- #282 · Why is elliptic-curve cryptography often preferred over RSA at an equivalent security level?
- #283 · How does an authenticator-app TOTP code stay valid for only about 30 seconds? code = HOTP(secret, floor(unix_time / 30))
- #284 · What is a software bill of materials (SBOM) used for?
- #285 · How does an indicator of attack (IOA) differ from an indicator of compromise (IOC)?
- #286 · In the common incident-response lifecycle, which phase immediately follows identifying an incident?
- #287 · Roughly how many hashes must be computed before a 50% chance of a collision in an n-bit hash?
- #288 · Why is a MAC built as SHA256(secret concatenated with message) vulnerable to a length-extension attack? mac = SHA256(secret || message)
- #289 · Injecting %0d%0a into a parameter so extra HTTP headers appear in the response is known as? /redirect?url=%0d%0aSet-Cookie:admin=1
- #290 · A dangling DNS CNAME still points to a deprovisioned cloud service an attacker can register. This enables? shop.example.com CNAME myapp.cloudhost.net (unclai
- #291 · In Microsoft's STRIDE threat model, the letter R stands for which threat?
- #292 · Planting a malicious DLL where a program searches before the real system path is called? app.exe loads "utils.dll" from its own folder firs
- #293 · What is the primary security benefit of generating and storing keys inside a hardware security module (HSM)?
- #294 · How does UEFI Secure Boot help defend against bootkits?
- #295 · A threat-intel report is marked TLP:RED. Who may it be shared with?
- #296 · In a purple team exercise, what are the attackers and defenders doing?
- #297 · A bug bounty hunter finds a likely flaw on corp.example. What should they do? In scope: *.shop.example Out of scope: corp.exampl
- #298 · Why do organisations label data as Public, Internal, Confidential or Restricted?
- #299 · Which password-hashing algorithm produced this stored value? $2b$12$R9h/cIPz0gi.URNNX3kh2OPST9/PgBkqquzi.Ss7KIU
- #300 · What is this file meant to tell a security researcher? https://example.com/.well-known/security.txt
- #301 · What is the OWASP ASVS?
- #302 · Why do many teams disable this kind of GraphQL query in production? POST /graphql {"query":"{ __schema { types { name
- #303 · On Windows, what does AMSI let antivirus do?
- #304 · What is this YAML file? title: Suspicious Encoded PowerShell logsource: pr
- #305 · What does AV:N tell you about this vulnerability? CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- #306 · What does an EPSS score estimate for a CVE?
- #307 · Why would an auditor flag this file? -rwsr-xr-x 1 root root 54096 /usr/local/bin/backup
- #308 · What does this response header limit? Referrer-Policy: strict-origin-when-cross-origin
- #309 · What does rel="noopener" protect against here? <a href="https://other.example" target="_blank" re
- #310 · What does this burst in the Windows Security log most likely show? Event ID 4625 Logon Type 3 Account: svc_backup Sou
- #311 · With first-match processing, what happens to SSH from 203.0.113.5? 1 ACCEPT tcp dport 22 src 10.0.0.0/8 2 DROP tcp dp
- #312 · How does a browser treat a credentialed cross-origin fetch receiving these headers? Access-Control-Allow-Origin: * Access-Control-Allo
- #313 · A CDN caches a page that reflects an unkeyed X-Forwarded-Host header. What is the main defence against web cache poisoning?
- #314 · Which setting most directly blocks NTLM relay attacks against SMB servers?
- #315 · What does m=65536 configure in this Argon2id hash? $argon2id$v=19$m=65536,t=3,p=4$c2FsdHNhbHQ$...
- #316 · Why will modern browsers reject this cookie? Set-Cookie: sid=abc123; SameSite=None; HttpOnly
- #317 · Why can this regex freeze a server on that input? ^(a+)+$ tested against "aaaaaaaaaaaaaaaaaaaaaaaa!"
- #318 · What must an upload handler do to stop this archive entry escaping its target folder? archive.zip contains: ../../../etc/cron.d/job
- #319 · What does the __Host- prefix require of this cookie? Set-Cookie: __Host-sid=abc; Secure; Path=/