5.1 · Cybersecurity for IT (hardening, updates, firewall)

Level 5 · Security, maintenance & specializations

5.1Cybersecurity for IT (hardening, updates, firewall)

Goal: Know how to apply IT-side cybersecurity fundamentals — harden, update, filter — as routine operational gestures.
Estimated time: 14 min · self-paced reading · If you only have 5 min: read “The essentials in 30s” + the diagram.

The essentials in 30 seconds

  • Reduce the attack surface: fewer exposed services, unnecessary software and privileged accounts means fewer doors to defend.
  • Updates are the most cost-effective measure: most attacks exploit known flaws that have already been fixed, scanned at scale.
  • The firewall allows only what is necessary and blocks the rest; layered with antivirus/EDR and least privilege, it forms defense in depth.

Running mini-case — Sofiane hardens a server at the Algiers SME

Sofiane, a support technician at a distribution SME in Algiers, inherits a server that exposes several services “just in case” and has never been updated. He applies the section's review: he lists the installed software and services and disables what is unnecessary, checks the update status of the OS and applications, reviews the firewall rules to allow only what is necessary, and hunts down superfluous privileged accounts. He does not rely on antivirus alone: he stacks the layers. His goal: reduce the attack surface without breaking anything, testing each change on a pilot workstation before rolling it out.

Standalone case for this section: it returns in the course, diagram, script and 48h challenge of section 5.1.

1. Reduce the attack surface

Sofiane remembers the founding principle of operational cybersecurity: reduce the attack surface. The fewer exposed services, unnecessary software, privileged accounts and open ports there are, the fewer doors to defend. Hardening means disabling what is not needed and configuring the rest securely, with restrictive defaults. On the inherited server, Sofiane therefore starts by closing, not adding.

2. Update: the most cost-effective baseline

A large share of attacks exploits known, already-fixed flaws. Applying updates (OS, software, firmware) is the most cost-effective measure: it closes doors that attackers scan at scale. Sofiane plans a controlled update cadence — with testing on a pilot scope before rollout — because an unpatched system remains an easy target, regardless of everything else.

3. Filter with the firewall

The firewall controls network traffic according to rules: Sofiane allows only what is necessary and blocks the rest. Combined with antivirus/EDR, network segmentation and least privilege, it forms defense in depth: several layers, so that a single flaw cannot compromise everything. Security stacks up; it never rests on a single measure.

Common misinterpretation: “A good antivirus is enough, updates can wait, and leaving a service exposed “just in case” costs nothing”. No, three times wrong. Antivirus is one layer, not total protection: an unpatched system or overly powerful accounts remain exploitable despite it. Postponing updates leaves publicly and actively scanned flaws open. And a service exposed “just in case” widens the attack surface for nothing. Sofiane closes the unnecessary and stacks the layers.
Reduce the attack surface Three basic gestures that, together, close most doors. HardenDisable what is unnecessary+UpdateFix known flaws+Filter (firewall)Allow only what is necessary Defense in depth: several layers are better than one.
Three basic gestures that, together, close most doors.
Text version of the diagram (SEO / screen readers / translation): 1) Sofiane, a support technician at a distribution SME in Algiers, inherits a server that exposes unnecessary services and has never been updated. 2) He applies the principle of reducing the attack surface: he lists software and services and disables the unnecessary (hardening), checks the update status of the OS and applications, then reviews the firewall rules to allow only what is necessary. 3) He stacks the layers — antivirus/EDR, segmentation, least privilege — because security rests on defense in depth, not on a single measure. Lesson: fewer open doors and patches applied at a controlled cadence concretely reduce risk.

🔎 Concrete example — 🔎 Concrete example — A known flaw left unpatched

Sofiane follows the fate of an internet-exposed service that was never updated:

Flaw published + patch available
   → automated scanners find it within hours
   → exploitation → intrusion
If the update had been applied → door closed

Reading: attackers do not “choose” their target, they scan for what is vulnerable.

Lesson: updating closes doors that other measures do not compensate for.

Section vocabulary

Attack surface
All the points through which a system can be attacked.

Simple example: Sofiane reduces the list by closing unnecessary services.

What it is not: adding software “just in case”, which widens it.

Reflex: fewer open doors = less to defend.

Hardening
Disabling what is unnecessary and configuring the rest restrictively (secure by default).

Simple example: Sofiane disables unused services on the server.

What it is not: leaving the default settings, which are often permissive.

Reflex: harden = close before adding.

Update / patch
Patch that fixes known flaws or bugs.

Simple example: Sofiane applies patches after a pilot test.

What it is not: postponing an already-fixed flaw indefinitely.

Reflex: patch the flaw before the attackers.

Firewall
Device that filters network traffic according to rules.

Simple example: Sofiane allows only the flows the business needs.

What it is not: allowing everything so as not to “block” users.

Reflex: allow only what is necessary, block the rest.

Defense in depth
Stacking several security layers so that one flaw is not enough.

Simple example: Antivirus/EDR + firewall + least privilege at Sofiane's.

What it is not: relying on a single measure, such as antivirus alone.

Reflex: security stacks in layers.

In practice — In practice — Review a workstation or server

  1. List the software and services installed on a workstation in the fleet, and identify those that are unnecessary — like Sofiane on the inherited server.
  2. Check the update status (OS and applications) and note those that have been lagging for weeks.
  3. Review the workstation's firewall rules: does every allowed flow have a clear business reason?
  4. Review the accounts and check that none has superfluous privileges.
You concretely reduce the attack surface through hardening, updates and filtering, like Sofiane.

Step-by-step script — harden a server like Sofiane (10 min)

1) Write the objective: reduce the attack surface of the SME's inherited server. 2) Inventory the services and software; disable what is not used. 3) Record the update status of the OS and applications, and plan the patches with a pilot test. 4) Reread the firewall rules: allow only what is necessary. 5) List the layers already in place (antivirus/EDR, segmentation, least privilege) and identify the missing one. 6) Test each change on an isolated workstation before rolling out.

Keep this script: it is the same review you will replay for every new server or workstation in the fleet.

Copy-paste template — my hardening review

Target: ___ (e.g. Sofiane's SME inherited server)
[ ] Unnecessary services/software disabled (hardening)
[ ] OS + application updates current (controlled cadence)
[ ] Firewall rules: allow ONLY what is necessary
[ ] Superfluous privileged accounts removed
[ ] Layers in place: antivirus/EDR · segmentation · least privilege
Rule: close the unnecessary, patch fast, stack the layers.

An office workstation

Sofiane disables unnecessary preinstalled software and checks updates on a sales rep's workstation.

An exposed server

Sofiane closes the “just in case” services and checks the file server's firewall rules.

A network device

Sofiane applies up-to-date firmware to the switch and limits open ports to the strict minimum.

Always in layers

Sofiane stacks antivirus/EDR, segmentation and least privilege rather than relying on a single measure.

Caution: Cybersecurity falls under a policy approved by the organization: hardening, firewall rules and update cadence are decided with management and according to the constraints specific to the business, then tested in an isolated environment before any production rollout. Respect data confidentiality during reviews and tests. This guide presents general principles and does not constitute legal advice.

✓ Best practices

  • Apply a controlled update cadence: test on a pilot before rolling out.
  • Never rely on a single measure: stack the layers (defense in depth).
  • Test any firewall rule in an isolated environment before pushing it to production.

✗ Common pitfalls

  • Leaving services exposed “just in case”.
  • Postponing updates indefinitely.
  • Relying on antivirus alone as total protection.

Key takeaways

  • Reduce the attack surface: fewer doors to defend.
  • Updates close known flaws that are actively scanned.
  • The firewall allows only what is necessary and blocks the rest.
  • Security stacks in layers: that is defense in depth.

48h challenge — apply it tomorrow

Like Sofiane, review ONE workstation or server: list services and software, disable one unnecessary item, check the update status and review one firewall rule. Write in one sentence the door you just closed.

Section exit checklist
  • I can explain what the attack surface and hardening are.
  • I know why updates are the most cost-effective measure.
  • I know how to filter with the firewall and stack the layers (defense in depth).
Self-assessment 1-5: can I name the three gestures without jargon?Self-assessment 1-5: have I reduced the attack surface of a real workstation?

Frequently asked questions

Isn't antivirus enough?

No: antivirus is one layer, not total protection. An unpatched system, exposed services or overly powerful accounts remain exploitable despite it. Security rests on several complementary layers — that is defense in depth.

Won't updates break production?

The risk exists, hence testing on a pilot scope before rollout. But postponing indefinitely is more dangerous: fixed flaws are public and actively exploited. You balance with a controlled cadence and testing, not inaction.

Check your understanding

Why are updates the most cost-effective measure?

Additional resources (optional, to go further)

Level 5 examFresh, harder questions to test what you've learned