Metadata-Version: 2.4
Name: LoreSight
Version: 0.1.0
Summary: A client for gathering vulnerability-related information from public-inbox mailing list archives such as lore.kernel.org.
License-Expression: GPL-3.0-or-later
License-File: COPYING
Keywords: Vulnerability-Lookup,Vulnerability,CVE,lore.kernel.org,public-inbox,Mailing list
Author: Cédric Bonhomme
Author-email: cedric.bonhomme@circl.lu
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Security
Requires-Dist: liblore (>=0.10.2)
Requires-Dist: pyvulnerabilitylookup (>=2.0.0,<5.0.0)
Requires-Dist: valkey (>=6.1.0,<7.0.0)
Project-URL: Changelog, https://github.com/vulnerability-lookup/LoreSight/blob/main/CHANGELOG.md
Project-URL: Homepage, https://github.com/vulnerability-lookup/LoreSight
Project-URL: Repository, https://github.com/vulnerability-lookup/LoreSight
Description-Content-Type: text/markdown

# LoreSight

A client for gathering vulnerability-related information from
[public-inbox](https://public-inbox.org/) mailing list archives, by default
[lore.kernel.org](https://lore.kernel.org/all/).
The collected data is then sent to the
[Vulnerability-Lookup](https://github.com/vulnerability-lookup/vulnerability-lookup) API as sightings.

The archive is queried with [liblore](https://git.kernel.org/pub/scm/utils/liblore/liblore.git/about/).


## How it works

At a regular interval LoreSight asks the archive for the messages received since
the last poll which match a search query (by default `CVE OR GHSA`). The server
does the filtering: the archive is never mirrored nor read entirely.
Vulnerability identifiers (CVE, GHSA, PYSEC, GSD, CERT-Bund, Cisco, Red Hat) are
then extracted from the subject and the plain-text body of each message, and one
sighting of type `seen` is created per identifier, with the URL of the message
in the archive as source.

Messages referencing more identifiers than `max_bulk_sighting` are skipped, and
mailing lists can be selected or excluded with `lists_allow` and `lists_deny`.


## Installation

[pipx](https://github.com/pypa/pipx) is an easy way to install and run Python applications in isolated environments.
It's easy to [install](https://github.com/pypa/pipx?tab=readme-ov-file#on-linux).

```bash
$ pipx install LoreSight
$ export LORESIGHT_CONFIG=~/.loresight/conf.py
```

The configuration file is a copy of
[loresight/conf_sample.py](loresight/conf_sample.py).


### With Docker

```bash
git clone https://github.com/vulnerability-lookup/LoreSight
cd LoreSight

# Make sure conf.py exists in the project root before running
docker compose up --build
```

> [!NOTE]
> The docker-compose.yml expects a conf.py file in the root directory.
> You can create it manually or copy the provided example:
>
> ```bash
> $ cp loresight/conf_sample.py conf.py
> ```


## Usage

```bash
$ LoreSight --help
usage: LoreSight [-h] [--once] [--dry-run]

Gather vulnerability sightings from a public-inbox archive.

options:
  -h, --help  show this help message and exit
  --once      Run a single poll and exit.
  --dry-run   Print what would be sent, without pushing sightings nor saving
              state.
```

When Valkey is configured, the time of the last poll and the messages already
processed are kept there, so a restart does not create a gap. Without Valkey
this state only lives in memory.


## License

[LoreSight](https://github.com/vulnerability-lookup/LoreSight) is licensed under
[GNU General Public License version 3](https://www.gnu.org/licenses/gpl-3.0.html)

~~~
Copyright (c) 2026 Computer Incident Response Center Luxembourg (CIRCL)
Copyright (C) 2026 Cédric Bonhomme - https://github.com/cedricbonhomme
~~~

