ๆƒฏๆ€ง่šๅˆ ้ซ˜ๆ•ˆ่ฟฝ่ธชๅ’Œ้˜…่ฏปไฝ ๆ„Ÿๅ…ด่ถฃ็š„ๅšๅฎขใ€ๆ–ฐ้—ปใ€็ง‘ๆŠ€่ต„่ฎฏ
้˜…่ฏปๅŽŸๆ–‡ ๅœจๆƒฏๆ€ง่šๅˆไธญๆ‰“ๅผ€

ๆŽจ่่ฎข้˜…ๆบ

aimingoo็š„ไธ“ๆ 
aimingoo็š„ไธ“ๆ 
Google DeepMind News
Google DeepMind News
S
SegmentFault ๆœ€ๆ–ฐ็š„้—ฎ้ข˜
Project Zero
Project Zero
D
DataBreaches.Net
I
InfoQ
L
Lohrmann on Cybersecurity
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
้…ท ๅฃณ โ€“ CoolShell
้…ท ๅฃณ โ€“ CoolShell
Stack Overflow Blog
Stack Overflow Blog
The Register - Security
The Register - Security
Recorded Future
Recorded Future
Vercel News
Vercel News
ๅš
ๅšๅฎขๅ›ญ - ๅธๅพ’ๆญฃ็พŽ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
Intezer
The Hacker News
The Hacker News
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
Help Net Security
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Scott Helme
Scott Helme
T
Threatpost
็ˆฑ่Œƒๅ„ฟ
็ˆฑ่Œƒๅ„ฟ
N
Netflix TechBlog - Medium
D
Docker
ไบ‘้ฃŽ็š„ BLOG
ไบ‘้ฃŽ็š„ BLOG
C
Cisco Blogs
K
Kaspersky official blog
H
Help Net Security
S
Secure Thoughts
T
Threat Research - Cisco Blogs
้’›ๅช’ไฝ“๏ผšๅผ•้ข†ๆœชๆฅๅ•†ไธšไธŽ็”Ÿๆดปๆ–ฐ็Ÿฅ
้’›ๅช’ไฝ“๏ผšๅผ•้ข†ๆœชๆฅๅ•†ไธšไธŽ็”Ÿๆดปๆ–ฐ็Ÿฅ
S
Security @ Cisco Blogs
Cyberwarzone
Cyberwarzone
N
News and Events Feed by Topic
G
Google Developers Blog
Forbes - Security
Forbes - Security
ๅš
ๅšๅฎขๅ›ญ - ไธ‰็”Ÿ็ŸณไธŠ(FineUIๆŽงไปถ)
ๅš
ๅšๅฎขๅ›ญ - ๅถๅฐ้’—
B
Blog
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
P
Privacy International News Feed
Spread Privacy
Spread Privacy
The Last Watchdog
The Last Watchdog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Donโ€™t Fail โ€” They Drift Spilling beans for how i learn for exam๐Ÿ˜"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" โ€” What Actually Happened Comfy Cloudโ€™s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions โ€” here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components โ€” Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cรณmo construรญ un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 ๐Ÿš€ I Built an Ethical Hacking Scanner Tool โ€“ Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points โ€” Here's What I Found About How Markets Really Move EcoTrack AI โ€” Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead โ€” I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve โ€” no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like Youโ€™re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace โ€” how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025โ€“62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D โ€” A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent โ€” It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly โ€” 2026/04/10โ€“04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI ้€ฑๅ ฑ โ€” 2026/04/10โ€“2026/04/17 ๆจกๅž‹ๅฐ้Ž–ๆฝฎไพ†ไบ†๏ผŒไฝ†ๅทฅๅ…ท้ˆๆ‰ๆ˜ฏ็œŸๆˆฐๅ ด Maybe this is how Open-Source apps are born... ๐Ÿš€ Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge โ€” $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase โ€” Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train โ€” Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extraรงรฃo de Vรญdeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life โ€” Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 โ€” Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows โ€” Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTrackingๅฎ‰่ฃ…ๅ’ŒiPhone้ขๆ•้…็ฝฎๆ•™็จ‹๏ผŒๆœ‰bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
๐Ÿ” BENQI Security: Audits, Risk Architecture & What Every Developer Should Know
john ยท 2026-05-13 ยท via DEV Community

BENQI

TL;DR โ€” BENQI has one of the most comprehensive public audit records in Avalanche DeFi: 9+ independent assessments across Halborn, Certora (formal verification), Dedaub, Cyfrin, Zellic, and Chaos Labs โ€” covering every major product component. But audits alone don't tell the full story. This post breaks down the complete security stack, including the risks that no audit can eliminate.


Why Protocol Security Is Layered, Not Binary

Security in DeFi isn't a checkbox. A protocol isn't "audited = safe" โ€” it exists on a spectrum defined by:

  • Audit breadth โ€” how many components have been reviewed, and by whom
  • Methodology depth โ€” traditional audit vs. formal verification vs. penetration testing
  • Operational safeguards โ€” multisig governance, MPC infrastructure, emergency functions
  • Risk transparency โ€” how honestly the team communicates residual exposure

BENQI, Avalanche's #1 DeFi protocol by TVL, covers all four. Let's go layer by layer.


๐Ÿ“‹ The Full Audit Timeline

Every major product component has its own audit history. Here's the complete record, sourced from docs.benqi.fi/resources/risks.

Layer 1 โ€” BENQI Liquidity Market

Audit Firm Date Scope
Smart Contract Audit Halborn May 2021 Core lending & borrowing contracts
Web App Pentest Halborn March 2022 Front-end, backend API, CORS/security headers

About Halborn: An elite blockchain cybersecurity firm that has completed 2,500+ engagements and claims to protect over $1 trillion in value. Clients include Coinbase and Ava Labs. Their engagement with BENQI includes an ongoing retainer โ€” not just a one-time review. Every new feature deployment requires Halborn's approval before release.

"As security and safety is a continuous effort, Halborn will conduct ongoing auditing and penetration testing of the protocol, where all future deployments of additional features will have Halborn's stamp of approval."
โ€” BENQI announcement, July 2021


Layer 2 โ€” BENQI Liquid Staking & sAVAX

Audit Firm Date Scope
Smart Contract Audit Halborn Nov 2021 โ€“ Feb 2022 sAVAX minting, P-Chain delegation, reward accounting
Formal Verification Certora April 2022 sAVAX contract invariants (mathematical proof)
Formal Verification + Listing Audit Certora June 2022 sAVAX integration on Aave v3

What makes Certora different?

Traditional audits are expert code reviews โ€” skilled humans read the code and reason about what could go wrong. Formal verification is fundamentally different:

Traditional Audit
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Human reads code
โ†“
Reasons about edge cases
โ†“
Tests sample inputs/paths
โ†“
Reports findings

Formal Verification (Certora Prover)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Developer writes invariant specs
โ†“
Prover checks ALL possible states mathematically
โ†“
Either proves invariant holds universally
โ†“
Or produces a counterexample that violates it

Enter fullscreen mode Exit fullscreen mode

For sAVAX specifically, formal verification can prove properties like:

  • The sAVAX/AVAX exchange rate can only increase or stay constant โ€” across every possible execution path, not just tested ones
  • No operation reduces total staked AVAX without a corresponding sAVAX burn โ€” mathematically, not probabilistically

This is a significantly stronger guarantee than traditional testing. The fact that BENQI pursued Certora verification for its most critical token (sAVAX) signals a genuine commitment to mathematical security.


Layer 3 โ€” Ignite (Validator Infrastructure)

Audit Firm Date Scope
Security Analysis Dedaub March 2023 Initial Ignite contract architecture
Security Analysis Cyfrin December 2024 Full Ignite pre-launch audit

Cyfrin's BENQI engagement is publicly visible at github.com/Cyfrin/2025-01-benqi. The audit covered:

Cyfrin Scope (Dec 2024)
โ”œโ”€โ”€ StakingContract.sol         โ€” QI staking, reward distribution
โ”œโ”€โ”€ Ignite.sol                  โ€” Validator registration logic
โ”œโ”€โ”€ Price oracle integration    โ€” AVAX/QI valuation for fees
โ”œโ”€โ”€ Fee calculation mechanics   โ€” PAYG weekly fee math
โ”œโ”€โ”€ Payment token handling      โ€” AVAX, USDC, QI payment paths
โ””โ”€โ”€ Zeeve hosting integration   โ€” Third-party node provider interface

Enter fullscreen mode Exit fullscreen mode

Notable findings addressed pre-launch included edge cases in oracle validation (inconsistent AVAX price checks vs. QI price checks) and precision loss in QI fee calculations. These were remediated before the October 2025 launch.


Layer 4 โ€” Isolated Markets

Audit Firm Date Scope
Security Assessment Moonwell/independent August 2023 Upstream Moonwell codebase (inherited by BENQI)
Code4rena Contest Code4rena community October 2023 Public contest findings on Moonwell codebase
Isolated Markets Audit Independent 2024 BENQI's isolated pool implementation

Why Moonwell audits matter here: BENQI's isolated market architecture draws on code originally developed for Moonwell. Rather than hiding this codebase lineage, BENQI explicitly lists Moonwell's audit history in their documentation โ€” allowing developers to trace the full security provenance of the inherited code.


Layer 5 โ€” Oracle Infrastructure

Audit Firm Date Scope
Oracle Audit Zellic Undated Price feed contracts
Dual Oracle Contract Chaos Labs May 2025 Dual-source oracle logic

Oracle manipulation has been the attack vector behind some of DeFi's largest exploits. BENQI addresses this with:

  1. Dual oracle architecture โ€” two independent price sources for critical valuations
  2. Dedicated oracle audits โ€” separate from general contract audits
  3. Chaos Labs' own contract audited โ€” the logic governing how discrepancies between two oracle sources are handled was itself independently reviewed

๐Ÿ—๏ธ The Operational Security Stack

Audits cover code. Operational security governs what happens after deployment.

Multisig Governance

All protocol parameter changes โ€” interest rate models, collateral factors, asset listings, liquid staking functions โ€” require multi-party approval through a multisig framework.

What it protects against: Single-actor compromise. No individual team member can unilaterally modify critical parameters.

What it doesn't protect against (documented honestly by BENQI):

โš ๏ธ  RESIDUAL MULTISIG RISK

If a coordinated attack compromises a threshold
of signers simultaneously โ€” via phishing, key theft,
social engineering, or misconduct โ€” an attacker could:

  โ†’ Modify collateral factors / liquidation thresholds
  โ†’ Approve harmful asset listings
  โ†’ Redirect staked AVAX
  โ†’ Disable protective measures

Security audits do NOT protect against signer compromise.

Enter fullscreen mode Exit fullscreen mode


MPC Infrastructure for Cross-Chain Staking

Avalanche staking requires AVAX to move between the C-Chain (where BENQI's contracts live) and the P-Chain (where validator delegation happens). BENQI manages this with an off-chain Multi-Party Computation (MPC) protocol:

C-Chain AVAX
     โ”‚
     โ–ผ
MPC Node 1 โ”€โ”€โ”
MPC Node 2 โ”€โ”€โ”ผโ”€โ”€โ–บ Threshold signature โ”€โ”€โ–บ P-Chain staking
MPC Node 3 โ”€โ”€โ”ค
MPC Node N โ”€โ”€โ”˜

Rule: signing requires โ‰ฅ threshold of independent nodes

Enter fullscreen mode Exit fullscreen mode

Geographically distributed โ€” nodes are independent and spread across locations.

Residual risks (from official docs):

Risk Description
Threshold compromise Simultaneous breach of required node count โ†’ unauthorized signatures
Operational halt Enough nodes go offline โ†’ staking/unstaking/transfers pause until recovery

Upgradeable Contracts

Certain contracts โ€” including lending markets and liquid staking โ€” are upgradeable. BENQI documents this risk directly:

"Where an upgrade is implemented, the revised contract logic may alter how the protocol behaves, including how your positions, deposits, staking, or withdrawals are processed. Upgrades may introduce risks that did not exist in the prior version."

Developer implication: If you're building integrations on top of BENQI, contract upgradeability affects your integration design. Track governance proposals for upgrade signals and avoid hardcoding assumptions about specific contract behavior.


Continuous Risk Monitoring โ€” Chaos Labs

BENQI works with Chaos Labs for ongoing parameter risk assessment. This isn't a one-time configuration โ€” it's a live dashboard tracking:

  • Collateral factor adequacy as market conditions change
  • Utilization rate stress indicators
  • Liquidation threshold safety margins
  • Asset-specific risk signals

Static audit reports go stale. Real-time risk monitoring doesn't.


๐Ÿ—‚๏ธ Complete Risk Matrix

Risk Category Mitigation Residual Exposure
Smart contract bugs 9+ audits, formal verification, open-source Novel attack vectors, upgrade-introduced bugs
Oracle manipulation Dual oracle, Zellic + Chaos Labs audits Sophisticated coordinated price manipulation
Admin key compromise Multisig framework Coordinated signer compromise
MPC infrastructure Distributed nodes, threshold signing Simultaneous node compromise or outage
Liquidation gaps Deterministic Avalanche finality Extreme volatility / cascading liquidations
sAVAX price deviation Exchange rate model (not rebasing) Secondary market discount during stress events
Upgrade risk Governance process, audit before deployment New code introduces new attack surfaces

๐Ÿง‘โ€๐Ÿ’ป Developer Checklist

If you're integrating with BENQI, building on sAVAX, or deploying capital on the protocol:

  • [ ] Use protocol exchange rate for sAVAX, not secondary market price โ€” they can diverge during stress events
  • [ ] Isolated market pools are independent โ€” scoping your integration to one pool doesn't expose you to another pool's risk events
  • [ ] Monitor BENQI governance for upgrade proposals โ€” upgradeable contracts mean behavioral assumptions can change
  • [ ] Read Cyfrin's public audit at github.com/Cyfrin/2025-01-benqi for the most recent deep technical review of Ignite contracts
  • [ ] Check Chaos Labs dashboard for live collateral factor parameters before building integrations that depend on specific values
  • [ ] Account for 15-day unstaking cooldown in any integration involving sAVAX redemption flows

๐Ÿ” Audit Coverage Summary

BENQI Security Coverage Map
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Lending Markets     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  Halborn (2021) + ongoing retainer
Liquid Staking      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  Halborn (2021-22) + Certora FV (2022)
sAVAX integrations  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  Certora FV for Aave v3 (2022)
Ignite              โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  Dedaub (2023) + Cyfrin (2024)
Isolated Markets    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘  Moonwell heritage + dedicated 2024 audit
Oracles             โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  Zellic + Chaos Labs (2025)
Web app / API       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘  Halborn pentest (2022)

Enter fullscreen mode Exit fullscreen mode


Frequently Asked Questions

Has BENQI ever been exploited?
No major protocol exploit since launch in August 2021 โ€” across a period when dozens of DeFi protocols were compromised.

What's the difference between a traditional audit and Certora formal verification?
A traditional audit is an expert review across a defined scope. Formal verification mathematically proves that specified invariants hold across all possible contract states โ€” not just tested ones. Both are complementary: audits find broad vulnerabilities; formal verification provides mathematical certainty on critical properties.

Are audit reports publicly available?
Yes. docs.benqi.fi/resources/risks links every report. Cyfrin's BENQI engagement is also on GitHub at Cyfrin/2025-01-benqi.

Who is Chaos Labs and why do they matter for BENQI?
Chaos Labs is BENQI's risk management partner, providing continuous monitoring of lending market parameters. Their own dual oracle contract โ€” which determines how two independent price sources are reconciled โ€” was independently audited in May 2025.

What should I do if I find a vulnerability?
Check BENQI's current documentation for responsible disclosure procedures. The combination of open-source contracts and multiple audit firms creates meaningful incentives for the security research community to engage.