Skip to content

Expert · Network security · topic 41 of 57 · 30 min

Security basics: threats, CIA and AAA

Explanation

Network security protects the confidentiality, integrity and availability (the CIA triad) of data and services. You defend in layers: trained users, locked rooms, strong logins, filtered traffic and monitoring. AAA (authentication, authorisation, accounting) controls who logs in, what they may do and what they did, usually with a RADIUS or TACACS+ server.

Why security is part of networking

A network that works but is not secure is a liability. One stolen password can let someone read customer data, change a router so traffic goes the wrong way, or switch off a service that thousands of people depend on. Network engineers are often the first to notice odd traffic, so security is part of the job, not a separate one.

Five words you must know

WordMeaningExample
VulnerabilityA weakness in a systemA router still using Telnet, or an unpatched server
ThreatSomething that could use the weakness to cause harmA person sniffing traffic on the same LAN
ExploitThe actual method or tool that uses a vulnerabilityA program that abuses a known software bug
RiskHow likely the harm is, times how bad it would beHigh: a public web server with an old, known bug
MitigationA step that reduces the riskPatching, replacing Telnet with SSH, adding an ACL

The CIA triad

Every security control protects one or more of three things. Confidentiality means only the right people can read the data (encryption, access control). Integrity means the data is not changed without anyone noticing (hashes, digital signatures). Availability means the service is up when people need it (redundant links, protection against floods of traffic).

Think of it like this: Think of a bank locker. Confidentiality: only you have the key. Integrity: the seal shows if anyone opened it. Availability: the branch is open when you need your documents. A locker that is secret but never accessible is as useless as one that anyone can open.

Common threats, and how they are stopped

ThreatWhat it isMain defences
MalwareHarmful software: viruses, worms, trojans, ransomwarePatching, endpoint protection, backups, least privilege
PhishingFake emails, SMS or calls that trick people into giving passwords or OTPsUser training, email filtering, MFA
DoS and DDoSFlooding a service so real users cannot reach it; DDoS uses many machinesISP or cloud DDoS protection, rate limits, spare capacity
SpoofingFaking an address (IP, MAC) or identity to look trustedDHCP snooping, Dynamic ARP Inspection, ingress filtering
Man-in-the-middleAn attacker quietly sits between two parties and reads or changes trafficEncryption (TLS, SSH, IPsec), DAI, certificate checks
Password attacksGuessing, trying leaked passwords, or trying many passwordsLong passphrases, MFA, lockouts, login delays
Social engineeringManipulating people, for example a caller pretending to be IT supportTraining, call-back checks, clear procedures

Defence in depth

Defence in depth means several independent layers, so one failure does not open everything. A typical stack: a firewall at the edge, ACLs between VLANs, port security on access ports, strong logins on devices, encrypted management, patched systems, logging, and trained users. An attacker who gets past one layer meets the next.

User awareness and training is a layer too, often the cheapest. Most real breaches start with a person clicking a link or sharing an OTP. Short, regular training and practice phishing tests reduce this a lot. Physical security also matters: a locked server room, a locked rack and a visitor register stop someone plugging a laptop into the core switch.

AAA: authentication, authorisation, accounting

  • Authentication: who are you? Proving identity with a password, certificate or token.
  • Authorisation: what may you do? For example, a junior engineer may run show commands but not change the configuration.
  • Accounting: what did you do? A log of logins and commands, useful for audits and investigations.

Small networks keep usernames on each device (local AAA). Larger ones use a central AAA server, such as Cisco ISE, so one account works on every device and can be disabled in one place when someone leaves.

RADIUSTACACS+
TransportUDP 1812 (authentication) and 1813 (accounting)TCP 49
EncryptionOnly the password is hiddenThe whole message body is encrypted
AAA functionsAuthentication and authorisation combinedAuthentication, authorisation and accounting separated
Typical useNetwork access: Wi-Fi, 802.1X, VPN usersDevice administration: who may run which commands

802.1X: port-based access control

802.1X stops a device using a switch port or Wi-Fi until it proves who it is. It has three roles. The supplicant is the client software on the laptop or phone. The authenticator is the switch or access point; it passes messages but does not decide. The authentication server, usually RADIUS, checks the credentials and tells the authenticator to allow or block the port. The messages use EAP (Extensible Authentication Protocol).

MFA and password policy

Multi-factor authentication (MFA) asks for two or more different kinds of proof: something you know (password), something you have (phone app, hardware key) and something you are (fingerprint). A stolen password alone is then not enough. A good password policy prefers long passphrases (12 or more characters), blocks common and leaked passwords, and avoids forcing changes every month, which makes people choose weak patterns. Current guidance, such as NIST SP 800-63B, says the same.

Careful: Common mistakes: sharing one admin account among the whole team (accounting then shows nothing useful), leaving default passwords on new devices, and thinking a firewall alone is "security". Fix them with personal accounts on a central AAA server, a first-day checklist for new devices, and several layers of defence.

The law: practise only on your own lab

Learn attacks only to recognise and stop them. Practise on your own lab (Packet Tracer, GNS3, Cisco Modeling Labs) or on systems where you have written permission. Accessing or damaging someone else's computer or network without permission is an offence in India under the Information Technology Act, 2000 (Section 43 covers penalties and compensation, Section 66 covers computer-related offences), and similar laws exist in most countries.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

Security basics: threats, CIA and AAA · 1/9

Security basics

This lesson covers the words, threats and ideas behind network security, so the later configuration lessons make sense.

Prefer a video by a teacher? Find free videos on “CCNA security concepts CIA triad AAA RADIUS TACACS+ 802.1X” on YouTube ↗

In real life: A hospital moves to central logins

A 300-bed hospital in Pune had 40 switches and routers, all using the same shared admin password that ex-staff still knew. The network team set up a TACACS+ server: every engineer now logs in with a personal account and MFA, juniors can only run show commands, and every configuration command is logged. The Wi-Fi for doctors uses 802.1X with RADIUS. When an engineer leaves, one account is disabled and access ends on every device at once.

Practice (0/3 done)

Task 1 · Code · Python

Write is_strong(password) for a simple password policy. Return True only if the password is at least 12 characters long, is not in the list COMMON (compare in lower case), and contains at least one letter and at least one digit.

Task 2 · Question

A company wants engineers to log in to routers with personal accounts, with each command they type authorised and logged separately. Which protocol fits best?

Task 3 · Practice

For each scenario, name the threat and one mitigation: (a) staff get an SMS "your salary account is blocked, share the OTP"; (b) the company website stops responding during a sale because of traffic from thousands of machines; (c) a visitor plugs a laptop into a meeting-room port and gets an IP address; (d) a router still has the password "cisco".

Quick quiz

Question 1

1.A switch still runs old software with a known bug. What is the bug called?

Question 2

2.Which part of the CIA triad does a DDoS attack mainly harm?

Question 3

3.Which statement about RADIUS is correct?

Question 4

4.In 802.1X, which device is the authenticator?

Question 5

5.Which login uses two different factors?

Read more (free)

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

A switch still runs old software with a known bug. What is the bug called?

Answer: A vulnerability

A vulnerability is a weakness. A threat is something that could use it.

Which part of the CIA triad does a DDoS attack mainly harm?

Answer: Availability

A DDoS floods a service so real users cannot reach it, which harms availability.

Which statement about RADIUS is correct?

Answer: It uses UDP and hides only the password

RADIUS runs over UDP 1812 and 1813 and hides only the password field.

In 802.1X, which device is the authenticator?

Answer: The switch or access point

The switch or AP is the authenticator; it relays EAP messages between the supplicant and the authentication server.

Which login uses two different factors?

Answer: A password and a code from a phone app

A password is something you know; the phone app is something you have. A PIN and a password are both something you know.

What does the C in the CIA triad stand for?Related

Answer: Confidentiality

C is confidentiality: only the right people can see the data.

From What cyber security protects: the CIA triad

CIA in security stands for…Related

Answer: Confidentiality, Integrity, Availability

The CIA triad is Confidentiality, Integrity and Availability.

From The CIA triad and the tester's mindset

What does current NIST guidance say about forcing password changes every 90 days?Related

Answer: Not recommended unless there is evidence of compromise

Forced changes lead to predictable patterns; change on evidence of compromise instead.

From Passwords and multi-factor authentication

Which newer Indian law governs handling of personal data?Related

Answer: The Digital Personal Data Protection Act, 2023

The DPDP Act, 2023 governs personal data; testers must handle any personal data they see very carefully.

From The law in India: IT Act 2000, sections 43 and 66

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 4 more topics in “Network security” before its exam: Securing device access: secrets and SSH, Access control lists (ACLs), Layer 2 security: port security, DHCP snooping, DAI, Firewalls, IPS and VPNs.
  2. Module 9 exam: Network security · 13 questions · 25 min, without help. 5 topics of this module still to finish first.
  3. Then the next module, Wireless networking. 57 topics left in the course before the final exam.

← Previous: QoS basics: keeping voice and video clear