Skip to content

Web3 ASP is a Chrome extension that acts as your personal Web3 security analyst, watching your back as you explore the blockchain ecosystem.

License

Notifications You must be signed in to change notification settings

bladedancer-chronicle3/web3-asp

 
 

Repository files navigation

H3 Aspis: Web3 Security Companion

Privacy-first Web3 security analysis powered by on-device AI and real-time threat intelligence

Version: 0.3.8 | Status: ✅ Production Ready | Last Updated: October 26, 2025

Web3 ASP (H3 Aspis) is a Chrome extension that provides real-time security analysis of smart contracts and wallet addresses as you browse the Web3. Using GoPlus Security API for threat detection and Google Chrome's built-in Gemini Nano AI for intelligent summaries, Web3 ASP protects your privacy while keeping you safe.

H3 Aspis Logo


🛡️ Features

Core Features (v0.3.8)

  • Real-Time Address Detection: Automatically scans web pages for Ethereum addresses
  • Visual Security Indicators: Color-coded highlighting (Green = Safe, Yellow = Warning, Red = Dangerous, Blue = Info, Purple = Addressbook)
  • GoPlus Security API: Real-time threat intelligence for honeypots, scams, and rug pulls
  • On-Device AI Summaries: Uses Gemini Nano to explain security findings in plain English
  • Manual Scan Tool: Analyze any address on-demand with detailed reports
  • Sanctions Database: 36 verified sanctioned addresses on Ethereum Mainnet (OFAC, FBI, Israeli NBCTF), thousands more across other chains
  • My Addressbook: Save trusted addresses with custom tags
  • Scan History: Browse all analyzed addresses with time-based filters (all, today, week, month)
  • Filter Pills: Quick filtering by threat level (threats, warnings, safe, info, addressbook)
  • Multi-Address Support: Handle multiple addresses on a single page

Privacy-First Design

  • ✅ AI summaries run entirely on your device (Gemini Nano)
  • ✅ Sanctions database is 100% local (no external calls)
  • ✅ Only address sent to GoPlus API for threat intelligence
  • ✅ Addressbook and history saved locally (optional cloud sync)
  • ✅ You control retention policies (delete after 1 week to 1 year)

Security Architecture

  • Tier 1: Local sanctions database - 36 verified addresses on Ethereum Mainnet (instant)
  • Tier 2: GoPlus API - Behavioral threat detection (< 1 second)
  • Tier 3: Gemini Nano AI - Explains findings in plain English (< 2 seconds)
  • Total: < 3 seconds for complete analysis ⚡

Demo Mode

  • ✅ All features are free and publicly available for testing
  • ✅ No tier gating or paywalls
  • 🚧 Stripe integration (placeholder for future Pro tier)

📦 Installation

Prerequisites

  • Chrome browser (version 127+, Canary/Dev channel recommended for AI)
  • No API keys required! Works out of the box with free public RPCs
  • Node.js (optional, for dataset import)

⚡ Quick Start (Zero Config!)

Ready in 2 minutes:

  1. Clone or Download this repository

  2. Copy config files

    cp config.example.js config.js
    cp firebase-config.example.js firebase-config.js

    That's it! The extension works with all defaults.

  3. Load Extension in Chrome

    • Open chrome://extensions/
    • Enable "Developer mode" (top right)
    • Click "Load unpacked"
    • Select the H3_Aspis_Chrome_Extension folder
    • Pin the extension to your toolbar
  4. Enable Chrome AI (Optional but Recommended)

    • Navigate to chrome://flags/#optimization-guide-on-device-model
    • Set to "Enabled BypassPerfRequirement"
    • Navigate to chrome://flags/#prompt-api-for-gemini-nano
    • Set to "Enabled"
    • Restart Chrome

You're done! The extension now works with:

  • ✅ Free public RPCs (no keys needed)
  • ✅ GoPlus Security API (free, no key needed)
  • ✅ Local sanctions database (36+ addresses)
  • ✅ Chrome Gemini Nano AI (on-device)
  • ✅ Local storage (no Firebase needed)

📖 For detailed setup: See QUICK_SETUP.md
🔧 For configuration options: See ENV_TEMPLATE.md

🚀 Enhanced Setup (Optional)

Want more features? Add API keys for better performance:

Option 1: Blockchain Explorer APIs (Free)

Option 2: Private RPC Endpoints

Option 3: Firebase Cloud Sync

  • Create project at Firebase Console
  • Configure firebase-config.js
  • Set enableFirebase: true in config.js
  • Benefits: Cross-device sync, cloud history

🚀 Usage

Automatic Scanning

  1. Visit any Web3 site (e.g., Etherscan, Uniswap, OpenSea)
  2. H3 Aspis automatically detects and highlights addresses
  3. Hover over highlighted addresses for quick risk info
  4. Click a highlighted address to see full analysis

Manual Scanning

  1. Click the H3 Aspis icon in your toolbar
  2. Go to the "Scan" tab
  3. Paste any Ethereum/Base/Polygon address
  4. Click "Analyze" to see detailed security report

Viewing History

  1. Click the H3 Aspis icon in your toolbar
  2. Go to the "History" tab
  3. Use time filters (all, today, week, month) to browse past scans
  4. Use filter pills (threats, warnings, safe, info) to filter by status
  5. Click any entry to see full analysis details

Understanding Risk Colors

  • 🟢 Green: Safe - Verified contract or established wallet
  • 🔵 Blue: Info - Standard wallet or informational
  • 🟡 Yellow: Warning - Suspicious activity or medium risk
  • 🔴 Red: Danger - Known scam, honeypot, or sanctioned entity
  • 🟣 Purple: Addressbook - Your saved trusted address with custom tag

⚙️ Configuration

🎯 Default Configuration (No Changes Needed!)

H3 Aspis works out of the box with:

rpc: {
  ethereum: "https://cloudflare-eth.com",        // Free public RPC
  base: "https://mainnet.base.org",              // Free public RPC
  polygon: "https://polygon-rpc.com"             // Free public RPC
}

features: {
  enableSanctionsCheck: true,   // ✅ Local database
  enableGoPlus: true,            // ✅ Free API, no key needed
  enableOnDeviceAI: true,        // ✅ Chrome Gemini Nano
  enableFirebase: false,         // ❌ Optional, disabled by default
  demoMode: true                 // ✅ All features unlocked
}

Perfect for: Hackathons, demos, testing, personal use

🚀 Custom RPC Endpoints (Optional)

For production or heavy usage, use private RPCs:

rpc: {
  ethereum: "https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY",
  base: "https://base-mainnet.g.alchemy.com/v2/YOUR_KEY",
  polygon: "https://polygon-mainnet.g.alchemy.com/v2/YOUR_KEY"
}

Recommended Providers:

  • Alchemy - Free tier: 300M compute units/month
  • Infura - Free tier: 100k requests/day
  • QuickNode - Free tier available

Benefits: Better reliability, higher rate limits, no throttling

🔍 Blockchain Explorer APIs (Optional)

For enhanced contract verification:

explorers: {
  etherscan: "YOUR_ETHERSCAN_API_KEY",
  basescan: "YOUR_BASESCAN_API_KEY",
  polygonscan: "YOUR_POLYGONSCAN_API_KEY"
}

Get free API keys:

Benefits: Contract source code access, higher rate limits

☁️ Firebase (Optional - Cloud Sync)

For cross-device history and settings sync:

  1. Create a Firebase project at console.firebase.google.com
  2. Enable Authentication (Google provider)
  3. Enable Firestore Database
  4. Copy your config to firebase-config.js:
const firebaseConfig = {
  apiKey: "YOUR_API_KEY",
  authDomain: "your-project.firebaseapp.com",
  projectId: "your-project-id",
  storageBucket: "your-project.appspot.com",
  messagingSenderId: "123456789",
  appId: "1:123456789:web:abcdef"
};
  1. In config.js, set:
features: {
  enableFirebase: true  // Enable cloud features
}

Benefits: Cloud history sync, cross-device settings, user authentication
Note: Extension works 100% offline without Firebase!

🔒 GoPlus Security API

No configuration needed! GoPlus is free and requires no API key.

security: {
  goplus: {
    baseUrl: "https://api.gopluslabs.io/api/v1",
    enabled: true,
    timeout: 10000  // 10 seconds
  }
}

Features: Honeypot detection, scam analysis, token security audits
Documentation: https://docs.gopluslabs.io/

📚 Configuration Reference

For complete configuration options, see:

  • ENV_TEMPLATE.md - Environment variable reference
  • QUICK_SETUP.md - Step-by-step setup guide
  • config.example.js - Annotated configuration template

📊 Architecture

Component Overview

H3_Aspis_Chrome_Extension/
├── manifest.json              # Extension configuration
├── background.js              # Service worker (analysis orchestrator)
├── content.js                 # Page scanner & highlighter
├── popup.html/js/css          # Dashboard UI
├── utils/
│   ├── web3-utils.js          # Blockchain helpers
│   ├── analyzer.js            # AI prompt engineering
│   └── firebase-handler.js    # Cloud sync (optional)
├── data/
│   └── sanctions-dataset.js   # Offline malicious address DB
└── scripts/
    └── import-datasets.js     # Dataset converter

Data Flow

Page Load → Content Script Scans DOM
    ↓
Detects 0x Addresses
    ↓
Sends to Background Script
    ↓
Background Checks Sanctions List (Offline)
    ↓
Queries Blockchain RPC (eth_getCode)
    ↓
Sends to Gemini Nano (On-Device AI)
    ↓
Returns Analysis Result
    ↓
Content Script Highlights Address

🧪 Development

Project Structure

.
├── background.js              # Main service worker
├── content.js                 # Injected into web pages
├── popup.html                 # Dashboard HTML
├── popup.js                   # Dashboard logic
├── popup.css                  # Dashboard styles (lilac theme)
├── styles.css                 # Content script styles
├── manifest.json              # Extension manifest
├── config.example.js          # Configuration template
├── firebase-config.example.js # Firebase template
├── utils/                     # Utility modules
├── data/                      # Datasets
├── scripts/                   # Build/import scripts
└── icons/                     # Extension icons

Adding New Features

  1. New Analysis Rules: Edit utils/analyzer.js
  2. New UI Components: Edit popup.html and popup.css
  3. New Datasets: Add to data/ and update import script
  4. New Blockchains: Update utils/web3-utils.js and config.js

Testing

# Test on different sites
- Etherscan.io (contract verification)
- Uniswap.org (DeFi protocols)
- OpenSea.io (NFT addresses)
- Random scam sites (test red alerts)

# Test scenarios
- Manual scan
- Page auto-scan
- Address highlighting
- Tooltip display
- History logging (if Firebase enabled)

🛠️ Troubleshooting

Extension doesn't load

  • Check that you're in Developer mode
  • Verify manifest.json has no syntax errors
  • Check background script console for errors

No addresses detected

  • Ensure content script is injecting (check page console)
  • Verify site is not blocking content scripts
  • Try reloading the page

AI analysis not working

  • Confirm Chrome AI flags are enabled
  • Check Chrome version (127+ required)
  • Verify Gemini Nano is downloaded
  • Check background script console for AI errors

Icons not showing

  • Add icon files to /icons/ directory
  • Ensure filenames match manifest.json
  • Reload extension

Firebase errors

  • Verify firebase-config.js exists and is valid
  • Check Firebase console for authentication/Firestore setup
  • Ensure enableFirebase: true in config.js

🔒 Security & Privacy

What H3 Aspis Does:

  • ✅ Analyzes addresses on your device
  • ✅ Stores sanctions lists locally
  • ✅ Only sends data to Firebase if you sign in and enable history

What H3 Aspis Does NOT Do:

  • ❌ Track your browsing
  • ❌ Send addresses to external servers (except Firebase, if enabled)
  • ❌ Collect personal information
  • ❌ Use cookies or third-party trackers

Data Storage:

  • Local: Analysis cache, user settings
  • Cloud (Optional): Scan history (only if signed in and enabled)

📝 License

MIT License - See LICENSE file for details


🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📞 Support


🎯 Roadmap

v0.4.0 (Next Release)

  • Multi-chain support expansion (Arbitrum, Optimism, Avalanche, BSC)
  • Contract source code vulnerability scanning
  • Transaction simulation preview
  • Enhanced filter options and search

v0.5.0

  • NFT metadata analysis and fake detection
  • Token approval checker
  • Phishing domain detection
  • Browser-wide security warnings

v1.0.0 (Production Release)

  • Community reporting system
  • Advanced AI threat prediction
  • Public API for dApp integration
  • Enterprise features and compliance tools

🙏 Acknowledgments


Made with 💜 by the ARPA Team

Protecting the Web3 ecosystem, one address at a time.

🔗 GitHub: github.com/arpahls/web3-asp


📝 Version History

Version Date Highlights
0.3.8 Oct 26, 2025 Filter pills, enhanced history, UI improvements
0.3.7 Oct 25, 2025 Fixed addressbook display with auto-scan
0.3.6 Oct 25, 2025 Page/History tabs working, address highlighting fixed
0.3.5 Oct 25, 2025 Addressbook button fixes, tag preservation
0.3.4 Oct 25, 2025 Analysis flow improvements, fallback fixes
0.3.3 Oct 24, 2025 Test addresses with real sanctions data
0.3.2 Oct 24, 2025 Documentation cleanup, finalized security strategy
0.3.1 Oct 24, 2025 Sanctions database rebuild (36 addresses)
0.3.0 Oct 24, 2025 Addressbook & audit trail UI complete
0.2.0 Oct 24, 2025 Multi-address support, sequential analysis
0.1.0 Oct 24, 2025 Initial release with GoPlus & AI

See UPDATE_NOTES.md for complete changelog

About

Web3 ASP is a Chrome extension that acts as your personal Web3 security analyst, watching your back as you explore the blockchain ecosystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 82.1%
  • CSS 11.5%
  • HTML 6.4%