---
author: "Umesh Malik"
canonical: "https://umesh-malik.com/blog/tag/ai-security"
description: "Explore articles tagged with AI Security by Umesh Malik — AI Engineer, LLM & GenAI Developer. Learn AI Security best practices, practical tips, and in-depth guides."
title: "Umesh Malik's Blog - AI Security Articles | AI Security Tutorials"
tokens: 1881
generator: "scripts/generate-page-markdown.mjs"
---

[← Back to Blog](https://umesh-malik.com/blog)

# AI Security

13 articles

 [![Diagram showing robots.txt preferences syncing with Cloudflare's AI bot enforcement rules across Search, Agent, and Training categories](https://umesh-malik.com/blog/sync-robots-txt-ai-bot-blocks-cover.png)

AI Security • Aug 24, 2026

### How to Block AI Training Without Losing Search Visibility

Block AI training without losing search by setting one toggle. Bot Preference Sync writes robots.txt from your dashboard — no static file to maintain.

8 min read

Read more →](https://umesh-malik.com/blog/sync-robots-txt-ai-bot-blocks)

 [![The five sandbox tools a Gemini agent hook intercepts, against the two tool families it never sees](https://umesh-malik.com/blog/gemini-agent-hooks-fail-open-cover.png)

AI Security • Aug 19, 2026

### Gemini agent hooks fail open: how to block a tool call anyway

Gemini agent hooks fail open on every error path, and never fire for MCP or function tools. The deny contract, the coverage gap, and what to gate instead.

9 min read

Read more →](https://umesh-malik.com/blog/gemini-agent-hooks-fail-open)

 [![The four layers at which an AI feature can be switched off, ranked by which events reset each one](https://umesh-malik.com/blog/turn-off-ai-features-permanently-cover.png)

AI Security • Aug 18, 2026

### Turn off AI features permanently: configure 1 policy, not 25 toggles

Turn off AI features permanently with policy, not toggles: one Chrome default covers 25 gen-AI features, and Microsoft has deprecated the Copilot policy.

11 min read

Read more →](https://umesh-malik.com/blog/turn-off-ai-features-permanently)

 [![Cloudflare Access enforcing an identity policy in front of a Worker before its code executes](https://umesh-malik.com/blog/cloudflare-access-for-workers-cover.png)

AI Security • Aug 15, 2026

### Configure Cloudflare Access for Workers: auth before your code runs

Cloudflare Access for Workers checks requests before your code runs — no JWT validation. The three scopes, the local-dev config, and what it still misses.

8 min read

Read more →](https://umesh-malik.com/blog/cloudflare-access-for-workers)

 [![Verifying AI crawler identity by matching source IPs against published CIDR lists instead of trusting the User-Agent header](https://umesh-malik.com/blog/verify-ai-crawler-ips-not-user-agents-cover.png)

AI Security • Aug 13, 2026

### How to Verify AI Crawler IPs: 3 Lists Are Over a Year Stale

Verify AI crawler IPs instead of trusting the User-Agent: the CIDR check for ClaudeBot and GPTBot, and the three published lists that are over a year stale.

8 min read

Read more →](https://umesh-malik.com/blog/verify-ai-crawler-ips-not-user-agents)

 [![The metrics path behind WhatsApp Scam Alert, where device identity, IP address and per-user counters are each stripped at a different hop before any number reaches Meta](https://umesh-malik.com/blog/on-device-ai-without-breaking-e2ee-cover.png)

AI Security • Aug 12, 2026

### Build on-device AI without breaking E2EE: the metrics leak first

Local inference is the easy half of on-device AI without breaking E2EE. The hard half is telemetry: two TEEs, k-anonymity, DP noise, and a ledger you don't own.

9 min read

Read more →](https://umesh-malik.com/blog/on-device-ai-without-breaking-e2ee)

 [![Cover showing the four-layer agent containment stack — deny egress, scope identity, watch live, kill fast — alongside the AISI evaluation figures of 122 runs, 10 off-scope runs and containment in under an hour](https://umesh-malik.com/blog/sandbox-ai-agent-internet-access-cover.png)

AI Security • Aug 8, 2026

### How to sandbox an AI agent: 10 of 122 eval runs went rogue

AISI logged 19 unsanctioned actions across 122 cyber-eval runs. How to sandbox an AI agent at the network layer — the control that blocks, not just detects.

10 min read

Read more →](https://umesh-malik.com/blog/sandbox-ai-agent-internet-access)

 [![Cover card titled Approve, subtitled One in three gets through, with three statistics: 409,000 approve or deny decisions analysed, 66.3% mean accuracy, and 52.5% miss rate on npm-disguised exfiltration](https://umesh-malik.com/blog/ai-agent-permissions-approval-fatigue-cover.png)

AI Security • Aug 7, 2026

### Configuring AI Agent Permissions: Humans Miss 1 in 3 Threats

409,000 approve/deny decisions show humans miss 1 in 3 agent threats, and 52.5% of npm-shaped exfiltration. The AI agent permissions config that works instead.

10 min read

Read more →](https://umesh-malik.com/blog/ai-agent-permissions-approval-fatigue)

 [![Cover card titled The Exit, subtitled Badge returned. Access still live., with three statistics: 2 named defendants in Apple Inc. v. Liu, 11 additional former employees named in the filing, and reasonable measures as the statutory test for a trade secret](https://umesh-malik.com/blog/insider-threat-offboarding-controls-cover.png)

AI Security • Aug 5, 2026

### Insider Threat Offboarding Controls: The Apple v. OpenAI Lesson

Insider threat offboarding controls, read through Apple v. OpenAI: retained devices, live access, and why weak offboarding also weakens your legal claim.

11 min read

Read more →](https://umesh-malik.com/blog/insider-threat-offboarding-controls)

 [![LLM abuse detection diagram contrasting per-message content classification with account-level behavioural correlation across a session corpus](https://umesh-malik.com/blog/llm-abuse-detection-openai-scam-network-cover.png)

AI Security • Aug 5, 2026

### LLM Abuse Detection: What OpenAI's Scam Ban Reveals

LLM abuse detection failed at the message level and worked at the account level. OpenAI's Cambodia scam ban shows which signal actually catches misuse.

11 min read

Read more →](https://umesh-malik.com/blog/llm-abuse-detection-openai-scam-network)

 [![MCP write controls diagram: a tool call passing through a policy layer that allows, labels, or blocks it before the handler runs](https://umesh-malik.com/blog/mcp-write-controls-cloudflare-writeguard-cover.png)

AI Security • Aug 5, 2026

### MCP Write Controls: Lessons from Cloudflare WriteGuard

MCP write controls decide what your agents can break. Cloudflare's WriteGuard shows the pattern: per-tool risk tiers, agent attribution, central audit.

13 min read

Read more →](https://umesh-malik.com/blog/mcp-write-controls-cloudflare-writeguard)

 [![Cover card titled The Gate, subtitled Thousands of tickets. One agent., with three statistics: 4 risk tiers, Cloudflare's MCP portal growing 13 to 27 servers, and tool annotations marked untrusted per the MCP spec](https://umesh-malik.com/blog/secure-mcp-write-tools-writeguard-cover.png)

AI Security • Aug 5, 2026

### How to Secure MCP Write Tools: Cloudflare's WriteGuard Lesson

How to secure MCP write tools: the spec puts confirmation on the client — the one layer you don't control. Cloudflare's WriteGuard moves the gate server-side.

11 min read

Read more →](https://umesh-malik.com/blog/secure-mcp-write-tools-writeguard)

 [![A fabricated CVE advisory flowing unverified into the public vulnerability database pipeline](https://umesh-malik.com/blog/fake-cve-reports-ai-slop-sqlite-cover.png)

AI Security • Aug 4, 2026

### Fake CVE Reports: 54 of 55 SQLite Advisories Were AI Slop

Fake CVE reports are now cheaper to write than to disprove. JFrog found 54 of 55 SQLite advisories fabricated by an LLM. How to spot them before you patch.

11 min read

Read more →](https://umesh-malik.com/blog/fake-cve-reports-ai-slop-sqlite)
