ligsp: the LIGSP checker
Checks the image-generation servers and model folders you name against the Local Image Generation Security Profile (profile.md). It is read-only, and it contacts only the places you point it at.
ligsp check http://127.0.0.1:8188 # a ComfyUI
ligsp check http://127.0.0.1:7860 --models D:\models # A1111 / Forge and a model folder
ligsp check http://127.0.0.1:3000 --redact # a report you can share
ligsp check --private C:\latentry # who can read Latentry's settings and keys
Common default ports: ComfyUI 8188, Comfy Desktop 8000, A1111 / Forge 7860, Latentry 3000, InvokeAI 9090, SwarmUI 7801. It tries no port you did not name.
What it checks
| ID | What |
|---|---|
| NET-1 | Whether a server on 127.0.0.1 also answers on this computer's network addresses (IPv4 and IPv6) |
| NET-2 | Whether it can be used from the network without a login or pairing |
| BE-1 | A server on another computer reached over plain HTTP |
| WEB-1 | Whether other websites may read its answers (CORS) |
| WEB-2 | Whether it answers for any host name (DNS rebinding) |
| WEB-3 | Protective headers on its page |
| EXT-1 | An extension installer on the server (ComfyUI-Manager), and how many node packs or A1111 extensions it runs (counts only, never names) |
| DATA-4 | Who besides you can read a hub's private files (--private FILE or a folder; Latentry's settings and keys are found by name). Only permissions are read, never content. |
| MOD-1 | Weight files in a pickle format (.ckpt, .pt, .pth, .bin, .pkl), files named .safetensors that are really pickles, and safetensors headers that do not read |
Exit code 0 when nothing failed, 1 when something failed, 2 for a usage
error. --json FILE (or -) writes the same report as JSON.
What it does not do
- It sends only GET, HEAD and OPTIONS, only to a fixed list of endpoints
known to change nothing, with no query strings, to the URLs you give and
to the same port on this computer's own addresses. One function sends
every request, and it refuses anything else (
transport.py). A safe method alone is not enough: some servers act on a GET (ComfyUI-Manager removes or restores snapshots on one). It never queues a job, uploads a file or changes a setting. - It reads only the fields it needs. ComfyUI's
/system_statsalso lists the server's command line; that is dropped unread. - In model folders it opens only
.safetensorsfiles, and only to read their header. It follows no links out of the folder. - For private files it reads only their permissions: the mode, or on Windows the access list, through the Windows API and compared by account ID (SID), so it works in any system language.
- It sends no telemetry and checks for no updates, and it writes no file
unless you ask (
--json FILE). - A pass means these checks found no problem, not that the setup is safe.
Standard library only (Python 3.10+). Tests: pytest in this folder, with
src on the path.
Metadata
Release files for local-image-gen-security 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| local_image_gen_security-0.1.0.tar.gz | 28.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| local_image_gen_security-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.5 kB
Release files / local_image_gen_security-0.1.0.tar.gz
| Download URL | local_image_gen_security-0.1.0.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ecf1f4e011dbe158e1a1f1ee046f2d392246551f2e6d3abb05a4abb7f0376d6
|
|
BLAKE2b-256 checksum How to use checksums |
a00548a65461cc6e9330ba21162b3a0ac06226d7e8db59d3fb510d447e12b1ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / local_image_gen_security-0.1.0-py3-none-any.whl
| Download URL | local_image_gen_security-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0a48ecb120f4262d7e2c827b49bbf2fdaf55bd4e7ce1452abc2ca2cbd46872b
|
|
BLAKE2b-256 checksum How to use checksums |
1d4dad3a2f442354b14f73fc7eae35520674af3433f68c551405bffb3a9d8953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency log