Sachin Chaurasiya

Security Engineering

Security engineering

Container and Kubernetes security, secrets management, scanning and runtime protection.

Articles

DevSecOps intermediate

Attestations and Provenance: Binding the SBOM to the Image

Turn the SBOM from part 2 into a Cosign attestation bound to the image digest, verify it and read the predicate back, list what hangs off an image with cosign tree, and see what SLSA build provenance adds.

7 min read
Cloud Security beginner

Cloud Identity and Least Privilege: Humans, Workloads and CI

Human and workload identities and the credentials that carry them: why static keys are dangerous, how a bound short-lived token differs from a legacy one, how CI assumes a role without a key, and how to scope each one.

13 min read
DevSecOps intermediate

Generate an SBOM with Syft and Read What It Tells You

Run Syft from its container against a small Node.js image, read the CycloneDX output package by package, see where each one came from, learn what an SBOM does not prove, and store it next to the artifact.

8 min read
Cloud Security intermediate

Logging, Audit and Security Visibility: Who Did What, From Where

Application, infrastructure and audit logs and what each answers; Kubernetes API audit logging enabled on a real cluster, tuned from lease noise to the events that matter, and read for denied and privileged requests.

13 min read
DevSecOps intermediate

Scan Images and SBOMs with Grype: From 183 Findings to 3

Grype against the SBOM from part 2: 183 matches read by severity, ecosystem and fix state; two Dockerfile changes that take it to 3; exit-code behaviour for CI; and how to triage what remains.

11 min read
DevSecOps intermediate

Sign and Verify Container Images with Cosign

Cosign with a key pair against a local registry: why the digest is the identity; signing and verifying; a moved tag failing verification while the digest passes; keyless signing as configuration; where the check goes.

9 min read
DevSecOps intermediate

Understanding the Software Supply Chain

The delivery chain from source through dependencies, build, artifact, image, registry and deployment; where each link can be compromised; and the control for each, from lockfiles and SBOMs to signing by digest.

9 min read
Infrastructure as Code intermediate

Secure Terraform Foundations: Pinning, State, Secrets and Review

The security foundations of a Terraform repository: pinned versions with a committed lock file, remote state with locking and access control, secrets kept out of source, least-privilege plan and apply roles.

11 min read
Kubernetes intermediate

Kubernetes Security Checklist for Production Clusters

A layered checklist — control plane, workloads, network, secrets, supply chain and runtime — with the manifests and commands to verify each control rather than just tick it.

10 min read
DevSecOps beginner

Secrets Detection with Gitleaks

Stop credentials from reaching Git: run Gitleaks in pre-commit hooks and CI, tune rules and allowlists, handle findings without leaking them further, and decide when history rewriting is worth it.

8 min read
Security Tools beginner

Container Image Scanning with Trivy

How Trivy finds OS and application vulnerabilities, secrets and misconfigurations in container images, how to make the results actionable, and how to wire it into CI without slowing builds down.

9 min read

Labs

Lab

Secure Docker Images with Trivy

Build a deliberately weak image, scan it with Trivy, and rebuild it until the gate for fixable HIGH and CRITICAL findings passes: current base, non-root user, patched packages, no pip in the runtime image.

beginner 30 minutes Trivy · Docker
Lab

Scan Git Repositories with Gitleaks

Seed a repository with realistic fake secrets, catch them with Gitleaks in history and working-tree modes, ignore a confirmed false positive by fingerprint, and block the next one at commit time.

beginner 25 minutes Gitleaks
Lab

Generate an SBOM with Syft and Scan It with Grype

Produce CycloneDX and SPDX bills of materials for a container image without a Docker socket, scan the SBOM with Grype, gate on fixable findings only, and see why the SBOM is worth keeping after the release.

intermediate 35 minutes Syft · Grype · Docker
Lab

Least-Privilege Kubernetes RBAC for a Deployer Service Account

Create a service account that can roll out Deployments in one namespace and nothing else, prove the boundary with impersonation and a real short-lived token, and audit the cluster for wildcard roles and anonymous access.

intermediate 35 minutes Kubernetes
Lab

Enforce Pod Security with Pod Security Admission and Kyverno

On a kind cluster, turn on the restricted Pod Security profile for a namespace, watch it reject a default pod, then add a Kyverno ValidatingPolicy in Audit mode, read the PolicyReport, and switch it to Deny.

intermediate 45 minutes Kubernetes · Kyverno

Related tools

package Artifact signing

Cosign (Sigstore)

Signs and verifies container images, SBOMs and attestations.

package Container build & runtime

Docker

Container build and runtime tooling; the default way to package applications as OCI images.

protect Runtime detection

Falco

Runtime security: detects anomalous syscalls and Kubernetes events in real time.

secure Secrets detection

Gitleaks

Detects hard-coded secrets in Git history and working trees.

secure Vulnerability scanner

Grype

Vulnerability scanner for images, filesystems and SBOMs produced by Syft.

protect Secrets management

HashiCorp Vault

Centralised secrets management with dynamic, short-lived credentials.