-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
Common questions about Counterscarp Engine installation, usage, licensing, and troubleshooting.
Yes! The Community tier is completely free and includes 14 analyzers:
- Heuristic Scanner (31 EVM rules)
- Slither integration
- Liar Detector, Access Matrix, Upgrade Diff
- Supply Chain Check, Threat Intel
- Markdown/JSON reports
- GUI and CLI access
Pro features require a paid license. See Pricing for details.
Yes! The Solana Analyzer with 35 Rust/Anchor security patterns is available in the Developer tier and above. It includes:
- 35 Anchor/Rust security rules
- IDL constraint validation
- CPI flow tracing
- Account permission matrices
Yes! The Community tier is MIT licensed and can be used for commercial projects without restriction. Pro features have their own EULA but also allow commercial use.
Slither is optional but recommended. To install:
pip install slither-analyzer
solc-select install 0.8.19
solc-select use 0.8.19Aderyn requires Rust. Install with:
cargo install aderynOr via Foundry:
foundryupInstall the Solidity compiler version your project uses:
pip install solc-select
solc-select install 0.8.19
solc-select use 0.8.19Common causes:
- Docker daemon not running — Start Docker Desktop or the service
- Insufficient disk space — Ensure ~600MB free
-
Network timeout — Try building with
--no-cache
docker build -t counterscarp-engine --no-cache .- Ensure the target path exists and is accessible
- Use absolute paths or verify relative paths from your current directory
- Check file permissions
This is normal if:
- Contract uses a newer Solidity version (install it with solc-select)
- Missing dependencies (run from Foundry/Hardhat project root)
Workaround: Use modules that don't need compilation:
python heuristic_scanner.py ./contracts # Regex-based (always works)
python intent_check.py ./contracts/Token.sol # Comment parsing
python threat_intel.py ./contracts/Token.sol # API-basedOn Linux/Mac:
chmod +x scripts/*.shCheck write permissions for output directories:
ls -la ./resultsCheck logs:
docker logs $(docker ps -lq)Use PowerShell syntax:
docker run --rm -v ${PWD}:/scan counterscarp-engine --target /scanIncrease Docker memory limit in Docker Desktop settings (recommended: 4GB+)
Method 1: Environment variable
export COUNTERSCARP_PRO_LICENSE=your-key-here
counterscarp-engine --target ./contracts --ragMethod 2: Configuration file
[license]
key = "your-key-here"Method 3: Web app settings
- Check for typos in the license key
- Ensure the key hasn't expired
- Verify you haven't exceeded machine activation limits
- Contact contact@counterscarp.io
- Log into app.counterscarp.io
- Go to "License Management"
- Click "Deactivate" next to the machine
- Or email contact@counterscarp.io
Depends on your tier:
- Developer: 1 machine
- Pro: 3 machines
- Team: 10 machines
- Enterprise: Unlimited
The software reverts to Community tier. Pro features will display an upgrade prompt instead of executing. Your data and reports remain accessible.
-
.sol— Solidity smart contracts -
.rs— Rust source files (Solana programs) -
.json— IDL files (Anchor)
10 MB per upload. For larger projects, use the CLI:
counterscarp-engine --target ./large-project --reportReports are stored temporarily on the server and can be downloaded for 7 days. After that, re-run the scan to generate new reports.
Yes. Uploaded code is:
- Never stored permanently
- Only used for analysis during your session
- Never shared with third parties
- Never used to train AI models
-
Use PR Mode for quick checks:
counterscarp-engine --target ./contracts --config counterscarp-pr.toml
-
Exclude test files:
[ci] exclude_paths = ["test/", "tests/", "*.t.sol"]
-
Disable slow analyzers:
[static_analysis] mythril.enabled = false [fuzzing] medusa.enabled = false
-
Run in parallel (for CI/CD):
jobs: counterscarp: strategy: matrix: shard: [1, 2, 3, 4]
- Increase system RAM or swap
- Use Docker memory limits:
--memory=8g - Process contracts in batches
- Disable symbolic execution (Mythril uses significant RAM)
name: Security Scan
on: [pull_request]
jobs:
counterscarp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Counterscarp Engine
run: pip install counterscarp-engine
- name: Run PR Check
run: counterscarp-engine --target ./contracts --config counterscarp-pr.tomlcounterscarp-scan:
image: python:3.11
script:
- pip install counterscarp-engine
- counterscarp-engine --target ./contracts --config counterscarp-pr.toml
only:
- merge_requests[engine]
fail_on_severity = "HIGH" # Fail on HIGH and CRITICALcounterscarp-engine --target ./contracts --reportHTML reports require Developer tier or higher.
Yes, pass the logo_path parameter:
from report_generator import generate_html_report
generate_html_report(report, "output.html", logo_path="assets/my_logo.png")- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: audit_report.sarifSee Contributing for the step-by-step guide. In brief:
- Edit
heuristic_scanner.py - Add a
HeuristicRuleto theRULESlist - Test with
python heuristic_scanner.py /path/to/contracts - Submit a PR
See Plugin-Development for the full guide. Create a file in .counterscarp/plugins/ with a register() function.
pytest # All tests
pytest -v # Verbose
pytest --cov=. # With coverage
pytest tests/test_heuristic_scanner.py # Specific file- Report-Formats — Output format details
- Rules-Catalog — Security rules reference
- Architecture — System architecture
- Contributing — Development guide
| Tier | Support |
|---|---|
| Community | GitHub Issues |
| Developer | Email: contact@counterscarp.io |
| Pro | Priority Email (24hr response) |
| Team | Dedicated Slack/Discord |
| Enterprise | Customer Success Manager |
Email: contact@counterscarp.io
Website: https://counterscarp.io
Last updated: April 2026 | Version 3.1.0
Scarpshield Wiki (Counterscarp Engine)
- Home
- Current Status
- Getting Started
- CLI Reference
- Configuration
- Web App Guide
- Deployment
- Report Formats
- Rules Catalog
- Architecture
- Plugin Development
- Contributing
- Security & Licensing
- Pricing & Pro Features
- FAQ & Troubleshooting
GitHub Repo | Web App | PyPI