Inspiration
As AI agents become increasingly capable of making purchases and executing tasks autonomously, a new security problem emerges: how do we prevent agents from making unsafe financial decisions? As we use Agents more frequently: How do those less fortunate fit in their pricing models (no pun intended)?
We were inspired by the need for a financial governance layer that protects users from prompt injection, unauthorized spending, coordinated overspending across multiple agents, and potentially fraudulent merchants.
Our core principle is simple: AI agents decide. Only users control money.
What it does
Aegis AI is an AI-powered financial trust and security governance layer for autonomous commerce.
It evaluates transactions initiated by AI agents before payment execution. It inspects the agent's proposed actions against the user's original intent, checks spending limits, evaluates merchant risk signals, and coordinates budgets across multiple agents.
Every transaction receives one of three decisions:
- ALLOW: The transaction satisfies the applicable policies and can proceed.
- REVIEW: An anomaly requires human approval before payment.
- BLOCK: A hard policy violation or serious security concern prevents execution.
Aegis AI integrates with PayPal to support secure payment workflows while keeping financial authorization under user control.
How we built it
We built Aegis AI using JavaScript and a Node.js backend powered by Express.js.
Our core technology stack includes:
- JavaScript: Application development.
- Node.js: Backend runtime.
- Express.js: API and server-side logic.
- better-sqlite3: Database management.
- jsonwebtoken: JWT-based authentication.
- PayPal APIs: Payment integration and transaction workflows.
The application is built around a governance pipeline that evaluates agent requests before they reach payment execution.
We focused on three key security areas: detecting manipulation and intent drift, coordinating shared financial budgets across agents, and evaluating merchant integrity.
The application is deployed at aegis-one-theta.vercel.app.
Challenges we ran into
One of the biggest challenges was designing a system that could distinguish between an AI agent's proposed action and what the user actually authorized.
Prompt injection makes this particularly difficult because malicious instructions can be embedded in external content, such as product descriptions or websites.
Another challenge was multi-agent budget coordination. Independent agents can attempt to spend from the same available balance, creating the risk of overspending unless financial reservations are properly coordinated.
We also had to consider how governance decisions interact with payment execution, ensuring that a transaction requiring review or blocked by policy cannot simply proceed to checkout.
Accomplishments that we're proud of
We are proud of developing a solution that addresses a growing security gap in autonomous commerce: the lack of a dedicated financial governance layer between AI agents and payment systems.
Some of our key accomplishments include:
- Bringing prompt-injection detection and intent verification into the financial transaction workflow.
- Designing a shared budget coordination mechanism to prevent multiple agents from exceeding user-defined spending limits.
- Bringing AI affordability to those less fortunate and yet enthusiastic.
- Establishing a deterministic ALLOW, REVIEW, and BLOCK decision model.
- Incorporating merchant integrity and price anomaly assessment into transaction evaluation.
- Building and deploying a working application with a PayPal-focused payment experience.
Most importantly, we established a clear separation between an agent's ability to make decisions and its authority to spend the user's money.
What we learned
We learned that enabling autonomous payments is not simply a matter of connecting an AI agent to a payment API.
Financial autonomy requires authorization, policy enforcement, transaction verification, and accountability.
We also learned the importance of deterministic controls in AI systems. AI-generated recommendations can help identify suspicious behaviour, but they should never override explicit user-defined financial restrictions.
Building Aegis AI reinforced the importance of designing for failure, handling concurrent requests, and ensuring that security decisions are enforced by the backend rather than trusted to the frontend or the AI agent itself.
What's next for Aegis AI
Our next step is to strengthen Aegis AI into a more comprehensive financial governance platform for autonomous agents.
We aim to:
- Improve prompt-injection detection and intent-drift analysis.
- Expand merchant intelligence using more reliable external evidence.
- Strengthen atomic budget reservations and cross-agent financial coordination.
- Expand PayPal integration and payment verification capabilities.
- Improve transaction auditing, monitoring, and explainability.
- Explore integrations with additional AI agent frameworks and payment providers.
- Expand on the seller side of the marketplace to add more agentic-ness.
Our long-term vision is to make Aegis AI a number-one marketplace for affordable Agents backed by a reusable financial security layer that allows businesses and individuals to adopt autonomous AI commerce without surrendering control over their finances.