Python Security at PyCon US 2026, a Visual Guide
TL;DR: PyCon US 2026 gave security its own day-long track for the first time, and the room was full. The talks covered a phishing campaign against PyPI maintainers that got past TOTP two-factor, dependency cooldowns, GitHub Actions pitfalls, SBOMs, zero trust, and a proposal to bring Rust into CPython. The people behind the track don't think Python security is anywhere close to solved, and they want more people and money behind it.
"Security has always been the vegetables of software." That's how Michael Kennedy, host of Talk Python, framed it. Everyone agrees it matters, and somehow it never quite makes it onto the plate. At PyCon US 2026 in Long Beach, it finally did. Security got a dedicated track for a full day, one of only two at the conference (the other was AI), and several of its talks were standing room only.
The track, Trailblazing Python Security, ran in a single room and covered a wide stretch of the problem. Some of it was about Python itself, like a proposal to rewrite parts of CPython in Rust. Most of it was about the supply chain around Python: a phishing campaign that got past app-based two-factor codes and ended with a malicious release of a package that sits under Hugging Face Transformers, dependency cooldowns, GitHub Actions workflows, software bills of materials, how the CVE system copes with malware, and zero trust for API credentials. Plenty of it isn't specific to Python. Credentials and phishing matter whether you write Python, C or anything else.
So how is Python security doing? Unfinished, and being fixed while it's in use. Mike Fiedler, PyPI's Safety and Security Engineer, calls it "rebuilding the plane while you're flying it": better sensors, better steering and better throttles get added "while we're still flying".
This guide follows the arc of that day. It starts with who actually gets paid to do this work, then covers the phishing campaign and why the kind of two-factor you use matters, how one small package reached Hugging Face Transformers, dependency cooldowns, GitHub Actions, SBOMs, CVEs and malware, zero trust and Rust in CPython. It ends where the day did, with what you can do about it.
Who gets paid to secure Python, and why volunteers still matter
Python's security work rests on a surprisingly small number of paid people, and the job is split between two roles at the Python Software Foundation. The PyPI Safety and Security Engineer works on the package index itself, which has over a million user accounts. The Security Developer-in-Residence takes everything that isn't the PyPI backend: the language and runtime, the security response team for Python and pip, packaging tools and standards, and the way the CVE world interacts with Python. A CVE Numbering Authority is an organization authorized to assign CVE IDs, and setting one up for the PSF is part of that second job.
Is paying people worth it? The trade-off cuts both ways. Volunteers do what they want to do, and they do their best. Hire someone and you can set expectations and work to meet them. The catch is that volunteers often step back once a position exists, which gives them a much-needed break and puts more pressure on full-timers, who are short on capacity and time. Even so, a paid, focused security effort has shown it gets good security outcomes.
Seth's way of working with volunteers is to choose the work carefully. A broad remit tempts you to snack on small things, so the paid role goes after projects that are clearly high impact. It also avoids tasks a volunteer could reasonably do, and may pause to leave room for someone to step in. What's left is work volunteers are less likely to want, such as standing up that CVE Numbering Authority or administering the Python Security Response Team, which includes watching its inbox for spam. Coordinating vulnerability reports is different. People may well want that, and they get acknowledged in the CVE record and advisory for it. The aim is to build "the community volunteer muscle" rather than do everything in-house.
The nonprofit setup adds one more advantage. Because the PSF publishes what it does and where it has seen success, other projects can copy those processes into their own. Maintainers of projects like Flask ask for advice on running a security response program or writing a threat model, and the answers aren't secrets.
“One of the nice things about this role being at a nonprofit is that you can be super, super open. You don't have to keep the secrets to yourself about what you've done and how you've seen success.”
Seth Larson
PyCon US 2026's first Python security track
PyCon US 2026 gave security its own track for the first time. Trailblazing Python Security ran for a full day, in one fixed room so nobody had to keep moving between talks, and it was one of only two dedicated tracks at the conference, the other being AI. The organizers were limited to about eight slots.
Why does a track matter more than a few security talks scattered through the schedule? Because security runs alongside everything else in Python. If you maintain a package, it should be somewhere on your mind while you develop, yet there may be a big gap in how much time maintainers spend on it and how much expertise they have. A dedicated track "elevates the importance of security within Python", which isn't always the case, and it gives maintainers and users a place to learn about the security side of their development process. A lot of the material wasn't even Python specific. Credentials and phishing matter whether you write Python, C or any other language.
The track also showed what's still missing. A basic introduction for people at the very start of the security path may have been missing. Basics like switching on a few settings in a GitHub repository's configuration may have gotten little time, and some projects, university-run ones among them, may not be ready for the more advanced practices. A Security 101 opener would fill that gap. Think of it as getting through the first week without being hacked: add some rate limiting and logging, so that if something does happen, you can tell.
Several talks were standing room only, with nowhere left to stand. For a first-time event, a room that's too small is a good problem to have, and the organizers saw no sign they shouldn't do it again. A second one is hoped for, with a bigger room and maybe a more interactive format. A panel-style session was floated: open with a few questions to set the theme, then take questions from the audience.
“I think security is something that's parallel to everything in Python. I think that if you're a maintainer for a package, I think having security somewhere on your mind should be a thing.”
Juanita Gomez
How the PyPI phishing campaign worked
Plenty of phishing means building a copy: a byte-for-byte or pixel-perfect clone of a site, with victims steered to it. This campaign skipped the clone. The attackers put a proxy in front of the real PyPI, a server that passes what a visitor does to the genuine site and passes the genuine pages back. Mike Fiedler, PyPI's Safety and Security Engineer, handled the incident firsthand and opened the track with it.
The campaign ran in four steps:
- Collect addresses. Maintainers' email addresses are public. They sit on GitHub profiles and in Python package metadata, and the attackers mailed an unknowable number of maintainers.
- Copy a request PyPI really makes. PyPI is open source, so anyone can read its code and see what its email templates look like. PyPI does ask maintainers to take action now and then. It emailed people a couple of years ago to turn on 2FA, and it sometimes tells them to fix a problem with their metadata. The attackers asked maintainers to do an action, and the maintainers did it.
- Hide in the URL. The link went to pypj.org instead of pypi.org. Spotting a lowercase i versus a j in Arial, while hovering over a link in an email on a phone, is a hard ask. You're not going to notice it. The mail wasn't sent through PyPI's email infrastructure and came from the domain advertised for the attack. Anti-spam tools might have caught it, but they didn't.
- Relay the login. A maintainer who signed in at the look-alike was really signing in to PyPI through the proxy. The next sections cover how that login became lasting access, and where the one stolen package went.
Why mail maintainers at all? The email on a maintainer's GitHub profile is probably the one registered at PyPI, and the packages worth taking over link straight to those GitHub repos. That condenses the work a little. A lot of phishing is spray and pray: email 2 million people, and if two bite, that counts as a success.
PyPI has over a million user accounts, and only four people clicked through and logged in. The people who fell for it did what they were asked to do. The annoying part is that 2FA has been promoted for a very long time, and this was still phishing.
“We have to defend 100% of the time. They only have to be right once or twice.”
Mike Fiedler
Why TOTP two-factor didn't stop the PyPI phishing proxy
PyPI has pushed two-factor authentication for a long time, so how did a phishing site still get in? Because you can still get phished with certain forms of 2FA. A phishable kind, and the one used here, is the time-based one-time password, or TOTP: the six-digit code from a QR code you scanned into Google Authenticator or a similar app. Per RFC 6238, the code is computed from a shared secret and the current time, and it changes every 30 seconds by default. Here's a stripped-down version of that algorithm using only the standard library:
import hashlib
import hmac
import struct
def totp(secret: bytes, unix_time: float, step: int = 30, digits: int = 6) -> str:
counter = int(unix_time // step)
mac = hmac.new(secret, struct.pack('>Q', counter), hashlib.sha1).digest()
offset = mac[-1] & 0x0F
value = struct.unpack('>I', mac[offset : offset + 4])[0] & 0x7FFFFFFF
return str(value % 10**digits).zfill(digits)
Look at the inputs: a secret and a time. Nothing in there says which website is asking, so a proxy can pass a code along to the real site while it's still valid.
The login was only the start of the attack:
- The maintainer types username, password and the current TOTP code into the look-alike site, and the proxy forwards them to the real PyPI.
- PyPI answers with a session cookie. Browsers use it instead of asking for your password and 2FA on every page view, and it's good for something like eight hours.
- The attacker uses that cookie to log in as the maintainer. The 30-second window no longer matters.
- They create a PyPI API token. At the time of recording, API tokens didn't expire, so the attacker no longer needs the username, password, TOTP code or session.
TOTP still earns its keep. If a password leaks or someone tries to brute force it, the password alone is no longer enough to get in. Against a live proxy it adds little.
Two things help. After the attack, PyPI started checking sessions that were obtained with TOTP. If one turns up from a different IP address, PyPI no longer accepts it and asks you to prove who you are again. Sessions from WebAuthn logins aren't affected. People who bounce between VPNs, or change IP addresses on a train as it passes cell towers, could get caught by the check, though that probably doesn't happen often.
The better fix is a different kind of second factor. WebAuthn, the standard behind passkeys and hardware keys like a YubiKey, is more phishing resistant, and anyone using it was not subject to this attack. The W3C spec scopes a WebAuthn credential to the site it was created for, and only that site's origins can access it. The next section picks it up.
“And now I don't need your username, your password, your TOTP, the session token. I don't need any of that. I have an API token.”
Mike Fiedler
Passkeys, WebAuthn and trusted publishing for PyPI
If a six-digit TOTP code can be relayed to a look-alike site, what can't be? WebAuthn, the technology underneath passkeys and hardware keys like a YubiKey. It's a different sort of two-factor, and it's more phishing resistant. In the PyPI phishing campaign, anyone using a phishing-resistant factor was not subject to the attack.
The mechanism is the origin scoping described in the previous section: a look-alike domain has no credential to forward and no code to type into the wrong page.
The second half of the problem is how packages get published. The attackers' durable access came from an API token, and PyPI API tokens did not expire at the time of recording. A stolen session could mint one and keep it.
Trusted publishing removes that secret. Instead of pasting a long-lived token into your CI settings, you tell PyPI which workflow it should trust. At publish time the CI provider proves its identity to PyPI with an OpenID Connect token, and PyPI answers with a short-lived, project-scoped API token. According to the PyPI docs, that token is valid for 15 minutes.
You configure it in two places. On PyPI, add a publisher to the project's Publishing settings with the GitHub owner, repository name and workflow file name, plus an optional environment name that the docs strongly recommend. In the repository, the workflow needs one permission and no secret:
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
The id-token: write permission lets the job request the OIDC identity token, and the PyPI docs recommend setting it on the job rather than the whole workflow. When migrating, remove the old username: __token__ and password: ${{ secrets.PYPI_TOKEN }} inputs.
The catch: as long as the old token exists, it can still publish, so delete it once you have switched.
“Look at trusted publishing. Convert at least one of your projects to use it. And don't forget to delete the old token.”
Mike Fiedler
num2words: how one phished package reached Hugging Face Transformers
A supply chain attack compromises something your software depends on instead of the software itself, so the malicious code flows downstream to everyone who installs it. The PyPI phishing campaign is a small, concrete example. Of those four accounts, PyPI's audit of the attackers' signatures and behavior turned up only one package that was harvested and republished. That's "just one that we know of", which doesn't rule out others created as a backup.
The choice of package is the interesting part. The attackers ignored whatever the other three maintainers had and went after a package that is "a dependency of a dependency of a dependency". That was num2words, a sub-dependency of Hugging Face's Transformers library. Transformers is kind of key if you do anything in AI, and Mike's rough recollection is 30 to 40 million downloads a day.
How does a number-to-words converter reach all of those people? Through the dependency graph. When you install Transformers, pip resolves its dependencies and picks a version for each. If a dependency isn't pinned, the resolver takes the newest release the index offers. num2words was not pinned in Transformers, so by publishing a new version the attackers made sure any Transformers user was going to get it. Nobody had to choose num2words. Installing the top of the tree did the distributing.
The weakest, least-watched link in the chain is enough. You might review a package before taking it on, but how far down its dependency chain do you follow? There's no comfortable answer, because nobody writes everything themselves. Your compiler, the Python language, your editor and your operating system all come from somebody else. Anyone who wrote all of those on their own is likely more secure for it, but they've put in a lot of effort that's unnecessary in today's world.
What can you do about a package that deep? Pinning sub-dependencies and setting version bounds is a whole other set of conversations. For an end consumer, the easier lever is a dependency cooldown, which refuses to install a release until it has been public for a few days.
“You're only as strong as the weakest link in your chain. And we all depend on something and somebody else and somewhere.”
Mike Fiedler
Why the CVE system struggles with malicious packages
A CVE is a public, numbered record of a specific vulnerability: a flaw in software that is supposed to be doing something legitimate. A CVE Numbering Authority (CNA) is an organization authorized to assign those numbers, and the PSF is one for Python and pip. Databases such as OSV then describe and distribute vulnerability data in a machine-readable way, so tools can warn you when a dependency you use has a record.
That whole system assumes a flaw. Malware on PyPI isn't buggy software. It's software built to do harm, working exactly as its author intended. If you open a PDF in Microsoft Word and it turns your machine into part of a botnet, that's a CVE, because Microsoft Word isn't intended to be malware. A malicious package is the bad actor itself, so there's no legitimate software with a mistake in it to point at.
In practice, the community sometimes issues CVEs for malware and sometimes doesn't. If it did every time, there would be millions of them. That raises open questions with no settled answers. What are the trade-offs? Does it overwhelm the system? Is it even useful?
The talk looked at watering hole attacks that published malware to several open source ecosystems, PyPI included, and at how CVE and OSV records responded and how the word got out.
Is CVE the right tool for malicious packages? It feels close but not quite, which is what makes it challenging. Whether the answer is a new system or something else is unsettled, and more thinking is needed.
“It feels so close to being the right system to use, but not quite. And maybe that means that we need to build a new system.”
Seth Larson
Four places to defend a Python package
Defense in depth means no single control has to be perfect, because a different one sits at the next step. For a Python package, the steps run from a maintainer's repository, through a build and a registry, to your machine. The tools in this guide line up along that path, and each one guards a different step:
- The repository. zizmor is a static analyzer for GitHub Actions workflow files, and it flags risky patterns before they become an attack. See GitHub Actions and zizmor.
- The build. SBOMit records what actually happens during a build, such as network calls and command invocations, and captures it as a verifiable record with in-toto. See SBOMit.
- The registry. Trusted publishing lets CI publish to PyPI with a short-lived token instead of a long-lived API token. See trusted publishing.
- Your machine. A dependency cooldown keeps brand-new releases off it for a set number of days, which gives the community's scanners time to look. See dependency cooldowns.
The PyPI phishing campaign shows why more than one step matters. TOTP was the layer the attackers got past, and the lasting damage came through another: an API token that did not expire. A phishing-resistant login would have stopped the login relay, and trusted publishing keeps a long-lived token out of your CI settings.
No layer here is complete on its own. A cooldown only helps if a scanner or reporter has caught the release in time. Stacked, the layers leave an attacker more to get past.
Dependency cooldowns: waiting a few days before you install
A dependency cooldown means refusing to install a package version until it has been public for a while. The problem it solves is the latest-release default. With unbounded versions, you get whatever the newest release on the registry is, and attackers look for exactly that. A cooldown is the easy way for an end consumer to say "I want to wait three days or seven days". In that window it's very likely some security scanner has chewed through a new release, and if one has flagged it, there's a very high likelihood the version is no longer available for download.
Why are bad releases often gone so fast? PyPI has no commercial scanning relationship. Community volunteers and some businesses scan new uploads and report suspicious packages. The best reporters have earned such a low false-positive rate that PyPI lets their reports put a package into automated quarantine. It can't be downloaded until a human reviewer clears it or removes it. Kamil Mankowski, a volunteer in Austria, often reports within 30 minutes of publish, with zero false positives. The stats at cooldowns.dev, which include the LiteLLM case, point the same way: by recollection, within a week about 90% of the affected versions were taken down, most within a day.
Cooldowns are showing up in uv, pip and package managers outside Python. In uv the setting is exclude-newer, and it accepts a relative duration. pip's equivalent is --uploaded-prior-to, which takes a date or a duration in whole days and only works with indexes that provide upload-time metadata:
uv pip compile requirements.in --exclude-newer "7 days" -o requirements.txt
pip install --uploaded-prior-to P7D requests
Who is this for? Anyone without a security team: students, people for whom Python is their first language, and developer or personal machines with no mirror or policy behind them. Set a cooldown once and you benefit from all the scanning and takedown work already happening.
It's not all unicorns and rainbows, however. Pinning with uv pip compile, a one-week cooldown and pip-audit in a Docker build that fails on a known CVE sounds airtight. Then a CVE lands, the fix ships a day later, and the cooldown refuses the fix for being too new. That left Michael Kennedy with a growing list of one-off exceptions, like two packages demanding opposite version bounds.
That clash is why a cooldown is hard to make a default right now. Commands that always worked suddenly say a version doesn't exist, because the installer is, roughly, dropping those versions from the candidate pool. A better default would trust anyone showing operational maturity, such as using a mirror or asking for a lock or an exact version, and would know when a security fix lands inside the window. That may get easier if review moves to the index side. For now, an upload to PyPI is mostly available immediately and scanned after the fact, because there's too much volume to do otherwise.
“Set like a really aggressive like seven days or something like that on your cooldown one time and then you're pretty okay.”
Seth Larson
GitHub Actions security: pull_request_target and zizmor
Your CI configuration is code that runs with your project's credentials, so it deserves the same scrutiny as the code it builds. zizmor is a static analyzer for GitHub Actions workflow files. You point it at a repository and it flags patterns known to be exploitable, from easy-to-fix findings to the scarier kind, where a workflow leaves the project open to an injection that leads to an exploit. One PyPI-ecosystem researcher ran it across a large set of PyPI-linked repositories, and what it surfaced was scary.
The trigger behind a lot of these is pull_request_target. GitHub Actions has many triggers, such as push and pull_request. This one fires for pull requests from forks, and it runs with elevated privileges. zizmor's docs explain why that is dangerous: the workflow runs in the context of the target repository rather than the fork, and the fork side can typically trigger it. The result can be attacker-controlled code execution or unexpected action runs. The docs also warn that avoiding running the pull request's code doesn't automatically make the trigger safe.
Cache poisoning is one concrete way this goes wrong. Someone with no rights to your project opens a pull request, which kicks off a build. In one scenario described, because the build runs in the context of the target repository, the pull request could point at a malicious package that then got cached into the project's real build. Here's a more common risky shape, which checks out and runs the fork's code. It is shown only so you can recognize it.
# RISKY PATTERN - do not copy
on:
pull_request_target:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # checks out the fork's code
- run: pip install . && pytest # then runs it with the target repo's privileges
Running that file through zizmor reports pull_request_target is almost always used insecurely as a dangerous-triggers error (checked with zizmor 1.33.0). It can run straight from PyPI without installing anything permanently:
uvx zizmor .
So what should a maintainer do? Run it on your repository, and better, add it as a GitHub Action so it runs all the time. Follow its recommendations, and move on with your life. That makes it a good item for any checklist for people getting started with security.
“This should be on that checklist of did you run zizmor on your repository? Better yet, did you add it as a GitHub action to run always on your repository?”
Mike Fiedler
Runtime SBOMs: is the vulnerable code even running?
An SBOM, a software bill of materials, is a list of everything that went into a piece of software. The format isn't tied to any one ecosystem, which suits Python well, because plenty of Python packages aren't just Python. They carry C, Fortran, Rust and JavaScript too, and an SBOM can describe the provenance of all of it.
An SBOM built from declared inputs lists what you said you use. A runtime SBOM asks a different question: what is actually there? The technique, from a PyCon US talk titled Post-Incident Runtime SBOM Generation from Python Memory, looks at what's loaded into memory in a running Python program. Why is this library loaded too? Did something an attacker put on the machine get loaded in? Getting there takes a deep understanding of Python memory management, how modules are loaded and how functions are called.
That visibility also helps with a daily headache. A scanner like pip-audit, or a Dependabot alert, tells you a dependency has a CVE. Then you still have to decide whether it matters. Take a Windows-only flaw triggered by untrusted PDF input. If you deploy to Linux in Docker and never feed that package untrusted input, the alert is noise, but it can still fail your build. Introspecting a live program can show whether the affected code is being used while it runs, without reading the source to check.
Tools may make that call for you someday. As far as Mike knows, there's an ongoing effort in the open source vulnerability database, OSV, to publish richer details about which code paths a vulnerability affects. An audit could then check automatically whether you use those paths, and fail your build or not.
There's a catch, though. Python's dynamism makes the question harder, not easier. You don't even need an import statement to load a library: importlib works, and so do all sorts of other things. Spotting an import statement isn't a reliable way to know whether a library is in use. The open problem is getting enough information in front of you to make a confident decision without misleading you down the wrong path.
“So the challenge is how do we surface enough information to make a confident decision without misleading you down the wrong path.”
Mike Fiedler
Rust in CPython: why zlib comes first
What if more of CPython were written in Rust? The proposal in a PyCon US talk on Rust for CPython is modest: rewrite a single standard library module in Rust. The long-term goal is maybe more, potentially even parts of the language itself. The just-in-time compiler may have been another candidate for a larger project, or a place to cut your teeth that might never be merged but would prove out whether the tooling for compiling to Rust and having it work for Python holds up.
Why zlib as a first module? It's a compression library that's pretty well understood, and it processes a lot of untrusted data. That's where the memory-safety argument applies. Memory-management bugs in code that handles untrusted data can become security vulnerabilities, and that's the class of bug a Rust rewrite aims at. It's not necessarily that zlib has had a ton of issues in that area, but it makes a good first module to attack.
The harder problem is people. The C in CPython is there for a reason: a lot of the people who work on it are C developers. They don't necessarily want to rewrite things in Rust, and they don't necessarily have the expertise to maintain it. A migration like this is a technical project and an organizing project at once. Explaining why it's needed and what it means technically is one thing. Getting the community to agree is another, and that's how open source works. Nobody can just decide and take a different path, because many people are involved in decisions for a community.
Isn't this just the old "rewrite it in Rust" joke? People do treat it almost like one. RustPython already exists, so why would this be hard? But it's extremely difficult, socially and technically. The idea has been discussed for quite a while, and the talk was roughly the first time the team went to the wider community to discuss this and what it could mean. More discussion is planned for the language summit at EuroPython, and a long road is expected.
“You don't just make a decision and take a different path on something that you're doing. There's a whole lot of people that are involved in making decisions for a specific community.”
Juanita Gomez
Zero trust in Python: a credential per transaction, and builds you can verify
The phishing story turned on a credential that lasted forever. This talk's version of zero trust goes the other way: as host Michael Kennedy recalled it, every time your code needs an API key it gets a fresh, short-lived one. Want to talk to AWS? Here's a key to use right now.
As Michael Kennedy described it, the talk comes out of FedRAMP, the US government's Federal Risk and Authorization Management Program, which provides an approach to security and risk. The PyCon US talk that covered it, Zero Trust in 200ms: Identity per Transaction, showed how to build this in Python with tools people already use, starting with the AWS SDK, and then extrapolated it to other backends so it isn't tied to one cloud. Regulated industries that have to implement FedRAMP face a ton of extra work, and it rarely gets discussed online, because that work mostly happens inside companies rather than in open source communities.
The other half is trust in builds. SBOMit, from the talk Asleep at the Wheel: SBOMs for Python Builds, attacks the problem that an SBOM is only useful if it's accurate, and today's SBOM generators are not as accurate as they need to be, and more work is needed before they are usable for security. SBOMit records what happens during a build, every network call and every command invocation, and exports it as an SBOM. It also adds a verifiable record using in-toto, a framework for cryptographically attesting to the steps of a software build. That's the "it" in SBOMit.
Where could that go? Two possibilities: a future PyPI build farm, if that project ever happens, or a recommended builder Docker image that produces an accurate bill of materials showing how each package was built. That record could be published with the package or used by consumers however they like. It's also hard to get after the fact, which is why recording it while the installs and builds are in flight matters.
The project is part of the OpenSSF ecosystem, which suggests the research is meant to be adopted, not just published.
“This is just stuff that you don't necessarily see at PyCon or at open source conferences, people talking about federal policy requirements and how to implement secure controls like this.”
Seth Larson
Security isn't free: how to support the Python projects you depend on
The people behind the track don't think Python security is anywhere close to solved. So what can one developer do this week? Three answers cover three layers. Run zizmor on your repositories. Convert at least one project to trusted publishing, and don't forget to delete the old token. And look upstream.
Looking upstream means this. If you depend on Python or third-party packages, see how much security work is being done, how much more there is to do, and support the open source ecosystems you rely on so they can do security. That support comes in two forms. One is engineering time: working on a security team, or making security-focused contributions to the projects you care about. The other is funding, such as donating to the Python Software Foundation, the nonprofit that is the home for both the PyPI safety and security role and the Security Developer-in-Residence role.
The case for paying is that a focused, funded security effort does produce good security outcomes. Capacity and time are what's short. Building the changes that everyone ends up benefiting from costs a lot of time, and it mostly happens because someone inside a company or organization works with their management to convince them to support the open source they depend on.
If you want to go deeper yourself, Talk Python Training has a few courses that line up with this topic. Python Web Security: OWASP Top 10 with Agentic AI works through the OWASP Top 10 with vulnerable and fixed examples, plus tools like pip-audit. Managing Python Dependencies covers pip, virtual environments and dependency management habits such as pinning. And if pip install and PyPI are new to you, Python for Absolute Beginners starts at the very beginning.
“And it really would not happen without internal advocates at companies and organizations working with their management and all of that to convince them to support open source that they depend on.”
Seth Larson