Chromium Vulnerability Checker - monitors Chrome releases for CVEs and sends Slack notifications
1.0K
Chrome Checker Bot (CCBot), also known as the Chrome/Chromium Vulnerability Checker, is a Python script that monitors the Chrome Releases blog for vulnerabilities announced in Chrome/Chromium. It polls the blog's Atom feed for Stable desktop releases and checks them for security fixes. If it finds any, it sends a formatted message to Slack through an incoming webhook.
This software was written by Joshua Rogers. For more information, see the blog post.
Running CCBot outside Docker requires Python 3.10 or newer.
Install the package into a virtual environment, since many systems no longer allow a system-wide pip install:
python3 -m venv ccbot-venv
ccbot-venv/bin/pip install ccbot-py
SLACK_WEBHOOK_URL='your_slack_webhook_url' ccbot-venv/bin/ccbot
docker run -e SLACK_WEBHOOK_URL='your_slack_webhook_url' megamansec/ccbot
docker run -e SLACK_WEBHOOK_URL='your_slack_webhook_url' ghcr.io/megamansec/ccbot
git clone https://github.com/MegaManSec/CCBot.git
cd CCBot
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install .
SLACK_WEBHOOK_URL='your_slack_webhook_url' venv/bin/ccbot
CCBot reads one setting from the environment:
SLACK_WEBHOOK_URL: Your Slack incoming webhook URL, read at startup. If it is unset or empty, CCBot prints each alert to standard output instead of sending it.The feed URL (RSS_URL) and the 10-minute refresh interval (REFRESH_INTERVAL_SECONDS) are fixed in ccbot/ccbot.py. CCBot reads Blogger's own Atom feed with redirect=false, because the FeedBurner copy it otherwise redirects to is served stale.
The script performs the following tasks:
Desktop Update together with Stable updates or Extended Stable updates.For each release, CCBot sends a Slack attachment with a red bar:
[DD/MM/YY HH:MM:SS].Each message holds up to 2,000 characters of Security Issues. A longer list is split across several messages, numbered "Security Issues (1/2)", "Security Issues (2/2)" and so on, each with the timestamp and URL. A CVE is never split between messages; a single CVE entry longer than 2,000 characters is cut and ends with [...truncated...].
Article contained the word 'security' but no CVEs detected. Someone should double-check..An installation script for Debian-based systems, install.sh, is provided. It needs Python 3.10 or newer (Debian 12 or Ubuntu 22.04 and later) and the python3-venv package, and it installs the copy of CCBot in the current directory, so run it as root from the root of a clone:
sudo apt install python3-venv
git clone https://github.com/MegaManSec/CCBot.git
cd CCBot
sudo ./install.sh "https://hooks.slack.com/services/[...]"
The script:
/opt/ccbot./etc/systemd/system/ccbot.service) that runs ccbot in the background./var/log/ccbot.log and /var/log/ccbot_error.log./etc/logrotate.d/ccbot.When it finishes, it prints ccbot has been installed, the service is started, and log rotation is set up. and the paths it used. If creating the virtual environment fails, delete /opt/ccbot before running the script again.
The URL argument is optional and sets the service's SLACK_WEBHOOK_URL. On a first install without it, the service still starts with an empty webhook, so alerts are only written to /var/log/ccbot.log. To set or change the webhook later, run the installer again with the URL, or edit /etc/systemd/system/ccbot.service and run:
sudo systemctl daemon-reload
sudo systemctl restart ccbot
When reinstalling, the installer rewrites ccbot.service:
Environment and EnvironmentFile lines, including the webhook, exactly as they are, as long as SLACK_WEBHOOK_URL isn't set in the installer's own environment.SLACK_WEBHOOK_URL set in its environment (a root shell, sudo -E, or sudo SLACK_WEBHOOK_URL='...' ./install.sh), it replaces all of those lines with that webhook. An empty value clears it. A plain sudo drops variables exported in your shell.ccbot.service is lost, so put other settings in a drop-in with sudo systemctl edit ccbot.The tests also run install.sh, which isn't in the PyPI package, so they need a clone of this repository and bash. After the From source steps, run from the root of the clone:
venv/bin/python -m unittest discover -s tests
This project is licensed under AGPL-3.0-or-later.
Content type
Image
Digest
sha256:317753801…
Size
24.5 MB
Last updated
20 days ago
docker pull megamansec/ccbot