AI and Risk Mitigation: Call for Proposals
Best practices for ethical AI in healthtech, fintech, edtech and public services
Karan Bansal
Submitted Aug 5, 2026
AI coding agents like Claude Code execute shell commands, read and write files, and make autonomous decisions, effectively acting as developers with broad access to your codebase and system. As adoption accelerates, securing these agents at runtime becomes critical. But how do you enforce least privilege on an agent that needs wide access to be useful?
This talk presents a practical, hook-based approach to securing AI coding agents. Using Claude Code’s event-driven hook system, it demonstrates how PreToolUse and PostToolUse interception points enforce security policies mapped directly to the OWASP Top 10 for LLM Applications. Six of the ten risks have a clean, hook-shaped answer: blocking dangerous commands before execution (LLM06 Excessive Agency), detecting secret exfiltration (LLM02), scanning generated code for vulnerabilities (LLM05), guarding system prompt leakage (LLM07), and capping runaway consumption (LLM10). The session is honest about the other four risks, which are training-time or hallucination problems hooks cannot touch.
The talk includes a walkthrough of open-source hook scripts (block-dangerous-commands, protect-secrets, and an audit logger), plus performance benchmarks comparing Node.js and Python implementations. Hooks run synchronously, so every millisecond counts. The session shares real data on keeping security controls under 100ms per invocation.
Attendees leave with a ready-to-use, open-source toolkit (439 stars, MIT, 262 tests), a framework for applying defense-in-depth to any agent that executes code, and concrete patterns for building custom hooks without degrading agent performance. Everything demonstrated runs in production and is on GitHub.
Talk, 30-40 minutes (adaptable to a 20-minute cut).
Karan Bansal is Global Head of AI and Security Innovation at ArmorCode, with over 10 years in security. He previously led security and privacy at Urban Company (a $2.8B unicorn) and was a founding engineer at AvidSecure, acquired by Sophos in 2019. He authored “Claude Code’s Most Underrated Feature: Hooks” and maintains the open-source claude-code-hooks toolkit, a collection of security hooks for AI coding agents mapped to the OWASP LLM Top 10. He also built reddit-mcp-buddy (748 stars) and curates awesome-claude-skills (420 stars). He contributes to SGLang and vLLM, and speaks at DEFCON and OWASP.
Hosted by
{{ gettext('Login to leave a comment') }}
{{ gettext('Post a comment…') }}{{ errorMsg }}
{{ gettext('No comments posted yet') }}