CSEC - 2

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

1/103

encourage image

There's no tags or description

Looks like no tags are added yet.

104 Terms

1
New cards

Three fundamental network principles

Packet switching - stack of layers - encapsulation

2
New cards

Cryptography (as a defence)

Protects data by making it unreadable to anyone without the keys

3
New cards

Software controls - examples

Password managers - VM sandboxes - virus scanners - Git - firewalls - Tor - VPNs

4
New cards

Hardware controls - examples

YubiKey-style hardware tokens - hardware firewalls - intrusion detection systems

5
New cards

Why use a hardware key (YubiKey)?

A stolen password is useless without the physical key plugged in

6
New cards

Physical controls - examples

Security guards - locks - off-site backups - not placing critical systems in disaster zones (floods/tornadoes)

7
New cards

Policies and procedures

Non-technical controls on how people behave around systems - includes legal requirements such as GDPR

8
New cards

Weakest link in most secure systems

Human beings - hence policies and procedures

9
New cards

Packet switching

Data is split into packets - each is transported independently and forwarded on its own

10
New cards

Best effort delivery

Each device tries to deliver a packet but gives NO guarantee - it may be dropped

11
New cards

Can packets from one message take different routes?

Yes - same endpoints but different paths (e.g. A-B-F vs A-C-D-E-F)

12
New cards

Why is the network a connected mesh?

Resilience - alternative paths exist if a node fails

13
New cards

What happens when a packet is dropped?

The destination notices it is missing and the sender resends it - cheap but should not be overdone

14
New cards

Why can packets get corrupted?

Physics - bit flips (e.g. cosmic rays) and noise on wires - error correction helps but is not perfect

15
New cards

Ethernet cable range

About 100 m - beyond that you need a repeater

16
New cards

The five layers (top to bottom)

Application - Transport - Network - Link - Physical

17
New cards

Application layer

Application logic (browser or game) - knows its own messages but nothing about lower-level networking

18
New cards

Transport layer protocols

TCP and UDP

19
New cards

Network layer protocol

IP

20
New cards

Link layer protocol

Ethernet

21
New cards

Physical layer

The actual wires or wireless signals - the only layer that is real hardware

22
New cards

Which layers are software?

All layers above the physical layer - they are abstractions

23
New cards

Layering principle

Each layer provides a service the layer above relies on without knowing HOW it is done - only the interface matters

24
New cards

Virtual vs actual channel

Actual channel exists only at the physical layer - higher layers have virtual (logical) channels between peers

25
New cards

Which layers does a router need?

Only up to the network layer (IP) - it only cares where the packet is going

26
New cards

Journey of a packet

Down the stack at the source - up and down at each router - up to the application at the destination

27
New cards

Simplified Internet stack

HTTPS (application) - TLS (security) - TCP (reliability) - IP (internet routing) - ARP (LAN routing) - physical

28
New cards

Role of TLS

Security layer sitting beneath HTTPS

29
New cards

Role of TCP

Reliability

30
New cards

Role of ARP

LAN routing - maps an IP address to a MAC address

31
New cards

Benefit of layering

Each layer is built by someone else and reused - developers only handle their own layer

32
New cards

Encapsulation

A packet p of protocol P is placed inside (as the payload of) a packet q of protocol Q

33
New cards

What does a packet consist of?

Control information (header and footer) plus data (payload)

34
New cards

Why add headers?

They tell the lower layers what to do with the packet (e.g. packet 1 of 3 and length)

35
New cards

Headers going down vs up the stack

Added going down at the sender - stripped away going up at the receiver

36
New cards

Internet packet encapsulation order

Application data inside TCP inside IP inside link frame (frame header + IP hdr + TCP hdr + data + frame footer)

37
New cards

Letter-in-envelopes analogy

Each handler reads only its own outer label - inner packets stay hidden in the payload

38
New cards

Why do packets grow going down the stack?

Each layer adds its own header (and footer at the link layer)

39
New cards

Link layer data unit

Frame

40
New cards

Fragmentation - which layers?

Can happen at ANY layer if the data is too big for the next layer down

41
New cards

Network interface

Device connecting a computer to a network (Ethernet card - WiFi adapter - DSL modem)

42
New cards

Can a computer have several network interfaces?

Yes - and packets can be transmitted between them inside the computer

43
New cards

How do most LANs (Ethernet and WiFi) deliver frames?

They broadcast them

44
New cards

MAC address

48-bit hardware address of a network interface - usually written in hex (e.g. 00-1A-92-D4-BF-86)

45
New cards

MAC address structure

First 3 octets = OUI assigned by IEEE to the manufacturer - last 3 chosen by the organisation (must be unique)

46
New cards

OUI

Organizationally Unique Identifier - the first 3 octets of a MAC - identifies the manufacturer

47
New cards

Why do we need addresses?

To reach anything not physically on your wire you must know where to send it

48
New cards

Hub

Dumb device - repeats every frame on ALL ports

49
New cards

Switch

Link layer device in a LAN - learns MAC addresses and forwards frames only to the destination

50
New cards

How does a switch work?

Learns the MAC of each connected computer - builds a table - sends frames only down the right port

51
New cards

Hub vs switch traffic

Hub multiplies traffic across all ports - switch saves traffic by sending to one port

52
New cards

Switch layer vs router layer

Switch = link layer (MAC addresses) - router = network layer (IP addresses)

53
New cards

What is the Internet?

A network of networks joined by routers

54
New cards

Protocol

An agreed set of messages and rules for how to respond - everyone must follow the same standard to understand each other

55
New cards

IP (Internet Protocol)

The standard everyone on the internet speaks - decides how packets get from one place to another

56
New cards

Four functions of IP

Addressing - routing - fragmentation and reassembly - data encapsulation and packaging

57
New cards

IP addressing function

Gives each destination a unique address so data can be delivered

58
New cards

IP routing function

Lets packets cross networks and reach networks not directly connected

59
New cards

IP fragmentation and reassembly

Splits packets to fit each network's maximum packet length - reassembled at the destination

60
New cards

IPv4 address size

32-bit addresses (2^32 possible)

61
New cards

IPv6 address size

128-bit addresses (2^128 possible)

62
New cards

Effect of adding one bit to an address

Doubles the number of addresses

63
New cards

Why must IP addresses be unique?

Otherwise you cannot tell which machine a packet is meant for

64
New cards

IP address subdivision

Network - subnet - host (e.g. 128.148.32.110)

65
New cards

Broadcast address

Ends in 255 (e.g. 128.148.32.255) - delivers to every host on the network - used later in attacks

66
New cards

Private IP ranges

10.0.0.0/8 - 172.16.0.0/12 - 192.168.0.0/16 - never routed on the public internet

67
New cards

Why can private ranges be reused by everyone?

They never leave the local network so uniqueness is only needed inside each LAN

68
New cards

Typical home WiFi address

192.168.x.x - a private LAN address

69
New cards

IP header fields

Version - length - fragmentation info - TTL - protocol - source address - destination address

70
New cards

Max IP packet length

Up to 64KB

71
New cards

TTL (time to live)

Counter decremented at every hop - packet dropped at 0 - stops packets looping forever (max 255)

72
New cards

Most important IP header fields

Source and destination address

73
New cards

IP protocol field

States which transport protocol is inside (e.g. TCP)

74
New cards

Why must some headers be plain text?

Network devices need to read them to route the packet - crypto cannot work with strangers who share no keys

75
New cards

Can the payload be encrypted?

Yes - but at least some headers must stay in plain text

76
New cards

Router

Network layer device that bridges two or more networks and forwards using a routing table

77
New cards

What does a router base forwarding on?

Solely the DESTINATION address - not the source

78
New cards

Routing table

Maps ranges of addresses to LANs or other gateway routers

79
New cards

Default route

0.0.0.0/0 - used when no other rule matches - forwards to the gateway router

80
New cards

Gateway

Router that connects a LAN to the rest of the internet

81
New cards

ICMP

Internet Control Message Protocol - network layer - simple messages in single IP packets - for testing and debugging

82
New cards

Ping

Sends ICMP echo requests - reports roundtrip times and packet loss - shows if a host is alive

83
New cards

Traceroute

Sends ICMP packets with increasing TTL to discover the route to a host

84
New cards

How traceroute works

TTL=1 dies at router 1 which replies time exceeded - then TTL=2 and so on - until the destination sends an echo response

85
New cards

Attacker use of ping and traceroute

Reconnaissance - find live machines and map the paths to them

86
New cards

Why is scanning every IP feasible?

Only 2^32 IPv4 addresses - even fewer in private ranges

87
New cards

Security insight from traceroute

Reveals the path so an adversary knows which machines to compromise or influence to intercept or block traffic

88
New cards

Traceroute to facebook.com showed

Hosting provider in Germany then Hetzner then tfbnw.net (Facebook-owned) then Facebook's server

89
New cards

Real-world cable case study

Physical cables are a weak point - cutting submarine cables (about 60 worldwide) can knock regions offline

90
New cards

Network attack - DoS

Blocks traffic from reaching the destination - attacks availability

91
New cards

Network attack - wiretapping (passive)

Attacker copies traffic without affecting the flow - attacks confidentiality

92
New cards

Network attack - tampering (active)

Attacker changes bits or messages in transit - attacks integrity

93
New cards

Network attack - spoofing (creation)

Attacker creates messages that appear to come from a legitimate source - attacks authenticity

94
New cards

Passive vs active attacker

Passive only observes - active modifies blocks or injects traffic

95
New cards

Redirecting traffic via attacker's server

Attacker may learn more than from sniffing alone because they can process data before forwarding

96
New cards

Wireshark

Packet sniffer and protocol analyzer - captures and displays packets - free from wireshark.org

97
New cards

Why does Wireshark need admin or root?

It needs control of the network card - and the program carries security risks

98
New cards

Promiscuous mode

Captures all traffic on the network - not just traffic addressed to your machine

99
New cards

Wireshark decoders

Parse raw ones and zeros into protocols like TCP and IP

100
New cards

Wireshark filters

Show only packets for a given host or protocol - regex-like