Berildocs GitHub

Workspace and ops

One-click use

Beril is built so a person who does not live in a terminal can still get a useful result. This page is the short path.

1. Install#

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

The installer creates a Python environment, installs the packages, downloads the Camoufox browser, and checks the catalog. It needs about 300 MB of disk and an internet connection.

Optional recon tools:

./install.sh --tools

That installs the ProjectDiscovery tools, ffuf, gau, waybackurls, assetfinder, gobuster, and hakrawler if Go is available. It is optional. The scanner works without them.

2. Scan your application#

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

The same command works on local artifacts:

./beril scan --target ./app.apk
./beril scan --target ./app.exe
./beril scan --target ./bin/service
./beril scan --target ./source --tools --vibe
./beril scan --target ./plugins --jar
./beril secrets --target ./source --history
./beril mcp --target .

APK, IPA, PE, ELF, JAR, archive and source checks are static. Secrets are masked. Details are in scan-artifacts.md, secrets.md and reverse-engineering.md.

For a binary that needs deeper work:

./install.sh --re
./beril scan --target ./sample --deep

If you leave off the target, Beril asks for it:

./beril scan

Or install and scan in one command:

./install.sh --scan https://your-app.example

The scanner makes read-only requests:

  • the page itself, its headers, and its title;
  • TLS version, issuer, and certificate expiry;
  • security headers, CSP content, cookie flags and CORS;
  • 35 paths that are often left exposed, from .git and .env to admin panels and backups;
  • SPF, DKIM and DMARC records;
  • common database and cache ports;
  • HTML fingerprints, SQL error signatures, debug traces and directory listings.

It does not log in, fuzz, brute force, write, or execute a local binary. Run it only on an app you own or are authorized to test.

Active probes are a separate flag and need a one-time ownership proof:

./beril verify --new your-app.example
# put the token in DNS, a well-known file or a meta tag, then:
./beril verify --verify your-app.example
./beril scan --target https://your-app.example --active

Output:

scans/your-app_example.md
scans/your-app_example.json

Open the Markdown file. The top table gives severity counts, then each finding lists evidence and a fix. A clean pass means the short list passed, not that the app is secure.

3. Add a known-CVE pass#

If nuclei is installed, run it yourself against the same target:

nuclei -u https://your-app.example -severity medium,high,critical \
  -tags cve,exposure,misconfig -o scans/nuclei.txt

Read every match. A nuclei hit is a signature, not proof. Replay the request before you report it.

4. Read the result like a human#

SeverityWhat to do
CriticalFix today. Check whether the exposed file contains live credentials.
HighFix this week. Confirm the exposure with a second request.
MediumPut it in the next maintenance window.
LowBatch it with other hardening work.
InfoDecide whether it is intended. Do not report it as a bug by itself.

The most common real finding in this scan is an exposed .env or .git directory. Revoke any secret you find there first, then remove the file.

A one-page SMB report for a non-technical reader is:

./beril scan --target https://your-app.example --profile smb --out scans/ozet

5. Research the stack#

./beril harvest forums --sources 0x00sec,htb,reddit,hackerone --limit 20
./beril harvest tools --sources canonical --limit 40
./beril harvest methods --limit 15
./beril dossier

The dossier lands in examples/dossier.md. Use it to find the tools and methods that match your stack.

6. Refresh#

./beril harvest all --out-dir data --limit 20
./beril validate

Monthly is enough for tools. Weekly is better for disclosed reports and forum threads.

Troubleshooting#

ProblemFix
camoufox fetch failsCheck the network or proxy. Run it again. The browser lives in ~/.cache/camoufox.
Challenge page never clearsUse --headful under xvfb-run -a, and pass a fresh --profile directory.
./beril says it is not installedRun ./install.sh from the repo root.
Go tools missingInstall Go, then run ./install.sh --tools.
APK manifest unreadableConfirm it is an unencrypted APK. Split APK bundles need all parts.
Source scan is slowLower --max-files, or exclude generated folders.
TLS error on an internal hostAdd --insecure to the scan. Do not use that flag on a public target without a reason.
Scan finds nothingThat is normal for a small app. Run the nuclei pass and a manual review.

What the one-click scan cannot see#

  • Bugs that need a login, a role, or a second account.
  • Business logic and race conditions.
  • Client-side rendering and JavaScript-only routes.
  • Authorization mistakes in API objects.
  • Server-side bugs that need payloads.
  • Runtime behavior of an app or a packed binary. Local scans are static.
  • Obfuscated strings, encrypted resources, and split APK bundles.

Those need the method cards in references/techniques.md, scan-artifacts.md, and a human tester.

Safety#

The scanner sends GET requests to a short path list. It does not upload, delete, or change data. Still, some apps log 404s as errors or rate-limit repeated requests. Run it outside peak hours if the app is sensitive.

Authorization comes first. A scan is not permission.