# Even pytest --help Runs conftest.py. PolinRider Malware Counts on It

Source: [DEV Community: python](https://dev.to/lycore/even-pytest-help-runs-conftestpy-polinrider-malware-counts-on-it-43i9) · 2026-12-01 · Languages
Page: https://themorning.dev/story/even-pytest-help-runs-conftest-py-polinrider-malware-counts-on-it-386211076e0015c9
Kind: security · Impact: high

## In brief

- Running pytest executes conftest.py, even for pytest --help, according to the article.
- A malware campaign called PolinRider relies on this behaviour.
- The article warns that developers often run tests on cloned repos before reviewing them.

## Why it matters

Running pytest on an untrusted repository can execute attacker-controlled code before any tests run, so simply cloning and running the test suite is not safe.

## What to do

- Review conftest.py in untrusted repositories before running pytest

## Coverage

- [Even pytest --help Runs conftest.py. PolinRider Malware Counts on It](https://dev.to/lycore/even-pytest-help-runs-conftestpy-polinrider-malware-counts-on-it-43i9) — DEV Community: python, 2026-12-01

Tags: pytest, python, malware, supply-chain, conftest

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
