Networking and Cybersecurity Fundamentals

33 flashcardsby Ian
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is the difference between TCP and UDP?
TCP provides reliable, ordered delivery; UDP is connectionless and doesn't guarantee delivery.
2
An attacker intercepts a JWT signed with HS256 and changes the role claim from user to admin. Will the attack work? Explain why or why not.
Normally No, Modifying the payload invaldiates the HMAC signature which the server recomputes using its shared secret
3
Q: How do you stop an attacker who stole a valid JWT?
Revoke affected tokens and sessions, invalidate refresh tokens, and require reauthentication
4
Q: Does issuing a new JWT invalidate an old stolen JWT?
5
What is the TCP three-way handshake?
SYN → SYN-ACK → ACK establishes a TCP connection.
6
What is the difference between a TCP SYN scan and a connect scan?
A SYN scan uses a partial handshake; a connect scan completes the TCP handshake.
7
What do open, closed, and filtered ports mean?
Open = accepting connections; closed = reachable but not listening; filtered = blocked or obscured by filtering.
8
What is DNS?
DNS translates domain names into records such as IP addresses.
9
What is ARP?
ARP resolves IPv4 addresses to MAC addresses on a local network.
10
What is ARP spoofing?
Forging ARP messages to redirect local traffic, potentially enabling MITM attacks.
11
What is a man-in-the-middle attack?
An attacker intercepts or alters communication between two parties.
12
What is the difference between IDS and IPS?
IDS detects suspicious traffic; IPS can also block it.
13
What is network segmentation?
Separating networks to restrict communication and reduce lateral movement.
14
What is the difference between stateful and stateless firewalls?
Stateful firewalls track connections; stateless firewalls evaluate packets against rules independently.
15
What is the difference between vulnerability scanning and penetration testing?
Scanning identifies potential weaknesses; pentesting manually validates exploitability and impact.
16
What is service enumeration?
Gathering information about exposed services, versions, configurations, and accessible resources.
17
What is SMB signing and why is it important?
It authenticates SMB messages and helps prevent tampering and certain NTLM relay attacks.
18
What would you do after discovering port 445 open?
Identify SMB details, enumerate authorized shares, review permissions, and test relevant misconfigurations.
19
What is symmetric encryption?
Encryption that uses the same shared secret key for encryption and decryption.
20
What is asymmetric cryptography?
Cryptography using a public/private key pair for operations like signatures and key exchange.
21
What is the difference between encryption and hashing?
Encryption is reversible with a key; hashing produces a one-way digest.
22
What is salting in password hashing?
Adding a unique random value to each password before hashing to prevent identical hashes and precomputed attacks.
23
What is HMAC?
A keyed hash used to verify message integrity and authenticity.
24
How is HMAC used in challenge-response authentication?
One party computes an HMAC of a fresh challenge; the verifier checks it using the shared key.
25
What is a digital signature?
A private-key signature that verifies the signer's identity and detects message modification.
26
What is a digital certificate?
A digitally signed document that binds an identity to a public key.
27
What is a Certificate Authority (CA)?
A trusted entity that validates identities or domain control and signs certificates.
28
What is a certificate chain of trust?
Server certificate → intermediate CA → trusted root CA.
29
How does a browser validate a TLS certificate?
It checks the certificate chain, signatures, hostname, validity, and relevant constraints.
30
How does TLS 1.3 establish secure communication?
It uses key exchange to derive symmetric keys and certificates/signatures to authenticate the server.
31
Why does TLS use symmetric encryption after the handshake?
Symmetric encryption is efficient for protecting application data.
32
What happens if certificate validation is disabled?
The client may trust an impersonating server, enabling MITM attacks.
33
What is Perfect Forward Secrecy?
Past session traffic remains protected even if the server's long-term private key is later compromised.
Study all 33 cards for free

More Computer science flashcards

Lesson 2.1 Online Spatial Data Sources 34 cardsComputer science · EnglishDekanoMixed Signals Prelim Drei Yu30 cardsComputer science · EnglishDiandreiMemory Management – Page Fault & Page Replacement22 cardsComputer science · English—Griffith—SRA research17 cardsComputer science · EnglishIanInheritance, Composition, & Data Effic12 cardsComputer science · EnglishNijelousComputer Architecture: Instruction Encoding160 cardsComputer science · EnglishSamSecurity+ SY0-701129 cardsComputer science · EnglishErickNetzwerktechnik: 11 Formeln mit Beispielen94 cardsComputer science · GermansgSoftware Development 2: Sociotechnical Systems73 cardsComputer science · EnglishEdsonComputers in society:261 cardsComputer science · EnglishCal section 1 -componets of a computer 49 cardsComputer science · EnglishDsoboWeek 12 & 13 Spreadsheet Study Guide41 cardsComputer science · EnglishSg

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 33 cards for free