Network Security Concepts

CompTIA Network+ • Chapter 20

Network Security Concepts

Network security is the disciplined protection of information, systems, and services. This chapter connects threats and vulnerabilities to risk, the CIA triad, encryption and PKI, AAA, identity controls, compliance, and audit evidence.

CIA TriadThreat & RiskEncryptionPKIAAAIAMCompliance
THREATSinternal • externalSECURITYcontrols • identityencryption • evidenceBUSINESSdata • services
20.1 • Security Foundation

Security Supports the Organization

Earlier systems were often protected partly by physical isolation. Modern networks connect users, partners, mobile devices, cloud services, and remote locations, increasing both their usefulness and their exposure. Network security therefore combines technical controls, policies, processes, training, physical protection, and continuous monitoring.

Asset

Anything valuable that must be protected: information, identities, devices, services, facilities, reputation, or business operations.

Control

A safeguard that reduces likelihood or impact. Examples include firewalls, MFA, encryption, backups, training, and documented procedures.

Residual risk

The risk remaining after controls are applied. Security reduces and manages risk; it cannot guarantee that every threat disappears.

Security is a business decision: A control should be proportionate to the asset value, threat likelihood, potential impact, operational needs, and regulatory obligations.
20.2 • Common Security Terminology

Threat, Risk, and Security Control

A threat is a potential cause of harm. A vulnerability is a weakness that could be exploited. Risk expresses the possibility that a threat will exploit a vulnerability and produce an adverse impact. A control reduces the likelihood, impact, or both.

THREATpotential dangerVULNERABILITYweaknessRISKlikelihood × impactCONTROLreduces exposureRESIDUAL RISKrisk that remains

External threats

Originate outside the organization, such as threat actors delivering ransomware, malware, or denial-of-service traffic.

Internal threats

Come from employees, contractors, or trusted accounts. They may be malicious or may misuse privileged knowledge and access.

Unintentional threats

Include weak passwords, accidental disclosure, phishing mistakes, and misconfiguration. Training and guardrails reduce these events.

Threats also include non-malicious physical and environmental events such as fire, flood, equipment failure, and power loss. Risk analysis must consider both probability and business impact.

20.3 • Weaknesses and Exploitation

Vulnerability, CVE, Zero-Day, and Exploit

TermMeaningExample or distinction
VulnerabilityA weakness in hardware, software, configuration, process, or physical protectionAn unpatched service or default password
CVEA standardized identifier for a publicly known vulnerabilityIt supplies a common name; other databases provide scores and detail
Zero-day vulnerabilityA newly discovered flaw without an available fix or effective workaround“Zero days” of advance remediation time
Zero-day exploitAn attack or technique actively using that unpatched flawThe vulnerability is the weakness; the exploit acts on it
ExploitCode, a method, or a technique that takes advantage of a vulnerabilityMay be used by attackers or authorized security testers

Patching removes many known weaknesses, but no system can be assumed vulnerability-free. Defense in depth, least privilege, segmentation, monitoring, secure configuration, and incident readiness reduce the impact when prevention fails.

Important distinction: CVE is a naming and coordination system, not the vulnerability itself, not a severity score, and not a patch.
20.4 • Core Security Objectives

Confidentiality, Integrity, and Availability

The CIA triad describes what security controls are trying to preserve. A well-designed network balances all three objectives rather than maximizing one at the expense of the others.

Confidentiality

Only authorized subjects can access information. Authentication, authorization, encryption, segmentation, firewalls, and physical controls support confidentiality.

Integrity

Information remains accurate, complete, and protected against unauthorized alteration. Hashes, digital signatures, checksums, ACLs, and change controls support integrity.

Availability

Authorized users can access systems and information when required. Redundancy, fault tolerance, backups, capacity planning, and recovery procedures support availability.

CIA is not AAA: The CIA triad defines security objectives. AAA—authentication, authorization, and accounting—controls and records access.
20.5 • Protecting Information

Data States and Encryption Methods

Data stateMeaningTypical protection
Data at restStored on disks, databases, removable media, or backupsFull-disk, file, database, or backup encryption
Data in transitMoving across a network or between systemsTLS, IPsec, SSH, VPNs, and secure application protocols
Data in useBeing processed, usually in memoryOS isolation, access controls, secure applications, and specialized memory protection

Symmetric encryption

The same shared secret key encrypts and decrypts. It is efficient for large amounts of data, but the key must be distributed and protected securely.

Think: one secret key, high speed, difficult key sharing.

Asymmetric encryption

A mathematically related public/private key pair performs complementary operations. It enables identity verification, digital signatures, and secure key establishment, but is slower.

Think: public key may be shared; private key must remain secret.

Real protocols often use both: asymmetric mechanisms authenticate parties and establish a session secret, then fast symmetric encryption protects the bulk data. Encryption supports confidentiality, while digital signatures can support integrity, authenticity, and non-repudiation.

20.6–20.7 • Trust and Certificates

Certificates and Public Key Infrastructure

A digital certificate binds an identity—such as a website or organization—to a public key. Public Key Infrastructure (PKI) provides the people, policies, hardware, software, and procedures used to issue, manage, validate, revoke, and renew certificates.

ROOT CAtrust anchorISSUING CAissues end certificatesSERVER CERTIFICATEidentity + public keyUSER / DEVICE CERTidentity + public key

Public CA

Its root certificates are commonly trusted by browsers and operating systems. Appropriate for public-facing services requiring broad trust.

Private CA

Operated for an organization’s internal needs. Clients must receive and trust the organization’s root certificate securely.

Self-signed certificate

Signed with its own private key rather than by a trusted CA. It can encrypt traffic, but identity trust must be established manually.

The Certificate Revocation List (CRL) identifies certificates revoked before expiry. Authority Information Access (AIA) points clients toward issuer information and, depending on the certificate, validation services. Private keys must never be placed in public trust stores or shared as if they were certificates.

20.8 • Access Control Framework

The AAA Model

Authentication

Who are you? Verifies a claimed identity using credentials and authentication factors.

Authorization

What may you do? Determines the resources and operations available after identity is verified.

Accounting

What happened? Records logins, sessions, commands, resource usage, and other events for monitoring and audit.

Authentication factors include something you know (password), have (token), are (biometric), somewhere you are (location), and something you do (behavioural characteristic). Multifactor authentication (MFA) combines factors from at least two different categories—not merely two passwords.

SSO and MFA solve different problems: Single sign-on lets a user authenticate once and reach multiple approved services. MFA strengthens the authentication event. They can be used together.
20.8 • Authentication Services and Protocols

SSO, SAML, RADIUS, TACACS+, and LDAP

TechnologyPrimary purposeTransport / portExam distinction
SAMLExchanges XML-based authentication and authorization assertions between an identity provider and service providerNormally carried through web protocolsCommonly supports federated SSO using claims/assertions
RADIUSCentralized network access AAAUDP 1812 authentication; UDP 1813 accountingCommon for VPN, wireless, and 802.1X network access
TACACS+Centralized administrative AAA for network devicesTCP 49Separates authentication, authorization, and accounting; encrypts the packet body
LDAPQueries and modifies directory informationTCP/UDP 389; LDAPS commonly TCP 636Directory access is not itself the complete AAA model

An identity provider (IdP) authenticates a user and supplies an assertion or token to a service provider (SP). SSO reduces repeated logins, but the central identity service becomes highly important and should be protected with MFA, resilient design, secure federation configuration, and monitoring.

20.9 • Permissions and Identity Governance

Authorization, IAM, Least Privilege, RBAC, and Geofencing

Identity and Access Management

IAM governs identity creation, authentication, authorization, role changes, reviews, and deprovisioning across the identity life cycle.

Least privilege

Grant only the minimum access needed, for only as long as needed. Remove permissions when duties or employment change.

Role-Based Access Control

RBAC assigns permissions to job roles, then assigns users to those roles. This scales better than managing every user permission separately.

Geofencing

Allows, denies, or challenges access according to geographic location. Because location can be imprecise or spoofed, it should be one signal among several.

Authorization occurs after authentication but must still be checked for every protected action. Periodic access reviews, separation of duties, privileged access management, and immediate deprovisioning reduce excessive or stale privileges.

20.10–20.12 • Governance and Evidence

Accounting, Regulatory Compliance, and Audits

Accounting produces the evidence needed to reconstruct access and activity. Useful logs identify who acted, what occurred, when it happened, where it originated, the result, and the affected resource. Centralized collection, time synchronization, access protection, retention rules, and monitoring make those records reliable.

RequirementPrimary scopeCommon association
GDPRPersonal data and privacy rights in the European Union / EEA contextLawful processing, protection, and data-subject rights
HIPAAProtected health information in covered U.S. healthcare contextsHealthcare privacy and security
PCI DSSCardholder-data environmentsPayment-card security standard
SOXFinancial reporting controls for applicable U.S. public companiesIntegrity and accountability of financial reporting
FERPAStudent education records in the United StatesEducation-record privacy
GLBACustomer financial information at applicable U.S. financial institutionsFinancial privacy safeguards

Compliance requirements are translated into policies, standards, processes, and procedures. An internal audit is performed by or for the organization to assess its controls. An external audit provides independent examination. An audit verifies evidence against criteria at a point or period in time; it does not prove permanent security.

20.13 • Interactive Practice

Match the Scenario to the Security Concept

Select a scenario to reveal the most relevant concept and the reasoning behind it.

Select a scenario.
The best concept, protocol, or control will appear here.
20.14 • Exam Check and Summary

Test Your Understanding

1. Which CIA principle ensures information and services remain accessible?
2. Encrypting a backup tape primarily protects which data state?
3. A large amount of UDP 1813 traffic most likely belongs to which service?
4. Which PKI component identifies a certificate that has been revoked?
5. Which method most directly simplifies permission assignment according to job function?

Essential Takeaways

A threat is a potential danger; a vulnerability is a weakness; risk combines likelihood and impact.
External, internal, accidental, physical, and environmental threats all matter.
CVE provides standardized identifiers; an exploit is the technique used against a vulnerability.
Confidentiality restricts disclosure, integrity prevents unauthorized alteration, and availability keeps resources accessible.
Protect data at rest, in transit, and in use with controls suited to each state.
Symmetric encryption is fast with one shared key; asymmetric encryption uses a public/private pair.
PKI manages certificate trust, issuance, validation, revocation, renewal, and key practices.
Authentication verifies identity, authorization controls permissions, and accounting records activity.
MFA combines different factor categories; SSO reduces repeated authentication.
RADIUS uses UDP 1812/1813; TACACS+ uses TCP 49; LDAP commonly uses 389 or 636.
IAM, least privilege, RBAC, access reviews, and deprovisioning govern authorization.
Compliance becomes operational through policy and controls; audits examine evidence against requirements.