Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

lmfpd

Latest version: v0.2.1

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: Ikaleio
3,059 Stars
122 Forks
3 Versions
717 Downloads
TypeScript Repo language

Scan summary

lmfpd was last scanned on 1 Dec 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 0.2.1.
  • Downloads: 717 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.1 LATEST 1 Dec 2026 No rules fired
0.2.0 26 Oct 2026 No rules fired
0.1.0 24 Oct 2026 No rules fired

No rules fired in 0.2.1

Findings

Findings for v0.2.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

lmfpd (Python)

Language-model fingerprint detection: score saved replies against the lmfpd reference bank, generate challenge prompts, and run one live detection round against an OpenAI, Anthropic, or Gemini API.

Documentation: https://lm.ikale.io/docs/en/sdk

Install and build

pip install lmfpd
uv build                   # from sdk/python; writes the sdist and wheel to dist/

Python 3.10 or newer. Dependencies: httpx (with SOCKS support), zstandard, and numpy.

Loading reference data

lmfpd.load(source=DEFAULT_DATA_URLS, cache=None, ttl=86400.0) is the one entry point.

  • Local directory: a single source that is not an http:// or https:// URL is a directory holding unified_bank.json and shared_detector.bin (for example projects/data). It is read as is, with no cache and no network.
  • URLs: sources are tried in order: https://lm.ikale.io/data/, then the mainland-China mirror https://cdn.jsdmirror.com/npm/lmfpd-data@latest/. Only bundle.json and the detector are downloaded (about 3.6 MB compressed, 4.5 MB uncompressed). Files are not checksum-verified.
  • Cache: one file, cache, defaulting to <OS cache dir>/lmfpd/data.bin ($XDG_CACHE_HOME, ~/Library/Caches, %LOCALAPPDATA%, or ~/.cache). Its modification time is the last check against the sources.
    • With a cache, load() returns it at once. When the last check is ttl seconds old or more (0 checks on every load), a background thread fetches bundle.json and, only if the detector changed, the new detector for the next load. Failures there are ignored.
    • Without a cache, or with a damaged one, load() downloads before returning and raises lmfpd: cannot download reference data from ... when every source fails.

HTTP requests honor HTTPS_PROXY, HTTP_PROXY, ALL_PROXY (including socks5h://), and NO_PROXY.

API

Results are plain dicts with the same keys in every lmfpd SDK; lmfpd.Analysis, Sample, and DetectResult are their TypedDicts. Invalid input raises lmfpd.LmfpdError.

  • load(source, cache, ttl) -> Detector: load reference data from URLs (cached) or a local directory.
  • Detector.built_at: the data build identifier.
  • Detector.analyze(outputs, strict=False) -> Analysis: score one to three {"text", "expected_count"} replies.
  • Detector.detect(base_url, api_key, model, *, api="responses", effort="", service_tier="default", stream=True, strict=False, count=3, parallel=3, timeout=120.0, on_sample=None) -> DetectResult: send count challenges and score the replies. api is responses, chat_completions, or messages. timeout limits the wait for the first SSE byte or the whole JSON reply; timeout=0 disables the timer. This SDK cannot cancel requests, so with 0 a server that connects but never sends its first byte (or never finishes a JSON reply) blocks detect and request_sample forever. on_sample reports progress (see below).
  • generate_challenges(count=3) -> list[Challenge]: random challenge prompts.
  • parse_numbers(text) -> list[int]: the numbers 1 to 355 of the longest run in a reply.
  • build_request(config, prompt) -> dict: the URL, headers, and body detect sends for one prompt.
  • request_sample(config, challenge) -> Sample: send one challenge and check the reply.

config dicts use the detect keyword names (base_url, api_key, model, api, ...).

import lmfpd

detector = lmfpd.load()
result = detector.detect("https://api.openai.com/v1", "sk-...", "gpt-5")
print(result["analysis"]["prediction"] if result["analysis"] else result["error"])
Progress

on_sample(index, sample) receives live Sample snapshots; index is the position in result["samples"].

def on_sample(index: int, sample: lmfpd.Sample) -> None:
    print(index, sample["state"], sample["count"], sample["first_byte_ms"])

result = detector.detect("https://api.openai.com/v1", "sk-...", "gpt-5", on_sample=on_sample)
  • Order: queued for every index (0 to count - 1) before any request, then per sample waiting when its request starts, streaming at the first SSE byte, an event each time the accepted text changes, and last its final complete, truncated, or failed sample, equal to result["samples"][index]. States may repeat.
  • first_byte_ms is the time from the request start to the first SSE byte, or to the parsed JSON reply; None when not reached.
  • Calls come from worker threads but never overlap, and each gets a fresh dict. A slow callback slows sampling.
  • An exception raised by on_sample propagates out of detect; it never turns into a failed sample.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases lmfpd

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229