DarkWeb-TeleBot by Darion Kellar: Tor OSINT and threat-intel monitoring with Telegram alerts, dedup.
212
Automated Threat Intel & OSINT Monitoring, delivered to Telegram.
DarkWeb-TeleBot polls configured threat-intelligence and OSINT sources through a Tor proxy sidecar, removes duplicate findings, and dispatches alerts to an authorized Telegram admin chat. It also reports its own health, so you know when the pipeline is down and when it recovers.
dperson/torproxy) on an internal-only Docker network; only the proxy has egresssources/feed_monitor.py) for collecting new items from public feeds and optional Tor-routed sources for custom brand, domain, or keyword mentionsdedup.py) so the same finding is never alerted twice, with Redis 7 alongside for worker statepoller.py)SIGINT and SIGTERM and stops cleanlyAccess denied. Unauthorized entity.status.py) +---------------------------+
| Telegram Bot | <- /start, /status (admin only)
| bot.py / bot/main.py |
+-------------+-------------+
^
| alerts + status
+-------------------------+--------------------------+
| Worker pipeline |
| poller.py -> worker.py -> dedup.py -> status.py |
+------------+--------------------+------------------+
| |
v v
+------------------+ +------------------+
| tor-proxy | | db (Postgres 15)|
| (sidecar) | | dedup storage |
+------------------+ +------------------+
| Network | Type | Purpose |
|---|---|---|
tor_internal | internal | Isolated link between services and Tor proxy |
egress_net | bridge | Outbound access for the Tor proxy only |
Persistent volumes: postgres_data, tor_data. Services: tor-proxy, db (Postgres 15-alpine), redis (7-alpine), crawler-worker, telebot-core.
git clone https://github.com/kimanicollier44-cmyk/DarkWeb-TeleBot.git
cd DarkWeb-TeleBot
cp env.example .env
# edit .env with your values
docker compose up -d --build
docker compose logs -f
Stop: docker compose down
Run locally (without Docker) โ still needs a reachable Tor proxy and PostgreSQL:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python bot.py
Copy env.example to .env โ treat env.example as the source of truth. Typical settings:
| Variable | Description |
|---|---|
BOT_TOKEN | Telegram bot token from @BotFather |
ADMIN_IDS | Authorized Telegram user ID(s) |
CHAT_ID | Chat that receives alerts and status updates |
DATABASE_URL | PostgreSQL connection string |
TOR_PROXY | Tor SOCKS proxy address |
POLL_INTERVAL_SEC | Seconds between polling cycles (default 300) |
In Compose, secrets are kept out of the image as files: ./secrets/db_password.txt, ./secrets/bot_token.txt, ./secrets/admin_ids.txt.
| Command | Access | Description |
|---|---|---|
/start | Admin | Confirms the bot is active: "Security Core Active. Use /status for pipeline health." |
/status | Admin | Pipeline health: Tor proxy sidecar, DB deduplication engine, scraper workers |
status.py sends three kinds of Telegram messages to the configured chat:
Multi-stage build on python:3.12-slim: dependencies are built in a builder stage, then copied into a lean runtime. The container runs non-root (10001:10001), read_only, with cap_drop: ALL in Compose.
python -m unittest discover tests
Tests cover the dedup engine, the polling/backoff loop, and status reporting, and run automatically in CI.
.env file, secrets files, or bot tokenADMIN_IDS to people you trustDarkWeb-TeleBot by Darion Kellar โ modular Python Telegram bot for automated OSINT and threat-intelligence monitoring.
docker pull credkellar/darkweb-telebot:latest