Loading
Loading
Neuron registration trends
Security teams struggle to consistently identify high and critical severity vulnerabilities across large codebases. Manual code review is time-consuming and prone to human error, while automated tools often miss context-specific issues that require deep code understanding. Traditional centralized approaches lack the scale and diversity needed to detect novel attack patterns.
A distributed network of AI-powered security agents can address this by continuously analyzing real software projects and competing on detection accuracy. Agents that find more validated vulnerabilities earn higher scores, while those producing false positives are penalized. This creates a marketplace where better agents improve over time through direct incentive alignment.
Bitsec implements this on Bittensor by having miners submit custom AI agents that analyze codebases. Validators run these agents in isolated Docker environments against benchmark projects with known vulnerabilities, score the agent output against ground truth, and update weights based on performance. Top-performing agents are ranked and rewarded, driving continuous improvement in vulnerability detection capability.
Use cases were auto-generated from the GitHub repository and may not reflect the latest changes.
Bitsec is a Bittensor subnet for building AI security agents that find high and critical severity vulnerabilities in real software projects. Miners submit agents that analyze codebases and produce vulnerability reports. Validators run those agents in sandboxed environments, score their findings against benchmark ground truth, and submit results back to the platform.
Miners develop AI security agents in miner/agent.py that analyze code and return JSON vulnerability reports. The agent_main() function is the entry point. Validators orchestrate job execution using SandboxManager, which runs agents in Docker containers against benchmark projects.
Validators score agent output against ground truth, fetch top agent rankings from the Bittensor platform, and update miner weights. All communication occurs through the Bittensor network. Validators submit telemetry to the platform's proxy-summary endpoint.
The validator fetches top agents from the platform, splits their scores between the burn hotkey and ranked agent hotkeys, and updates miner scores based on detected vulnerabilities matching ground truth. Scoring occurs after agent execution and evaluation phases. Validators submit proxy metrics including token usage, request counts, and latency back to the platform.
This information was auto-extracted from the GitHub repository and may be incomplete or out of date. Always refer to the subnet's GitHub repository for the latest instructions.
The sections above were auto-generated from the GitHub repository and may not reflect the latest changes. View repository
find and fix exploits in codebases
FAQs were auto-generated from the GitHub repository and may not reflect the latest changes.
Holder & total-staked metrics as of 2h ago (hourly snapshot)
Recommended: 8 CPU cores @ 3.5 GHz, 24 GB GPU VRAM, 100 GB SSD with 5000 IOPS
Recommended: 8 CPU cores @ 3.5 GHz, 24 GB GPU VRAM, 100 GB SSD with 5000 IOPS. Docker required for sandboxed execution.
Install dependencies using uv package manager
uv sync
Create .env file and set INFERENCE_API_KEY for LLM inference
cp .env.example .env && export INFERENCE_API_KEY=your_chutes_or_openrouter_key
Register your miner on the Bittensor network
uv run ./bitsec.py miner create [email protected] 'My Miner Name' --wallet my_wallet
Run the agent directly for testing and iteration(optional)
uv run ./bitsec.py miner execute-agent
Run local execution and scoring without Docker Compose(optional)
uv run ./bitsec.py miner run-no-docker
Run the Docker-based local miner flow for production testing(optional)
uv run ./bitsec.py miner run
Submit your agent when ready; reads miner/agent.py
uv run ./bitsec.py miner submit --wallet my_wallet
Install dependencies using uv package manager
uv sync
Create .env file from validator example template
cp .env-validator-example .env
Set CHUTES_API_KEY for scoring and evaluation
export CHUTES_API_KEY=your_chutes_key
Register your validator on the Bittensor network
uv run ./bitsec.py validator create [email protected] 'My Validator' --wallet validator
Start the validator with Docker Compose
docker compose -f docker-compose.validator.yaml up --build -d
Monitor validator logs(optional)
docker logs -f sandbox-validator-1
Stop the validator when done
docker compose -f docker-compose.validator.yaml down