MAL-2026-17897 Malicious code in fromthehotel-poems (PyPI)

Malicious package Published
Package
fromthehotel-poems
Registry
PyPI

What is MAL-2026-17897?

MAL-2026-17897 is a malicious package in fromthehotel-poems, published on 16 Oct 2026.

Official description

The package's documented public API getdaily() performs an HTTPS fetch to https://login.fromthehotel.com/api/poems/code, passes the response body to compile() and exec() in the caller's process, and then invokes get_daily_poem from the resulting namespace. The README presents getdaily() as a poem-fetching helper, so callers invoking the advertised API unknowingly execute Python source served by that endpoint. The fetched code is unpinned and there is no hash or signature verification, so whoever controls login.fromthehotel.com — or anyone able to tamper with the response — controls arbitrary code execution on every host that calls getdaily(). The exec runs with the caller's full process privileges and has unrestricted access to environment variables, filesystem, and network.

One of the provided functions hides executing remote code from a newly created domain. During analysis, the remote code did not contain any malicious action. The description and other endpoints clearly suggest it's an attempt to exploit LLM agent like Muse. In one of the hosted instructions, the agent is instructed to download a self-hosted package depending on published code and trigger the code execution action.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-10-fromthehotel-poems

Reasons (based on the campaign):

  • Downloads and executes a remote malicious script.

  • llm-threat

  • action-hidden-in-lib-usage

What should I do about MAL-2026-17897?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2026-17897 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free