InfraMaxx

Track

Security & Identity lessons

42 short lessons on Security & Identity. Each one starts from a real situation, shows how it works, and ends with a quiz. Free to read.

Start with the first lesson

All 42 lessons

  1. Hardening SSH: key-only login, bastion hosts and fail2banIntermediate · 6 min

    Ten minutes after a VM gets a public IP, thousands of password guesses arrive. Keys, one config detail about file order, and a single entry point turn that noise into…

  2. Secrets Manager, Parameter Store and KMSIntermediate · 5 min

    A database password sits in a user-data script and in Git history, readable by anyone who can describe the instance. AWS has two places to keep it, one key service…

  3. Secret rotationIntermediate · 5 min

    The orders database password is 14 months old and appears in three CI logs. Rotation replaces it on a schedule in two places at once, and the app has to keep up or the…

  4. External SecretsBeginner · 4 min

    External Secrets syncs values from external secret managers.

  5. Envelope encryptionBeginner · 4 min

    Envelope encryption encrypts data keys under master keys.

  6. KMS key policyBeginner · 4 min

    KMS key policy governs access to cryptographic keys.

  7. Workload identityBeginner · 4 min

    Workload identity binds runtime workload to a scoped identity.

  8. SPIFFE IDBeginner · 4 min

    SPIFFE ID identifies workloads through a standard identity URI.

  9. mTLS policyBeginner · 4 min

    mTLS policy requires mutually authenticated service connections.

  10. Network segmentationBeginner · 4 min

    Network segmentation restricts lateral traffic between workloads.

  11. Scanning images for known vulnerabilitiesIntermediate · 6 min

    A base image pulled six months ago carries a library with a fixed critical flaw, and the pipeline passed because nothing reads the image's package list. A scanner reads…

  12. Admission controlBeginner · 4 min

    Admission control validates workloads at cluster entry.

  13. Signed provenanceBeginner · 4 min

    Signed provenance records how build artifacts were produced.

  14. Runtime detectionBeginner · 4 min

    Runtime detection detects suspicious execution patterns.

  15. Threat modelBeginner · 4 min

    Threat model documents assets adversaries and attack paths.

  16. STRIDEBeginner · 4 min

    STRIDE categorizes common threat classes.

  17. Least-privilege reviewBeginner · 4 min

    Least-privilege review audits granted permissions against usage.

  18. Authentication versus authorizationBeginner · 4 min

    Authentication establishes who the caller is, and authorization decides what that caller may do with a specific resource. A valid token passes the first check and still…

  19. IAM least privilegeIntermediate · 4 min

    Least privilege gives a principal only the actions, resources and conditions a task needs. Activity data shows which grants are unused, so broad roles can be narrowed…

  20. Policy evaluationIntermediate · 4 min

    AWS policy evaluation starts with an implicit deny. Allows from identity and resource policies combine, but an explicit deny in any applicable layer overrides them all.

  21. RBAC permissionsIntermediate · 4 min

    Kubernetes RBAC grants rules through roles and bindings, and it has no deny rule. A subject holds the union of every rule it is bound to, so wide bindings must be found…

  22. ABAC attributesIntermediate · 4 min

    Attribute-based access control decides from attributes of the subject, object and environment. Rules can follow the data more precisely than roles, but each attribute…

  23. OIDC flowsIntermediate · 4 min

    OpenID Connect adds identity to OAuth 2.0. The authorization code flow with PKCE keeps tokens on the back end, while the implicit flow exposes them in the browser.

  24. JWT validationIntermediate · 4 min

    A JWT can be read by anyone, so a service must verify the signature, algorithm, issuer, audience and expiry before it trusts any claim. Decoding alone is not validation.

  25. OAuth scopesIntermediate · 4 min

    OAuth scopes name the permissions a client requests, and the server may grant less. The resource server must check the granted scope on every request, because a valid…

  26. PKI chain of trustIntermediate · 4 min

    A certificate chain links a leaf certificate to a trusted root through intermediates. Each link must verify, and clients that cannot fetch missing intermediates fail…

  27. Certificate rotationAdvanced · 4 min

    Certificate rotation replaces a credential before it expires, with overlap so clients can move. Many outages come from a renewed file that the service never reloads.

  28. mTLSAdvanced · 4 min

    Mutual TLS proves that a client holds a trusted key. The handshake does not decide what the client may do, so the application must map the identity to permissions.

  29. KMS envelopesAdvanced · 4 min

    Envelope encryption wraps a data key with a KMS key, and the data key encrypts the bulk data locally. Only the encrypted data key is stored with the data, which keeps…

  30. Supply chain signingAdvanced · 4 min

    Signing binds an artifact's digest to an identity, and verification checks the signature against the identity the pipeline should use. Deploy by digest so that a moved…

  31. SBOM vulnerabilitiesAdvanced · 4 min

    An SBOM lists the components in a build, and scanners match that list against advisories. Its gaps and version quirks decide what the scanner can see, so a clean scan…

  32. Runtime securityAdvanced · 4 min

    Runtime security watches what a workload does after it starts, such as process starts and connections. Detection reports those events, and prevention stops them, so the…

  33. Seccomp filtersAdvanced · 4 min

    Seccomp lets the kernel check each system call against a filter and refuse the ones a workload does not need. The filter sees call numbers and argument values, not the…

  34. Linux capabilitiesAdvanced · 4 min

    Linux capabilities split root's power into named parts, so a workload can get one privilege without the rest. The effective set is what counts at the moment of a…

  35. Pod security admissionAdvanced · 4 min

    Pod Security Admission applies the Pod Security Standards to a namespace through labels, and it can warn, audit or enforce. Enforce blocks new pods, so a safe rollout…

  36. Kubernetes network policiesAdvanced · 4 min

    A NetworkPolicy selects pods and lists the traffic they may use. Once a pod is selected, only matching allow rules pass, and the rules add up across policies.

  37. Audit loggingAdvanced · 4 min

    Kubernetes audit logs record API requests at a level set by an ordered policy file. The first matching rule decides the level, so rule order decides what gets recorded.

  38. Incident forensicsAdvanced · 4 min

    Forensics collects evidence in order of volatility and preserves it with hashes and timestamps. Work from copies, not originals, and capture fragile state before any…

  39. Threat modelingAdvanced · 4 min

    Threat modeling maps a system's parts, data flows and trust boundaries, then asks STRIDE questions at each one. The model is useful only when it changes with the design.

  40. KMS envelopes: operational verificationAdvanced · 4 min

    Envelope encryption stores data under a data key, and stores that key encrypted under a KMS key. Checking the bucket setting is not enough, so verify the key ID stored…

  41. Workload identity: failure analysisAdvanced · 4 min

    IRSA lets a pod assume an IAM role through a projected OIDC token, with no stored keys. Failures usually sit in the identity variables, the trust policy subject, or the…

  42. Supply chain signing: operational verificationAdvanced · 4 min

    A signature binds a digest to a trusted identity, and verification checks both. Verify the digest the cluster runs, not a tag, and pin the expected signer identity and…