← All tutorials
Cyber Security

Cyber security β€” mechanisms, prevention & management

Cyber security is the practice of protecting systems, networks and data from digital attacks. It works on three levels: the mechanisms (technical controls) that enforce protection, the practices that prevent attacks, and the management (a governed program) that keeps it all running as risk evolves. This guide covers all three.

Two truths that shape everything. There is no perfect security β€” you manage risk, not certainty. And attackers only need one gap, while you must cover them all β€” which is why defense in depth and continuous management beat any single control.

Goals  The CIA triad

Every control ultimately serves one of three goals β€” the CIA triad:

πŸ”’ Confidentiality

Only authorized people see the data. Enforced by encryption, access control and authentication.

βœ… Integrity

Data isn't tampered with. Enforced by hashing, digital signatures, checksums and access control.

🟒 Availability

Systems are up when needed. Enforced by redundancy, backups, DDoS protection and capacity.

Use it as a lens. For any asset ask: what breaks confidentiality, integrity, or availability here β€” and which control covers each? Security is often the tension between them (locking data down vs keeping it available).

Controls  Security mechanisms

Controls are classified two ways β€” by when they act and by what kind they are:

By functionPurposeExamples
PreventiveStop an attack happeningFirewall, MFA, encryption, least privilege, patching
DetectiveSpot an attack in progressIDS/IPS, SIEM, logging, anomaly detection
CorrectiveRecover after an attackBackups, incident response, failover, re-imaging

And by category: technical (tech that enforces it), administrative (policies, training, procedures) and physical (locks, guards, access cards). A strong program uses all three.

The core mechanisms

πŸ”‘ Identity & access (IAM)

Authentication (MFA), authorization (RBAC), least privilege, and Zero Trust β€” the front door.

πŸ” Encryption

TLS in transit, encryption at rest, and good key management β€” so stolen data is useless.

🧱 Network security

Firewalls, segmentation, VPN, IDS/IPS β€” contain and inspect traffic.

πŸ’» Endpoint (EDR)

Anti-malware / endpoint detection & response on every device.

πŸ“Š Logging & monitoring

Centralized logs + a SIEM so you can detect and investigate.

πŸ’Ύ Backups & DR

Tested, offline backups (3-2-1) β€” your last line against ransomware.

Know the enemy  The threat landscape

ThreatWhat it is
Malware / RansomwareMalicious software β€” viruses, trojans, spyware; ransomware encrypts your data for extortion.
Phishing / Social engineeringTricking people into revealing credentials or running malware β€” the most common entry point.
Credential attacksBrute force, password spraying, credential stuffing (reusing leaked passwords).
DDoSFlooding a service to knock it offline (attacks availability).
Man-in-the-middleIntercepting traffic to eavesdrop or alter it (defeated by TLS).
Web app attacksSQL injection, XSS, broken access control (see OWASP).
Insider threatsMalicious or careless employees/contractors with legitimate access.
Supply chainCompromising a vendor, library or update to reach you.
Zero-day / APTUnknown vulnerabilities; Advanced Persistent Threats β€” patient, well-resourced attackers.
People are the top target. Most breaches begin with a human β€” a phished password, a reused credential, a mis-click. Technical controls matter, but security awareness is one of the highest-return investments.

Anatomy  How an attack unfolds

Most intrusions follow a chain of stages (the Cyber Kill Chain). Your job is to break it as early as possible β€” the earlier you detect and disrupt, the less damage:

Recon→ Weaponize→ Deliver→ Exploit→ Install→ Command & Control→ Act on objective
Break the chain. Email filtering stops delivery; patching stops exploitation; EDR spots installation; egress monitoring catches command & control. One broken link stops the whole attack. (For attacker techniques in depth, see MITRE ATT&CK.)

Defend  Preventing attacks

No silver bullet β€” layer these so a failure of one is caught by another:

πŸ§… Defense in depth

Multiple independent layers, so one failure isn't a breach.

🚦 Zero Trust & least privilege

"Never trust, always verify." Grant the minimum access; verify every request.

🩹 Patch management

Update fast β€” most breaches exploit known, unpatched flaws.

πŸ” MFA everywhere

The single biggest defense against stolen passwords.

πŸŽ“ Awareness training

Teach people to spot phishing; run simulations. Humans are the front line.

🧱 Segmentation

Split the network so a breach in one zone can't spread everywhere.

πŸ”Ž Vulnerability management

Continuously scan, prioritize by risk, and remediate.

πŸ’Ύ Backups (3-2-1)

3 copies, 2 media, 1 offline β€” tested by restore. Beats ransomware.

Run the program  Managing cyber security

Security is a continuous program, not a project. The NIST Cybersecurity Framework organizes it into functions that cycle β€” all resting on Govern:

The NIST Cybersecurity Framework functions Five functions cycle continuously β€” Identify, Protect, Detect, Respond, Recover β€” all resting on a Govern foundation of strategy, roles, policy and risk management. continuous cycle πŸ”Ž Identify assets & risk πŸ›‘οΈ Protect safeguards 🚨 Detect monitor πŸš‘ Respond contain πŸ” Recover restore βš–οΈ Govern strategy Β· roles Β· policy Β· risk management Β· compliance β€” underpins all five

πŸ“ Frameworks

NIST CSF, ISO/IEC 27001 (a certifiable ISMS), and the CIS Controls (18 prioritized safeguards) give you a proven structure.

βš–οΈ Risk management

Identify assets β†’ assess threats & impact β†’ treat (mitigate / transfer / accept / avoid) β†’ monitor. Spend where risk is highest.

πŸš‘ Incident response

A plan (NIST 800-61): Prepare β†’ Detect & analyze β†’ Contain, eradicate, recover β†’ Post-incident review.

πŸ›οΈ Governance

Owned leadership (a CISO), policies, compliance (GDPR, PCI-DSS, HIPAA…), metrics and reporting.

πŸ‘οΈ Operations (SOC)

A security operations centre: continuous monitoring, threat intel, and 24/7 response.

πŸ” Continuous improvement

Audits, pen-tests, tabletop exercises and metrics feed back into the cycle. Threats evolve; so must you.

Cheat sheet

QuestionShort answer
The three security goals?Confidentiality, Integrity, Availability (the CIA triad).
Three control functions?Preventive, Detective, Corrective.
Most common attack entry point?People β€” phishing & stolen/reused credentials.
Biggest single defense against stolen passwords?Multi-factor authentication (MFA).
Last line against ransomware?Tested, offline backups (3-2-1).
How to manage it?A governed program β€” NIST CSF: Govern, Identify, Protect, Detect, Respond, Recover.

Knowledge check

Six questions on cyber security. Pick an answer for each, then check your score.

1. What does the CIA triad stand for?

2. Which is a detective control?

3. What is the most common entry point for breaches?

4. What's the point of the Cyber Kill Chain for defenders?

5. Which single control best defends against stolen passwords?

6. What are the NIST Cybersecurity Framework functions?

Next steps

πŸ›‘οΈ Web Β· API Β· AI Security

The application layer β€” concrete controls for web, API and AI/agents.

πŸ” OWASP

The Top 10 & toolbox β€” the shared vocabulary of application-security risks.

☸️ Cloud Native

Infrastructure β€” securing containers, orchestration and the cloud.

πŸ““ All tutorials

The hub β€” LLMs, agents, APIs, cloud & more.