Can Hugging Face Manipulate Antigravity? Lessons in Agentic AI Security
¿Puede Hugging Face manipular a Antigravity? Lecciones de Seguridad en IA Agéntica
DevFest Cusco 2026 keynote slide: ¿Puede Hugging Face manipular a Antigravity? por David Quispe.
Overview
An empirical security evaluation testing whether indirect prompt injections and altered tool parameters can manipulate autonomous coding agents like Google Antigravity, featuring live MCP telemetry and deterministic PreToolUse defenses.
Abstract & Laboratory Context
Can third-party tools and MCP servers hosted across public registries manipulate autonomous coding agents? At GDG DevFest Cusco 2026, we presented an empirical security evaluation testing whether indirect prompt injections and altered tool parameters can redirect Google Antigravity. Evaluating Gemini Flash across controlled conditions, overt instructions to alter agent rules or recommend packages yielded 0/50 successes (with 1/50 test command executed in high effort). However, documentation-style contextual notes drifted package recommendations by 25%–40% (Wilson 95% CI: 14.5%–61.3%). End-to-end telemetry across 63 completed MCP calls verified 3 destination-confirmed canary exfiltrations. A deterministic PreToolUse policy intercepted and denied 100% (5/5) of unauthorized rule modification attempts.
Empirical Metrics & Defense Outcomes
0/50 across low/medium/high effort for package recommendation and agent rules; 1/50 test command executed in high.
Documentation notes achieved 30% (simple), 25% (tagged), and 40% (interleaved) recommendation drift versus 0% baseline (Wilson 95% CI).
63 completed MCP calls across 5 series verified 6 records and 3 destination-matched canary exfiltrations.
Deterministic native PreToolUse policy intercepted and denied all 5 rule write attempts observed across 10 evaluation runs.
Session Resources & Verification
- Interactive 22-Slide React Presentation: Hosted publicly on Hugging Face Spaces at https://huggingface.co/spaces/davidquicast/devfest-cusco-2026-ai-security. Includes interactive slide viewer, live WandaVision paradox explanation, and raw telemetry payloads.
- Open Source Reproduction Repository: Code, MCP server definitions, and test runs available at https://github.com/davidquicast/workshop-hf-antigravity.
- Live MCP Gradio Server: Exposing the
generar_imagentool with tool parameter inspection at https://huggingface.co/spaces/davidquicast/generador-imagenes-2. - Official GDG DevFest Cusco Announcement: Verified speaker and workshop profile published on LinkedIn at https://es.linkedin.com/posts/gdgcusco_gdgcusco-devfestcusco-googleantigravity-activity-7524596454246612992-wl2W.