hackquest logo

AI and Oracles

A Autonomous Risk Sentinel, an AI security cluster. While other protocols rely on slow human multisigs or others, it use Consensus Intelligence to protect billions in capital from zero day exploits.

ビデオ

説明

Project Description: Autonomous Risk Sentinel (v5.0 Ultimate)

The Bulletproof Security Layer for the Mantle Ecosystem.


1. Vision and Mission

The Autonomous Risk Sentinel is a production-grade, AI-driven security infrastructure designed to transform DeFi security from a passive, human-dependent model into an active, autonomous reflex system.

In the current DeFi landscape, billions of dollars are protected by "Snapshot" governance or human multisigs that take hours to coordinate. In contrast, exploits take seconds. The Sentinel bridges this "Response Gap" by using a distributed swarm of AI agents to detect, correlate, and halt attacks in real-time.


2. The Problem Statement: The "Zero-Day" Gap

DeFi protocols today suffer from four fatal architectural flaws that the Sentinel is specifically engineered to solve:

  1. Fragmented Risk Signals: Oracles, mempool activity, and governance forums exist in silos. An attack often shows a "pre-signal" in one (e.g., a suspicious governance proposal) before the drain happens in another (e.g., a flash loan). Humans cannot correlate these 24/7.

  2. The "Slow Human" Bottleneck: In a flash-loan attack, the funds are gone before an admin can even open their laptop.

  3. Oracle Lag Arbitrage: Standard oracles (like Chainlink) update on deviation thresholds. During high volatility, the market price moves faster than the oracle, allowing bots to exploit the "stale" price feed.

  4. Infrastructure Deadlock: If a Layer 2 sequencer stops, standard "Pause" transactions cannot be mined, leaving the protocol's bridge vulnerable to L1-to-L2 exploits.


3. The Technical Solution: Three Pillars of Defense

I. The Sentinel Swarm (Intelligence Layer)

Instead of a single bot, the system runs a 5-node AI Swarm that monitors the protocol.

  • Neural Risk Engine: Integrates GPT-4 (via NaturalLanguageEngine) to perform semantic analysis on governance proposals, social sentiment, and mempool transaction data.

  • Adversarial Multi-Persona Logic: The AI is forced to play a "Red Team" role it asks, "If I were the attacker, how would I use this signal to drain the vault?"

  • Swarm Consensus: To prevent a "single point of failure" or a single rogue AI from pausing the system, all critical actions require a 66% Quorum and a verified Leader Election.

II. Hardened Smart Contracts (Execution Layer)

The contracts are built with "On-Chain Reflexes" that don't wait for the AI if a hard limit is hit:

  • 24H Rolling Outflow Caps: Prevents "Boiling Frog" attacks where an attacker drains small amounts over time. It limits total withdrawals to 30% of TVL per day.

  • L1 Escape Hatch: A cross-chain emergency bridge that allows the Sentinel to trigger a pause from Ethereum L1 if the Mantle L2 sequencer is down.

  • EIP-712 Optimistic Heartbeats: Sentinels sign high-frequency "all-clear" signals off-chain, reducing operational gas costs by 99% while maintaining 100% cryptographic security.

III. The V2 Command Center (Operations Layer)

A military-grade dashboard designed for high-density information display:

  • Risk Telemetry: Real-time sparklines tracking the history of the neural risk score.

  • Consensus Matrix: A live grid showing the status of all 5 swarm nodes.

  • Risk Attribution: Visual breakdown of why a risk is high (e.g., 60% NLP logic, 30% Oracle drift).


4. Historical Case Study: Mango Markets ($114M) REPLAY

To prove the project's worth, we simulated the infamous Mango Markets exploit:

  1. The Threat: Attacker manipulates a low-liquidity oracle.

  2. The Sentinel Response:

  • Phase 1: Detects uncharacteristic

  • Phase 2: Correlates volume with a 100% in the same timeframe.

  • Phase 3: Swarm reaches Consensus (5/5 nodes sign).

  • Phase 4: Sentinel triggers an Autonomous Pause on the vault before the attacker can withdraw the "borrowed" funds.


5. Summary Checklist for Judges

  • Technology: Python (AI), Solidity (Contracts), React (Dashboard), WebSockets (Real-time).

  • Innovation: "Proof-of-Life" EIP-712 heartbeats and Adversarial AI Quorums.

  • Stability: Custom Legacy-Gas handlers for Mantle Sepolia to ensure emergency transactions are never stuck in the mempool.

  • Vision: A self-sustaining security layer where Guardians stake capital to protect the ecosystem.

The Autonomous Risk Sentinel doesn't just watch the protocol; it guards it with the speed of code and the intelligence of AI.

One-Pager Pitch



Problem
DeFi protocols lose billions because human response time is too slow. When an oracle is manipulated or a flash-loan attack starts, it takes hours for a human multisig to coordinate a pause. By then, the vault is empty.

Solution
An AI-Powered "Antibody" System for Mantle. We combine an Adversarial AI Swarm (which detects threats in blocks, not hours) with On-Chain Reflexes (like rolling withdrawal caps and L1 escape hatches). We bridge the gap between passive monitoring and active defense.

Business Model (How it makes money)
Security-as-a-Service (SaaS): Protocols pay a monthly subscription fee in $MNT to be monitored by the Swarm.
Outcome-Based Bounties: The RiskSentinel contract automatically collects a small fee (e.g., 5 bps) on protected deposits. If the Sentinel successfully halts an attack, it earns a "White-Hat Reward" calculated as 1% of the assets saved.
Staking: Future "Guardians" must stake tokens to join the Swarm, creating a "Circle of Trust" where bad actors are slashed.
Roadmap
Q1 2026 (Mantle Hackathon): Prototype deployment on Mantle Sepolia, end-to-end "Mango Markets" attack simulation, and V2 Command Center UI.
Q2 2026: Integration with top Mantle DEXs (Agni/FusionX) for real-time "Speed of Light" oracle triage.
Q3 2026: Mainnet launch with the "Guardian Council" staking pool and support for RWA (Real World Asset) vaults.
Q4 2026: Multi-chain expansion (Ethereum L1 ↔ Mantle L2) for full cross-chain bridge protection.

Compliance declaration

The Autonomous Risk Sentinel is a Neutral Security Infrastructure Layer. It does not issue, trade, or hold custody of regulated assets. Our protocol provides autonomous risk-mitigation and emergency-halt logic for DeFi vaults. While our system is designed to protect both permissionless and regulated (RWA) vaults, the Sentinel itself is a software tool, not a financial intermediary. We do not require KYC as we do not touch user funds; we only transmit security signals to smart contracts.

ハッカソンの進行状況

Progress During Hackathon: Autonomous Risk Sentinel We transitioned from a conceptual prototype to a production-grade security suite. Below is the roadmap of our progress delivered during this hackathon: Phase 1: Foundation and Ruthless Hardening We started with a basic monitoring script and transformed it into a resilient architecture by solving four critical "Real-World" problems: Intelligence Upgrade: Replaced static if/else risk scores with a Natural Language Engine. Integrated GPT-4 to analyze governance proposals and social sentiment for adversarial intent. Decentralization (The Swarm): Eliminated the "Single Point of Failure" by implementing SentinelSwarm. We moved from one bot to a 5-node cluster that uses Leader Election and quorum signatures to authorize on-chain actions. Gas Engineering: Hardened the system for Mantle Sepolia by implementing Legacy Transaction support and tuning gas limits (200M) to ensure emergency "Pause" transactions are never dropped during network congestion. Anti-God Mode: Implemented On-Chain Idempotency. The Sentinel now pulse-checks the vault’s state before acting, ensuring it never spams the network or performs redundant actions. Phase 2: The Feature Innovation To differentiate from standard security tools, we implemented three high-impact features: The "Alive" Dashboard: Built a real-time WebSocket Bridge between the Python AI and the React Frontend. The dashboard is no longer a static page; it is a live telemetry feed. V2 Command Center UI: Designed a high-density "Military Grade" cockpit. Real-time Risk Sparklines show threat trends. Consensus Matrix visualizes the live voting status of every node in the swarm. Risk Attribution breaks down the "Why" behind the AI's logic (Oracle vs NLP vs Liquidity). EIP-712 Heartbeats: Implemented "Optimistic Liveness" using off-chain cryptography. This reduced the protocol's operational gas costs by over 99% while maintaining trustless verification. Phase 3: Validation and Case Studies Mango Markets Replay: Built a full end-to-end simulation of the $114M Mango Markets attack. We proved that the Sentinel correlates Flash Loan volume with Oracle spikes to trigger a halt before the drain occurs. Mantle Sepolia Deployment: Successfully deployed and verified the RiskSentinel and MockYieldVault contracts on the Mantle Sepolia testnet. Cross-Chain Prototype: Engineered the L1 Escape Hatch logic, proving that the Sentinel can protect Mantle assets even if the L2 Sequencer is offline. Final Result We delivered a fully integrated security ecosystem: AI Backend: Distributed Python Swarm. Smart Contracts: Hardened Solidity framework with rolling withdrawal caps. Frontend: High-density React Command Center. Documentation: A master "Judicial-View" README and a comprehensive Technical Walkthrough. Status: Demo-ready, Testnet-deployed, and Architecturally Bulletproof.

テックスタック

React
Solidity
Python
Java
Web3

資金調達の状況

Fundraising Status: Pre-Seed / Hackathon Stage (Bootstrapped) We are currently Bootstrapped and focused on proving the core technical thesis during this hackathon. Our fundraising strategy is divided into three immediate milestones: 1. Grant Phase (Current Focus) We are actively seeking Grant Funding (specifically from the Mantle EcoFund) to transition our "Swarm Simulation" into a truly decentralized production environment. Use of Funds: Infrastructure costs for independent validator nodes, API credits for enterprise LLM access (GPT-4), and primary security audits of the RiskSentinel smart contracts. 2. Pre-Seed / Strategic Angel Round (Q1 2026) Following successful testnet validation, we will open a Pre-Seed round. We are prioritizing Strategic Partners—specifically DeFi protocols on Mantle that require autonomous security layers (e.g., Agni, FusionX, or upcoming RWA projects). 3. "Guardian" Staking Launch Our long-term goal is to avoid traditional VC-heavy cycles by launching a Community-Driven Security Model. Mechanism: Guardians will stake capital to run Swarm Nodes. Revenue: They earn a percentage of the "Gas Saved" and a performance fee from the protocols they protect. This makes the project self-sustaining and community-owned. Status Summary: Current Capital: $0 (Self-funded / Hackathon Build). Target: Ecosystem Grants + Strategic Angel Investors. Objective: Funding the transition from "Simulated Swarm" to "Production Guard." We are looking for partners who believe that DeFi security should be an autonomous infrastructure, not a manual service.

チームリーダー
PPaschal Anierobi
オープンソース
業界
DeFiInfraOther