Hemant-Patil-0607/zauriscore

GitHub: Hemant-Patil-0607/zauriscore

一个 AI 驱动的智能合约风险情报平台,通过静态分析与机器学习的混合引擎自动检测漏洞并给出部署决策。

Stars: 0 | Forks: 0

# ZauriScore ZauriScore 可自动化检测智能合约漏洞,计算确定性风险评分,并通过全面且审计就绪的报告,提供明确的 GO / REVIEW / NO-GO 部署决策。 ## 功能 - **自动化扫描**:使用 Slither 和 Mythril 进行深度静态分析以及结构化启发式检查。 - **确定性风险评分**:结合静态分析、自定义启发式和基于 CodeBERT 机器学习的混合评估引擎。 - **审计就绪报告**:即时、可下载的 JSON、Markdown 和 PDF 格式漏洞报告,并存储在 S3 上。 - **精细化安全管控**:安全的 JWT 身份验证以及严格的 Role-Based Access Control (RBAC)。 - **分级变现**:商业级 Stripe 计费集成及严格的套餐限制。 - **API 保护**:根据用户订阅等级动态调整的速率限制窗口。 - **持续监控**:交互式 Web 仪表板,用于跟踪扫描历史记录和实时的智能合约健康指标。 - **多链就绪**:原生支持 Ethereum、Polygon、Arbitrum 和 Base 生态系统的编译和分析。 ## 技术栈 | 层级 | 使用的技术 | | :--- | :--- | | **Frontend** | Next.js 14 (App Router), TypeScript, TailwindCSS, TanStack Query, Recharts | | **Backend** | Python 3.11+, FastAPI, SQLAlchemy, Alembic | | **Async Workers** | Celery, Redis | | **Database** | PostgreSQL 16 | | **Storage** | 兼容 S3 的对象存储 (AWS S3 / MinIO) | | **Static Analysis** | Slither, Mythril, solc | | **Machine Learning** | CodeBERT, PyTorch, Transformers | | **Billing** | Stripe API & Webhooks | | **Infrastructure** | Docker, Docker Compose, Nginx | ## 仓库结构 ``` zauriscore/ ├── backend/ # FastAPI backend, Celery workers, ML models │ ├── app/ # Application source (api, models, services, workers) │ ├── alembic/ # Database migrations │ ├── tests/ # Backend test suite (pytest) │ ├── Dockerfile # Backend container image │ └── Dockerfile.worker # Celery worker container image ├── frontend/ # Next.js 14 frontend application │ ├── src/ # App router, components, types, lib │ ├── Dockerfile # Frontend container image │ └── package.json ├── infrastructure/ # Deployment configurations │ ├── docker/ # Dockerfiles and init scripts │ ├── monitoring/ # Prometheus / Grafana configs │ └── nginx/ # Reverse proxy and SSL configs ├── scripts/ # Setup and utility scripts ├── docs/ # API, architecture, and deployment docs ├── .env.example # Environment variables template ├── docker-compose.yml # Multi-container local orchestration └── README.md ``` ## 快速开始 ### 前置条件 请确保您已在本地安装以下内容: - **Docker & Docker Compose** v25+ - **Node.js** v20+ & npm - **Python** v3.11+ ### 1. 克隆仓库 ``` git clone https://github.com/Hemant-Patil-0607/zauriscore.git cd zauriscore ``` ### 2. 配置环境变量 ``` cp .env.example .env ``` 打开 `.env` 并配置您的密钥: ``` SECRET_KEY=$(openssl rand -hex 32) NEXTAUTH_SECRET=$(openssl rand -hex 32) ETHERSCAN_API_KEY=your_etherscan_api_key STRIPE_SECRET_KEY=sk_test_your_stripe_key STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret ``` ### 3. 启动应用 ``` docker-compose up --build -d ``` ### 4. 验证安装 - **Frontend 仪表板**:http://localhost:3000 - **API 文档 (Swagger)**:http://localhost:8000/docs - **MinIO 控制台**:http://localhost:9001 - **健康检查**: ``` curl http://localhost:8000/api/v1/health ``` ## 运行测试 ``` # Backend 测试 (pytest) docker-compose exec backend pytest # Frontend 测试 docker-compose exec frontend npm test ``` ## 许可证 基于 MIT 许可证分发。请查看 `LICENSE` 了解更多信息。
标签:AV绕过, FastAPI, Web3, 云安全监控, 人工智能, 凭据扫描, 搜索引擎查询, 智能合约审计, 测试用例, 用户模式Hook绕过, 系统调用监控, 请求拦截, 逆向工具, 静态分析