Notes / Module 12
System & Network Defense
Module 12 is the widest in the unit: it hardens a system from the front door to the data centre, covering physical security, applications, network services, segmentation, wireless and mobile devices, resilience and embedded systems. The exam leans on RAID, availability and five nines, the DMZ zones, and wireless security.
12.1Physical security
Fencing and barricades are the most common physical controls and usually the outermost, most visible layer. A top guard such as barbed or concertina wire adds deterrence and delay, though an attacker can defeat it with a blanket or mattress. Fences need regular inspection: animals burrow under them and earth washes out. Never park vehicles near a security fence.
Biometrics identify people by physiological or behavioural characteristics. Systems can measure the face, fingerprint, hand geometry, iris, retina, signature and voice. Factors when choosing one include accuracy, speed or throughput, acceptability to users, uniqueness, resistance to counterfeiting, reliability, data storage requirements, enrolment time and intrusiveness of the scan. The most important is accuracy, expressed in error types and rates.
| Error | Name | Meaning | Effect |
|---|---|---|---|
| Type I | False rejection | Rejects an enrolled, authorised user | Least important for access control, but a lost sale or transaction in retail and banking |
| Type II | False acceptance | Admits someone who should not get in | A cybercriminal could gain access, so it is normally the most important error for biometric access control |
The most common metric for a biometric system's overall accuracy is the Crossover Error Rate (CER). It is the point where the false accept rate equals the false reject rate. Lower is better: a lower CER means the system makes fewer errors of either type.
- Access badge — a card reader reads a number from the badge, sends it to a computer, which makes the access decision from the credential and logs the transaction for later retrieval.
- Security guards — adapt and respond instantly, and can tell conditions apart and decide on the spot. They cost more, cannot monitor and record high volumes of traffic, and add the risk of human error.
- Video and electronic surveillance — monitors when no one is present, records for long periods, links to motion detection, and is cheaper for a whole perimeter. Place at entrances, exits, loading bays, stairwells and refuse areas.
- RFID asset tags — track assets leaving a secure area. Readers can sit hidden in door frames, read many tags at once and need no line of sight or visible tag, unlike barcodes.
12.2Application security
| Development stage | What happens |
|---|---|
| Develop and test | Built in a development environment: less restrictive, lower security level. Version control tracks changes; a sandbox stops code being overwritten. QA finds defects, which are cheapest to fix here. |
| Staging and production | Staging closely matches production, so developers can verify the software runs under the required security settings before it is deployed. |
| Provisioning and deprovisioning | Provisioning is creating or updating software; deprovisioning is removing it. A self-service portal can automate both. |
| Secure coding technique | What it does |
|---|---|
| Normalization | Converts an input string to its simplest known form so every string has a unique binary representation and malicious input is identified. |
| Stored procedure | Precompiled SQL statements kept in the database. Accepting client parameters this way reduces network traffic and speeds results. |
| Obfuscation | Hides original data with random characters or data. |
| Camouflage | Replaces sensitive data with realistic fictional data. |
| Code reuse | Builds on existing software to save time and cost. Take care not to bring in vulnerabilities. |
| SDKs and third-party libraries | Faster and cheaper development, but a vulnerability in one can affect many applications. |
Input validation controls the data entering a database. Attacks insert malformed data to confuse or crash an application or make it reveal too much. A validation rule checks that data falls within the limits the database designer set, which keeps it complete, accurate and consistent.
| Validation criterion | Checks |
|---|---|
| Size | The number of characters in a data item |
| Format | That data conforms to a specified format |
| Consistency | That codes in related data items agree |
| Range | That a value lies between a minimum and a maximum |
| Check digit | An extra calculation that generates a digit for error detection |
Worked example
Check digit on an ISBN's first nine digits (1 5 8 7 1 4 3 7 3)
- 1Multiply the first digit by 10, the second by 9, and so on down to the ninth by 2.
- 2The products are 10, 45, 64, 49, 6, 20, 12, 21 and 6. Their sum is 233.
- 3The check digit is the number that brings the total to a multiple of 11. 233 + 9 = 242, which is 11 × 22, so the check digit is 9.
An integrity check performs a hash function to take a snapshot of data, then uses that snapshot to confirm the data has not changed. A checksum is a simple hash: it converts each piece of information to a value and sums them. The receiver repeats the calculation, and equal sums mean the data is valid. Common hash functions are MD5, SHA-1, SHA-256 and SHA-512. Related practices: version control (two users cannot update the same object at once), accurate backups, and authorisation on a need-to-know basis, such as read-only file permissions.
| Practice | Purpose |
|---|---|
| Validation rules | Check data is within predefined limits: complete, accurate, consistent |
| Integrity checks | Take a snapshot to show data remains unchanged |
| Code signing | Digitally validates that software code has not changed and is authentic |
| Secure cookies | Store data securely for future requests while browsing a site |
12.3Hardening services and protocols
Criminals use vulnerable network services to attack a device or use it in an attack. A port scanner sends a message to each port and waits for a response, showing which ports are open. Defenders use it to expose only the necessary ports, and criminals use the same tool.
| Service | Risk | Protection |
|---|---|---|
| DHCP | Attackers target the server to deny devices access | DHCP snooping stops rogue DHCP servers handing out addresses by validating messages from untrusted sources. Also: secure physically, patch, firewall, review logs, antivirus, remove unused services, close unused ports. |
| DNS | Attackers deny access or redirect traffic to rogue sites | DNSSEC uses digital signatures to strengthen authentication. Also: separate internal and external DNS servers, restrict or disable zone transfers and dynamic updates, transaction signatures, sign zones, hide the version string. |
| ICMP | Used by ping to test reachability; abused for reconnaissance, DoS and covert channels | Filter ICMP requests |
| RIP | Routers and routing protocol attacked; can redirect traffic | Authenticated routing, patching and updates |
| NTP | Timeservers attacked to disrupt certificate-based communication and hide attack evidence | NTP authentication to verify the server is trusted |
| Insecure | Secure replacement | Note |
|---|---|---|
Telnet (TCP 23) | SSH (TCP 22) | Telnet sends the username and password in plaintext; Wireshark can capture them. SSH encrypts the session. |
| File copy | SCP | Securely transfers files between two remote systems, using SSH for transfer and authentication |
| SNMP (earlier versions) | SNMPv3 | Current standard; cryptography prevents eavesdropping and tampering |
HTTP (port 80) | HTTPS (SSL/TLS) | SSL handshake gives confidentiality; TLS is the updated, more secure replacement for SSL |
| FTP | FTPS | FTP logs in with plaintext credentials; FTPS adds TLS and SSL |
POP (port 110), IMAP (port 143) | SSL/TLS, and S/MIME for messages | S/MIME sends digitally signed and encrypted mail: authentication, integrity, nonrepudiation |
12.4Segmentation: VLANs, DMZ and zones
Segmentation divides a network into smaller parts to improve performance and security.
A VLAN groups devices on a LAN and on individual switches. VLANs are logical connections, while LANs are physical ones. Ports on a switch are assigned to a VLAN, and trunk ports carry the traffic of several VLANs between switches. An administrator can segment by function, project team or application. Devices in a VLAN act as if they were on their own network, so a VLAN can separate sensitive data from the rest and limit broadcast traffic. VLANs can still be attacked, so monitor them, use advanced configuration and patch.
A DMZ (demilitarised zone) is a small network between the trusted private network and the Internet. Web and mail servers usually sit there, so outside users can reach them without reaching the internal network.
| Zone | Risk | Trust |
|---|---|---|
| Trusted private LAN | Low | High |
| Extranet | Medium-low | Medium-high |
| DMZ | Medium-high | Medium-low |
| Internet | High | Low |
Firewalls manage east-west traffic (between servers inside the data centre) and north-south traffic (into and out of the organisation's network). The Zero Trust model does not automatically trust users and endpoints inside the organisation, because trusted users can move around the network to reach data. It monitors every user constantly, whatever their status or role.
12.5.2Wireless security
Wireless devices are open to theft, hacking, unauthorised remote access, sniffing, man-in-the-middle attacks and attacks on performance and availability. The best protection is authentication plus encryption.
| Standard | What changed |
|---|---|
| WEP | The first wireless security protocol, with 64-bit and 128-bit keys. Weak; replaced by WPA. |
| WPA | Industry response to WEP's weaknesses. 256-bit keys; WPA-PSK (pre-shared key) is the most common setup. Adds MIC (message integrity checks, detect altered data) and TKIP (better handling, protection and changing of keys). |
| WPA2 | Released 2006. AES algorithms mandatory; CCMP replaces TKIP. |
| WPA3 | Strong cryptography and better key exchange. |
WPS uses a PIN to join devices, and the PIN can be found by brute force. Do not use it; disable it.
The original 802.11 standard has two authentication types. Open system lets any wireless device connect. Shared key provides mechanisms to authenticate and encrypt data between a client and the access point or router. The best option is WPA2 with EAP, because each user gets their own credentials and a leaver's access ends by deleting their account.
EAP (Extensible Authentication Protocol) is an authentication framework. The user asks to connect through an access point, the access point asks for the identity and passes it to an authentication server, the server asks for proof, the user supplies the password, and the server confirms it to the access point and the user.
| EAP variant | Client certificate | Server certificate | Deployment | Security |
|---|---|---|---|---|
| EAP-TLS | Yes | Yes | Difficult | High |
| PEAP | No | Yes | Moderate | Medium |
| EAP-FAST | No | No | Easy | Medium |
| EAP-TTLS | The fourth EAP method; the module gives no figures for it |
A rogue access point is an unauthorised access point that imitates a real one. Users connect, and the attacker can copy their data in a man-in-the-middle attack that is hard to detect. Mutual authentication is two-way: both ends authenticate each other before connecting, so the client can detect a rogue access point.
12.5.10Mobile devices
Mobile devices communicate by Wi-Fi, Bluetooth, NFC (contactless), IR (short range through an IR receiver) and USB. USB is the only wired one. A device issued by the organisation may be corporate-owned or COPE (corporate-owned, personally enabled). With BYOD the user brings their own device. Either way it can hold personal and organisational data, so security and data protection policies apply.
| Management | What it does |
|---|---|
| Storage segmentation and containerisation | Separates work content from personal data in an authenticated, encrypted area. Also isolates apps, controls app functions, deletes container information and remotely wipes the device. |
| Content management | Controls what data a user can reach in data-sharing apps (Dropbox, Box, Google Drive, iCloud), using an identity-management system. |
| Application management | Whitelisting: digitally sign applications to authorise which can be installed. Use strong passwords for apps that need credentials. |
Threats include theft, loss, unauthorised access, and operating system, application and network risks. Three ways of bypassing a device's limits are risky:
| Term | Platform | What it does |
|---|---|---|
| Jailbreaking | Apple | Removes the restriction that only Apple-authorised apps may run |
| Rooting | Android | Bypasses Android's security architecture for complete administrative access |
| Sideloading | Either | Installs unapproved apps outside the approved settings or from third-party stores. Less invasive, still a risk. |
Tools can detect a jailbroken or rooted device; it is then marked noncompliant and denied access. Safeguards: screen locks (password, PIN or pattern), biometric authentication, context-aware authentication (machine learning judges normal behaviour), remote wipe and full device encryption.
12.6.2High availability and five nines
High availability describes systems designed to avoid downtime as far as possible. Such systems rest on three principles.
- Eliminate single points of failure — identify every device or component whose failure causes system-wide failure; use hot stand-by devices, redundant components and multiple paths.
- Provide reliable crossover — redundant power supplies, backup power and backup communications.
- Detect failures as they occur — active monitoring, which may trigger the backup system.
A single point of failure is any part whose failure means complete failure of the whole system. It can be hardware, a process, a piece of data, an essential utility or even a skilled staff member. The fix is to stop relying on any one element or to build redundant components to take over.
Five nines is a popular goal: 99.999% availability, meaning downtime under 5.26 minutes a year. Steps toward it are standardised systems (same components, easy swapping), clustering (several devices appear as one) and shared component systems (a whole system can stand in for a failed one).
Try it
downtime per year = (1 − availability) × 525,600 min
- availability
- the fraction of time the system is up, e.g. 0.99999 for 99.999%
- 525,600 min
- minutes in a 365-day year (365 × 24 × 60)
Five nines (99.999%) gives (1 − 0.99999) × 525,600 ≈ 5.26 minutes a year.
Worked example
Downtime allowed at 99.9% availability
- 11 − 0.999 = 0.001.
- 20.001 × 525,600 = 525.6 minutes a year.
- 3That is about 8.8 hours, compared with 5.26 minutes at five nines.
12.6.6Redundancy and RAID
N+1 redundancy means the N components that are needed have at least one backup (+1). A car has four tyres (N) and a spare (+1). It still is not a fully redundant system.
RAID spreads data that would sit on one disk across several drives. Except for RAID 0, if one disk is lost the data can be recovered from the others, and multiple drives can retrieve data faster than one. Hardware RAID needs a specialised controller; software RAID is run by utility software in the OS. There are three building blocks.
- Mirroring
- Stores data, then duplicates it on a second drive.
- Striping
- Writes data across several drives so consecutive segments sit on different drives.
- Parity
- Striping with parity: after striping, checksums are generated to check for errors and stored on a third drive.
| Level | How | Survives |
|---|---|---|
| 0 | Striping, no redundancy | No disk loss |
| 1 | Mirroring | 1 disk |
| 5 | Striping with distributed parity (3 or more disks) | 1 disk |
| 6 | Striping with double parity (4 or more disks) | 2 disks |
| 10 (1+0) | Mirrored sets striped | 1 per mirror |
RAID 0 · striping
survives: no disk lost
RAID 1 · mirroring
survives: 1 disk
RAID 5 · striping + distributed parity, 3+ disks
survives: 1 disk
RAID 6 · striping + double parity, 4+ disks
survives: 2 disks
RAID 10 · mirrored pairs, striped
survives: 1 per mirror
Each column is a disk. p and q blocks hold parity — enough to rebuild a lost block from the others in its row.
| Redundancy type | How it works |
|---|---|
| STP (Spanning Tree Protocol) | Physical redundancy in switches causes loops and duplicate frames. STP blocks redundant paths so only one logical path runs between destinations, then unblocks ports if a link or switch fails. |
| First-hop redundancy (standby router) | A standby router backs up the default gateway. Hosts use a virtual router IP as their gateway; the routers exchange periodic messages on their physical IPs, and the standby takes over forwarding if they stop. |
| Synchronous replication | Both locations synchronised in real time. High bandwidth; sites must be close to keep latency low. |
| Asynchronous replication | Near real time. Less bandwidth; sites can be further apart. |
| Point-in-time replication | Backup location updated periodically. Conserves bandwidth because no constant connection is needed. |
| Off-site backups | Regular backups, usually stored off-site in case the main facility is lost. |
Fault tolerance lets a system keep operating if components fail; data mirroring is an example. System resiliency is keeping data and services available despite attacks or disruptive events. For application resilience, three solutions rise in complexity and cost with availability: fault tolerant hardware (multiples of every critical component in one computer), cluster architecture (servers acting as a single system) and backup and restore.
Resilience also covers power and cooling. Put data centres on a different power supply from the rest of the building, use redundant feeds, power conditioning, backup power and a UPS to shut systems down gracefully. HVAC keeps the facility's temperature, humidity and airflow safe for people and equipment.
| Power event | Meaning |
|---|---|
| Spike / surge | Momentary / prolonged high voltage |
| Fault / blackout | Momentary / complete loss of power |
| Sag (dip) / brownout | Momentary / prolonged low voltage |
| Inrush current | The initial surge of power |
12.7Embedded and specialised systems
- SCADA and ICS run manufacturing, energy and communications. The Stuxnet worm targeted SCADA systems. Prevent this by segregating the SCADA network from the organisation's LAN.
- IoT devices greatly expand the attack surface and have been used in some of the largest DDoS attacks. Before connecting one, make sure it can update firmware and change default credentials. Also secure the wireless network and know what is on it.
- Embedded systems (smart TVs, HVAC controls, medical devices, cars) are open to timing attacks: attackers study how long the system takes to respond. This is a side-channel attack, which uses information from the implementation, such as timing, power use, electromagnetic leaks or sound.
- VoIP security is only as good as the underlying network. Encrypt voice packets, use SSH on gateways and switches, change default passwords, use an IDS to catch ARP poisoning, use strong authentication against registration spoofing, proxy impersonation and call hijacking, and use VoIP-aware firewalls.
- Special-purpose systems: medical (pacemakers, insulin pumps: patient safety, record leaks, a network foothold); automotive (tracking, jamming, spoofing: secure design, encrypted controller traffic, firewall); aviation (hard-coded logins, insecure protocols, backdoors) and drones (hijacking, GPS spoofing, jamming, deauthentication).
Deception technologies add a fake layer to the infrastructure to distract attackers from the production network, to learn their methods and to warn of attacks. A honeypot is a decoy that attracts and records attackers. A DNS sinkhole is the other common tactic.
Check yourself
Answer these out loud, without scrolling up. Any you can't, reread that section — then let the deck mark you.
- 1.What does the Crossover Error Rate measure, and is a higher or lower value better?
- 2.Compare Type I and Type II biometric errors and say which matters most for access control.
- 3.Name the four zones of risk and give each one's risk and trust level. What goes in the DMZ?
- 4.Put WEP, WPA, WPA2 and WPA3 in order and state what each changed. Compare EAP-TLS, PEAP and EAP-FAST by certificates needed.
- 5.Give the three principles of high availability. How many minutes of downtime a year does 99.999% allow, and how do you calculate it?
- 6.For RAID 0, 1, 5, 6 and 10, say how each stores data and how many disk failures it survives.