Python: Pyrefly 1.0, Profiler 3.15, Virtual Environments, and Malware in Packages
The Python ecosystem renews with static analysis tools, native profiling, virtual environment guides, and an alert about malware that tricks AI.
June 22, 2026 · 3 min read
TL;DR: Python receives key updates: Meta's Pyrefly 1.0, native profiler in 3.15, virtual environment guide, and alert for Hades malware that tricks AI assistants. Security remains a challenge.
What happened?
The Python ecosystem has experienced several simultaneous milestones. Meta has released version 1.0 of Pyrefly, its high-performance linter and type checker. Python 3.15 incorporates a native sampling profiler. A comprehensive guide on Python virtual environments has been published. And Hades has been discovered, a supply chain malware that hides in Python packages and tricks AI-based security tools.
Pyrefly 1.0: Meta's linter for clean and fast code
Pyrefly, developed by Meta, reaches version 1.0. It is a linter and type checker designed to be extremely fast and compatible with complex projects like PyTorch and Django. Its main advantage is speed, achieved through incremental analysis and parallelization. Additionally, it offers advanced typing features that detect errors at development time. This is crucial for teams working with large codebases, where tools like mypy can be slow.
Python 3.15: Native sampling profiler
The upcoming version of Python, 3.15, will include a high-performance sampling profiler. Unlike traditional profilers that instrument every function call, the sampling profiler periodically samples the call stack, minimizing overhead and allowing analysis of production applications. This feature, requested by the community for years, makes it easy to identify bottlenecks without affecting performance. Developers can use it by simply enabling a flag, without external modules.
Complete guide to Python virtual environments
A detailed guide on using Python virtual environments has been published, covering everything from basic concepts to advanced tools like venv, virtualenv, pipenv, and poetry. The guide emphasizes the importance of isolating dependencies to avoid conflicts between projects and improve reproducibility. It also addresses environment management in teams and the use of requirements.txt and pyproject.toml files. For new or experienced developers, this guide serves as a comprehensive reference.
Hades: The malware that tricks AI
A new malware family named Hades has been identified, spreading through malicious Python packages on PyPI. What's novel about Hades is its ability to trick security tools based on large language models (LLMs). The malware inserts obfuscated code that LLMs interpret as benign, going unnoticed in automated reviews. Once installed, Hades can steal credentials, install backdoors, and spread to other systems. This attack underscores the vulnerability of the software supply chain and the need for additional manual audits.
Why is it important?
These events reflect the maturity and challenges of the Python ecosystem. Pyrefly 1.0 and the native profiler improve developer productivity, while the virtual environment guide helps with best practices. However, Hades shows that security remains a weak point, especially when AI tools can be deceived. The community must strengthen package verification and consider implementing digital signatures or behavioral analysis.
What consequences will it have?
Pyrefly could become the go-to linter for large projects, competing with mypy and pylint. The Python 3.15 profiler will reduce reliance on external tools like cProfile or py-spy. The virtual environment guide will standardize practices in new teams. As for Hades, we are likely to see increased vigilance over PyPI and possibly new security measures from the Python Software Foundation. Developers will need to update their CI/CD pipelines to include more robust malware analysis.
What should readers know?
- Pyrefly 1.0 is now available for use; it is especially useful in projects with complex typing.
- Python 3.15 is in alpha; it is recommended to test the sampling profiler in staging environments.
- The virtual environment guide is a practical resource for any Python developer.
- Regarding Hades, it is advisable to verify package integrity before installation and avoid relying solely on AI tools for security review.