Skip to main content

Phishcheck

Parse and triage an Outlook .msg or RFC 822 .eml file from the command line or a local webpage.

Install and run

From a checkout, install the command with uv tool install . or run it without installing with uvx --from . phishcheck --help. After publication, the corresponding commands are uv tool install phishcheck and uvx phishcheck --help.

phishcheck parse file.eml
phishcheck triage file.msg --json
phishcheck serve
phishcheck serve -p 9000

parse shows headers, body, link text and destinations, attachment findings, and extraction status. triage shows a final verdict, phishing evidence strength on a 0–4 scale, and the supported findings. Needs review means the model selected review or a probability or evidence check held back its choice. The default output is text. Use --json for one JSON result on stdout and diagnostics on stderr. An invalid input exits with status 2. A runtime failure exits with status 1 and preserves any recovered parse report.

serve prints the URL and binds to loopback by default. It starts at port 8000 and tries the next port if needed. An explicit port must be available. Use the Parse and Triage buttons on the upload form.

Extraction and deployment

Install msgconvert to read Outlook files. On Debian, install libemail-outlook-message-perl and libemail-address-perl. Set PHISHCHECK_TIKA_URL to an Apache Tika Server for attachment text and metadata extraction and for email body fallback. When extraction is unavailable, the report identifies the affected evidence and retains the data recovered so far.

docker run --rm -p 127.0.0.1:9998:9998 apache/tika:4.2.0-2

In another terminal, run PHISHCHECK_TIKA_URL=http://127.0.0.1:9998 phishcheck parse file.eml.

Compose includes msgconvert, Tika, and MLflow. It exposes the app at http://127.0.0.1:8000 by default. Set PHISHCHECK_PORT to change the host port. Copy .env.example to .env to configure triage.

docker compose up --build -d
docker compose exec app phishcheck --help

Provider and history

Only triage sends selected evidence to the configured decision provider. The default model is typesafe:jev-latest through the TypeSafe System One API. Set DSPY_API_KEY or export TYPESAFE_API_KEY. The CLI's provider overrides take precedence over environment variables, then .env, then built-in defaults. Set DSPY_API_BASE for a System One-compatible endpoint.

CLI and web runs save the original filename and exact uploaded bytes, the complete parsed email, and any triage inputs, responses, judgments, labels, verdict, and diagnostics in SQLite. Use PHISHCHECK_DATABASE_PATH to set the path. The default is $XDG_DATA_HOME/phishcheck/history.sqlite or ~/.local/share/phishcheck/history.sqlite. Compose stores it in the phishcheck-data volume. The first release saves history for later viewing.

MLflow tracing requires a tracking URI and MLFLOW_ENABLED=true. Compose supplies the URI. MLFLOW_EXPERIMENT_NAME sets the experiment and triage --no-tracing disables tracing for one CLI run.

Checks

uv lock --check
uv run pytest -q
uv run ruff check .
uv run ruff format --check .
uv run mypy --strict src tests
uv build
docker compose config --quiet

Run the shared EML corpus from a sibling emlparser checkout:

export PHISHCHECK_EML_FIXTURES=../emlparser/emailparser/tests/fixtures/eml
uv run pytest tests/test_eml_corpus.py -q
PHISHCHECK_LIVE_TESTS=1 uv run pytest tests/test_eml_corpus.py -qs

The live run reads provider settings from the environment and this project's .env, sends the projected evidence for every fixture to the configured provider, and reports the verdict labels per file. Set PHISHCHECK_TIKA_URL in the environment to exercise attachment extraction. Both runs use temporary SQLite databases for test history.

Metadata

Release files for phishcheck 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phishcheck 0.1.0
File Size Uploaded Provenance Actions
phishcheck-0.1.0.tar.gz 314.8 kB With provenance Details for phishcheck-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phishcheck 0.1.0
File Interpreter ABI Platform Actions
phishcheck-0.1.0-py3-none-any.whl Python 3 none any Details for phishcheck-0.1.0-py3-none-any.whl

Total release size: 367.1 kB

Release files / phishcheck-0.1.0.tar.gz

Download URL phishcheck-0.1.0.tar.gz
Size 314.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0116c34c2677baf1a302d88cf43b2f053e8e59abbf4b4e739cef0919ed6c57ba
BLAKE2b-256 checksum
How to use checksums
c1cb977acff92ca923ab7bae49b81c0f1bc65e0344298397300740baca515bd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / phishcheck-0.1.0-py3-none-any.whl

Download URL phishcheck-0.1.0-py3-none-any.whl
Size 52.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
232e67fe51fa3dddd93eec4fc3568bd553751bdc8016889695a3fcf9b028d3b7
BLAKE2b-256 checksum
How to use checksums
e9b52b626ac7374217f2f9c4b71cadfed8f13fefc875c3d23ba5e75f7c293e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for phishcheck 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for phishcheck-0.1.0.tar.gz

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page