TEF Estimator
Important: This is an independent implementation of TEF estimation for the FAIR methodology. See FAIR_NOTICE.md for trademark information, data sources, and attributions.
Data-grounded Threat Event Frequency estimation with vector decomposition and multi-scenario support.
Decomposes threat frequency into four initial access vectors (exploitation, credential, phishing, supply chain), each with independent data sources and floor/ceiling bounds. Supports ransomware, business email compromise (BEC), data exfiltration, web application exploitation, and custom analyst-defined scenarios.
Docs: user guide (usage, interpretation), technical reference (methodology, sources), API reference (CLI, Python).
Authors
Laura Voicu and Jack Jones.
Web UI
Estimates with vector breakdown, analysis, sensitivity, compare mode and audit trail (NiceGUI); a badge shows whether the inputs are frozen or live.
More screenshots
Analysis & Sensitivity
Dispersion panel
Sensitivity tornado chart
Compare Mode
Audit Trail
Installation
From PyPI:
pip install tef-estimator
With optional extras:
pip install tef-estimator[ui] # Web interface (NiceGUI)
pip install tef-estimator[telemetry] # Continuous monitoring (requests)
pip install tef-estimator[viz] # Charts (matplotlib, plotly)
pip install tef-estimator[all] # Everything
Or from source:
git clone https://github.com/security-decision-science/security-decision-labs.git
cd security-decision-labs/tools/tef-estimator
pip install -e ".[dev]"
Requires Python 3.10+. All reference data ships with the package; no API keys or accounts.
Quick Start
Python API
from tef_estimator.engine import TEFEngine
from tef_estimator.profile import OrganizationProfile
from tef_estimator.data.common import Sector, RevenueBand, Geography, RemoteAccessType
from tef_estimator.data.scenarios.ransomware import RansomwareScenario
profile = OrganizationProfile(
sector=Sector.MANUFACTURING,
revenue_band=RevenueBand.R_100M_1B,
geography=Geography.US,
remote_access=[RemoteAccessType.FORTINET],
employee_count=2000,
)
print(TEFEngine(scenario=RansomwareScenario()).estimate(profile).brief_report())
CLI and Web UI
tef-estimator estimate --sector manufacturing --revenue 100m_1b --geo us --remote-access fortinet --employees 2000
tef-estimator estimate --sector financial --revenue 100m_1b --geo us --scenario bec
tef-estimator ui # needs pip install tef-estimator[ui]
All commands and flags: API reference.
Telemetry Monitoring
pip install tef-estimator[telemetry]
tef-estimator telemetry init
tef-estimator telemetry collect --force
tef-estimator telemetry baseline
tef-estimator telemetry watch --interval 60
Collects public threat data, flags shifts, and with --live feeds the dispersion shapes and the ransomware base rate (Frozen and Live).
How It Works
Threat frequency is split into four initial access vectors (exploitation, credential, phishing, supply chain), each with an observed floor, a sanity-check ceiling and a positioned estimate: base rate × profile multipliers, where the base rate counts observed events per US firm. How it works: user guide; method: technical reference.
Output Tiers
Tier 1 summary (--brief), Tier 2 analysis (default), Tier 3 audit (--full), JSON (--json), Markdown (--output file.md). See API reference.
Data Sources
Every empirical parameter loads from bundled, cited JSON under data/reference/ and data/scenarios/; nothing is hardcoded in the engine. Sources and what each sets: technical reference §5.1.
To update, replace the extracted.json files under src/tef_estimator/data/reference/. Every estimate names its source editions.
tef-estimator refresh check # Per-source age; flags sources past their own update cycle
Limitations
The base rate drives the output, and several inputs are judgment (labelled). Full list: technical reference, Limitations.
License
Code and data in this repository are released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). See LICENSE and FAIR_NOTICE.md.
Metadata
Release files for tef-estimator 1.3.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 | Provenance | Actions |
|---|---|---|---|---|
| tef_estimator-1.3.0.tar.gz | 847.3 kB | Without provenance | Details for tef_estimator-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tef_estimator-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for tef_estimator-1.3.0-py3-none-any.whl |
Total release size: 1.0 MB
Release files / tef_estimator-1.3.0.tar.gz
| Download URL | tef_estimator-1.3.0.tar.gz |
|---|---|
| Size | 847.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46d8e8d06b9e6b49cf6538b05a12ad3cb83feb45d29f103843689d5c1587a1d3
|
|
BLAKE2b-256 checksum How to use checksums |
77a473b140ac71c0722e455e65dcb029facf19c44faa3d94ff0b01a9c51f70ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / tef_estimator-1.3.0-py3-none-any.whl
| Download URL | tef_estimator-1.3.0-py3-none-any.whl |
|---|---|
| Size | 166.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
588e341201deecdeb055ba003c757715f8485f9b59f0a2e59040a676338b9e6d
|
|
BLAKE2b-256 checksum How to use checksums |
1a0c1955028dd774ead68a7aff0ee45a62fbeb08c52761267608d35cdd70c7b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for tef-estimator 1.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.