Sachin Chaurasiya

DevSecOps

DevSecOps: security inside the pipeline

SAST, SCA, secrets detection, SBOMs, policy as code and supply chain controls that run where the code is built.

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
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
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
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
CI/CD intermediate

Building a Secure CI/CD Pipeline with Jenkins

A declarative Jenkins pipeline with secrets scanning, SAST, image scanning and least-privilege credential handling — and the agent, plugin and Docker decisions that keep it that way.

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

Related tools

package Artifact signing

Cosign (Sigstore)

Signs and verifies container images, SBOMs and attestations.

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.

secure SAST

Semgrep

Fast, pattern-based static analysis with thousands of community and security rules.

secure SBOM generation

Syft

Generates SBOMs (CycloneDX, SPDX) from images, directories and archives.