Skip to content

SolanaRemix/SmartContractAudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

203 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

SmartContractAudit Enterprise Edition

πŸ“– Overview

SmartContractAudit Enterprise Edition is a cutting-edge solution designed for organizations that require advanced smart contract auditing, real-time monitoring, and automated issue resolution across multi-chain environments. The platform emphasizes security, scalability, and ease of integration into enterprise ecosystems to ensure peace of mind for blockchain and DeFi operations.


πŸš€ Key Features

1. Multi-Chain Support

  • Seamlessly audit smart contracts across Ethereum, Binance Smart Chain (BSC), Polygon, Solana, Avalanche, and other popular blockchain platforms.

2. Antivirus Scanner

  • Detect malicious patterns or vulnerabilities such as reentrancy, overflows, and unsafe delegate calls.
  • Known vulnerability detection with a real-time threat database.

3. Honeypot Detection

  • Optimize investor security by identifying tricky contracts with sell restrictions, transfer blocks, and hidden fees.

4. Spam and Fraud Detection

  • Analyze deployment behavior for duplicate contracts, airdrop spam, and token abuse patterns.

5. Wallet Tracer

  • Build transaction graphs, trace the flow of assets, and identify suspicious wallet activity.

6. Automated Vulnerability Repair

  • Automatically generate fixes for identified vulnerabilities and open pull requests directly to your repository.

7. Enterprise-Grade Integrations

  • Leverage GitHub Actions, Slack notifications, and REST API integrations to automate workflows seamlessly.

8. Advanced Analytics Dashboard

  • Generate detailed reports with insights into vulnerabilities, threats, and historical trends for continuous improvement.

πŸ› οΈ Use Cases

  • DeFi Protocol Audit: Analyze vulnerabilities before deployment.
  • Institutional Wallet Monitoring: Ensure secure funds and trace transactions for risk management.
  • Smart Contract Codebase Automation: Continuously monitor new commits in enterprise repositories for security and compliance.
  • Pre-ICO Token Security: Certify tokens for investor trustworthiness.

πŸ“‚ Documentation Index


πŸ”§ Installation & Setup

Prerequisites

  • Node.js 14.x or higher
  • NPM or Yarn
  • Blockchain RPC endpoints for target networks

Step 1: Clone the Repository

git clone https://github.com/SolanaRemix/SmartContractAudit.git
cd SmartContractAudit

Step 2: Install Dependencies

npm install

Step 3: Configure Enterprise Environment

Modify configurations at config/chains.json:

{
  "ethereum": {
    "rpc": "https://mainnet.infura.io/v3/YOUR_INFURA_KEY",
    "scanThreshold": 85
  },
  "polygon": {
    "rpc": "https://polygon-rpc.com",
    "scanThreshold": 90
  }
}

Step 4: Start the Auditor

npm run enterprise

CLI Self-Verification

Run a built-in health check for chain/address validation logic:

node script/scan.js --verify

Step 5: Access Reports

All security reports will be stored in the reports/ directory. Reports include vulnerability breakdowns, action items, and insights.


🚦 How It Works

  1. Initialize Auditor: Spin up the multi-module auditing engine.
  2. Scan Contracts: Each connected blockchain is scanned for vulnerabilities, fraud, and anomalies.
  3. Generate Reports: Reports are automatically created with risk scores and patch recommendations.
  4. Continuous Monitoring: Integrate with your CI/CD workflows using GitHub Actions for ongoing security.
  5. Automated Repairs: Send automated pull requests to patch critical vulnerabilities.

πŸ“Š Sample Output

Security Vulnerability Report

Vulnerability Severity Affected Contracts Fix Available
Reentrancy High 0xabc...123 (Ethereum) βœ… Automated Fix
Hidden Fees Medium 0xdef...456 (BSC) ❌ Manual Required
Unsafe Delegate Calls Severe 0x987...654 (Polygon) βœ… Automated Fix

πŸ“˜ Workflow Automation with GitHub Actions

Continuous auditing and monitoring are achieved via GitHub Actions:

  • Location: .github/workflows/gitantivirus.yml
  • Triggers:
    • push to main or develop branches.
    • manual workflow dispatch.
    • scheduled daily scans for all connected repositories.

Add the following to your workflow file:

name: Enterprise Security Monitor

on:
  push:
    branches:
      - main
      - develop
  schedule:
    - cron: '0 2 * * *'

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3
      - name: Install Dependencies
        run: npm install
      - name: Run Auditor
        run: npm run audit
      - name: Upload Reports
        uses: actions/upload-artifact@v3
        with:
          name: audit-reports
          path: reports/

πŸ” Security Best Practices

  • Enable encryption in all traffic with RPC endpoints.
  • Regularly rotate API keys for dependency scanning.
  • Integrate with centralized logging for audit traceability.
  • Strictly define access roles in CI/CD pipelines.

Supported Chains (Address Validation)

The scanner validates addresses based on config/chains.json and currently supports:

  • Ethereum (chainId: 1)
  • BSC (chainId: 56)
  • Polygon (chainId: 137)
  • Avalanche C-Chain (chainId: 43114)
  • Arbitrum One (chainId: 42161)
  • Optimism (chainId: 10)
  • Solana (mainnet-beta)

Adding a New Chain

  1. Add the chain metadata in config/chains.json.
  2. Provide chainId, type (evm or solana), and RPC endpoints.
  3. For EVM chains, addresses are validated with EIP-55 checksum support.
  4. Re-run node script/scan.js --verify to confirm validation coverage.

Rate-Limit Configuration Environment Variables

Configure network endpoints and request pacing using environment variables referenced in chain and scanner configs, including:

  • ETHEREUM_RPC_URL
  • BSC_RPC_URL
  • POLYGON_RPC_URL
  • AVALANCHE_RPC_URL
  • ARBITRUM_RPC_URL
  • OPTIMISM_RPC_URL
  • SOLANA_RPC_URL

Rate-limiting values are in config/scanner.json under rateLimiting (delayMs, maxConcurrent, maxRetries, rpcTimeoutMs).

Security Assumptions and Threat Model

  • User-provided file paths for scan/repair inputs are treated as untrusted and constrained to an allowlisted base directory using canonical path checks.
  • Chain/address arguments are validated before scanner execution.
  • CLI logs are structured JSON and include severity levels for auditability.
  • This tool focuses on deterministic static/heuristic analysis and does not assume trusted external RPC data without explicit configuration.

🀝 Contribution Guidelines

We welcome contributions to enhance the enterprise edition of SmartContractAudit. Please review our CONTRIBUTING.md for detailed guidelines.


πŸ—‚ License

This project is licensed under the MIT License. See LICENSE for full license details.


πŸ“¬ Support

For enterprise support, including premium consulting and onboarding assistance, please contact the maintainers:


About

SmartContractAudit: Enterprise Elite Web3 Audit Certified πŸ”Ž Professional smart contract security auditing suite. ✨ Automated + manual analysis, vulnerability scoring, formal verification & Solana expertise. Real-time reports with on-chain proof. Built exclusively for Elite Group Community.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors