Skip to content

Latest commit

 

History

216 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verdyx

Verdyx

A decentralized threat intelligence marketplace.
Crowdsourced analysts and automated engines compete to verify malware and phishing threats — backed by staked, on-chain incentives.

License: MIT Backend: Rust Frontend: React + TypeScript Contracts: Solidity


Overview

Traditional threat detection relies on single-vendor engines, which creates blind spots, slow zero-day response, and no accountability for bad calls. Verdyx replaces that with an open marketplace:

  1. A file, URL, or hash is submitted with a bounty.
  2. Human analysts and automated engines stake tokens on a verdict (malicious / benign).
  3. Verdicts are aggregated by a consensus service into a confidence score.
  4. Accurate submitters earn the bounty and reputation; inaccurate ones lose their stake.

The result is a threat feed where every verdict has skin in the game, priced and settled on-chain.

Backend services (backend/)

Rust workspace, one crate per domain:

Service Responsibility
api-gateway Auth (JWT), request routing, rate limiting, public API surface
user-service Identity, profiles, auth workflows
submission-service Threat submissions, analyst votes/verification
bounty-manager Bounty lifecycle, on-chain escrow integration
consensus-service Verdict aggregation and confidence scoring
reputation-service Analyst/engine scoring and leaderboards
payment-service Payouts and treasury transactions
analysis-engine Automated scanning and enrichment pipeline
notification-service Outbound notifications (email/webhook)
shared Common types, config, and utilities

Smart contracts (blockchain/)

Solidity contracts (Hardhat), audited with Slither/Mythril configs included:

  • ThreatToken — the ERC-20 staking/reward token
  • BountyManager — escrow, staking, and bounty settlement
  • ReputationSystem — on-chain analyst/engine reputation
  • Governance — protocol parameter governance

Frontend (frontend/)

React + TypeScript + Vite, Tailwind + shadcn/ui, using the Aurora design system (dark violet/indigo with an indigo→magenta brand gradient).

Infrastructure (infrastructure/)

Terraform (AWS), Kubernetes manifests per service, Ansible playbooks, and Docker configs for local/dev/production deployment.

Getting Started

Prerequisites

Local development

git clone https://github.com/deep60/Verdyx.git
cd Verdyx

# Full stack (Postgres, Redis, all services, frontend)
docker compose up -d

# Or run pieces individually:

# Backend services
cd backend
cargo run --bin api-gateway

# Frontend
cd frontend
npm install
npm run dev

# Smart contracts (local Hardhat node)
cd blockchain
npm install
npx hardhat node
npx hardhat run scripts/deploy.ts --network localhost

Full setup instructions: docs/deployment/local-setup.md.

Running tests

# Backend
cd backend && cargo test

# Frontend
cd frontend && npm run test        # unit (Vitest)
cd frontend && npm run test:e2e    # e2e (Playwright)

# Smart contracts
cd blockchain && npx hardhat test

API

The gateway exposes a REST API under /api/v1 (auth, bounties, submissions, wallet, webhooks). See docs/API.md for the full route reference and docs/api/openapi.yaml for the OpenAPI spec.

curl -X POST https://api.verdyx.com/api/v1/bounties \
  -H "Authorization: Bearer <TOKEN>" \
  -F "file=@/path/to/sample.exe" \
  -F "bounty=0.05"

Documentation

Contributing

Contributions are welcome — see CONTRIBUTING.md for guidelines and coding standards.

Security

If you discover a security vulnerability, please do not open a public issue. Report it privately as described in docs/security/.

License

MIT © Verdyx

About

Central hub for threat intelligence and Blockchain-based threat intelligence

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages