
MCP Tool Definitions and JSON Schema: The Spec Surface Attackers Read
MCP tool definitions pair a name and description with a JSON Schema the model reads as instructions. Here's how that spec surface gets attacked, and how to harden it.
Insights, tutorials, and best practices for secure development
All 270 posts · Latest and featured

MCP tool definitions pair a name and description with a JSON Schema the model reads as instructions. Here's how that spec surface gets attacked, and how to harden it.

Trivy vs Grype, Snyk Container, Clair, and Docker Scout compared on image scanning, IaC coverage, secrets, license/SBOM support, and CI fit, with a pick-by-need verdict.

CodeQL vs SonarQube compared on dataflow depth, injection accuracy, language coverage, CI/CD fit, and licensing, with a clear verdict on which SAST engine fits your team.

A category guide to git secret scanning tools — Gitleaks, TruffleHog, GitHub secret scanning, and Betterleaks — covering pre-commit vs CI vs push protection, entropy vs verified detection, and why secrets in old commits stay exploitable.

Renovate vs Dependabot for 2026: config model, monorepo support, grouping and scheduling, ecosystem coverage, and security-update handling, with a quick verdict.

A direct dependency is one you declare; a transitive dependency is one it pulls in without asking. Learn the difference with a real dependency-tree example, why most CVEs hide in the transitive layer, and how to audit it.

A .env file with a real API key hitting a public repo, Docker image, or build log means the key is compromised in minutes — this guide decodes sk- proj-, sk-or-v1, sk_live, ghp_, and AKIA prefixes and covers detection and prevention (rotation runbook linked separately).

A credential stealer hid a prompt injection telling AI scanners the package is clean. The flip side worries me more: malware that makes the AI look away.

Rafter is now installable from the GitHub Marketplace. Add the Action to your workflow and Rafter scans the repo in CI on every push — dependency and supply-chain findings, secrets, and a security score, at the exact moment a vibe-coded prototype becomes real code that needs scanning.

Stripe API key security and best practices 2026: key types, sk_live_ vs sk_test_, restricted keys, rotation, and catching leaks before attackers do.

TrapDoor hid invisible instructions in CLAUDE.md and .cursorrules so coding agents could be tricked into running a fake security scan and exfiltrating developer secrets. The agent-instruction file is now part of your attack surface. Here's the attack and the defense.

Gitleaks vs TruffleHog for 2026 — detection method, speed, pre-commit and CI fit, false positives, and which secret scanner to choose for your team.
Showing 37–48 of 270 posts