Identity is the perimeter

When the network stops being the wall, logins are the wall

Single sign-on, multi-factor login, phishing-resistant methods, short-lived access and least privilege: the identity layer an engineer builds.

intermediate level, 16 minutes, 16 slides.

Open the interactive deck

Identity is the perimeter

Welcome. Single sign-on, multi-factor login, phishing-resistant methods, short-lived access and least privilege: the identity layer an engineer builds. This talk runs about 16 minutes.

Why identity?

People work from anywhere, apps live in the cloud. The one thing every request carries is an identity. Protect that.

There used to be an office network with a firewall around it. Now people work from home, cafes and phones, and apps run in the cloud. Read the sentence on the screen. People work from anywhere, apps live in the cloud. The one thing every request carries is an identity. Protect that. Think of an airport. It does not matter which gate you walk up to. What matters is that someone checks who you are before you board. The constant is who is asking. That is why this deck treats identity as the new perimeter, the new edge you defend.

Four questions every access decision asks

  • Who?: authentication
  • Is it really them?: strong proof
  • Allowed to do this?: authorization
  • Record it: audit log

Authentication proves identity. Authorization decides what that identity may do. They are different steps.

Look at the four boxes, and follow them left to right. Who is asking? Is it really them? Are they allowed to do this? And record it. Under each box is a small label. Authentication. Strong proof. Authorization. Audit log. Keep two words apart. Authentication is proving who you are. Authorization is deciding what you can do. Think of a hotel. Showing your ID at the desk is authentication. The key card that opens only your room is authorization. Many bugs come from mixing those two up, so say them out loud a few times.

Single sign-on

  • One login, many apps
  • One place to require strong sign-in
  • One place to switch off a leaver
  • Fewer passwords for people to reuse

SSO concentrates risk too: protect the identity provider more than anything else.

Single sign-on, or SSO, means one login for many apps. Read the four benefits. One login, many apps. One place to require strong sign-in. One place to switch off a leaver. And fewer passwords for people to reuse. Think of one wristband at a festival that opens every tent. Now read the tip in the callout. SSO concentrates risk too. Protect the identity provider more than anything else. SSO is a trade. You gain control and convenience, and you create a very valuable target. A lost wristband opens every tent, so lock that target down hardest.

Passwords: what current guidance says

  • At least 15 characters when a password is the only factor
  • Allow long passwords, at least 64 characters
  • Do not force mixed character types
  • No routine forced changes; change on suspected compromise
  • Check new passwords against lists of known-bad ones

This is NIST SP 800-63B-4 wording for single-factor passwords.

This slide may surprise you. It lists what current NIST guidance says about passwords. Read the five bullets. At least fifteen characters when a password is the only factor. Allow long passwords, at least sixty four characters. Do not force mixed character types. No routine forced changes, but change on suspected compromise. And check new passwords against lists of known-bad ones. Think of a long sentence you can remember, rather than a short jumble of symbols. Current guidance says longer beats complex, and forced rotation is out. Check new passwords against known leaked ones instead. The wording is for single-factor passwords.

Multi-factor: not all factors are equal

MethodPhishing-resistant?
PasswordNo
One-time code (OTP)No
Out-of-band message or pushNo
Look-up secret (backup codes)No
Passkey or security key using WebAuthnYes

Any method that sends a secret the user can type into a fake site can be phished.

Not all multi-factor methods are equal. Read the table down. The right column asks whether the method is phishing-resistant. A password, no. A one-time code, no. An out-of-band message or push, no. Backup codes, no. A passkey or security key using WebAuthn, yes. Now read the warning. Any method that sends a secret the user can type into a fake site can be phished. Multi-factor is far better than a password alone, but codes and pushes can still be handed to a fake site. Methods that bind to the real site are phishing-resistant.

What phishing-resistant means

The protocol prevents authentication secrets from being disclosed to an impostor, without relying on the user's vigilance.

The method ties the login to the real site's name, so a look-alike site gets nothing useful.

Read the quote in the highlighted box. The protocol prevents authentication secrets from being disclosed to an impostor, without relying on the user's vigilance. Think of a door that simply will not open for a counterfeit building, no matter how convincing it looks. The key phrase is without relying on the user's vigilance. We stop asking people to spot fakes, because attackers are good at making them. Now read the line underneath. The method ties the login to the real site's name, so a look-alike site gets nothing useful. The user does not have to be perfect, because the method does the checking.

Assurance levels in plain words

LevelWhat it needsSign-in re-check
AAL1Single or multi-factor allowedWithin 30 days
AAL2Two distinct factors, one replay-resistant24 hours, 1 hour idle
AAL3Hardware-style key, phishing-resistant12 hours, 15 min idle

These levels let you match strength to risk. Read the table across. There are three rows. The first level allows single or multi-factor. The second needs two distinct factors, with one that resists replay. The third needs a hardware-style key that is phishing-resistant. The last column shows how often you need to sign in again. Longer for the first level, shorter for the third. Think of different doors in a building. A broom closet needs a simple latch, and a vault needs much more. A blog admin and a payments admin should not use the same level. The timings are the standard's SHOULD values.

Least privilege

  • Give each identity only the access its job needs
  • Separate admin accounts from everyday ones
  • Review access on a schedule
  • Remove access when roles change

CIS Control 5 is Account Management. Control 6 is Access Control Management.

Least privilege means each identity gets only the access its job needs. Read the four bullets. Give each identity only the access its job needs. Separate admin accounts from everyday ones. Review access on a schedule. Remove access when roles change. Think of a valet key for a car. It starts the engine, but it does not open the trunk. Most breaches become serious because the stolen account could do too much. Smaller permissions mean smaller damage. The callout points to two CIS controls, account management and access control management, if you want a place to start.

Short-lived beats long-lived

Long-lived keys

  • Copied to laptops
  • Forgotten in old repos
  • Hard to revoke
  • Valid for years

Short-lived credentials

  • Issued after login
  • Expire in minutes or hours
  • Nothing to rotate by hand
  • Leak is mostly harmless

Try it: Replace authorized_keys sprawl with an SSH certificate authority and short-lived certs

Compare the two columns. On the left, long-lived keys. They get copied to laptops, forgotten in old repos, they are hard to revoke, and they are valid for years. On the right, short-lived credentials. They are issued after login, they expire in minutes or hours, there is nothing to rotate by hand, and a leak is mostly harmless. Think of a hotel key card that stops working at checkout. A key that expires in an hour is almost useless to a thief who finds it tomorrow. Where you can, issue credentials after login and let them die quickly. There is a lab linked here.

Trust zones for logins

    Apps trust the identity provider, so they never see passwords.

    Here is the shape of a good login design. Look at the three zones. Person and device, identity provider, and apps. Follow the green arrows. People prove themselves once to the identity provider. Then the identity provider hands the app a short token. Now find the red dashed arrow. The user going to the app with its own password is the blocked path. Read the line underneath. Apps trust the identity provider, so they never see passwords. Apps with their own separate password forms are the weak spots, because each one is another place a password can leak.

    Watching identity

    • Alert on impossible travel and new devices
    • Alert when someone registers a new MFA method
    • Alert on a burst of failed logins then a success
    • Log admin actions separately and keep them

    Try it: Detect MFA push fatigue in sign-in logs, then stop it with number matching and rate limits

    Strong login is not the end. You also have to watch. Read the four bullets. Alert on impossible travel and new devices. Alert when someone registers a new MFA method. Alert on a burst of failed logins followed by a success. And log admin actions separately and keep them. Think of a doorman who notices that someone logged in from two far apart places in the same hour. Attackers will try to register their own device or wear down a user with repeated prompts. Watch for those patterns. There is a lab linked here about repeated push prompts, worth trying.

    Check yourself

    Check yourself: Which method is phishing-resistant?

    Answer: A passkey using WebAuthn. WebAuthn binds the login to the real site. Codes and messages can be typed into a fake site.

    Check yourself: Authorization is:

    Answer: Deciding what an identity may do. Authentication is proof of identity. Authorization is what that identity is allowed to do.

    Two questions on the main ideas of this deck. Read the first. Which method is phishing-resistant? Think about which one binds to the real site. Then read the second. Authorization is what? Remember the hotel. The ID at the desk, and the key card for your room. Pick an answer for each and tap it to see the reason. If you hesitated on either, go back to the multi-factor table or the four questions slide. Taking a moment to rewind now will save you confusion in the labs. And there is no score, so just learn from it.

    Take-aways

    • Identity is the common thread across cloud and remote work
    • Protect the identity provider hardest
    • Prefer phishing-resistant sign-in
    • Least privilege, short-lived credentials
    • Log and alert on identity changes

    Time for the take-aways. Read all five bullets. Identity is the common thread across cloud and remote work. Protect the identity provider hardest. Prefer phishing-resistant sign-in. Use least privilege and short-lived credentials. And log and alert on identity changes. If you picture the airport check, the festival wristband and the hotel key card, you have most of the deck in your head. Next up is how to design systems so these controls are in from the start, with threat modeling. That is the habit of thinking about what could go wrong before you build. See you there.

    Practise this

    Slides only get you so far. Pick one of these hands-on labs and do it today while it is fresh. Every lab is free.

    Sources

    • NIST SP 800-207, Zero Trust Architecture
    • NIST SP 800-63B-4, Authentication and Authenticator Management
    • CIS Critical Security Controls v8.1

    Every claim in this deck came from these pages, fetched and checked for this release. Read the originals.

    Hands-on labs for this deck

    Open the interactive deck or see all slide decks.

    Related