Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 1 of 6 · Concept · 20 min · revision 2

Security Goals and the Controls That Serve Them

Learn to say precisely what a security event damaged (confidentiality, integrity, availability, accountability) and to describe a control by its category and its type. Build a small file integrity monitor to see one detective control at work, and place it among the principles of defence in depth, least privilege and zero trust.

Contentsand lesson path

What you will learn

  • Classify the impact of a security event on confidentiality, integrity and availability and name the control category and type that would address it.

01. Why it matters

"We had a security incident" tells nobody what to do next. Was data read by someone who should not see it? Was it changed? Is a service down? Each answer leads to a different response, a different legal duty and a different fix. In the same way, "we need more security" is not a plan. A useful plan names a control and says what kind of control it is: does it stop the problem, spot it, or repair the damage afterwards?

This lesson gives you the shared vocabulary that security teams, auditors and managers use for exactly these two questions. You will use it in every other lesson of this skill: when rating risks, when mapping an attack, and when writing up what a defender could have done differently.

02. What can be harmed: the CIA triad and accountability

Most security goals fit into three properties, known together as the CIA triad.

  • Confidentiality: information is seen only by people and systems allowed to see it. A leaked customer list, a laptop read by a thief or an email sent to the wrong person are confidentiality failures.
  • Integrity: information and systems are changed only in authorised ways, and unauthorised changes can be detected. A modified bank account number on an invoice, a tampered software update or a deleted audit record are integrity failures.
  • Availability: information and services can be used when they are needed. A website knocked offline, a database encrypted by ransomware or a server room flooded by a burst pipe are availability failures.

One event can harm more than one property. Many ransomware groups now copy data before encrypting it, so a single attack harms both availability and confidentiality. When you classify an event, list every property affected and say which one matters most for the response.

Two further goals often appear beside the triad. Accountability means actions can be traced to the person or system that performed them; it depends on individual accounts (not shared logins) and on logs that attackers cannot easily edit. Non-repudiation goes one step further: someone cannot credibly deny an action, because there is evidence only they could have produced, such as a digital signature made with their private key. The NIST CSRC Glossary, linked below, gives formal definitions of all these terms and is the reference to use when wording matters.

03. Describing a control: category and type

A control is anything that reduces risk: a technology, a rule, a routine or a physical barrier. Practitioners describe each control in two ways at once, and the two are independent.

The category says how the control is implemented:

  • technical (also called logical): enforced by technology, such as encryption, MFA or a firewall rule;
  • managerial (also called administrative): decisions and documents, such as a policy, a risk assessment or a supplier contract;
  • operational: things people do as routine, such as reviewing access every quarter or a guard checking badges;
  • physical: barriers in the real world, such as locks, fences and cameras.

The type says what the control does about an incident:

  • preventive: stops it happening (MFA stops a stolen password from being enough);
  • detective: notices it while or after it happens (an alert on many failed logins);
  • corrective: limits damage and restores normal service afterwards (restoring from backup);
  • deterrent: discourages the attempt (a warning banner, a visible camera sign);
  • directive: tells people what to do (an acceptable use policy);
  • compensating: an alternative used when the preferred control is not possible (extra monitoring on an old system that cannot run MFA).

So a camera that records the server room is a physical, detective control, while the sign announcing it is a physical, deterrent one. Frameworks do not all use identical labels: NIST SP 800-53, for example, organises controls into families such as Access Control rather than these categories. What matters is that you can say how a control works and what it does about the incident in front of you.

04. A detective control you can run

A file integrity monitor records a cryptographic hash of every file it watches and later compares the files with that baseline. It cannot stop a change, so it is detective, and it is technical. The script below is a working miniature in standard-library Python (3.10 or newer); run it in an empty folder. It watches a small website, then an "attacker" changes the payment link, deletes a page and drops a new file.

Python · fim.py
"""A tiny file integrity monitor: a detective, technical control."""
import hashlib
import json
import sys
from pathlib import Path


def snapshot(root: Path) -> dict[str, str]:
    return {str(p.relative_to(root)): hashlib.sha256(p.read_bytes()).hexdigest()
            for p in sorted(root.rglob("*")) if p.is_file()}


def compare(old: dict[str, str], new: dict[str, str]) -> list[str]:
    changes = [f"MODIFIED {f}" for f in old if f in new and old[f] != new[f]]
    changes += [f"DELETED  {f}" for f in old if f not in new]
    changes += [f"ADDED    {f}" for f in new if f not in old]
    return sorted(changes, key=lambda c: c.split()[-1])


if __name__ == "__main__":
    command, root = sys.argv[1], Path(sys.argv[2])
    if command == "baseline":
        Path("baseline.json").write_text(json.dumps(snapshot(root), indent=1))
        print(f"baseline saved for {len(snapshot(root))} files")
    else:
        found = compare(json.loads(Path("baseline.json").read_text()), snapshot(root))
        print("\n".join(found) if found else "no changes")
        sys.exit(1 if found else 0)
Bash · setup_site.sh
mkdir -p site/config
printf 'Welcome to Northfield Physio\n' > site/index.html
printf 'Book a session\n' > site/book.html
printf 'payments_url=https://pay.example/northfield\n' > site/config/app.ini
Bash · tamper.sh
printf 'payments_url=https://pay-northfield.example/\n' > site/config/app.ini
rm site/book.html
printf 'placeholder for a file an intruder dropped\n' > site/upload.php
Terminal
bash setup_site.sh
python3 fim.py baseline site
python3 fim.py check site; echo "exit=$?"
bash tamper.sh
python3 fim.py check site; echo "exit=$?"
Expected output
baseline saved for 3 files
no changes
exit=0
DELETED  book.html
MODIFIED config/app.ini
ADDED    upload.php
exit=1

Classify what the monitor found. All three are unauthorised changes, so all three are integrity events; the deleted page is also an availability event for anyone trying to book, and the new payment link could lead customers to hand card details to the attacker. The monitor would not notice someone reading the configuration file, so it does nothing for confidentiality. That is the normal situation: each control covers some goals and some types, and a design needs several.

The monitor has weaknesses that point to its neighbours. An attacker who can write to the site can probably rewrite baseline.json too, so real tools keep baselines elsewhere or sign them. Making the deployed files read-only for the web server would prevent most of these changes, and redeploying from a known-good build is the corrective step once a change is found.

05. Principles that combine controls

Three design principles explain how controls fit together.

Defence in depth means layering independent controls so that one failure is not a disaster. For the website above: read-only files (prevent), the integrity monitor (detect), tested redeployment (correct), and a change-management rule saying who may deploy (directive). An attacker has to beat all of them, and each layer buys time.

Least privilege means every person, service and device gets only the access it needs, for only as long as it needs it. The web server process does not need to write its own code files; the booking clerk does not need to read clinical notes. Least privilege shrinks what any single compromised account can damage.

Zero trust, described in NIST SP 800-207, drops the old idea that anything inside the company network is trustworthy. Every request is authenticated and authorised on its own merits, using the identity of the user and the state of the device, wherever it comes from. It is less a product than an application of least privilege to networks: being on the office Wi-Fi no longer grants access by itself.

06. Check your understanding

Practice check · 3 questions

Goals and controls

Classify each case using the vocabulary from this lesson.

Q1. A storage bucket of customer exports was public for a day. Logs show downloads from unknown addresses; no file was changed or deleted, and the service never went down. Which property was harmed?
Q2. A colleague wants the integrity monitor from this lesson to *prevent* attackers from changing the payment link. Which change actually adds a preventive control?
Q3. A data centre has a sign on its door saying "CCTV in operation" and a camera that records the corridor. How are the two classified?
Practice only: not graded, not saved, not evidence.

07. Apply it

For the skill's practice task you will name controls for every step of a real attack. Prepare by building a small control catalogue now: for a system you know (a home network, a club website, your workplace laptop), list eight controls that already exist and label each with its category and type. Find at least one gap, a goal or type with no control at all, and propose a control to fill it. You will reuse this habit in Tracing a Real Breach Through ATT&CK.

08. Review prompt

Without looking back: define confidentiality, integrity, availability and non-repudiation in one sentence each. Name the four control categories and at least five control types, and give one example of a control that is technical and corrective. Then explain in two sentences how zero trust relates to least privilege.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check