Expert · Network security · topic 41 of 57 · 30 min
Security basics: threats, CIA and AAA
Explanation
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
| Word | Meaning | Example |
|---|---|---|
| Vulnerability | A weakness in a system | A router still using Telnet, or an unpatched server |
| Threat | Something that could use the weakness to cause harm | A person sniffing traffic on the same LAN |
| Exploit | The actual method or tool that uses a vulnerability | A program that abuses a known software bug |
| Risk | How likely the harm is, times how bad it would be | High: a public web server with an old, known bug |
| Mitigation | A step that reduces the risk | Patching, 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).
Common threats, and how they are stopped
| Threat | What it is | Main defences |
|---|---|---|
| Malware | Harmful software: viruses, worms, trojans, ransomware | Patching, endpoint protection, backups, least privilege |
| Phishing | Fake emails, SMS or calls that trick people into giving passwords or OTPs | User training, email filtering, MFA |
| DoS and DDoS | Flooding a service so real users cannot reach it; DDoS uses many machines | ISP or cloud DDoS protection, rate limits, spare capacity |
| Spoofing | Faking an address (IP, MAC) or identity to look trusted | DHCP snooping, Dynamic ARP Inspection, ingress filtering |
| Man-in-the-middle | An attacker quietly sits between two parties and reads or changes traffic | Encryption (TLS, SSH, IPsec), DAI, certificate checks |
| Password attacks | Guessing, trying leaked passwords, or trying many passwords | Long passphrases, MFA, lockouts, login delays |
| Social engineering | Manipulating people, for example a caller pretending to be IT support | Training, 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.
| RADIUS | TACACS+ | |
|---|---|---|
| Transport | UDP 1812 (authentication) and 1813 (accounting) | TCP 49 |
| Encryption | Only the password is hidden | The whole message body is encrypted |
| AAA functions | Authentication and authorisation combined | Authentication, authorisation and accounting separated |
| Typical use | Network access: Wi-Fi, 802.1X, VPN users | Device 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.
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
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)
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.
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?
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
Read more (free)
Related help
Before this, learn
This topic builds on these. If something here feels new, open them first.
Related topics
- Securing device access: secrets and SSHNetwork security · same module
- Access control lists (ACLs)Network security · same module
- Layer 2 security: port security, DHCP snooping, DAINetwork security · same module
- What cyber security protects: the CIA triadCyber Security: from zero to SOC analyst · Security basics
- The CIA triad and the tester's mindsetEthical Hacking and Penetration Testing (legal labs) · Rules first: ethics, law and permission
- Passwords and multi-factor authenticationCyber Security: from zero to SOC analyst · Security basics
Questions people ask about this
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.
CIA in security stands for…Related
Answer: Confidentiality, Integrity, Availability
The CIA triad is Confidentiality, Integrity and Availability.
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.
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.
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
- 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.
- Module 9 exam: Network security · 13 questions · 25 min, without help. 5 topics of this module still to finish first.
- Then the next module, Wireless networking. 57 topics left in the course before the final exam.