Skip to main content

filevet

Self-hosted, open-source scanner that checks the files finance teams receive for security risks before anyone opens or ingests them.

CI PyPI OpenSSF Scorecard License

Why

Fintechs and finance teams take in files from outside every day: invoices, bank statements, KYC documents, payment files. Any of them can carry malware, exploit the parser that reads it, or hide instructions meant for an AI system further down the line. Commercial scanners are closed and expensive, and the open-source ones don't understand financial formats like ISO 20022. filevet runs several independent analyzers over a file and returns one report you can act on.

Status

Quickstart

These commands will work from v0.1.0.

pipx install filevet
# or
uv tool install filevet

filevet scan statement.pdf

With Docker, without network access and with the file mounted read-only:

docker run --rm --network none --read-only --tmpfs /tmp -v "$PWD:/in:ro" ghcr.io/pablodt00/filevet scan /in/statement.pdf

Example

filevet scan invoice.pdf

Trimmed output from a file named invoice.pdf that's really a Windows executable (the format may still change):

{
  "filevet_version": "0.0.2",
  "artifacts": [
    {
      "id": "1bf01f46-66b9-4b57-a40c-031d8d71615f",
      "name": "invoice.pdf",
      "sha256": "9f2c…e41a",
      "declared_type": "pdf",
      "detected_type": "pe",
      "depth": 0
    }
  ],
  "findings": [
    {
      "rule_id": "basic.type_mismatch",
      "title": "File content does not match its extension",
      "severity": "critical",
      "confidence": 1.0,
      "evidence": "invoice.pdf",
      "references": ["https://cwe.mitre.org/data/definitions/434.html"],
      "analyzer": "basic.type_mismatch/0.1.0"
    }
  ],
  "summary": { "critical": 1, "high": 1, "medium": 0, "low": 0, "info": 0 },
  "verdict": "block"
}

--format table prints the same report as a table for people. The full report format is in docs/schema/report.schema.json, and filevet schema prints it too.

Other commands: filevet analyzers lists the registered analyzers, and filevet version prints the version.

Exit codes

CI jobs can act on the exit code of filevet scan without parsing the report.

Code Meaning
0 No findings of medium or higher (verdict pass)
1 At least one medium finding (verdict review)
2 At least one high or critical finding (verdict block)
3 Usage error, including a missing input file or one over the size limit
4 Internal error in filevet

What it checks

Planned for v0.1:

Analyzer File types Threats covered
basic.type_mismatch All Extension doesn't match content, executables disguised as documents, any executable or script
malware.clamav (optional) All Known malware signatures, via a ClamAV sidecar
malware.yara All Suspicious structure, using bundled or your own YARA rules
malware.pdf_active_content PDF JavaScript, launch actions, auto-actions, embedded files, obfuscated names
malware.office_macros XLSX, XLS, DOC VBA and XLM macros, auto-exec triggers, DDE, remote template injection
malware.embedded_executable All containers PE, ELF, Mach-O, scripts or .lnk files inside another file
parser.csv_formula_injection CSV, XLSX Cells that spreadsheet apps will run as formulas, DDE payloads
parser.xml_unsafe ISO 20022 XML DTDs, XXE, entity expansion, XInclude, deep nesting
parser.archive_bomb ZIP, OOXML Extreme compression ratios, deep nesting, overlapping entries, quines
parser.path_traversal ZIP ../ entries, absolute paths, drive letters, symlinks
parser.polyglot All Files that are valid as more than one type
parser.malformed All Broken or parser-repaired structure, a common evasion sign
format.iso20022_schema ISO 20022 XML Messages that don't validate against the official XSD

Limitations

  • filevet never declares a file safe. It reports what it checked and what it found, and no scanner catches everything.
  • It doesn't replace antivirus or EDR, email security, or human review of high-value payments.
  • v0.1 doesn't detect document tampering or inconsistent financial data (planned for v0.2), or content aimed at AI pipelines (planned for v0.3).
  • It doesn't analyze network traffic, attribute malware to families, or store scanned files.

The full scope is in docs/SCOPE.md.

Roadmap

Work is split into phases, each tracked as a milestone: foundations, MVP (v0.1), integrity checks (v0.2), platform features such as a REST API and policy engine (v0.3), and hardening for v1.0.

Contributing

Start with CONTRIBUTING.md. Everyone taking part is expected to follow the Code of Conduct.

Security

Report vulnerabilities privately, as described in SECURITY.md. Please don't open public issues for them.

License

Apache License 2.0. See also NOTICE.

Metadata

Release files for filevet 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 filevet 0.1.0
File Size Uploaded Provenance Actions
filevet-0.1.0.tar.gz 134.8 kB With provenance Details for filevet-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 153.6 kB

Release files / filevet-0.1.0.tar.gz

Download URL filevet-0.1.0.tar.gz
Size 134.8 kB
Tags Source
SHA-256 checksum
How to use checksums
13b65a0231606e0f56938d2bd522e14c85465260661ee775cb9235920fb4b911
BLAKE2b-256 checksum
How to use checksums
d3c918a82113a8987d864878d570601d8c90dec864536f687da4a29bd3f72339
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 14, 2026.

Transparency log

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

Download URL filevet-0.1.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64abde425966531fbfc270bb8a42a61498fd86a8ae9e2e5323f6f29daf041b88
BLAKE2b-256 checksum
How to use checksums
b13570fb89a4ab09a5055bcdcc0efbed8f132bff7c2c20690e8617f1cbe21b30
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 14, 2026.

Transparency log

Security for filevet 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 filevet-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 14, 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.

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