Project Name: cow-intent-guard — Protecting Programmatic Orders from Frontend Hijacks and Silent Failures
Author(s): ILE Labs
Introduction:
ILE Labs is an open-source development collective specializing in high-performance blockchain infrastructure and cryptographic tooling. Our core competency lies in deep execution-flow analysis and Rust systems engineering. Our previous work includes:
Additional Links:
-
Website: ilelabs.org
-
Mail: contact@ilelab.org
Project Description
The Problem
The April 2026 DNS hijacking of cow.fi exposed a critical systemic vulnerability: over-reliance on web-based interfaces for intent verification.
When the frontend was compromised, users were tricked into signing malicious intents because they lacked a local, trusted way to verify exactly what their signatures contained. Furthermore, developers building on the ComposableCoW framework currently suffer from “silent failures”—orders that are cryptographically valid but fail to execute due to parameter-level ambiguities (e.g., incorrect slippage packing or fee calculations) that are only visible after submission.
The Solution: cow-intent-guard
cow-intent-guard is a standalone, Rust-powered CLI and SDK that provides a “Local Trusted Frontier” for CoW Protocol. It allows developers and power users to:
-
Offline Intent Decoding: Parse raw EIP-712 order data and
ComposableCoWcalldata locally, without touching any web infrastructure. -
Pre-Flight Settlement Simulation: Run intents against a local mainnet fork (Anvil) to simulate the exact settlement outcome, detecting slippage errors and “silent failures” before they ever hit the order book.
-
Phishing Signature Detection: A local database of known malicious signature patterns and “risk scoring” for intents that look like drains (e.g., swapping for low-liquidity tokens or suspicious receivers).
-
WASM-Ready Verification: The core engine is built to be compiled to WASM, enabling other wallets and Safe Apps to integrate “Offline Verification” natively.
Why ILE Labs?
Building a local settlement simulator requires more than just calling an API. It requires deep knowledge of the GPv2Settlement contract logic, internal storage layout for ComposableCoW, and the ability to reconstruct state in a local fork. ILE Labs has a proven track record of building these exact types of “lens” tools for other ecosystems (Solana, MultiversX, Arbitrum).
Impact
-
Security Resilience: Decouples order verification from the
cow.fidomain. In the event of a future DNS attack, users can verify their transactions locally usingcow-intent-guard. -
Developer Onboarding: Directly addresses the 2026 RFP priority for “Order Decoders” and “Offline Development Mode.”
-
Reduced MEV/Slippage Losses: By simulating orders locally, developers can optimize their
minOutparameters and slippage packing, reducing failed trades and value leakage.
Milestone Breakdown
Total Funding Requested: $28,500 (USDC/DAI)
Duration: 3 Months
Milestone 1: The “Decoder” Engine ($9,500)
-
Objective: Implement a robust Rust parser for EIP-712 CoW orders and
ComposableCoWprogrammatic parameters. -
Deliverable: CLI tool
cow-guard decode <RAW_DATA>which outputs a human-readable, verified JSON representation of the intent. -
Verification: Passes verification against 100+ historical mainnet transactions, including complex TWAP and Stop-Loss orders.
Milestone 2: The “Simulator” (Phase 1) ($10,000)
-
Objective: Local fork simulation.
-
Deliverable: Integration with
ethers-rs/alloyandanvil. CLI commandcow-guard simulate <INTENT>which forks mainnet state, executes the trade against the CoW Settlement contract, and reports the exactbuyAmountor reason for failure. -
Verification: Successful simulation of a 5-part TWAP order, predicting the execution of the first discrete part within 0.1% accuracy of mainnet outcomes.
Milestone 3: Security Scoring & WASM Release ($9,000)
-
Objective: Risk analysis and ecosystem integration.
-
Deliverable: Implementation of “Risk Tiers” (e.g., Aegis-style protection) and a WASM build of the library for frontend/wallet integration. Final documentation hosted on Mintlify.
-
Verification: Integration guide for Safe Apps showing how to use
cow-intent-guard-wasmto provide “Local Simulation” popups before signing.
Project Pulse & Tracking
| Milestone | Duration | Status | Deliverable |
|-----------|----------|--------|-------------|
| M1: Decoder Engine | 4 Weeks | Planned | Local CLI cow-guard decode |
| M2: Simulation Suite | 4 Weeks | Planned | Anvil Integration & Settlement Mocking |
| M3: Security Scoring | 4 Weeks | Planned | WASM Release & Mintlify Integration |
Stewardship & Community Engagement
We recognize the importance of active communication in the CoW DAO. To ensure transparency, ILE Labs commits to:
-
Bi-Weekly Updates: We will post progress reports in this thread every 14 days, following the structured milestone table above.
-
Open QA: We invite committee members (@anxolin, @mfw78) to request specific edge-case simulations or decoding patterns they would like to see prioritized.
-
Public Beta: A functional CLI for Milestone 1 will be available for community testing before the end of the first month.
Additional Information
-
Payment Address: (ILE Labs Gnosis Chain Wallet)
-
Standard Terms: We agree to be bound by the CoW DAO Grant Agreement Terms.
-
Open Source: All code will be licensed under MIT/Apache-2.0 and published to
github.com/ILE-Labs/cow-intent-guard.