Referenda

Open and closed proposals

Polkadot
#1632Timed outSmall SpenderResearch & Security

Beyond Static Analysis: Building Adaptive Security Intelligence for Polkadot Ecosystem

Requested
9.9k DOT
Ended
10 Jul 2025
Comments
8
Beneficiary16UX3m…pwLao

AI Digest

Category Research & Security
  • amIrug.xyz, led by Dr. Mohammadreza Ashouri, would build adaptive security intelligence for Polkadot contracts, runtimes, governance, and cross-chain activity.
  • The request is 9,900 DOT for security-engine development, advanced threat intelligence, web access, API integration, and educational resources.
  • Weeks 1–3 would deliver ink! contract analysis, runtime monitoring, SS58 identity integration, and HRMP message analysis for 4,500 DOT.
  • Weeks 4–7 would add OpenGov and cross-chain risk assessment, social-signal processing, governance monitoring, a web interface, APIs, and guides.

Description

Written by the proposer, as published on Subsquare

Beyond Static Analysis: Building Adaptive Security Intelligence for Polkadot Ecosystem

Date: June 26, 2025 Proponent: Dr. Mohammadreza Ashouri Requested Amount: 9,900 DOT (equivalent to ~$32,670 at $3.3/DOT) Project Category: Security Infrastructure Timeline: 7 weeks


The Growing Threat: Why Blockchain Security Needs Intelligence?

The blockchain space is constantly under attack. In 2024 alone, cryptocurrency investors lost over $12.4 billion to scams and exploits, with 117,000+ fraudulent tokens created—a 41% increase from the previous year. These aren't simple copy-paste scams anymore. Modern attackers use sophisticated techniques: hidden smart contract functions, social engineering campaigns, fake development teams, and complex cross-chain manipulations that traditional security tools simply cannot detect.

The problem goes far beyond analyzing lines of code. A perfectly written smart contract can still be a scam if the team behind it plans to disappear with funds. Social signals, team behavior patterns, tokenomics design, and community manipulation tactics often reveal malicious intent before any code vulnerability does. This is why rule-based security scanners that only examine code miss the majority of real-world threats—they're fighting yesterday's battles with yesterday's tools.

amIrug.xyz presents an AI-based adoptive protecting solution. Instead of relying on static rules written once and never updated, our platform learns continuously from each new scam, building intelligence that adapts to evolving threat landscapes. We've been creating a system that any crypto user—from casual investors to experienced developers—can use with a simple web interface. No configuration, no technical expertise required. Just paste a contract address and get instant, intelligent risk assessment that considers not just code patterns, but team reputation, social signals, and behavioral anomalies.

Our success speaks volumes: 12,547+ contracts analyzed so far, $5.7M+ in potential losses prevented, 2,891+ scams identified with 98.5% accuracy. We're not just protecting individual investors—we're building cleaner, more trustworthy ecosystem that legitimates projects can thrive in.


Why Polkadot Needs This Now ?

The Security Gap in Polkadot's Ecosystem

While other major blockchains have evolved their security infrastructure, Polkadot faces a critical gap. The ecosystem currently relies on a handful of developer-focused tools that miss the bigger picture:

  • No intelligent threat detection for ink! contracts and runtime vulnerabilities
  • No cross-chain security analysis for XCMP/HRMP interactions
  • No social signal analysis for team and project legitimacy assessment
  • No accessible tools for non-technical users to assess project risks
  • No real-time monitoring for governance attacks and treasury manipulation

This gap becomes more dangerous as Polkadot's DeFi ecosystem grows and attracts both legitimate projects and malicious actors.

Existing Tools vs. Modern Threats

Current Polkadot security tools serve specific niches but leave massive blind spots:

What's Missing: Intelligent, adaptive security that combines code analysis with behavioral patterns, social signals, and cross-chain risk assessment—accessible to everyone in the ecosystem.


amIrug.xyz: Intelligent Security for Polkadot

How We're Different?

Learning Intelligence: Our AI models don't just follow pre-written rules. They learn from every new scam pattern, team behavior, and attack vector, becoming smarter over time. When scammers evolve their tactics, our platform evolves faster.

Beyond Code Analysis: While others focus solely on smart contract code, we analyze the complete threat space—team reputation, social media signals, token distribution patterns, governance proposal behaviors, and cross-chain interactions.

Universal Accessibility: Anyone can use our platform. Paste a contract address, get instant results. No CLI commands, no IDE setup, no technical configuration. Security intelligence should be accessible to everyone, not just developers.

Real-Time Protection: We monitor contracts and governance activities continuously, detecting threats as they emerge rather than waiting for post-mortem analysis.

What We Will Build for Polkadot?

Phase 1: Core Polkadot Security Engine (Weeks 1-3)

Budget: 4,500 DOT (~$14,850)

  • ink! v5+ Contract Analysis: Specialized scanning for reentrancy, storage collisions, weight abuse, and access control vulnerabilities within pallet-contracts environment
  • Runtime Security Monitoring: Detection of malicious patterns in pallet-treasury, pallet-staking, and pallet-democracy configurations
  • SS58 Identity Integration: Native address validation and cross-chain identity verification
  • HRMP Message Analysis: Security assessment of cross-parachain communications

Phase 2: Advanced Threat Intelligence (Weeks 4-5)

Budget: 3,300 DOT (~$10,890)

  • OpenGov Security Intelligence: AI-powered analysis of referendum proposals for hidden risks and manipulation attempts
  • Cross-Chain Risk Assessment: Detection of dangerous XCM configurations and bridge vulnerabilities
  • Social Signal Processing: Team reputation analysis using on-chain behavior patterns and governance participation
  • Governance Attack Detection: Real-time monitoring for treasury manipulation and voting anomalies

Phase 3: Integration & Community Access (Weeks 6-7)

Budget: 2,100 DOT (~$6,930)

  • Web Interface Deployment: Simple, accessible scanning platform requiring no technical expertise
  • Polkadot.js API Integration: Seamless connectivity for wallet-based security checks
  • Basic Developer API: RESTful endpoints for parachain teams to integrate security scanning
  • Educational Resources: Security guides specifically for Polkadot's unique architecture

Total Budget: 9,900 DOT (~$32,670)


Competitive Advantage: Intelligence vs. Rules

amIrug.xyz vs. Existing Polkadot Tools

CapabilityamIrug.xyzScoutink! AnalyzerPhishing Lists
AI-Powered Detection✅ Learns from new threats❌ Static rules only❌ Static checks❌ Manual curation
Social Signal Analysis✅ Team & community assessment❌ Code-only focus❌ Code-only focus❌ Limited scope
Cross-Chain Security✅ XCMP/HRMP analysis❌ Single-chain focus❌ Single-chain focus❌ Address-level only
Real-Time Monitoring✅ Continuous threat detection❌ Development-time only❌ Development-time only❌ Reactive updates
User Accessibility✅ Web interface for everyone❌ CLI/developer-only❌ IDE/developer-only❌ Background protection
Governance Security✅ OpenGov threat analysis❌ Limited scope❌ Not applicable❌ Not applicable
Runtime Analysis✅ Planned pallet security✅ Strong capability❌ Not applicable❌ Not applicable

Key Differentiator: amIrug.xyz provides the intelligence layer that existing tools lack—combining code analysis with behavioral patterns, social signals, and cross-ecosystem threat intelligence.


Team Background

Dr. Mohammadreza Ashouri (PhD) - Lead Developer & Security Researcher

  • Ph.D. in Software Security from University of Potsdam, Germany (2020)

  • Proven Blockchain Security Expertise: Creator of amIrug.xyz 

  • Polkadot Ecosystem Experience:

    • Active researcher with Polkadot Academy on Rust development and blockchain security
    • Speaker on Polkadot security topics (Asia sub0 2024 Bangkok): "Blockchain Security, Rust, and Polkadot" technical presentation: https://www.youtube.com/watch?v=8w9s2Qnj9hI
    • Deep understanding of Substrate framework and parachain architecture
    • 2024 Polkadot Blockchain Academy Grant recipient for AI-based blockchain innovations
  • Industry Experience:

    • SAP (2021-2023): Security audits for enterprise Java applications and JVM components
    • Oracle Labs (2019): Advanced research internship on dynamic taint tracking for JVM security
  • Technical Speaking & Research:

Arjun - AI Engineer & Machine Learning Specialist

  • AI/ML Expertise: 5+ years developing machine learning models for security applications
  • Blockchain AI Integration: Specialized in neural networks for transaction pattern analysis and anomaly detection
  • Technical Skills: TensorFlow, PyTorch, advanced pattern recognition algorithms, and real-time data processing
  • amIrug.xyz Contribution: Lead developer of the AI risk scoring algorithms achieving 92% accuracy in rugpull prediction

Zer0_Cipher - Security Engineer & Fullstack Developer

  • Security Background: Active member of Germany's hacking conference circuit with deep knowledge of vulnerability research
  • Academic Credentials: Master's in Software Engineering from University of Potsdam (2024)
  • Technical Expertise: Advanced penetration testing, exploit development, and security architecture design
  • amIrug.xyz Role: Architect of the security scanning engine and vulnerability detection algorithms

Current Platform Achievement:

  • 12,547+ contracts scanned with 98.5% detection accuracy
  • $5.7M+ in funds protected from potential scams
  • 2,891+ scams and rugpulls identified across chains
  • Straightforward, user-friendly interface requiring no technical expertise

Technical Approach

Intelligent Security Architecture

Machine Learning Core: Our platform extends existing AI models (trained on 8,000+ token datasets with 92% rugpull prediction accuracy) to Polkadot's unique architecture. Unlike static rule-based tools, our system learns from new attack patterns and adapts continuously.

Multi-Layer Analysis:

  • Code Layer: ink! contract vulnerability detection (reentrancy, storage issues, weight abuse)
  • Runtime Layer: Pallet security analysis for governance, treasury, and staking functions
  • Social Layer: Team reputation assessment using on-chain behavior and governance participation
  • Cross-Chain Layer: HRMP/XCMP security validation and bridge risk assessment

Real-Time Intelligence: Continuous monitoring using Substrate RPC endpoints and event streams provides immediate threat detection upon contract deployment or governance proposal submission.

Analysis Coverage:

  • ink! Contracts: Reentrancy, storage collision, access control gaps, arithmetic overflows
  • Runtime Pallets: Governance attacks, treasury manipulation, staking vulnerabilities
  • Cross-Chain Security: HRMP message analysis with XCMP forward compatibility
  • Social Signals: Team legitimacy assessment, community manipulation detection
  • Governance Security: OpenGov proposal analysis for hidden risks and attack vectors

Future Expansion (Beyond This Grant)

While this proposal focuses on core security functionality, our roadmap includes:

  • Developer Tools: CLI interface and IDE extensions for seamless development integration
  • Advanced APIs: Enterprise-grade endpoints for exchange and wallet integration
  • Open Source Components: Community-driven security libraries and educational resources
  • Cross-Ecosystem Intelligence: Enhanced threat sharing across blockchain ecosystems

Expected Impact

Immediate Benefits (Months 1-3)

  • Developer Protection: 500+ Substrate developers gain access to intelligent security analysis
  • User Safety: Non-technical users can assess project risks before investing
  • Ecosystem Reputation: Polkadot positions itself as the most security-conscious blockchain ecosystem

Long-term Vision (Months 3-12)

  • Security Leadership: Polkadot becomes the benchmark for proactive blockchain security
  • Community Growth: 1,000+ developers and users trained on security best practices
  • Threat Prevention: Significant reduction in successful scams and exploits

Why This Investment Matters?

Market Timing: Security consciousness is at an all-time high after recent industry losses exceeding $2B in Q1 2025 alone. Polkadot can lead by example.

Competitive Position: While other ecosystems rely on reactive security measures, Polkadot can offer proactive, intelligent threat detection.

Ecosystem Growth: Security infrastructure enables institutional adoption and enterprise confidence—critical for Polkadot's next growth phase.

Community Protection: Every prevented scam strengthens trust in the entire ecosystem, attracting more legitimate projects and users.


Conclusion

The blockchain industry stands at a crossroads. We can continue accepting massive losses to increasingly sophisticated scams, or we can build intelligent defenses that evolve with the threat landscape.

amIrug.xyz shows proven technology that has already protected millions in value across other ecosystems. With this funding, Polkadot can join the ranks of security-first blockchains while gaining a competitive advantage that attracts both developers and users seeking a safer environment.

We're not asking for research funding—we're asking for integration funding to bring working, battle-tested security intelligence to Polkadot. The platform exists, the AI models work, and the community needs protection.

Note that the question isn't whether Polkadot needs better security tools—it's whether Polkadot wants to lead the industry in intelligent threat prevention in the blockchain space.


References

Platform & Technical Documentation

Polkadot Ecosystem References

Security Research & Vulnerability Analysis

Discussion

8 comments from OpenShore and Subsquare; spam hidden

Markdown
Signed with your wallet. No fee, nothing on-chain.
SIM-DOT523d 5h ago

onchain identity not available

AzzMog520d 14h ago

✅ Why Vote YES • Proactive, intelligent security: The platform learns from every new scam and adapts its detection models continuously—far beyond rule-based tools. • Real-time threat monitoring: Detects malicious behavior as it happens—across runtime pallets, smart contracts, OpenGov, and cross-chain interactions. • Accessible to everyone: Simple web interface requires no technical skills; users just paste an address for instant threat assessment. • Polkadot-specific focus: Tailored analysis for ink! contracts, XCMP/HRMP messaging, staking/governance pallets, and OpenGov manipulation risks. • Proven effectiveness: Already scanned 12,000+ contracts, prevented $5.7M+ in losses, and identified 2,800+ scams with 98.5% accuracy. • Fills critical gaps: Goes beyond existing tools like Scout and ink! Analyzer by incorporating social signals, behavior patterns, and multi-chain context. • Low cost, high impact: Only 9,900 DOT for full delivery in 7 weeks—well-scoped across 3 clear development phases. • Reinforces Polkadot’s position as a security-conscious and innovation-driven Web3 ecosystem.

⸻

❌ Why Vote NO • Single-team project: No open competition or collaboration—concentrates trust in one team. • Unclear long-term governance: Who maintains, audits, or evolves the tool beyond this 7-week sprint? • Privacy concerns: Behavioral analysis and social signal mining may raise ethical concerns around user tracking and algorithmic bias. • Partial redundancy risk: Some upcoming improvements to ink! tooling and OpenGov monitoring may overlap with this system’s functions.

⸻

🎯 A focused and high-impact initiative that could elevate Polkadot’s security leadership—though some voters may prefer broader collaboration or stronger guarantees for long-term stewardship.

16UX3m…pwLao519d 19h ago

Hi @TS

Thank you for the detailed and valid concerns about transparency. Let me address each point with evidence: Platform Verification & Real-World Impact: Just 2 days ago, our platform detected a rug pull in a trending token that appeared on CoinMarketCap's top trending list. Here's the live demonstration: 📹 Video proof: **https://youtu.be/yK8z3mtjATM **(Step-by-step detection of a real scam) 🔗 LinkedIn post: https://linkedin.com/in/drashouri (detailed case study) 🌐 Live platform: https://amirug.xyz (try it yourself with any contract) This demonstrates exactly why we need intelligent security tools .. even experienced investors can miss sophisticated scam patterns that AI detects in 30 seconds. Technical Methodology (92% Accuracy): Our accuracy comes from training on 8,000+ labeled token datasets across multiple chains:

Training set: Historical rug pulls, legitimate projects, honeypots, and exit scams Validation: Cross-validation on known outcomes from 2023-2024 Live testing: Continuous validation against real-world events (like the recent example above)

We're preparing a technical paper for publication, but the live demonstration shows the system working in real-time on actual threats. GitHub & Development Security: You're correct that our public GitHub shows research/demo code. This is intentional:

Security reasons: Core detection algorithms aren't public to prevent bypass techniques by scammer and other hackers for now Active development: Main development happens in private repositories for security

Team Verification:

Arjun: Computer Science graduate, 5+ years ML experience, can provide references upon request Zer0_Cipher: Maintains operational security (common in vulnerability research), University of Potsdam alumni, active in German security conferences

Polkadot Ecosystem Connections:

sub0 Asia 2024: Technical presentation on Polkadot security (YouTube link in proposal) Academy work: Currently researching with Polkadot Academy team on Rust security

Immediate Validation: Anyone can verify our platform works by:

Visiting https://amirug.xyz Testing with known scam contracts Comparing results with actual project outcomes

The recent video shows this process live with a real trending scam token. Why This Matters for Polkadot: The recent detection demonstrates why Polkadot needs intelligent security tools. As our ecosystem grows and attracts more projects, we need proactive protection, not reactive measures. I appreciate the scrutiny - security tools should be held to the highest standards. Happy to provide additional documentation or answer specific technical questions. Best regards, Dr. Mohammadreza Ashouri P.S. The YouTube demo shows exactly what we'll build for Polkadot - simple, accessible, and effective security analysis for everyone in the ecosystem.

16UX3m…pwLao519d 19h ago

Hi @Nicholas97,

Thank you for recognizing the real need for intelligent security in Polkadot's DeFi ecosystem! You've captured exactly why we built amIrug.xyz - to go beyond traditional code analysis and provide concise protection that adapts to new threats.

The recent example I shared (YouTube demo : https://youtu.be/yK8z3mtjATM ) shows exactly this in action - detecting a complex scam and hacks that appeared on CoinMarketCap's trending list. This is the kind of multi-layered protection Polkadot needs as it scales.

Really appreciate your support and understanding of the proposal's value!

Best, Mo

16UX3m…pwLao519d 19h ago

Hi @AzzMog ,

Excellent balanced analysis! You've highlighted both the strengths and legitimate concerns perfectly.

Addressing your "Why Vote NO" points:

Single-team project: We're absolutely open to collaboration. Post-launch, we plan to open-source core components and work with the community for continuous improvement.

Long-term governance: Great point. We propose establishing a community advisory board including security researchers from the ecosystem to guide future development and ensure accountability.

Privacy concerns: Our social signal analysis focuses only on publicly available on-chain data and governance participation - no private data collection. We can implement clear privacy guidelines.

Redundancy risk: We're actually complementary to existing tools like Scout. While they do static analysis, we provide the behavioral intelligence layer that's currently missing.

Your analysis shows exactly the kind of thoughtful evaluation this proposal deserves. Thank you for the detailed breakdown!

Best, Mo

OG Tracker518d 19h ago

OG Tracker Rating 2/3

Clear display of deliverables✅

  • Phase 1: Core Polkadot Security Engine
  • Phase 2: Advanced Threat Intelligence
  • Phase 3: Integration & Community Access

Clear display of a valid direct point of contact ❌

  • Not provided.
  • Could you please share a valid point of contact in case someone needs to reach out?

Clear display of proposal’s duration✅

  • The duration of this proposal is 7 weeeks.

OGT Rating aims to help voters make better informed decisions and direct proposers towards certain common-good practices. We are providing feedback based on 3 simple yet crucial criteria which we believe should be included in every OpenGov referenda.

Dear Proposer,

Thank you for your proposal. Our first vote on this proposal is NAY.

The Small Spender track requires 50% participation and simple majority of non-abstain votes according to our voting policy v0.2, and any referendum in which the majority of members vote abstain receives an abstain vote. This proposal has received zero aye and five nay votes from ten available members, with one member abstaining. Below is a summary of our members' comments:

In the recent referendum, several voters expressed skepticism about the timing of the proposed tool, indicating it might not be necessary at the present moment. Many believed it would be more appropriate to reassess once the Polkadot Hub was operational and had a clearer understanding of security needs and the availability of smart contracts. Overall, the consensus leaned towards deferring the proposal until future developments could provide a better context for its implementation.

The full discussion can be found in our internal voting.

Please feel free to contact us through the links below for further discussion.

Kind regards,
Permanence DAO
Decentralized Voices Cohort IV Delegate

📅 Book Office Hours
💬 Public Telegram
🌐️ Web
🐦 Twitter
🗳️ Delegate

polkaworld514d 19h ago

PolkaWorld votes NAY on this proposal.

  1. The team’s current deliverables cannot be verified — further clarification or real examples are needed.
  2. The budget appears rough and lacks verification through on-chain identities.

Additionally, we have some open questions:

• No clear open-source commitment: It’s unclear whether the tool and its AI models will be open-sourced or open to community review and contribution. • Missing integration roadmap: There’s no explanation of how this tool will be adopted by the ecosystem — e.g., by parachains, wallets, block explorers, or official APIs. • Lack of ecosystem endorsements: No supporting statements or usage commitments from any ecosystem teams are provided. • Sustainability concerns: With only a 7-week development timeline, there’s no information on how the tool will be maintained, governed, or expanded after delivery.

You can view our full feedback here.