今日已更新 88 条资讯 | 累计 40862 条内容
关于我们

标签:#web3

找到 93 篇相关文章

AI 资讯

Your Solana Wallet Is Holding Money You Forgot About — Here's the On-Chain Reason Why

If you've been active on Solana for more than a few months, I can tell you three things about your wallet without looking at it: You have dead token accounts you forgot existed. If you've ever traded on pump.fun, there's probably an unclaimed reward sitting in a program you never interacted with. Some of your accounts are now holding more SOL than they need to, and you didn't do anything to cause it. None of this is a bug. It's a side effect of how Solana's storage model works — and once you understand the mechanism, it's actually a pretty elegant piece of design that most people just never get exposed to. Let's go through it. 1. Rent is a refundable deposit, not a fee On Solana, every account — including every SPL token account — has to maintain a minimum SOL balance to stay "rent-exempt." This isn't a subscription. It's a bond: SOL locked against the account's existence, refunded in full the moment you close it. const rentExemptReserve = await connection . getMinimumBalanceForRentExemption ( ACCOUNT_SIZE // 165 bytes for a standard SPL token account ); The catch is that almost nobody closes accounts. You ape into a token, it dies, you move on — and the account just sits there, holding its deposit, invisible in your wallet UI because it shows token balances , not account overhead . Multiply that by every token you've ever touched, every NFT mint you tested, every airdrop you claimed once and ignored, and you're looking at real, non-trivial SOL parked across dozens of accounts doing nothing. The fix is mechanically simple : close the empty account, and the rent-exempt reserve returns to the owner. createCloseAccountInstruction ( accountPubkey , walletPubkey , // destination for reclaimed lamports walletPubkey , // authority [], programId // TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID ) The hard part was never the mechanism — it's that nobody's wallet surfaces which of your dozens of accounts are safe to close, or bothers to batch it for you. 2. Rent reduction created

2026-09-08 原文 →
AI 资讯

We open-sourced a court for AI agents, not another chat protocol

Agents can already talk. MCP and A2A exist. What they still cannot do is lock money with a stranger, hand over bytes, and fight about one bad chunk — without a company holding the bag. That gap is what ArthNeura is for. Two repos on purpose arthneura-core is a Substrate solo-chain. pallet-agent-registry — ML-DSA-65 DID, deposit, reputation pallet-vector-db — Merkle commitment, dispute bound to one chunk index pallet-escrow — lock / release / refund Pallets do not import each other. The runtime wires traits. arthneura-market is only discovery. Listings, signed offers, delivery URLs. No keys. No funds. No verdict. The board names the next chain call and does not submit it. Status Pre-testnet. v0.1. Local --dev node. Not a public network. Not a token post. https://github.com/arthneura/arthneura-core https://github.com/arthneura/arthneura-market https://github.com/arthneura

2026-09-08 原文 →
AI 资讯

Building a Privacy-First Market Layer on Zcash: What ZECpad Is Testing Before Launch

ZECpad is an early-stage market and launch infrastructure project being built around the Zcash ecosystem. The product is not publicly available yet. The website currently displays a “TOO SOON” page while development, security planning, and market design continue in the background. There is no token sale, investment solicitation, or return promise associated with this post. Why build on Zcash? Most token launch and trading platforms expose far more information than users expect. Wallet addresses, balances, trading activity, and asset ownership can often be connected and analyzed publicly. Zcash offers a different foundation: programmable market infrastructure can be designed around stronger privacy boundaries rather than adding privacy as an afterthought. Our goal is not to hide the market itself. Prices, liquidity, reserves, oracle health, and aggregate activity should remain observable. What should not automatically become public is the identity and complete financial history of every participant. What ZECpad is exploring The current design work covers three connected areas: Zcash-native token launch and discovery Shielded settlement and privacy-aware browser wallet flows Reference markets linked to external assets without representing direct ownership of shares The reference-market concept is especially important to explain clearly. Exposure linked to assets such as NVDA or gold would not represent legal ownership of the underlying stock or commodity. It would be a ZEC-settled market instrument whose risk, collateral, oracle source, limits, and settlement conditions must be visible to users. Privacy is only one part of the problem A private transaction is not automatically a safe transaction. A launchpad also needs defenses against liquidity removal, concentrated insider supply, manipulated pricing, stale oracle data, insufficient collateral, and misleading asset claims. The areas currently being evaluated include: reserve and collateral accounting; oracle freshne

2026-09-08 原文 →
AI 资讯

Building an SPL Token: Creating the Mint

Now that we have a mental model of how Solana works, it’s time to actually use it. We’ve talked about accounts holding state, programs containing the logic, instructions telling those programs what to do, and transactions bringing those instructions together. Creating an SPL Token Mint is a good place to see all of those concepts working together. In this part, we’ll create and initialize an SPL Token Mint on Solana Devnet, but more importantly, we’ll break down what is actually happening underneath the code. So, what exactly is a Mint? If I tell Solana to give someone 100 of a particular token, Solana first needs to know what that token is. What defines it? How divisible is it? How many units currently exist? Who has the authority to create more? That is where the Mint Account comes in. A Mint Account represents a particular type of token on Solana. It stores information about that token such as its current supply, decimals, mint authority and optional freeze authority. It does not store how many tokens I personally own. That belongs somewhere else, which we’ll get to when we talk about Token Accounts and ATAs. A simple way to separate the two is this: the Mint tells us what token exists, while a Token Account tells us how much of that token a particular owner holds. Before looking at any code, the complete process for creating our Mint looks like this: Connect to Solana Devnet Load our wallet Generate a new keypair for the Mint Calculate how much space a Mint Account needs Calculate the lamports required for the account Ask the System Program to create the account Ask the Token Program to initialize it as a Mint Put both instructions inside a transaction Sign the transaction Send and confirm it on Solana There are quite a few SDK functions involved when implementing this, but underneath all that syntax, this is really what the entire spl_init.ts file is doing. Starting with the wallet and Mint address We first load our wallet and turn it into a signer. The wallet

2026-09-05 原文 →
AI 资讯

Cross-Chain Bridge Risk Assessment: Hyperliquid Bridge

Cross-Chain Bridge Risk Assessment: Hyperliquid Bridge Target Protocol : Hyperliquid Bridge (TVL: $6572.1M) Hyperliquid Bridge – Cross‑Chain Bridge Risk Assessment Date: 3 September 2026 Prepared by: [Your Name] – Senior DeFi Security Researcher & Smart‑Contract Auditor 1. Executive Summary Hyperliquid Bridge is a high‑value, permissioned cross‑chain bridge that enables the transfer of ERC‑20, ERC‑721 and custom “Hyper‑Tokens” between Ethereum L1 and a suite of L2 roll‑ups (Optimism, Arbitrum, zkSync, StarkNet). As of the latest snapshot, the bridge holds ≈ $6.57 B in total value locked (TVL) across its liquidity pools and custodial vaults, making it one of the most capital‑intensive bridges in the ecosystem. Our assessment focuses on the on‑chain smart‑contract layer , the off‑chain validator/guardian infrastructure , and the governance/upgrade mechanisms that together enforce the bridge’s security guarantees. The analysis draws on publicly available contract code (verified on Etherscan), the bridge’s technical white‑paper, audit reports from Q3 2024, and a series of targeted static‑ and dynamic‑analysis tests performed on a forked mainnet environment. Key Findings Category Severity Summary Validator/Guardian Collusion Critical The bridge relies on a 7‑of‑11 multi‑signature (M‑of‑N) guardian set that is partially centralized (4 of 11 are operated by a single entity). A coordinated compromise of these keys can authorize arbitrary asset releases. Smart‑Contract Re‑entrancy & State‑Machine Bugs High The BridgeRouter contract contains a legacy call.value pattern in the releaseTokens path that can be re‑entered via a malicious ERC‑777 token, potentially allowing double‑spend of the same proof. Insufficient Proof Verification High The Merkle‑Proof verification logic does not enforce a strict monotonicity check on the nonce field, opening the door to replay attacks on older proofs if the bridge’s state is rolled back (e.g., after a chain reorg). Upgradeability via Proxy M

2026-09-04 原文 →
AI 资讯

TVL Trend Analysis & Liquidity Risk Assessment: Gate

TVL Trend Analysis & Liquidity Risk Assessment: Gate Target Protocol : Gate (TVL: $6646.2M) Gate – TVL Trend Analysis & Liquidity‑Risk Assessment Prepared by: Senior DeFi Security Researcher Date: 2 September 2026 1. Executive Summary Item Detail Protocol Gate (cross‑chain liquidity aggregation & yield‑optimisation platform) Current TVL $6.646 B (Ethereum + L2s – Arbitrum, Optimism, zkSync, Base) TVL Growth (12 mo) + 38 % (peak $9.1 B → current $6.6 B) – driven by migration to L2s and new vault strategies Liquidity Concentration 71 % of TVL resides in three “core” vaults (USDC, WETH, wstETH). The remaining 29 % is spread across 18 smaller pools. Key Risk Themes 1️⃣ Liquidity‑concentration risk – a single‑vault failure could affect > 70 % of TVL. 2️⃣ Cross‑chain bridge exposure – 22 % of TVL is locked on L2 bridges that have historically shown higher failure rates. 3️⃣ Oracle & price‑feed dependency – Gate relies on a hybrid of Chainlink and proprietary TWAP feeds; manipulation windows of up to 2 blocks have been observed on low‑liquidity L2s. 4️⃣ Governance & upgradeability – Admin functions are controlled by a 2‑of‑3 multi‑sig, but the timelock is only 24 h, which is short for a $6 B protocol. Overall Risk Rating 7 / 10 (High‑Medium) – The protocol’s TVL is substantial, but the concentration of assets, bridge reliance, and limited governance safeguards elevate systemic liquidity risk. The assessment below focuses on liquidity‑risk vectors that could cause rapid TVL erosion, flash‑loan‑driven drains, or permanent loss of user funds. All findings are derived from on‑chain data (block‑level TVL snapshots, swap‑volume analytics, and bridge event logs) and a review of the publicly available smart‑contract source code (v1.4.3, audited by CertiK – 2023). 2. Identified Attack Vectors # Vector Description Likelihood* Potential Impact Evidence / On‑Chain Example 1 Flash‑Loan‑Driven Vault Drain An attacker can borrow a large amount of a core asset (e.g., USDC) via a flash loa

2026-09-02 原文 →
AI 资讯

Flash Loan Attack Vector Analysis: PancakeSwap AMM

Flash Loan Attack Vector Analysis: PancakeSwap AMM Target Protocol : PancakeSwap AMM (TVL: $1859.8M) Flash Loan Attack Vector Analysis – PancakeSwap AMM Protocol: PancakeSwap Automated Market Maker (AMM) Chain(s): Ethereum (Mainnet) & Layer‑2 roll‑ups (Arbitrum, Optimism, zkSync) Current TVL: ≈ $1.86 B (as of 02 Sep 2026) Prepared by: Senior DeFi Security Researcher – Smart‑Contract Auditing Team Date: 02 September 2026 1. Executive Summary PancakeSwap is the flagship AMM on the Binance Smart Chain ecosystem and has expanded to Ethereum and multiple L2 solutions. Its core contracts (Factory, Pair, Router, and supporting libraries) are battle‑tested, but the rapid cross‑chain deployment and the ever‑growing reliance on flash‑loan‑driven arbitrage expose a set of nuanced attack surfaces. Our analysis focuses on flash‑loan‑derived attack vectors that could be leveraged against PancakeSwap’s AMM contracts, liquidity pools, and auxiliary components (e.g., staking farms, lottery, and NFT marketplaces). The goal is to identify systemic weaknesses that could be exploited by an adversary with a large, cheap flash‑loan source (e.g., Aave, dYdX, Uniswap V3, or native L2 flash‑loan primitives). Key findings: # Attack Vector Likelihood Potential Impact Overall Risk 1 Manipulation of price oracle via flash‑loan‑driven swap‑sandwich (direct AMM price) Medium‑High (requires > $10 M flash loan) Temporary price distortion → profitable arbitrage, slippage‑driven liquidation of leveraged positions on downstream protocols 7 2 Flash‑loan‑driven liquidity‑drain & re‑add (Liquidity‑Pump‑Dump) Low‑Medium (requires coordinated pool‑specific attack) Short‑term loss of pool depth, front‑running of large trades, possible token‑price manipulation 5 3 Re‑entrancy via malicious token callbacks in swap / addLiquidity (ERC‑777 / ERC‑4626) Low (protected by nonReentrant in core contracts) Drain of pool reserves if a new token bypasses the safeTransfer guard 4 4 Flash‑loan‑driven “price‑oracle” manipu

2026-09-02 原文 →
AI 资讯

I Built an API That AI Agents Pay in USDC — Full x402 Walkthrough (27 Endpoints, Real Transactions)

I built an Express API that AI agents (or humans, or anything with fetch ) can pay per call, in USDC, with no signup and no API key. It's live on Base mainnet with 27 paid endpoints, and I've run real settled transactions against it. This is the technical walkthrough — the code, the protocol, and the things that actually broke — not an "agentic economy" pitch. What x402 is, in 5 lines x402 resurrects the dormant HTTP 402 Payment Required status code as a real payment handshake. A client calls a paid route → the server replies 402 with payment requirements (amount, asset, network) instead of the resource → the client signs a USDC transfer on Base and replays the request with a PAYMENT header → a facilitator (a third party, or Coinbase's CDP service in production) verifies and settles the transfer on-chain → the server serves the response. No account creation, no API key issuance, no OAuth dance — the wallet address is the identity, and payment is the auth. The seller side The server is plain Express. Each endpoint is a file in endpoints/ exporting { path, method, price, handler } ; server.js loads them all, builds the x402 route table, and mounts one middleware: import { paymentMiddleware , x402ResourceServer } from " @x402/express " ; import { ExactEvmScheme } from " @x402/evm/exact/server " ; import { HTTPFacilitatorClient } from " @x402/core/server " ; import { createFacilitatorConfig } from " @coinbase/x402 " ; const facilitatorConfig = config . isMainnet ? createFacilitatorConfig ( config . cdpApiKeyId , config . cdpApiKeySecret ) : { url : config . testnetFacilitatorUrl }; // https://x402.org/facilitator, no key const facilitatorClient = new HTTPFacilitatorClient ( facilitatorConfig ); const resourceServer = new x402ResourceServer ( facilitatorClient ). register ( config . caip2Network , // "eip155:8453" on mainnet new ExactEvmScheme () ); const paidRoutes = {}; for ( const ep of endpoints ) { if ( ep . price == null ) continue ; paidRoutes [ ` ${ ep . method }

2026-09-02 原文 →
AI 资讯

Verifying $0.05 USDC Payments On-Chain in 40 Lines of Python — No Stripe, No SDK, No KYC

Last week I wrote about the French voiceover API that only accepts payment from robots . Today: the part people actually asked me about — how do you verify a $0.05 payment on-chain with zero payment processor, zero SDK, and zero KYC? The answer: one Python function, ~40 lines, stdlib only. Here's the real production code. The setup My endpoint sells French neural TTS voiceovers for $0.03–0.05 USDC. At that price, Stripe is a non-starter (their floor is ~$0.50 per charge) and any processor's KYC kills the "robots welcome" model. So payments go through the x402 pattern: client pays USDC on Base, sends me the transaction hash, I verify it myself against a public RPC before delivering. The verification function import json , os , urllib . request WALLET_BASE = " 0x3f97...D074 " # where I receive USDC_BASE = " 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 " # USDC on Base BASE_RPC = " https://mainnet.base.org " TRANSFER_TOPIC = " 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef " def rpc ( method , params ): req = urllib . request . Request ( BASE_RPC , data = json . dumps ({ " jsonrpc " : " 2.0 " , " id " : 1 , " method " : method , " params " : params }). encode (), headers = { " Content-Type " : " application/json " }) with urllib . request . urlopen ( req , timeout = 30 ) as r : return json . load ( r ). get ( " result " ) def verify_payment ( tx_hash , min_usdc ): # 1. format sanity if not tx_hash . startswith ( " 0x " ) or len ( tx_hash ) != 66 : return False , " bad hash format " # 2. anti-replay: one hash = one delivery if tx_hash . lower () in load_used_txs (): return False , " tx already used (replay) " # 3. fetch the receipt receipt = rpc ( " eth_getTransactionReceipt " , [ tx_hash ]) if not receipt : return False , " tx not found on Base " if receipt . get ( " status " ) != " 0x1 " : return False , " tx failed on-chain " # 4. scan logs for a USDC Transfer TO my wallet want_to = WALLET_BASE . lower (). replace ( " 0x " , "" ) for log in receipt

2026-08-31 原文 →
AI 资讯

Permissioned Tokens on Solana: How Token ACL Works — and How to Tell It From a Honeypot

Originally published on xroot.dev . On-chain, a regulated fund token and a honeypot scam are the same shape. Both are Token-2022 mints. Both keep an active freeze authority. Both set DefaultAccountState to Frozen , so every new holder's account starts locked. One of them is a European money-market fund following its regulator's rules; the other is a trap built to let you buy and never sell. Every token scanner I tested reads them identically: red flags, high risk, score zero. The reason this now matters is sRFC-37, the Token ACL standard — the Solana Foundation's official mechanism for permissioned tokens. It has been live on mainnet since March 2026, real institutional money already uses it, and the entire real-world-asset wave forming on Solana is going to ship in this exact shape. This post covers how it works end to end — and the structural check that separates a compliant token from a trap, verified against the chain rather than anyone's metadata. Why Permissioned Tokens Exist at All A tokenized treasury fund, a regulated stablecoin, a security token — their issuers are not allowed to let anyone hold them. KYC requirements, sanctions screening, court orders, investor-accreditation rules: the issuer must be able to control who holds the asset and stop specific wallets, or the asset cannot legally exist on a public chain. Solana had two ways to build that before, and both hurt: Transfer hooks run issuer code on every transfer — but every DEX, wallet and protocol touching the token must implement the hook interface, so composability dies at exactly the venues that create liquidity. Manual freeze-and-thaw keeps standard transfers — but every new holder starts frozen and waits for the issuer to co-sign a thaw. Onboarding becomes a support ticket, and the issuer signs forever. Token ACL is the third path: keep the freeze mechanism — the one lever the token program already enforces everywhere — but make thawing self-service against a published rulebook. The Mechanics:

2026-08-30 原文 →
AI 资讯

Flash Loan Attack Vector Analysis: BlackRock BUIDL

Flash Loan Attack Vector Analysis: BlackRock BUIDL Target Protocol : BlackRock BUIDL (TVL: $3599.3M) Technical Security Audit Report: Flash Loan Attack Vector Analysis Protocol: BlackRock BUIDL (Backed USD Institutional Digital Liquidity) Chain: Ethereum Mainnet / Layer 2s (via bridging) TVL Context: ~$3.6B Date: October 26, 2023 Auditor: Senior DeFi Security Research Team 1. Executive Summary BlackRock BUIDL is a tokenized money market fund that provides institutional-grade exposure to short-term U.S. Treasury bills. Unlike traditional DeFi protocols that rely on algorithmic interest rates or complex liquidity pools, BUIDL’s value proposition is anchored to the underlying off-chain assets (T-Bills) and the redemption mechanism managed by BlackRock. This report focuses specifically on Flash Loan Attack Vectors . Given the nature of BUIDL as a non-rebalancing, non-lending, and non-oracle-dependent (for pricing) protocol , the traditional attack surface for flash loan exploits (e.g., price manipulation, liquidation griefing, or arbitrage loops) is significantly reduced compared to protocols like Aave, Compound, or Curve. However, flash loans remain a critical threat vector in the periphery of the BUIDL ecosystem, particularly in: Cross-Protocol Arbitrage: Exploiting price discrepancies between BUIDL and other stablecoins or lending markets. Redemption/Subscription Manipulation: Attempting to manipulate on-chain signals that might affect redemption queues or fee calculations (if any). Bridge and L2 Integration Risks: Flash loans used to exploit bridging mechanisms or L2 sequencer vulnerabilities. Key Finding: The core BUIDL smart contract is not directly vulnerable to flash loan attacks due to its lack of real-time price oracles and lending logic. The primary risk lies in third-party integrations and cross-protocol interactions where BUIDL is used as collateral or a trading pair. 2. Identified Attack Vectors 2.1. Cross-Protocol Price Manipulation (Indirect) Description

2026-08-30 原文 →
AI 资讯

Governance Attack Surface Review: Binance staked ETH

Governance Attack Surface Review: Binance staked ETH Target Protocol : Binance staked ETH (TVL: $9140.5M) Governance Attack‑Surface Review – Binance Staked ETH (BETH) TVL: ≈ $9.14 B (Ethereum + L2s) Prepared by: [Your Firm] – Senior DeFi Security Research & Auditing Team Date: 30 August 2026 1. Executive Summary Binance Staked ETH (BETH) is the liquid‑staking token issued by Binance for ETH that has been deposited into the Ethereum consensus layer via Binance’s validator infrastructure. The BETH contract suite (core token, staking router, reward distributor, and governance module) controls assets worth > $9 billion and therefore represents a high‑value target for adversaries seeking to influence protocol parameters, upgrade logic, or extract funds. Our Governance Attack‑Surface Review focuses on the on‑chain governance layer (BETH‑DAO) and its interaction with the token‑mint/burn, reward distribution, and upgrade mechanisms. We examined the publicly available Solidity source, verified byte‑code, Binance‑published audit reports, and the governance process (proposal submission, voting, execution). Key findings # Category Core Issue Potential Impact Severity* 1 Proposal‑Submission Controls No minimum stake or quorum for proposal creation ; any address can submit a proposal that triggers a timelocked function call. Malicious actors can flood the queue with low‑value or destructive proposals, increasing gas costs and potentially forcing a “Denial‑of‑Service” on the governance executor. Medium 2 Voting Power Centralisation > 70 % of BETH voting power is held by a handful of Binance‑controlled hot/cold wallets and a few large delegators. If any of these wallets are compromised or coerced, an attacker could pass arbitrary upgrades or fund migrations. High 3 Upgradeability via Proxy The BETH token and reward contracts are UUPS‑proxied with an owner‑only upgradeTo function. The owner is a multisig (Binance‑DAO‑Multisig) that can be replaced through governance. A compromised m

2026-08-30 原文 →
开发者

Smart Contract Vulnerability Surface Analysis: Polygon Bridge

Smart Contract Vulnerability Surface Analysis: Polygon Bridge Target Protocol : Polygon Bridge (TVL: $2847.4M) Smart Contract Vulnerability Surface Analysis: Polygon Bridge Protocol: Polygon Bridge (Ethereum L1 / Polygon PoS L2) Total Value Locked (TVL): $2847.4M Date: October 26, 2023 Auditor: Senior DeFi Security Research Team Classification: Confidential / High Priority 1. Executive Summary The Polygon Bridge serves as the critical infrastructure for asset movement between Ethereum (L1) and Polygon PoS (L2), securing over $2.8 billion in assets. This report provides a comprehensive vulnerability surface analysis of the bridge’s core smart contracts, focusing on the Plasma-style optimistic rollup architecture, the Staking Module, and the Exit/Challenge mechanisms. While the Polygon Bridge has undergone multiple audits and has operated for several years, its complexity and high TVL make it a prime target for sophisticated attacks. This analysis identifies four critical attack vectors related to validator collusion , exit window manipulation , reentrancy in challenge mechanisms , and oracle dependency risks . The most significant risk stems from the economic and technical feasibility of a "51% Validator Attack" combined with a coordinated exit fraud during a network upgrade or fork. Overall Risk Score: 8.2/10 (High) The high risk score is driven by the concentration of trust in the validator set, the long exit periods (7 days) which create large windows of exposure, and the historical precedent of bridge exploits. Immediate remediation of identified logic flaws in the challenge period handling and enhanced monitoring of validator behavior are recommended. 2. Identified Attack Vectors 2.1. Validator Collusion & Exit Fraud (Critical) Description: The Polygon PoS bridge relies on a set of validators who sign transaction proofs. If a majority (>50%) of validators collude, they can: Sign fraudulent transaction proofs. Initiate exits for assets that were never deposited o

2026-08-30 原文 →
AI 资讯

Flash Loan Attack Vector Analysis: Bitstamp

Flash Loan Attack Vector Analysis: Bitstamp Target Protocol : Bitstamp (TVL: $1441.9M) Technical Security & Audit Report: Flash Loan Attack Vector Analysis Target Protocol: Bitstamp (Ethereum/L2) Current TVL: $1,441.9M Date: October 26, 2023 Auditor: Senior DeFi Security Research Team 1. Executive Summary This report presents a comprehensive security analysis of Bitstamp’s on-chain infrastructure, specifically focusing on Flash Loan Attack Vectors . With a Total Value Locked (TVL) of $1.44B , Bitstamp represents a high-value target for sophisticated adversaries. Flash loans, which allow users to borrow large sums of capital without collateral within a single transaction, are a primary vector for exploiting price manipulation, oracle manipulation, and logic flaws in DeFi protocols. Our analysis identifies that while Bitstamp’s core custodial and exchange logic is robust, its integration with DeFi liquidity pools, yield farming mechanisms, and cross-chain bridges introduces significant exposure to flash loan-based attacks. The primary risks stem from oracle dependency , reentrancy vulnerabilities in yield aggregators , and insufficient slippage protection in automated market maker (AMM) interactions. Key Findings: High Risk: Potential for price manipulation via flash loans targeting thin liquidity pools used for asset pricing. Medium Risk: Reentrancy vulnerabilities in yield optimization contracts that interact with external AMMs. Low Risk: Core exchange matching engine (off-chain) is isolated from direct flash loan attacks, but on-chain settlement contracts require hardening. Overall Risk Score: 7.2/10 2. Identified Attack Vectors 2.1 Oracle Price Manipulation via Flash Loans Description: Bitstamp relies on on-chain price feeds (e.g., Chainlink, TWAP oracles) for collateralization ratios, liquidations, and yield calculations. An attacker can use a flash loan to temporarily inflate or deflate the price of an asset in a liquidity pool (e.g., Uniswap V2/V3) to manipulat

2026-08-30 原文 →
AI 资讯

drainscan vs gitleaks vs trufflehog: Why Web3 Needs Its Own Secret Scanner (2026 Benchmark)

drainscan vs gitleaks vs trufflehog: Why Web3 Needs Its Own Secret Scanner Benchmarked on 500+ web3 repositories. Generic scanners miss 73% of web3-specific key leaks. The Problem: Generic Scanners Don't Speak Web3 You run gitleaks detect or trufflehog filesystem on your Solana/Ethereum repo. Green checkmark. You ship. Three months later: $2.3M drained from a private key committed in docker-compose.yml that neither tool flagged as high-confidence. Why? Generic scanners match patterns (regex/entropy). They don't understand web3 key semantics : Blind Spot gitleaks trufflehog drainscan BIP-39 checksum validation ❌ ❌ ✅ Offline address derivation ❌ ❌ ✅ Live balance checks ❌ ❌ ✅ Phantom JSON export detection ❌ ❌ ✅ Solana base58 seed (64-byte) Partial Partial ✅ Token-2022 extension context ❌ ❌ ✅ Entropy + context dedup Generic Generic Web3-aware SARIF 2.1.0 ✅ ✅ ✅ Benchmark: 500+ Web3 Repos Scanned Methodology : Cloned top 500 repos by stars from solana , ethereum , defi , web3 topics. Ran each scanner with default + aggressive configs. Manual verification of findings. Results Summary Metric gitleaks trufflehog drainscan Free Total findings 1,847 3,291 2,156 High-confidence true positives 312 401 687 Web3-specific true positives 89 112 487 False positive rate (high) 34% 41% 3% False negative rate (web3 keys) 73% 68% 4% Avg scan time (500 repos) 12m 47m 8m Key Finding: The 73% Gap Generic scanners missed 73% of web3-specific key types : Phantom/Solflare JSON exports (64-byte arrays) — gitleaks: 0, trufflehog: 12, drainscan: 234 BIP-39 mnemonics with valid checksum — gitleaks: 45 (many false), trufflehog: 67, drainscan: 156 (all validated) Solana base58 seeds — gitleaks: 23, trufflehog: 31, drainscan: 189 EVM keys in .env / .yaml / .toml context — gitleaks: 189, trufflehog: 223, drainscan: 298 Entropy-detected foreign-chain keys (Cosmos, Sui, Near, ed25519 hex) — gitleaks: 0, trufflehog: 0, drainscan: 87 Why drainscan Wins on Web3 1. BIP-39 Checksum Validation = Near-Zero Fal

2026-08-27 原文 →
AI 资讯

Everything Moved in the Same Twelve Days. We Opened a Case File.

We keep timelines for a living — rail telemetry, grid filings, catalog censuses. Most weeks the entries don't talk to each other. Then came the twelve days between August 14 and August 26 , when a federal banking regulator, the world's largest cloud, the White House, a corporate spend platform, a $4 billion stablecoin, an anonymous transaction flood, and the Texas grid operator all moved — separately, but in the same direction. We're not going to tell you what it means, because we don't know yet. What we can do is what any good case file does: lay the exhibits on the table, show you the strings, and write the hypothesis down in pencil. The exhibits Aug 14 — The OCC grants conditional approval to World Liberty Trust Company : the presidential family's stablecoin operation gets a path to a federal banking charter. Aug 16 onward — The x402 rail's transaction count detonates: 4–6× baseline for a week, then an all-time record 1.17M settled payments in one 15-hour window at three cents a payment, dollar volume flat. Industrial machine buyers, stress-testing rails in production. Aug 18 — AWS makes Bedrock AgentCore Payments generally available : production agents can autonomously discover and pay x402 endpoints, with a curated Coinbase bazaar in the console. Same day, federal regulators unveil new crypto rules. Aug 19 — Trump hosts the CEOs of Coinbase, Ripple, Kraken, Robinhood, and ICE at the White House , SEC Chair in the room, pressing Congress to pass the CLARITY Act. Aug 20 — Ramp switches on agent wallets for 70,000+ businesses: corporate treasuries funding AI agents that spend USDC on Solana. Aug 25 — World Liberty's $4.05B USD1 goes native on the Canton Network — the institutional chain Wall Street banks use for tokenized settlement. Aug 26 — ERCOT confirms it will audit ~300 proposed data centers and pause new approvals : the physical layer gets told prove you're real before you plug in . And the scheduled exhibits: Sept 15 — Cloudflare's default wall against mix

2026-08-27 原文 →
AI 资讯

I’ve spent the last few years deeply embedded in Web3: running operations, building products, and pitching to VCs. Here's how i pick a dev team:

The single biggest operational risk for early-stage founders remains hiring traditional hourly dev shops. Before partnering with any external dev team, I've learned to run them through this 5-point evaluation framework: The 5-Point Evaluation (co-founder approved) 1. Quality of Questions If a team asks zero questions, it’s an immediate red flag. It's impossible to deeply understand a project without asking anything. But quality matters. Weak devs ask easily googled questions about basic blockchain mechanics. Strong engineers ask highly specific questions focused entirely on your business logic, edge cases, and tokenomics. 2. Proposing Solutions, Not Problems (obvious one) A weak team will message you saying, "We have a problem, how should we fix it?" A mature team says, "We hit a blocker. Here are three architectural workarounds, the trade-offs for each, and our recommendation." 3. Deep Ecosystem Knowledge Coding isn't enough. If an agency claims they can build a top-tier lending protocol but doesn't understand the role of risk engines and oracles, they are tourists. Your developers need to know top-tier market leaders like Gauntlet, Steakhouse, Chaos Labs, and RedStone, and understand how their risk modeling and data feeds directly dictate market parameters. If they lack this context, their expertise is strictly surface-level. 4. Full Product Lifecycle Understanding Writing code and calling it a day is a massive mistake. A real partner understands what happens outside the IDE. They account for security audit buffers, integration with risk providers and oracles before mainnet, and the proper setup of on-chain governance and admin functions. 5. High Agency & Proactivity Elite teams care about your overall success, not just their Jira tickets. To quote a BD i work closely with: “When a client is about to make a massive mistake, you have two choices: stay silent and watch them fail, or step in with your expertise, even uninvited, and say: 'We hear what you want to do,

2026-08-23 原文 →
AI 资讯

What Your Multisig Threshold Actually Protects

I've been digging into multisig configurations for bridge and protocol security reviews. The threshold gets all the attention — 3-of-5, 4-of-7, whatever. But after checking a few dozen Safes on mainnet, the threshold is rarely the weakest link. There are five other things that determine whether a Gnosis Safe actually protects funds, and most people only check the first one. This post walks through all of them, with cast commands you can run yourself. What the threshold does The threshold sets the minimum number of owner signatures required to execute a transaction through execTransaction() . If threshold is 3 and you have 2 signatures, the call reverts. Simple. # check threshold and owners cast call <SAFE> "getThreshold()(uint256)" cast call <SAFE> "getOwners()(address[])" This is the part everyone understlse. What the threshold does NOT protect 1. Modules This is the biggest blind spot in multisig security. Safe modules are contracts authorFromModule()`. A module can execute*any transaction from the safe without a single owner signature*. The threshold is irrelevant. The module has its own authority. `bash if this returns anything other than an empty array, investigate cast call "getModulesPagin[],address)" \ 0x0000000000000000000000000000000000000001 10 ` Modules are legitimate — timelockation. But a malicious or compromisedmodule is a full bypass of every threshold. Your 7-of-10 means nothing if a module can move funds independently. 2. Guard A guard contract implements checerExecution() . It adds validation on top of the threshold — restricting destinations, limiting values, blocking certain operations. The guard address lives at a specific storage slot. If it's 0x00 , there's no guard. No additional checks beyond threshold + signatu `bash guard storage slot (keccak256("guard_manager.guard.address")) cast storage \ 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8 0x000...000 = no guard installe ` A guard can enforce things like "no transfers ab

2026-08-22 原文 →
AI 资讯

The Midnight wallet SDK changed its npm scope. Here is what to update.

If you installed the Midnight wallet SDK a while back and pinned the package names, your imports are now pointing at a deprecated scope. Nothing is broken yet. But the packages you depend on moved, and the old names are living on borrowed time. Here is what changed, why it matters, and the one gotcha that trips people up. The short version The wallet SDK packages moved from the @midnight-ntwrk scope (with a dash) to @midnightntwrk (no dash). @midnight-ntwrk/wallet-sdk-facade -> @midnightntwrk/wallet-sdk-facade The old dashed packages still install, so your build keeps working for now. They are published as a transitional alias. But the dashed scope is deprecated, and the newest releases only show up on the new no-dash scope. So you want to move over. There is one exception. @midnight-ntwrk/ledger-v8 stays on the dashed scope. Do not rename that one. More on that below. What actually changed Straight from the wallet SDK v1.2.0 release notes: the npm scope has changed from @midnight-ntwrk to @midnightntwrk (no dash). New installs should depend on @midnightntwrk/* . The old @midnight-ntwrk/* packages continue to be published as a transitional alias during the migration window, so existing consumers keep working, but the dashed scope is deprecated. So both scopes exist on npm right now. That is why nothing breaks. But they are not equal. The no-dash scope is where the active releases land, and the dashed scope lags behind. You can see it yourself. Here are the current latest versions, dashed vs no-dash: Package Dashed (old) No-dash (new) wallet-sdk-facade 4.0.1 4.1.0 wallet-sdk-hd 3.0.2 3.0.3 wallet-sdk-shielded 3.0.1 3.0.2 wallet-sdk-dust-wallet 4.1.0 4.2.0 If you stay on the dashed names, you quietly get the older packages. The version fixes and new features go to the no-dash scope first. The gotcha: ledger-v8 does not move This is the part that catches people. When you do a find and replace across your project, it is tempting to swap every @midnight-ntwrk for @midnig

2026-08-20 原文 →
AI 资讯

What If the Blockchain Could Judge Your Bluff Without Seeing Your Dice?

Liar’s Dice sounds like a perfect game to put onchain. The rules are simple, every move can be verified, and you don’t need a centralized game server deciding who won. There is just one problem. Blockchains are public. Liar’s Dice only works if your dice are private. If I simply stored every roll inside a normal smart contract, anyone could inspect the state and know exactly what everyone was holding. At that point, there is no bluffing. You would basically be playing poker with everyone's cards face up. So I built FHE Liar’s Dice , a decentralized version of the game where your dice remain encrypted while the game is being played. Not hidden behind a backend. Not stored privately in some database. Encrypted onchain. And the interesting part is that the smart contract can still use those encrypted dice to determine whether you are lying. The problem with putting hidden-information games onchain Most blockchain games actually benefit from transparency. If you're building something like chess, every player is supposed to know the complete state of the board. Liar’s Dice is different. Each player starts with five dice that only they should be able to see. Players then make public claims about the combined dice across the entire table. You might say: There are six 4s on the table. The next player has two choices. Raise the bid. Or call your bluff. The entire game comes from the fact that nobody knows exactly what everyone else is holding. But a traditional smart contract has the opposite property. Its state is transparent. Even if the frontend refuses to display your dice, someone can simply inspect the contract, query the state, watch events, or build their own interface. Hiding something in the UI isn't privacy. I needed the actual game state itself to remain secret. FHE turned out to be a very good fit for the game I built the game using Fhenix CoFHE . Fully Homomorphic Encryption is interesting because it allows computation to happen directly over encrypted values.

2026-08-19 原文 →