A Sopel plugin providing alerts about malicious URLs.
Project description
sopel-safety
A Sopel plugin providing alerts about malicious URLs.
This is a continuation of Sopel's built-in safety plugin.
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-safety
Configuring
The easiest way to configure sopel-safety is via Sopel's configuration
wizard—simply run sopel-plugins configure safety and enter the values for
which it prompts you.
Migrating from sopel.builtins.safety
Sopel's old built-in safety plugin had a setting called enabled_by_default,
which was deprecated in favor of a default_mode setting. This plugin doesn't
include any logic to handle the enabled_by_default value, and Sopel's logs
will warn about that setting if present in the config file.
If you used to use the built-in safety plugin, you should delete
enabled_by_default from your config file and set default_mode to one of the
choices described below.
You can also safely delete the malwaredomains.txt file if it exists in your
Sopel bot's homedir. Newer versions of safety (both the built-in plugin and
this continuation package) use unsafedomains.txt instead.
Available options
default_mode— Which operating mode to use in channels without a mode set.
Available options are 'off', 'local', 'local strict', 'on', and 'strict'.known_good— A list of "known good" domains or regexes to consider trusted.vt_api_key— Optional VirusTotal API key.
Providing this can improve malicious URL detection. Without it, this plugin will check against the domain blocklist only.domain_blocklist_url— Optional URL of an alternate domain blocklist.
This plugin uses StevenBlack's unified hosts file by default, which aggregates known domains across adware and malware categories. This option can be used to specify a different variant from the same repository, or another compatible file maintained elsewhere.
Changelog
0.1.0
First release of sopel-safety.
Standalone package, based on Sopel's built-in safety plugin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sopel_safety-0.1.0.tar.gz.
File metadata
- Download URL: sopel_safety-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
048566171ab6ba99edf9d0c3b1f4c89f29e7a280a6efdd567974944715a40483
|
|
| MD5 |
5c9e40478381f7b97afc618af149a42d
|
|
| BLAKE2b-256 |
82245eb90e49ad8a9f1fc868c717b3ef7366e0631837bf9520559e03dee68eb2
|
Provenance
The following attestation bundles were made for sopel_safety-0.1.0.tar.gz:
Publisher:
pypi.yml on sopel-irc/sopel-safety
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_safety-0.1.0.tar.gz -
Subject digest:
048566171ab6ba99edf9d0c3b1f4c89f29e7a280a6efdd567974944715a40483 - Sigstore transparency entry: 233533379
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-safety@e004f5b0f25cf394a552c84aa25a1018c7787afa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@e004f5b0f25cf394a552c84aa25a1018c7787afa -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_safety-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sopel_safety-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3ac3418f3ecd37a4ff89dd68cd9f785df79a1ba34694c9e625bb7361232186
|
|
| MD5 |
b6e70f355a2d8bfa75ddae36f9668f90
|
|
| BLAKE2b-256 |
44da4b8dd48a7877820f99efd3fde2ca8735d9ba72492bdd5d7e70d3f37ff377
|
Provenance
The following attestation bundles were made for sopel_safety-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on sopel-irc/sopel-safety
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_safety-0.1.0-py3-none-any.whl -
Subject digest:
be3ac3418f3ecd37a4ff89dd68cd9f785df79a1ba34694c9e625bb7361232186 - Sigstore transparency entry: 233533380
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-safety@e004f5b0f25cf394a552c84aa25a1018c7787afa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@e004f5b0f25cf394a552c84aa25a1018c7787afa -
Trigger Event:
release
-
Statement type: