Skip to main content

Blog

Security

Articles on application and infrastructure security — secure pipelines, authentication, and practical security engineering.

30 articles

AI Agent Least Privilege: Credentials, Tokens and Secrets
SecurityOctober 202611 min read

AI Agent Least Privilege: Credentials, Tokens and Secrets

Credential design for tool-using AI agents: keep secrets out of the context window, use domain_secrets in sandboxes, audience-bound per-request MCP tokens, one scoped identity per tool, and approval gates on writes.

Read More
Red Teaming AI Agents With Promptfoo: A Practical Guide
SecurityOctober 202612 min read

Red Teaming AI Agents With Promptfoo: A Practical Guide

Attack your own tool-using agent before someone else does: wrap it as a promptfoo target with recorder tools, scan for indirect prompt injection and data leaks, and turn every finding into a CI regression test.

Read More
PaaS Environment Secrets: Build-Time vs Runtime Injection
SecuritySeptember 202612 min read

PaaS Environment Secrets: Build-Time vs Runtime Injection

Three environments, one small team, and a value that must never reach a build log. When a secret is read decides everything that follows.

Read More
UU PDP Compliance Checklist for AI Features in Indonesia
SecuritySeptember 202613 min read

UU PDP Compliance Checklist for AI Features in Indonesia

Most compliance checklists were written for databases. None of them has a row for an outbound HTTPS request carrying a customer's words to a model provider in another country.

Read More
AI Agent Identity: Delegated Authorization Beyond OAuth 2.1
SecuritySeptember 202611 min read

AI Agent Identity: Delegated Authorization Beyond OAuth 2.1

An agent is neither a user nor a service account. What RFC 8693, two IETF drafts and Entra Agent ID each say about who authorised an agent's action.

Read More
Claude Code Plugin Security: Audit Before You Install
SecuritySeptember 202613 min read

Claude Code Plugin Security: Audit Before You Install

A plugin bundle can carry hooks that fire without a prompt, MCP servers that open egress, and skill prose that lands in the agent's instructions. Here is the pre-install audit.

Read More
Claude Code Authentication: Every Login Method Explained
SecurityAugust 202612 min read

Claude Code Authentication: Every Login Method Explained

Claude Code accepts seven kinds of credential and picks one by a fixed precedence order. Here is that order, where each is stored, and CI tokens.

Read More
Claude Code Managed Settings: Policy That Actually Holds
SecurityAugust 202613 min read

Claude Code Managed Settings: Policy That Actually Holds

Claude Code picks the first managed source that delivers a policy key and ignores the rest — it does not merge them. That one rule explains most policy that silently fails.

Read More
Claude Code Security Model: Layers, Trust and Limits
SecurityAugust 202612 min read

Claude Code Security Model: Layers, Trust and Limits

Read-only by default, an asymmetric directory boundary, and an accept-edits list that quietly includes rm. Here is what actually gates an agentic session.

Read More
Claude Code Zero Data Retention: What You Give Up
SecurityAugust 202611 min read

Claude Code Zero Data Retention: What You Give Up

ZDR is not a switch in your admin settings, and it is not free. Five features are disabled at the backend, one model class becomes unavailable, and one gap is yours to close.

Read More
Claude Code Auto Mode: Tune the Permission Classifier
SecurityAugust 202613 min read

Claude Code Auto Mode: Tune the Permission Classifier

Auto mode replaces permission prompts with a classifier that blocks anything irreversible or aimed outside your environment. Here is how to teach it yours.

Read More
Claude Code Sandboxing: Run Bash Safely
SecurityAugust 20269 min read

Claude Code Sandboxing: Run Bash Safely

How Claude Code sandboxing isolates the agent's bash commands with filesystem and network limits, and how that cuts the lethal trifecta behind prompt injection.

Read More
Sandboxing AI Agents and the Lethal Trifecta
SecurityAugust 20269 min read

Sandboxing AI Agents and the Lethal Trifecta

Permission prompts break under prompt injection. A sandbox does not. How confining the filesystem and network neutralizes the lethal trifecta and unlocks real autonomy.

Read More
Claude Code Permission Modes: Autonomy vs Safety
SecurityAugust 20269 min read

Claude Code Permission Modes: Autonomy vs Safety

How Claude Code permission modes trade approval prompts for autonomy, what plan, default, acceptEdits, and bypassPermissions each do, and how to match a mode to a task.

Read More
Prompt Injection Attacks on AI Coding Agents
SecurityAugust 20269 min read

Prompt Injection Attacks on AI Coding Agents

How untrusted text an AI coding agent reads can smuggle in commands, why filtering it out fails, and the containment strategy that actually reduces the risk.

Read More
MCP Server Security Checklist for Developers
SecurityAugust 20269 min read

MCP Server Security Checklist for Developers

A field checklist for hardening MCP servers: token audience validation, SSRF and session defenses, stdio and HTTP transport risks, and supply-chain threats.

Read More
OAuth 2.1 vs OAuth 2.0: What Changed and How to Migrate
SecurityAugust 202610 min read

OAuth 2.1 vs OAuth 2.0: What Changed and How to Migrate

OAuth 2.1 folds a decade of security fixes into one spec: PKCE for everyone, no implicit or password grants, and stricter rules for tokens and redirects.

Read More
Content Security Policy in Next.js: Nonces & strict-dynamic
SecurityAugust 20269 min read

Content Security Policy in Next.js: Nonces & strict-dynamic

How I lock down XSS in Next.js with a per-request nonce, strict-dynamic, and a safe Report-Only rollout.

Read More
OpenFGA ReBAC: Fine-Grained Multi-Tenant Authorization
SecurityAugust 202610 min read

OpenFGA ReBAC: Fine-Grained Multi-Tenant Authorization

Why RBAC breaks in multi-tenant SaaS and how OpenFGA, the Zanzibar-inspired ReBAC engine, models permissions as relationship tuples checked at the resource level.

Read More
Expose Self-Hosted Services Safely with Cloudflare Tunnel
SecurityJuly 20269 min read

Expose Self-Hosted Services Safely with Cloudflare Tunnel

How I reach my homelab and VPS from anywhere with zero inbound ports open — cloudflared config, ingress rules, and Zero Trust access policies.

Read More
eBPF Observability with Cilium Tetragon on Kubernetes
SecurityJuly 20269 min read

eBPF Observability with Cilium Tetragon on Kubernetes

How eBPF runs sandboxed programs inside the Linux kernel without modules, and how Tetragon turns that into process, network, and file visibility on Kubernetes.

Read More
The IDOR That Let One Branch Read Another Branch's Revenue
SecurityJuly 20269 min read

The IDOR That Let One Branch Read Another Branch's Revenue

A real IDOR in a multi-branch ERP: how a detail endpoint that fetched by id alone leaked another branch's revenue, and the branchId-scoping fix I rolled across every Prisma module.

Read More
Building e-KYC for Indonesian Fintech: NIK/Dukcapil Verification Done Right
SecurityJuly 202610 min read

Building e-KYC for Indonesian Fintech: NIK/Dukcapil Verification Done Right

How to verify NIK/KTP identity against Dukcapil through authorized providers, add face-match and liveness, and handle sensitive data under UU PDP.

Read More
Hardening Linux Services with systemd Sandboxing
SecurityJuly 20269 min read

Hardening Linux Services with systemd Sandboxing

How I lock down Linux daemons from the outside using systemd's built-in sandbox — filesystem, temp, privileges, and syscalls — then measure the result.

Read More

More in this category