Caution
This repository has been archived and moved to https://github.com/openrelik/openrelik-workers/
This worker calculates entropy of every file provided, as well as generate a summary containing files with a high entropy (> 7 bits of entropy per byte).
Add the below configuration to the OpenRelik docker-compose.yml file.
openrelik-worker-entropy:
container_name: openrelik-worker-entropy
image: ghcr.io/openrelik/openrelik-worker-entropy:latest
restart: always
environment:
- REDIS_URL=redis://openrelik-redis:6379
- OPENRELIK_PYDEBUG=0
volumes:
- ./data:/usr/share/openrelik/data
command: "celery --app=src.app worker --task-events --concurrency=4 --loglevel=INFO -Q openrelik-worker-entropy"
# ports:
# - 5678:5678 # For debugging purposes.
pip install poetry
poetry install --with test --no-root
poetry run pytest --cov=. -v