studyhubInformation Assurance & Security

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.

ErrorNameMeaningEffect
Type IFalse rejectionRejects an enrolled, authorised userLeast important for access control, but a lost sale or transaction in retail and banking
Type IIFalse acceptanceAdmits someone who should not get inA 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 stageWhat happens
Develop and testBuilt 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 productionStaging closely matches production, so developers can verify the software runs under the required security settings before it is deployed.
Provisioning and deprovisioningProvisioning is creating or updating software; deprovisioning is removing it. A self-service portal can automate both.
Secure coding techniqueWhat it does
NormalizationConverts an input string to its simplest known form so every string has a unique binary representation and malicious input is identified.
Stored procedurePrecompiled SQL statements kept in the database. Accepting client parameters this way reduces network traffic and speeds results.
ObfuscationHides original data with random characters or data.
CamouflageReplaces sensitive data with realistic fictional data.
Code reuseBuilds on existing software to save time and cost. Take care not to bring in vulnerabilities.
SDKs and third-party librariesFaster 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 criterionChecks
SizeThe number of characters in a data item
FormatThat data conforms to a specified format
ConsistencyThat codes in related data items agree
RangeThat a value lies between a minimum and a maximum
Check digitAn 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)

  1. 1Multiply the first digit by 10, the second by 9, and so on down to the ninth by 2.
  2. 2The products are 10, 45, 64, 49, 6, 20, 12, 21 and 6. Their sum is 233.
  3. 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.

PracticePurpose
Validation rulesCheck data is within predefined limits: complete, accurate, consistent
Integrity checksTake a snapshot to show data remains unchanged
Code signingDigitally validates that software code has not changed and is authentic
Secure cookiesStore 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.

ServiceRiskProtection
DHCPAttackers target the server to deny devices accessDHCP 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.
DNSAttackers deny access or redirect traffic to rogue sitesDNSSEC 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.
ICMPUsed by ping to test reachability; abused for reconnaissance, DoS and covert channelsFilter ICMP requests
RIPRouters and routing protocol attacked; can redirect trafficAuthenticated routing, patching and updates
NTPTimeservers attacked to disrupt certificate-based communication and hide attack evidenceNTP authentication to verify the server is trusted
InsecureSecure replacementNote
Telnet (TCP 23)SSH (TCP 22)Telnet sends the username and password in plaintext; Wireshark can capture them. SSH encrypts the session.
File copySCPSecurely transfers files between two remote systems, using SSH for transfer and authentication
SNMP (earlier versions)SNMPv3Current 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
FTPFTPSFTP logs in with plaintext credentials; FTPS adds TLS and SSL
POP (port 110), IMAP (port 143)SSL/TLS, and S/MIME for messagesS/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.

InternetuntrustedFWDMZweb server · mail serverTrusted LANinternal hosts and datanorth–south
A firewall separating the Internet, the DMZ and the trusted LAN; risk rises and trust falls toward the Internet.
ZoneRiskTrust
Trusted private LANLowHigh
ExtranetMedium-lowMedium-high
DMZMedium-highMedium-low
InternetHighLow

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.

StandardWhat changed
WEPThe first wireless security protocol, with 64-bit and 128-bit keys. Weak; replaced by WPA.
WPAIndustry 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).
WPA2Released 2006. AES algorithms mandatory; CCMP replaces TKIP.
WPA3Strong 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 variantClient certificateServer certificateDeploymentSecurity
EAP-TLSYesYesDifficultHigh
PEAPNoYesModerateMedium
EAP-FASTNoNoEasyMedium
EAP-TTLSThe 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.

ManagementWhat it does
Storage segmentation and containerisationSeparates 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 managementControls what data a user can reach in data-sharing apps (Dropbox, Box, Google Drive, iCloud), using an identity-management system.
Application managementWhitelisting: 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:

TermPlatformWhat it does
JailbreakingAppleRemoves the restriction that only Apple-authorised apps may run
RootingAndroidBypasses Android's security architecture for complete administrative access
SideloadingEitherInstalls 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.

  1. 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.
  2. Provide reliable crossover — redundant power supplies, backup power and backup communications.
  3. 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

down per year(1 − 0.99999) × 525,600 = 5.26 minutes
down per month26.3 seconds
down per week6.1 seconds
Availability percentage against downtime per year: each extra nine cuts downtime tenfold.

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

  1. 11 − 0.999 = 0.001.
  2. 20.001 × 525,600 = 525.6 minutes a year.
  3. 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.
LevelHowSurvives
0Striping, no redundancyNo disk loss
1Mirroring1 disk
5Striping with distributed parity (3 or more disks)1 disk
6Striping with double parity (4 or more disks)2 disks
10 (1+0)Mirrored sets striped1 per mirror

RAID 0 · striping

A1A3A5
A2A4A6

survives: no disk lost

RAID 1 · mirroring

A1A2A3
A1A2A3

survives: 1 disk

RAID 5 · striping + distributed parity, 3+ disks

A1B1Cp
A2BpC1
ApB2C2

survives: 1 disk

RAID 6 · striping + double parity, 4+ disks

A1B1Cp
A2BpCq
ApBqC1
AqB2C2

survives: 2 disks

RAID 10 · mirrored pairs, striped

A1A3A5
A1A3A5
A2A4A6
A2A4A6

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.

RAID 0, 1, 5, 6 and 10 drawn as disks: which hold copies, which hold parity.
Redundancy typeHow 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 replicationBoth locations synchronised in real time. High bandwidth; sites must be close to keep latency low.
Asynchronous replicationNear real time. Less bandwidth; sites can be further apart.
Point-in-time replicationBackup location updated periodically. Conserves bandwidth because no constant connection is needed.
Off-site backupsRegular 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 eventMeaning
Spike / surgeMomentary / prolonged high voltage
Fault / blackoutMomentary / complete loss of power
Sag (dip) / brownoutMomentary / prolonged low voltage
Inrush currentThe 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. 1.What does the Crossover Error Rate measure, and is a higher or lower value better?
  2. 2.Compare Type I and Type II biometric errors and say which matters most for access control.
  3. 3.Name the four zones of risk and give each one's risk and trust level. What goes in the DMZ?
  4. 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. 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. 6.For RAID 0, 1, 5, 6 and 10, say how each stores data and how many disk failures it survives.