Skip to content
ShankarStack

Security fundamentals

Core security principles

A shared vocabulary of principles makes you faster, more precise, and more persuasive. Every vulnerability you ever report is, at heart, the violation of one of these ideas — and naming it is what makes impact obvious to non-technical stakeholders.

The CIA triad

Security is usually framed around three properties we try to protect:

  • Confidentiality — information is only seen by those authorised. A data leak breaks confidentiality.
  • Integrity — information and systems can't be altered without authorisation. Tampering with a price or a record breaks integrity.
  • Availability — systems and data are accessible when needed. An outage or denial-of-service breaks availability.

When you find a flaw, ask which of these it breaks and how badly. "An attacker could read other customers' orders" is a confidentiality impact; "an attacker could change the shipping address on any order" is an integrity impact. This framing turns a technical bug into business risk a manager understands instantly.

Authentication, authorization, accounting

Three words that are constantly confused — and the confusion causes real vulnerabilities:

  • Authentication (AuthN) — who are you? Proving identity (password, token, MFA).
  • Authorization (AuthZ) — what are you allowed to do? Enforcing permissions once identity is known.
  • Accounting / Auditing — what did you do? Logging actions for detection and investigation.

A huge share of serious bugs are authorization failures: the system correctly knows who you are but fails to check whether you're allowed to do a specific thing. Keep AuthN and AuthZ firmly separate in your mind.

Least privilege and need-to-know

Every user, process and system should have the minimum access required to do its job — and no more. A web application's database account shouldn't be able to drop tables; an employee shouldn't see data they don't need. Least privilege doesn't prevent mistakes and compromises, but it limits the blast radius when they happen. When you assess a system, over-broad permissions are both a finding in themselves and a force-multiplier for other issues.

Defence in depth

No single control is perfect, so secure systems layer them: a firewall and authentication and authorization and input handling and monitoring. If one layer fails, another still stands. A classic anti-pattern is relying on a single control — "it's behind the firewall" or "the UI hides that button" — as if it were sufficient.

Secure defaults and fail-safe

Systems should be secure out of the box and fail closed: when something goes wrong or is ambiguous, deny rather than allow. "Default-deny" access control is far safer than "default-allow with a blocklist", because you can only forget to allow something (a visible bug) rather than forget to block something (a silent hole).

Threat modelling, practically

You don't need a heavy process. Ask four questions about whatever you're assessing:

  1. What are we protecting? (the assets)
  2. Who might attack it, and why? (the threats)
  3. How could they? (the attack surface and paths)
  4. What would stop or detect them? (the controls)

Answering these before you test keeps you systematic and ensures you spend effort where impact is highest.

Key takeaways

  • Every finding maps to Confidentiality, Integrity or Availability — say which.
  • Authentication (who) and authorization (what you may do) are different; most serious bugs are authorization failures.
  • Least privilege limits the blast radius of every compromise.
  • Defence in depth layers controls so no single failure is fatal.
  • Prefer secure defaults and default-deny.
  • A quick four-question threat model keeps testing focused on real impact.

Reporting mindset: for every observation, record what you did, what you saw, the business impact, and a clear, verifiable remediation. Evidence and clear writing are what turn testing into value.

This is a free preview. Sign in to track progress and unlock the full course.

Sign in