Berildocs GitHub

Start here

Getting started

Beril runs on your machine. It reads files and public pages, writes Markdown and JSON, and sends nothing anywhere. This page takes you from a fresh clone to a first report you can act on.

What you need#

NeedDetail
Python3.11.5 or newer
DiskAbout 300 MB for the Camoufox browser, only if you use the research layers
Headless LinuxInstall xvfb for the headful fallback
PlatformLinux is the tested platform. Windows and macOS artifact paths exist, but the optional toolchain is documented for Linux

Install#

The short path installs the base tools and wraps the CLI:

git clone https://github.com/sheduxdev/beril.git
cd beril
./install.sh

Other flags: ./install.sh --tools adds the specialist scanners, ./install.sh --re adds the reverse engineering toolchain, and ./install.sh --dev adds ruff, pyright and pytest.

With uv:

uv sync --extra dev
uv run camoufox fetch
uv run pytest
uv run python scripts/validate.py

With venv and pip:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
camoufox fetch
./beril validate

pyproject.toml is the dependency source of truth. requirements.txt and requirements-re.txt are compatibility mirrors. Other install paths are pipx install ., a wheel, a pinned container image and a composite GitHub Action. See Deployment.

Your first scan#

Scan something you own:

./beril scan --target https://your-app.example --profile engineer

The scan is passive. It sends GET requests with a Beril user agent, reads at most 400 KB per response, honors robots.txt, runs at 2 requests per second with a budget of 250 requests, and backs off on 429 and 503.

It writes two files:

FileUse
scans/<target>.mdThe report you read
scans/<target>.jsonThe same evidence in the finding schema, for tools and re-rendering

Read the result#

  1. Open the Markdown report and start with the top five findings.
  2. Open the card for each class in Techniques and follow its confirmation step.
  3. Confirm the exposure by hand with a minimal request or input. A scanner hit is a lead, not a finding.
  4. Mark each finding as confirmed or inferred. Keep the evidence path.
  5. Render the report for the reader. The next section lists the profiles.
  6. Write down what you did not test.

Pick a report profile#

./beril scan --target https://your-app.example --profile smb --out scans/app-smb
./beril report --input scans/app.json --profile bugbounty
ProfileReader
engineerA developer who will fix it
bugbountyA program triager
smbA small business owner, one page, with a KVKK note
maintainerAn open source maintainer
craA Cyber Resilience Act file
json, sarifMachines. SARIF is checked against the schema

Go further#

Active probes need an ownership record first:

./beril verify --new your-app.example
# publish the token at one of the three paths, then
./beril verify --verify your-app.example
./beril scan --target https://your-app.example --active --profile bugbounty

Hunt an open source repository in the networkless sandbox:

./beril hunt --target ./some-open-source-repo --sandbox --report HUNT.md

Run a research pass instead of a scan:

./beril harvest forums --sources 0x00sec,htb,reddit,hackerone --limit 20
./beril harvest tools --sources canonical --limit 60
./beril dossier
./beril validate

Then open examples/dossier.md.

Next#