INTENTFENCE
AI-powered defense against prompt injection
Created on 22nd August 2026
•
INTENTFENCE
AI-powered defense against prompt injection
The problem INTENTFENCE solves
Problem
AI agents can be manipulated by prompt injection and indirect instruction attacks hidden in documents, web pages, or tool output. These attacks can cause an agent to leak data, take unsafe actions, or follow instructions that conflict with the user's intent.
Solution
INTENTFENCE is a local-first cybersecurity prototype that visualizes how an AI request is inspected before execution. It combines intent analysis, threat classification, policy checks, and an explainable decision timeline so a reviewer can see what happened at every phase.
Trace Commons AI
IntentFence was built with Codex as an active engineering collaborator. Codex helped translate architecture into implementation, create typed security contracts, drive TDD cycles, debug CI and integration failures, design fail-closed authorization boundaries, verify persistence, integrate the frontend and backend, and prepare the judge-facing evidence dashboard.
Every model-proposed tool call passes through the IntentFence gateway. The system records the active Intent Contract, source context, policy decision, matched rules, execution status, receipt ID, risk score, and latency.
External web content is treated as untrusted data. The controlled attack fixture demonstrates a web page attempting to induce a .env read; the web fetch may be allowed, while the subsequent secret-file request is blocked before execution.
For the Trace Commons submission, 12 project-scoped Codex sessions were sanitized and submitted through the contributor CLI. The current signed attestation contains the privacy-backstop results for 6 scored submissions and is stored in the organizer's private JWT field.
Repository: https://github.com/rajeet-04/INTENTFENCE
Demo: https://intentfence.vercel.app
Challenges we ran into
Challenges
- Designing a deterministic simulation that is easy to reproduce during a live judging session while still representing realistic prompt-injection stages.
- Keeping the visual timeline synchronized with the backend decision and making each phase understandable to a non-specialist reviewer.
- Supporting a local-first setup on developer hardware, including the frontend, backend, and optional Ollama integration.
- Resolving integration and merge issues across the phase-based implementation while preserving the existing dashboard and documentation.
We addressed these by separating the simulation phases, documenting the judge walkthrough, adding explicit status and evidence states, and verifying the final repository on the main branch.
Tracks Applied (1)
Trace Commons AI
Trace Commons
Technologies used
