adk-ifc-guard: open-source taint-tracking plugin for ADK sub-agent handoffs

Hi everyone,

I built an open-source plugin called adk-ifc-guard for Google ADK and Antigravity CLI (agy), entirely on my phone.

The problem: if an agent reads untrusted content (a web page, an email, an MCP tool output) and then hands work to a sub-agent, the sub-agent may not know that content was untrusted. It could then run a sensitive tool (deploy, bash, email) on behalf of hidden attacker instructions.

What it does:

- Marks a session as tainted once untrusted data is read

- Carries the taint to sub-agents in an HMAC-SHA256 signed token (forged or expired tokens are rejected)

- Blocks sensitive tools while the session is tainted

- Decodes Base64, Hex and hidden Unicode TAG characters before checking

It is pure Python with zero dependencies, and 20 tests pass.

Repo: GitHub - Nikhilbharti284/adk-ifc-guard: Zero-dependency deterministic IFC taint-tracking firewall for Google ADK, A2A sub-agents, and Google Antigravity CLI (agy) · GitHub

GitHub discussion: adk-ifc-guard: taint-tracking plugin for ADK sub-agent handoffs · google/adk-python · Discussion #8462 · GitHub

I’d really appreciate feedback on whether the BasePlugin + state-based propagation approach mak

es sense. Thanks!