Security Non Negotiable Facts

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/85

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:59 PM on 8/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

86 Terms

1
New cards

What are the Fundamental Security Services?

Authentication

Access Control

Confidentiality

Integrity

Non-Repudiation

Availability

2
New cards

Authentication

Assurance that an entity is really the one who it claims to be

3
New cards

Access Control / Authorization

It offers the assurance that the entity performing a given action has the rights to do so

4
New cards

Confidentiality

Guarantee that data are available only to intended parties

5
New cards

Integrity

Assurance that data have not been modified maliciously

6
New cards

Non-Repudiation

Ensures that an entity cannot deny having done an action (e..g, either the sender or the receiver cannot deny to have sent/received a particular message)

7
New cards

Services Availability

Property of a system to be always available and ready to serve requesting entities

8
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Vernam Cipher

9
New cards

Vernam Cipher

Keystream generator generates a random key for each plaintext. Theoretically unbreakable, but in practice hard to implement due to lack of psuedo randomness

10
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Electronic Code Block

11
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Cipher Block Chaining

12
New cards

Cipher Block Chaining Limitation

If error occurs, it propagates indefinitely

13
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Cipher Feedback

14
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Output Feedback

15
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Counter Mode

16
New cards

Counter Mode Advantages

Very fast, can be parallelizable

Errors only propagate to one block

17
New cards
<p>What Cipher is this?</p>

What Cipher is this?

Galois Counter Mode

18
New cards

What is IPSec (Internet Protocol Security)?

Network layer protocol that establishes secure, encrypted tunnels between two peers

19
New cards

IPSec Services

Confidentiality, Integrity and Authentication

20
New cards

IPSec Consists of..

IKE - Internet Key Exchange (handles mutual authentication and key negotiation)

ESP (Encapsulating Security Payload) or AH (Authentication Header) (Protects actual user data traversing the network)

21
New cards

IKE (Internet Key Exchange)

Protocol part of IPSec responsible for authenticating, setting up the security association between peers and distributing the keys for the current session (which are temporary to ensure perfect forward secrecy)

22
New cards

IKE Security Services

Authentication

Integrity

23
New cards

IKE General Flow

IKE_SA_INIT → IKE_AUTH → CHILD_SA

24
New cards

IKE_SA_INIT

Initiator and Responder agree on a cryptographic algorithm. Responder also shares Diffie-Hellman public value and random nonce

Shared Diffie-Hellman is independently computed, which is used to derive the master secret

From master secret, SK_e (encryption), SK_a (integrity), and SK_d (keying material for child SAs) keypairs are derived + establishing the IKE_SA (the secure control channel)

25
New cards

IKE_AUTH

Mutual authentication occurs, peers negotiate and establish the first CHILD_SA (the IPSec data channel), which defines the algorithms and keys used to encrypt the actual user traffic

26
New cards

CHILD_SA

Once the CHILD_SA is established, all user data traffic is encrypted using ESP (Encapsulating Security Payload), and IKE continues to manage the lifecycle of both SAs

27
New cards

ESP (Encapsulating Security Payload)

core IPSec protocol responsible for protecting the actual user data traffic that travels over the VPN

28
New cards

ESP Modes

Tunnel Mode and Transport Mode

29
New cards

Tunnel Mode

ESP takes the entire original IP packet (including the original source/destination IP headers), encrypts it, and wraps it inside a new outer IP header that contains the public IPs of the VPN gateways

30
New cards

Transport Mode

Encrypts only the payload (used for end-to-end host communications)

31
New cards

SPD (Security Policy Database)

Dictates WHAT traffic needs IPsec protection; it contains the policy rules that specify which selectors (e.g., source/destination IPs, ports, protocols) must be secured, bypassed, or discarded

32
New cards

SAD (Security Association Database)

Stores HOW to protect the traffic; it holds the actual cryptographic parameters for each active Security Association (SA). Stores IKE_SA and CHILD_SA IKE_SA

33
New cards

WPA2 / Robust Security Network (RSN)

Second-generation Wi-Fi security protocol, officially mandated for all devices carrying the Wi-Fi trademark since 2006, and it replaced the severely flawed WEP protocol

34
New cards

WPA2 Services

Authentication, Access Control, and Data Confidentiality

35
New cards

WPA2 - Authentication

Defines an exchange between a user and an AS (authentication server) that provides mutual authentication and generates temporary keys to be used between the client and the AP over the wireless link

36
New cards

WPA2 - Access Control

Enforces the use of the authentication function, routes the messages properly, and facilitates key exchange. It can work with a variety of authentication protocols

37
New cards

WPA - Confidentiality with Message Integrity

MAC-level data are encrypted along with a message integrity code that ensures that the data have not been altered.

38
New cards

WPA Protocol for Access Control

IEEE 802.1, Port-based, Access Control

39
New cards

WPA Protocol for Authentication and Key Generation

Extensible Authentication Protocol (EAP)

40
New cards

WPA Protocol for Confidentiality, Data Origin Authentication and Integrity and Replay Protection

CCMP

41
New cards

WPA Algorithms - Confidentiality

AES-CCM (AES-CTR mode to encrypt plaintext), NIST Key Wrap

42
New cards

WPA Algorithms - Integrity and Data Origin Authentication

HMAC-SHA-1

AES-CBC-MAC

43
New cards

WPA Algorithms - Key Generation

HMAC-SHA-1

RFC 1750

44
New cards

Extensible Authentication Protocol (EAP)

Used to carry out mutual authentication in WPA2, exchange credentials and establish the MSK. RADIUS server authenticates client, and distributes MSK to AP

45
New cards

WPA-2 Personal and WPA-2 Enterprise differences

Personal: Pre-shared key is used

Enterprise: Master Session Key is generated between client and AP

46
New cards

4-Way Handshake

  1. Anonce sent to STA to generate PTK

  2. Snonce sent from STA to AP to generate PTK

  3. AP demonstrates to STA it is alive and PTK is fresh via MIC (Message Integrity Code)

  4. STA sends acknowledgement message (no function, finishes the handshake)

47
New cards

Protected Data Transfer - Schemes

WPA → Temporal Key Integrity Protocol (TKIP) (deprecated)

WPA2 → Counter Mode-CBC MAC Protocol (CCMP)

48
New cards

WPA2 vs WPA3

Personal:

More robust authentication process via the Simultaneous Authentication of Equals (SAE) protocol, in place of the 4-ways handshake, forward secrecy + natural password selection

• Use of AES-GCM in place of AES-CCMP

49
New cards

Temporal Key Integrity Protocol (TKIP)

Core data encryption protocol designed to address flaws in WEP (later deprecated in 2008 after serious vulnerabilities were exposed)

50
New cards

TKIP Services

Message integrity and Data Confidentiality

51
New cards

TKIP Main Implementations

Each packet has a unique key, the RC4 key (generated from Temporal Key, MAC Address, Initialization Vectors)

Using MIC Key derived from PTK, integrity of data can be checked, AP computes same hash and compares the hash it received

52
New cards

Counter Mode-CBC MAC Protocol (CCMP)

WPA2 algorithm responsible for encrypting the payload and providing integrity via the MIC calculation

53
New cards

How does CCMP work?

CBC-MAC Mode for MIC calculation

CTR Mode for payload encryption

<p>CBC-MAC Mode for MIC calculation</p><p>CTR Mode for payload encryption</p>
54
New cards

TLS

Transport Layer Security: the foundational protocol that secures communication over the Internet.

It is the successor to SSL (Secure Sockets Layer)

55
New cards

TLS Uses

General purpose protocol: the core technology behind HTTPS, securing web browsing, email, VoIP, and many other applications.

56
New cards

TLS Services

confidentiality, integrity, and authentication

57
New cards

TLS Algorithms

(They are algorithms of the TLS Record Protocol)

Confidentiality: AES CBC mode

Integrity: HMAC in RFC 2104

58
New cards

What data does TLS encrypt?

TCP traffic

59
New cards

TLS Main Protocols

Record Protocol and Handshake Protocol

60
New cards

TLS Record Protocol

Responsible for fragmenting, compressing (optional), encrypting, and transmitting all application data (e.g., HTTP) and handshake messages between the client and server

61
New cards
<p>TLS Record Protocol Steps</p>

TLS Record Protocol Steps

Application data is fragmented into records, compressed, MAC is appended (message authentication code), encrypted and the TLS record header is appended

62
New cards

TLS Record Header Content

Message Type, Protocol variant, data size

63
New cards

TLS Handshake Protocol Objectives

Ran at the establishment of a TLS session to:

  • Authenticate the parties (mutual authentication)

  • Establish the Cipher Specifications (encryption and MAC)

  • Establish keys

64
New cards
<p>TLS Handshake Steps</p>

TLS Handshake Steps

Phase 1: Establish Security Capabilities

Phase 2: Server Authentication and Key Exchange

Phase 3: Client Authentication and Key Exchange (DH)

Phase 4: Finish - verification of successful authentication and key exchange

65
New cards

TLS Master Secret

Master Key from which keys for record protocol are derived.

Created using pre master key (from DH), client and server random number

66
New cards

TLSv1.3 vs TLSv1.2 changes

  • Removed Compression Option

  • No RSA for Key Exchange (only signature)

  • Inclusion of 32-bit timestamp in ClientHello

  • No RC4 for stream cipher, only block ciphers

  • Use of Hashed Key Derivation Functions (HKDF) in place of PRF

  • Use of AES-GCM for confidentiality and integrity

  • 1-round trip handshake (re-use of security parameters from previous handshakes)

67
New cards

HTTP Secure (HTTPS)

Secure version of HTTP that runs over TLS/SSL. It secures communication between client and server

68
New cards

HTTPS Services

Authentication

Confidentiality

Integrity

69
New cards

HTTPS port

443

70
New cards

HTTP port

80

71
New cards

HTTPS Connection Initiation

HTTPs client connection triggers TLS Handshake protocol.

After successful completion of TLS Handshake, HTTPS client delivers HTTP data in a TLS Record packet

72
New cards

HTTPS Connection Closure

HTTP(s) client or server can indicate the closing of a connection by including the line Connection: close in an HTTP(s) record

TLS implementations must initiate an exchange of closure alerts before closing a connection (otherwise the closure is incomplete)

73
New cards

Secure Shell (SSH) Protocol

Protocol for secure network communication between two hosts

74
New cards

SSH Port

22

75
New cards

SSH Protocol Stack

SSH Transport-Layer Protocol, SSH User Authentication Protocol, SSH Connection Protocol

76
New cards

SSH Transport-Layer Protocol

Foundational component of SSH, providing a secure, low‑level channel over an insecure network, typically on top of TCP/IP

77
New cards

SSH Transport-Layer Flow

Identification Key Exchange, Algorithm Negotiation, Key Exchange (DH), Service Request (Authentication or Connection Protocol)

78
New cards
<p>SSH Packet Structure</p>

SSH Packet Structure

Payload compressed, MAC computed from sequence number and payload. Plaintext encrypted (without MAC), MAC is attached. Server recomputes MAC on ciphertext. If same, accept

79
New cards

SSH Packets Services

Integrity, Confidentiality, Message Authenticaiton (sender must have used symmetric key for this session to compute

80
New cards

SSH User Authentication Protocol

SSH Protocol used to Authenticate Client to Server

81
New cards

SSH User Authentication Protocol Message Types

SSH_MSG_USERAUTH_REQUEST (50: Username, connection protocol, authentication method)

SSH_MSG_USERAUTH_FAILURE (51: list of methods that are allowed, publickey, pass, hostbased)

SSH_MSG_USERAUTH_SUCCESS (52: single byte)

82
New cards

SSH Connection Protocol

Allows packet (data) exchange over secure connection, new communication opens a channel (max packet size and application specified during opening of channel)

83
New cards

SSH port forwarding/tunneling

Convert any (insecure) TCP session into a secure SSH connection (SSH tunneling). Packets are delivered to correct app via port number

84
New cards

SSH Port Forwarding Types

Local Forwarding and Remote Forwarding

85
New cards

Local Forwarding

Client and Server redirect traffic to/from SSH ports

86
New cards

Remote Forwarding

User SSH Client acts on server’s behalf (packets are directly delivered to SSH port on the server)