Latest / Talk Python To Me / #557: Security of everything at PyCon 2026
Transcript
- 0:00Michael Kennedy: Security has always been the vegetables of software.
- 0:03Michael Kennedy: Everyone agrees it matters, and somehow it never quite makes it onto the plate.
- 0:07Michael Kennedy: At PyCon US this year, that changed.
- 0:09Michael Kennedy: For the first time ever, security got its own dedicated day-long track,
- 0:13Michael Kennedy: one of just two at the whole conference sitting right next to AI.
- 0:17Michael Kennedy: And the room was packed to the back wall.
- 0:20Michael Kennedy: On this episode, I'm joined by three people at the center of it.
- 0:23Michael Kennedy: Seth Larson, security developer in residence at the Python Software Foundation,
- 0:27Michael Kennedy: and very recently a CPython core developer,
- 0:31Michael Kennedy: Juanita Gomez, a PhD researcher at UC Santa Cruz
- 0:34Michael Kennedy: in open source security who co-chaired the track
- 0:37Michael Kennedy: and Mike Fiedler, PyPI's safety and security engineer,
- 0:41Michael Kennedy: one of the very few people paid full-time
- 0:43Michael Kennedy: to keep the packages you install safe.
- 0:46Michael Kennedy: We use the arc of the track's talks
- 0:48Michael Kennedy: to take the temperature of Python security right now.
- 0:51Michael Kennedy: Supply chain attacks, dependency cool-down,
- 0:53Michael Kennedy: zero trust, S-bombs,
- 0:54Michael Kennedy: and the push to bring Rust into CPython.
- 0:57Michael Kennedy: and why not one of us think security is anywhere close to solved.
- 1:01Michael Kennedy: And it turns out that's why the room was full.
- 1:04Michael Kennedy: This is Talk Python To Me, episode 556, recorded July 6th, 2026.
- 1:11Michael Kennedy: Talk Python To Me, yeah, we ready to roll.
- 1:14Michael Kennedy: Upgrading the code, no fear of getting old.
- 1:17Michael Kennedy: Async in the air, new frameworks in sight.
- 1:20Michael Kennedy: Geeky rap on deck.
- 1:21Michael Kennedy: Quarth crew, it's time to unite.
- 1:23Michael Kennedy: We started in Pyramid, cruising old school lanes.
- 1:26Michael Kennedy: Had that stable base, yes sir.
- 1:27Michael Kennedy: Welcome to Talk Python To Me,
- 1:29Michael Kennedy: the number one Python podcast for developers and data scientists.
- 1:32Michael Kennedy: This is your host, Michael Kennedy.
- 1:34Michael Kennedy: I'm a PSF fellow who's been coding for over 25 years.
- 1:38Michael Kennedy: Let's connect on social media.
- 1:40Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:43Michael Kennedy: The social links are all in your show notes.
- 1:46Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:49Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:53Michael Kennedy: That's right.
- 1:54Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:57Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 2:02Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 2:07Michael Kennedy: This episode is brought to you by Sentry.
- 2:09Michael Kennedy: Don't let those errors go unnoticed.
- 2:10Michael Kennedy: Use Sentry like we do here at Talk Python.
- 2:12Michael Kennedy: Sign up at talkpython.fm/sentry.
- 2:16Michael Kennedy: Talk Python and Python Bytes both now have MCP servers.
- 2:20Michael Kennedy: Point your AI at 10 plus years of Python episodes, transcripts, and show notes.
- 2:24Michael Kennedy: Free.
- 2:25Michael Kennedy: Click MCP in the nav at talkpython.fm and at pythonbytes.fm.
- 2:31Michael Kennedy: Juanita, Mike, Seth, welcome all of you to Talk Python.
- 2:35Seth Larson: Hi.
- 2:36Seth Larson: Hello.
- 2:37Michael Kennedy: Awesome to have some of you back, some of you here for the first time.
- 2:41Michael Kennedy: Really, really great.
- 2:42Michael Kennedy: So we're going to talk about Python security.
- 2:46Michael Kennedy: And I believe, Seth, I saw that you wrote up a post article just thinking back on this kind of unique Python security track and this extra focus at PyCon US this year.
- 2:58Michael Kennedy: I thought, hey, that'd be great to just get everyone involved together, at least everyone involved in the track, not all eight, seven or eight speakers, whatever that number adds up to be many, many speakers.
- 3:08Michael Kennedy: And just kind of talk broadly about Python security and use this arc of the topics and talks covered at PyCon and the security track as maybe a backdrop.
- 3:19Michael Kennedy: So welcome, welcome.
- 3:21Michael Kennedy: Now, before we get into that exactly, let's just do quick introductions about who you are and how you're involved in stuff.
- 3:30Michael Kennedy: Juanita, you want to kick us off?
- 3:31Juanita Gomez: Sure.
- 3:32Juanita Gomez: My name is Juanita.
- 3:33Juanita Gomez: I am a PhD researcher right now at UC Santa Cruz.
- 3:37Juanita Gomez: I work with the hospital at my university doing research in open source security and sustainability.
- 3:42Juanita Gomez: And I've been involved in like the Python and the Sign2Pay Python community for a while.
- 3:46Juanita Gomez: So, yeah, I got invited to coaching on the track and that was very exciting.
- 3:51Michael Kennedy: Very cool. Where are you in your PhD? Are you past qualifying exams?
- 3:56Juanita Gomez: I'm graduating in August.
- 3:58Michael Kennedy: What? Oh, my God. That's awesome. Congratulations. You're far past it.
- 4:02Michael Kennedy: So what's the plans after?
- 4:05Juanita Gomez: I just got a job. I can't talk about it yet, but I just got a job. But I'm going to industry. I'm going to keep working on security and sustainability in open source mostly. But yeah, an industry.
- 4:18Michael Kennedy: Cool. Congratulations on both finishing the PhD and getting a job straight away. That's super cool.
- 4:23Michael Kennedy: Thank you.
- 4:24Michael Kennedy: Yeah. Mike, welcome back.
- 4:25Mike Fiedler: Hey, glad to be here. Mike Fiedler, PyPI Safety and Security Engineer, working for the Python
- 4:34Mike Fiedler: Software Foundation based out of New York City. I'm coming up on my third year here at the PSF,
- 4:40Michael Kennedy: which is a full milestone that I will be sharing with my compatriot here, Seth.
- 4:47Michael Kennedy: Very cool. And I know thanks for all the work. It's been, I think, pretty impactful in three
- 4:53Mike Fiedler: years already. Yeah, it's been kind of a wild ride of kind of incorporating this because I was a
- 5:00Mike Fiedler: volunteer PyPI admin and contributor long before this job opened up. And having the ability to sit
- 5:08Mike Fiedler: here and think about and work on security features and stuff for PyPI full-time has been a big eye
- 5:16Mike Fiedler: opener as to kind of where the gaps were and kind of where they remain, but also kind of what are
- 5:23Mike Fiedler: the very important things that we can do in the interim immediately while building up the kind of
- 5:29Mike Fiedler: the piece by piece bits that we need to get to these longer term ideas, but being able to kind
- 5:36Mike Fiedler: of still make progress while we're getting there. Again, it's that notion of like rebuilding the
- 5:41Mike Fiedler: plane while you're flying it. Like, okay, well, we had the plane, but now we're like adding better
- 5:45Mike Fiedler: sensors better kind of steering better throttles better better toggles while we're still flying
- 5:52Michael Kennedy: and that flight is accelerating yeah 100 and seat belts i think seat belts belong in the security
- 5:58Mike Fiedler: airplane analogy uh probably but again it's arguable sometimes seat belts are a problem
- 6:04Mike Fiedler: so like yeah it becomes a very good discussion of trade-offs and balances and kind of what what
- 6:10Mike Fiedler: actually will move a needle versus this is a nice to have uh you know ashtray yeah ashtrays oh my
- 6:16Michael Kennedy: gosh i remember i remember when there are ashtrays on airplanes yeah that was crazy i'm like why is
- 6:23Michael Kennedy: there still an ashtray on this airplane like i know they're not gonna let anyone use it fun fact
- 6:27Mike Fiedler: they still have them in airplane bathrooms because while it is against the law they still want you to
- 6:33Mike Fiedler: have a safe place to throw an ash your cigarette but if you're gonna violate the law so that way
- 6:38Mike Fiedler: you don't throw it into the trash can and set something on fire.
- 6:41Michael Kennedy: Seems reasonable. Seems reasonable. So as a way of a segue, Mike, I'll have you take this first,
- 6:48Michael Kennedy: and then Seth, you can pick this up. You pointed out being full-time on this project versus a bunch
- 6:54Michael Kennedy: of kind of contributors who get excited about part of it, but then there's this whole herding
- 6:59Michael Kennedy: cats across thousands, hundreds of thousands of projects and users and contributors. And
- 7:08Michael Kennedy: role to this versus just like a core dev type of situation, you know? Yeah, I think there's kind of
- 7:14Mike Fiedler: two facets here, right? And there is very much a trade-off, right? When it's full-time volunteers,
- 7:21Mike Fiedler: you get what you pay for, which is nothing, right? You haven't paid for anything. Volunteers are
- 7:25Mike Fiedler: going to do what volunteers want to do, and they're going to do their best effort. When you hire
- 7:29Mike Fiedler: somebody, then you set expectations and you try to make sure that you meet them, right? The double-edged
- 7:36Mike Fiedler: sword there is that by hiring full-time employees, volunteers often will take a step off because it's
- 7:42Mike Fiedler: like, okay, I don't need to volunteer as much as I used to because now someone's getting paid for
- 7:48Mike Fiedler: to do it. So it's both a good thing because it highlights and focuses effort on areas that need
- 7:55Mike Fiedler: kind of sanitization and focused effort to make progress, but it also gives volunteers a much
- 8:02Mike Fiedler: needed break, which then in turn puts more pressure on the full-time employees to execute,
- 8:09Mike Fiedler: which again, not enough capacity, not enough time. So we're doing our best here, but it's shown that
- 8:16Mike Fiedler: if you do pay for a focused security effort, you do get good security outcome. And I think that's
- 8:23Michael Kennedy: the takeaway for me and for anybody is if you pay for it, they will cut. Fair. Seth, welcome back.
- 8:30Michael Kennedy: Hey, Michael.
- 8:32Michael Kennedy: So quick intro for people who haven't listened to your episodes and then maybe your thoughts on this full-time thing.
- 8:38Seth Larson: Yeah, so I, everyone, Seth Larson, a security developer in residence at the Python Software Foundation.
- 8:44Seth Larson: I work primarily on kind of like everything that is not IPI backend.
- 8:49Seth Larson: So that's the Python language, the runtime, the security response team for Python and pip,
- 8:56Seth Larson: packaging tools and standards, and then kind of like how Curie World interacts with Python and vice versa.
- 9:01Seth Larson: Right. So like CBE and all that.
- 9:03Seth Larson: And recently a core developer, very recently.
- 9:06Seth Larson: So to answer the how does this role and all that interacting with volunteers,
- 9:13Seth Larson: My the way that I've tried to like because my space is like so large, my area of where I'm trying to focus.
- 9:21Seth Larson: What I end up doing is I try to find projects that are obviously like high impact, all of that.
- 9:27Seth Larson: Right. Like you don't want to be doing things. You don't want to be nibbling or what is the there's a snacking.
- 9:31Seth Larson: That's the phrase for it. You don't want to be snacking, but you also don't want to be doing things that volunteers could technically do.
- 9:39Seth Larson: Right. So if it's a job that is or a task or a project that a volunteer could do, maybe I will like pause and wait on that because I'll leave space for someone to potentially contribute there.
- 9:51Seth Larson: And then the things that are less likely to get volunteer contributions, things like spinning up a CBE numbering authority for the Python Software Foundation or being an admin on the PSRT where or the Python security response team where you're doing things like, OK, we're going to like be monitoring for spam being sent to our email thread.
- 10:08Seth Larson: Like volunteers maybe don't want to do that, but maybe they would want to be on the security response team contributing to coordinating vulnerability reports and then getting like acknowledged for their work.
- 10:19Seth Larson: Right. Like in the in the NCD record and advisory.
- 10:22Seth Larson: So that's kind of like how I think about it, because the area is so wide.
- 10:25Seth Larson: I try to make sure that I leave space for other people to contribute just in case that people do get around to it before I end up getting to it.
- 10:32Seth Larson: So we want to build the community volunteer muscle also, not just have it be on work.
- 10:38Michael Kennedy: Yeah, that's really cool. How much do you focus on popular third party projects like Django? I mean, Django already has full time people above Flask or something like that versus just pure Python?
- 10:50Seth Larson: Yeah, so I would say my time doesn't necessarily always like land directly on the project, but I do spend time responding to maintainers if they have questions.
- 11:02Seth Larson: So like, for example, David from Flask, him and I have talked many times about how to do like a security response program or a threat model or, you know, hey, I'm seeing this.
- 11:11Seth Larson: Like, can you help? Like, what what should I do in this situation?
- 11:14Seth Larson: Like, we've talked about that and I've talked about it with many other maintainers, not just Flask, just to try to give them like advice.
- 11:19Seth Larson: But then also whenever, like one of the nice things about this role being at like a nonprofit is that you can be super, super open.
- 11:28Seth Larson: You don't have to like keep the secrets to yourself about like what you've done and like how you've seen success.
- 11:33Seth Larson: So like we publish everything that we do and like where we see success and people in theory can just like take that copy paste it into their projects or their processes and have a better time than they were before.
- 11:45Seth Larson: So people can learn from each other.
- 11:47Seth Larson: I really do appreciate that part of the work.
- 11:49Michael Kennedy: That is a bit of a unique aspect of doing an open source security thing as opposed to,
- 11:53Michael Kennedy: I can't talk about it.
- 11:54Michael Kennedy: This is, no, we don't talk about anything.
- 11:56Michael Kennedy: So very interesting.
- 11:57Michael Kennedy: Let's talk about this track.
- 11:59Michael Kennedy: So there's this trailblazing Python security that talks about, for the first time ever,
- 12:05Michael Kennedy: a day-long track devoted to the latest in Python security.
- 12:09Michael Kennedy: And if you pull up the schedule of talks, I believe it was Saturday was the track.
- 12:15Michael Kennedy: And that was, there was just a whole room.
- 12:17Michael Kennedy: And what I also liked, it was a room, wasn't it?
- 12:19Michael Kennedy: That was like a fixed place, so you didn't have to keep moving.
- 12:22Michael Kennedy: Yeah.
- 12:22Michael Kennedy: So Juanita, you want to kick us off and talking about why this, why do you guys focus on this
- 12:28Michael Kennedy: this year?
- 12:28Michael Kennedy: And, you know, why did you decide it's going to take a specific slot in?
- 12:32Michael Kennedy: There's only two dedicated slots, security and AI.
- 12:36Michael Kennedy: And I think that's very fitting.
- 12:37Michael Kennedy: But tell us about this track.
- 12:38Juanita Gomez: Okay.
- 12:39Juanita Gomez: Well, I will let Seth talk about how did the idea come to place because I was not part
- 12:44Juanita Gomez: of that.
- 12:45Juanita Gomez: but I'm going to talk about why I think it's important
- 12:47Juanita Gomez: and why it was important in the conference.
- 12:49Juanita Gomez: I think security is something that's parallel to everything in Python.
- 12:53Juanita Gomez: I think that if you're a maintainer for a package,
- 12:56Juanita Gomez: I think having security somewhere on your mind should be a thing.
- 13:00Juanita Gomez: You should be thinking about security when you're developing a thing.
- 13:03Juanita Gomez: And I think there's a big gap in maybe the time that maintainers spend
- 13:09Juanita Gomez: thinking about security or even the expertise.
- 13:13Juanita Gomez: And so I think this track was like a big opportunity for people that work in PyVon as maintainers or as users to just learn about some important security things when thinking about like their development processes.
- 13:27Juanita Gomez: I thought it was great that it was like a dedicated track because I think it highlights the importance of security.
- 13:33Juanita Gomez: Like it's not a bunch of talks that are kind of like in the schedule that people just kind of like figure out they want to go to.
- 13:38Juanita Gomez: But it's like we like made it a thing by making it like a full track.
- 13:42Juanita Gomez: And I think that elevates the importance of security within Python, which I think it's not necessarily always the case.
- 13:50Juanita Gomez: I think every time I talk to Mike, I'm like, why are you the only getting paid for doing Python security?
- 13:56Juanita Gomez: I think increasing the awareness of the importance of security is very important.
- 14:02Juanita Gomez: And I think that the track, I think, was meant to do that.
- 14:05Michael Kennedy: How much do you think what were in those seven talks is representative of the broader security
- 14:13Michael Kennedy: space, you know, getting your PhD, studying the stuff like you get maybe a little more
- 14:17Michael Kennedy: than just Python view?
- 14:19Michael Kennedy: Like, what did it capture?
- 14:21Michael Kennedy: And what did it miss?
- 14:21Michael Kennedy: I guess.
- 14:22Juanita Gomez: I think, honestly, we made it a track that was diverse enough that we could capture like
- 14:28Juanita Gomez: very different things within the security brother, like image.
- 14:33Juanita Gomez: And I also think that a lot of the things that we talked about are not even necessarily Python specific.
- 14:39Juanita Gomez: Like you should care about credentials.
- 14:41Juanita Gomez: You should care about phishing.
- 14:43Juanita Gomez: Like all of these things are things that you should care about, whether you do Python or C or any other like language development.
- 14:51Juanita Gomez: I think that something that maybe I was missing a little bit after I like saw maybe after the conference,
- 14:59Juanita Gomez: I was thinking about, I would have liked maybe like an intro version of security, something.
- 15:07Juanita Gomez: I think something that I work with in my research is actually like security practices,
- 15:13Juanita Gomez: mostly for like starting projects.
- 15:15Juanita Gomez: I work with like literally university projects.
- 15:19Juanita Gomez: And like the goal of my OSP is to improve the practices of the university projects.
- 15:23Juanita Gomez: And some of them are maybe not as advanced to take on some of the,
- 15:27Juanita Gomez: like I would say more advanced security practices.
- 15:30Juanita Gomez: And so maybe something like that
- 15:32Juanita Gomez: is something that maybe we did not capture as much,
- 15:35Juanita Gomez: like basic things,
- 15:37Juanita Gomez: like literally just going to GitHub
- 15:39Juanita Gomez: and like switching some switches
- 15:41Juanita Gomez: on the configurations of like your repository.
- 15:44Juanita Gomez: Some of those things maybe were missing.
- 15:46Juanita Gomez: And I think there's value on that for people
- 15:48Juanita Gomez: that are like literally nowhere in the security like path.
- 15:52Juanita Gomez: But apart from that,
- 15:53Juanita Gomez: I think the diversity was really good on the track.
- 15:55Michael Kennedy: I love it.
- 15:56Michael Kennedy: I think that'd be a great talk to kick off the track and like security 101.
- 16:00Michael Kennedy: Let's not get hacked the first week or something like that, you know?
- 16:04Michael Kennedy: Maybe I'll do it next year.
- 16:05Michael Kennedy: Yes, let's do it.
- 16:06Michael Kennedy: I would love to see that.
- 16:08Michael Kennedy: Like, for example, maybe just add a little bit of rate limiting and some logging.
- 16:13Michael Kennedy: So if something does happen, you could actually tell.
- 16:15Michael Kennedy: And, you know, these kinds of things, right?
- 16:17Michael Kennedy: It would be, you know, there's a whole list of that stuff, right?
- 16:19Seth Larson: Another idea that like came up in when we were thinking about how the track went and how the themes.
- 16:25Seth Larson: this is this is funny to his idea so i you're gonna have to correct me but uh the idea of like
- 16:30Seth Larson: having a little bit more interactivity uh to kind of shake things up as opposed to it being because
- 16:36Seth Larson: i mean with security with these talks maybe you're expecting it to i mean it's obviously like more
- 16:40Seth Larson: experts based but that ends up if you're in a talk format it's mostly talking to people but having
- 16:45Seth Larson: something like a panel where you start off with like a few questions to kind of set the theme
- 16:49Seth Larson: and then you kind of open it up to kind of get some vibes from the audience uh about like what
- 16:54Seth Larson: questions they're having, make it more interactive in that way. That seemed really interesting to me
- 16:59Seth Larson: as well. So we're going to see if we can experiment with that next year.
- 17:03Michael Kennedy: So am I hearing you say there's going to be a one next year?
- 17:06Juanita Gomez: We're hoping for it, for sure.
- 17:08Seth Larson: We think that we should have another one next year. I mean,
- 17:11Seth Larson: there was no indication that we shouldn't do this again, is what we saw.
- 17:16Michael Kennedy: Honestly, I mean, security might be solved next year.
- 17:19Michael Kennedy: Oh, yeah.
- 17:19Michael Kennedy: That'd be great, wouldn't it?
- 17:20Michael Kennedy: For sure.
- 17:21Michael Kennedy: AI will solve all of our security problems.
- 17:23Michael Kennedy: It's what I've been told, what I've read.
- 17:25Michael Kennedy: Mike, you're trying to take us down a path that is a very different path.
- 17:28Mike Fiedler: Well, I mean, it's been a few minutes and we haven't said AI yet.
- 17:32Mike Fiedler: Well, no, you actually did because you introduced the other tracks.
- 17:35Michael Kennedy: Yeah.
- 17:36Michael Kennedy: Well, we only mentioned it in passing, but not with regard to this topic.
- 17:39Michael Kennedy: I do think actually maybe if we get some time, I do want to talk to you about it.
- 17:43Michael Kennedy: There's a lot to cover.
- 17:45Michael Kennedy: There is so much.
- 17:46Michael Kennedy: Maybe this could just be its own show that we could go into because there is a lot to cover.
- 17:50Michael Kennedy: I think there's like positives and negatives,
- 17:53Michael Kennedy: and that kind of sums up AI right there, doesn't it?
- 17:55Michael Kennedy: It sums up everything, honestly.
- 17:56Michael Kennedy: It sums up a lot of life, yes.
- 18:00Michael Kennedy: Hey, one second.
- 18:01Michael Kennedy: Normally, this would be an ad break from Sentry,
- 18:04Michael Kennedy: but not this time.
- 18:05Michael Kennedy: Let's just thank them for supporting the show
- 18:07Michael Kennedy: and get right back to the conversation.
- 18:09Michael Kennedy: Also, visit talkpython.fm/sentry after the show.
- 18:13Michael Kennedy: Thanks, Sentry.
- 18:15Michael Kennedy: It's a lot of gray.
- 18:16Michael Kennedy: Yeah, not so much black and white, a lot of gray.
- 18:19Michael Kennedy: So it was like standing room only?
- 18:21Michael Kennedy: I mean, that sounds like that bodes well for our next year.
- 18:25Seth Larson: Yeah, next year, hopefully.
- 18:26Seth Larson: I mean, it'd be really great to even have a bigger room.
- 18:29Seth Larson: Or, yeah, we were quite happy with the turnout.
- 18:32Seth Larson: We had a few talks that basically it was standing room
- 18:35Seth Larson: and there was nowhere else to come into the room.
- 18:37Seth Larson: So that's always great to see as an organizer for a first-time event
- 18:40Seth Larson: is when the room is too small.
- 18:42Seth Larson: It means you're doing something right.
- 18:44Michael Kennedy: Exactly.
- 18:45Michael Kennedy: You've overachieved compared to what you were trying to work with or whatever.
- 18:49Michael Kennedy: Yeah, I guess just one in the test,
- 18:52Michael Kennedy: what was your experience just co-sharing a track and so on?
- 18:57Michael Kennedy: What was it like being on that side of the conference?
- 19:00Juanita Gomez: I think it was, I thought it was great because I think,
- 19:04Juanita Gomez: so I've actually been organizing SyPyre also for a couple of years.
- 19:08Juanita Gomez: And for the longest time,
- 19:09Juanita Gomez: I've actually tried to bring security as a conversation at SyPyre.
- 19:13Juanita Gomez: So I've learned a couple of like reds of a feather session,
- 19:16Juanita Gomez: but having a security track seems a little impossible.
- 19:19Juanita Gomez: I don't know, like it's so I don't know, like making making this happen at PyCon was it made me really, really happy because it gets you the opportunity to bring people to talk about the things that you really care about.
- 19:31Juanita Gomez: Like security in Python is really like personal to me.
- 19:35Juanita Gomez: I care a lot about it.
- 19:36Juanita Gomez: And I think part of the problem is the lack of awareness of some of the things that we discussed at the shark.
- 19:42Juanita Gomez: So I thought it was a great opportunity to just kind of bring that awareness into the table and making it happen.
- 19:48Juanita Gomez: Just like being part of that conversation.
- 19:51Juanita Gomez: I felt really proud of doing that.
- 19:53Juanita Gomez: And I think also, I think like Seth and I and other couple of people we had, I mean, I had a lot of fun reviewing some of the talks that people submitted.
- 20:02Juanita Gomez: We were unfortunately like limited to like eight slots.
- 20:06Juanita Gomez: But there was a lot of things that I learned by just reading some of the talk proposals.
- 20:11Juanita Gomez: So it was like, I think it was also like a learning experience for me to be part of the truck.
- 20:16Seth Larson: Yeah, I was going to say, compared to Juanita, my experience with organizing sessions and talks and conferences, this is like the very first time that I've like really dipped my toe into organizing at this level for a conference.
- 20:30Seth Larson: So it was a lot of learning for me.
- 20:32Seth Larson: And I thought it was a great experience.
- 20:34Seth Larson: I think other people could definitely like would enjoy doing this too.
- 20:39Seth Larson: So now I'm like just understanding and learning all of these things that are about how a conference track or a talk schedule is put together.
- 20:46Seth Larson: And for me, like the day of stuff was like so, so much.
- 20:52Seth Larson: It's you're running around and it was like very on the fly.
- 20:56Seth Larson: And, you know, they have all the recommendations that once the ball is rolling, it's like it's rolling.
- 21:01Seth Larson: And it was really, really fun.
- 21:02Seth Larson: I don't know. We had a lot of fun up there.
- 21:03Seth Larson: I think that it was a great session.
- 21:05Seth Larson: The energy was so positive.
- 21:07Seth Larson: People are always coming up to you afterwards and saying, oh, that was amazing.
- 21:11Seth Larson: Thank you for doing this, all of that.
- 21:12Seth Larson: And it was a really great experience.
- 21:15Michael Kennedy: Cool.
- 21:15Michael Kennedy: Yeah, PyCon was really fun this year, too.
- 21:17Michael Kennedy: I thought Long Beach was a pretty nice venue.
- 21:19Michael Kennedy: There's some nice food carts and other things to do there.
- 21:22Michael Kennedy: So that was really looking forward to back then.
- 21:25Michael Kennedy: Yeah, now that we know the cool little bar open, you know, rooftop bars or outside bars,
- 21:30Michael Kennedy: we can just go meet up and hang out with friends or the cool restaurant you want to go back to or whatever.
- 21:34Michael Kennedy: Yeah.
- 21:35Michael Kennedy: My first event there was to rent one of those like Lime or Bird scooters and just spend an hour riding around the town and the beach just to like get used to it and then going to check in.
- 21:45Michael Kennedy: So very fun.
- 21:46Michael Kennedy: Let's bring it over to the conference with the first of seven, I think we have seven, six or seven tracks that I put up for us to kind of riff on here.
- 21:56Michael Kennedy: And that would be by none other than Mike Fiedler, an anatomy of a fishing campaign.
- 22:01Michael Kennedy: What is this?
- 22:01Mike Fiedler: Oh, boy.
- 22:02Mike Fiedler: What is this?
- 22:03Mike Fiedler: So this was the first track of the day, wasn't it?
- 22:07Mike Fiedler: Yeah.
- 22:08Michael Kennedy: I'll tell you what this is.
- 22:09Michael Kennedy: This is why we can't have nice things, Mike.
- 22:11Michael Kennedy: This is why we can't have nice things.
- 22:13Mike Fiedler: It really is true, right?
- 22:15Mike Fiedler: Like there's, for me, it was a good opportunity to kind of do a little storytelling education
- 22:22Mike Fiedler: because these are cases that happen, right?
- 22:26Mike Fiedler: And this was a novel enough one that I was like, this deserves some disambiguation because
- 22:32Mike Fiedler: people hear phishing attack is like, oh yeah, yeah, yeah, yeah. This was different, right?
- 22:36Mike Fiedler: And I was very kind of excited to speak and be selected for the spot. And you mentioned standing
- 22:45Mike Fiedler: room only. Standing up there on the stage and looking out into a large room and seeing people
- 22:49Mike Fiedler: standing at the back wall and not seeing little dotted seats available throughout the room was a
- 22:56Mike Fiedler: little intimidating because it's like, you know, sometimes people don't sit in all the seats and
- 23:00Mike Fiedler: That's fine. Or like the first two rows are empty. But no, Juanita and Seth had basically packed this room with people, not intentionally, but purely purely by curating the timeline and like setting the tone of like, yeah, this is this is going to be a story.
- 23:16Mike Fiedler: And I was able to relate my personal firsthand experience of dealing with a phishing campaign that some of our users were tricked into visiting a website that was basically a proxy for PyPI.
- 23:34Mike Fiedler: In previous phishing campaign attempts, a lot of folks talk about building a byte for byte or pixel perfect version of a different website and steering traffic to that.
- 23:44Mike Fiedler: Here, they didn't even need to do that. They just threw up another proxy in front of it. And it was, you know, using email addresses that are like publicly available that maintainers put on their GitHub profiles and put in their, you know, Python package metadata. And they farmed out and emailed some unknowable number of maintainers.
- 24:04Michael Kennedy: What an interesting security issue, right?
- 24:07Michael Kennedy: Like you've got to be pretty sure that the login people use for their GitHub is probably the same email address that they've registered at PyPI.
- 24:15Michael Kennedy: And the packages that you want to take over from PyPI linked to their GitHub repo, right?
- 24:22Michael Kennedy: It's a really, it really does condense what you've got to do.
- 24:25Mike Fiedler: A little bit, right?
- 24:26Mike Fiedler: Like so in a lot of phishing campaigns, it's kind of a spray and pray, right?
- 24:30Mike Fiedler: They're casting a very wide net and they're going to email 2 million people.
- 24:34Mike Fiedler: And if they get two, that's a success for them, right?
- 24:37Mike Fiedler: Because we have to defend 100% of the time.
- 24:41Mike Fiedler: They only have to be right once or twice, right?
- 24:44Mike Fiedler: And they were in this case.
- 24:47Mike Fiedler: Again, PyPI is open source, right?
- 24:50Mike Fiedler: You can read on the entire code base.
- 24:52Mike Fiedler: You can see what our email templates look like.
- 24:55Mike Fiedler: And you can see that, yeah, we do ask maintainers now and then to do an action.
- 25:00Mike Fiedler: And they emailed maintainers and asked them to do an action.
- 25:03Mike Fiedler: And these maintainers did an action.
- 25:05Mike Fiedler: They did what they were asked to do.
- 25:08Michael Kennedy: For example, you emailed people a couple of years ago and said, hey, you need to turn on 2FA.
- 25:12Michael Kennedy: Yeah.
- 25:13Mike Fiedler: And that's totally legitimate.
- 25:16Mike Fiedler: And sometimes we will email people and say, hey, there's a problem with your metadata.
- 25:19Mike Fiedler: Go in and fix it.
- 25:20Mike Fiedler: We will occasionally tell people there's a problem.
- 25:24Mike Fiedler: This one in particular would tell them it wasn't using our email infrastructure.
- 25:29Mike Fiedler: You know, if you had anti-spam things, then like maybe it would have caught it.
- 25:34Mike Fiedler: But it didn't because the mail was coming from the domain advertised for this hack.
- 25:41Mike Fiedler: And it was basically showing instead of PyPI.org, PyPJ.org.
- 25:47Mike Fiedler: And I would challenge you at, you know, looking at an email on your phone to hover on a link and see that difference between an I and a J in the lowercase Arial font on your phone.
- 25:58Mike Fiedler: Like, you're not going to notice it, right?
- 26:00Mike Fiedler: Humans, I have no qualms for the humans that fell for this, right?
- 26:04Mike Fiedler: Like, they did what they were supposed to do.
- 26:06Mike Fiedler: What was annoying about this attack is we've been talking about 2FA for a very long time now,
- 26:13Mike Fiedler: and this is still phishing.
- 26:17Mike Fiedler: You know, you can still get phished with certain forms of two-factor authentication,
- 26:21Mike Fiedler: notably the time-based one-time password that were TOTP or what folks might think of your, like, QR code.
- 26:28Mike Fiedler: or Google Authenticator app,
- 26:30Mike Fiedler: all of those things are the same thing.
- 26:32Mike Fiedler: Whereas if you used WebAuthn
- 26:34Mike Fiedler: or the underlying technology for pass keys
- 26:38Mike Fiedler: or like a YubiKey,
- 26:39Mike Fiedler: that's requiring a different sort of 2FA
- 26:43Mike Fiedler: that is more phishing resistant.
- 26:45Mike Fiedler: So anybody who had the phishing resistant part
- 26:47Mike Fiedler: was not subject to this attack.
- 26:50Mike Fiedler: And then
- 26:50Michael Kennedy: I think it might be worth
- 26:51Michael Kennedy: maybe just a quick conversation on that
- 26:55Michael Kennedy: because I totally agree
- 26:57Michael Kennedy: because you could just proxy, they send over the thing,
- 26:59Michael Kennedy: and you've got 30, 15, whatever seconds to then, you know,
- 27:03Michael Kennedy: curry those credentials over,
- 27:05Michael Kennedy: and you probably are fine to hack through with a proxy, right?
- 27:08Michael Kennedy: I mean, I think it's, I think the TOTP ones are more,
- 27:12Michael Kennedy: like if somebody gets a hold of your credentials and they're leaked, right,
- 27:15Michael Kennedy: that's not enough to get in anymore, right?
- 27:19Michael Kennedy: Or if they're trying to brute force something,
- 27:21Michael Kennedy: that can be a big challenge to limit that.
- 27:23Michael Kennedy: But for phishing, it really doesn't add a lot of safety, does it?
- 27:27Mike Fiedler: So it doesn't because the session token that you get once you have completed your username password, then you do your TOTP.
- 27:36Mike Fiedler: Now you have a session cookie, right?
- 27:38Mike Fiedler: This is what your browser uses instead of asking you for your password and to FA every single page view, right?
- 27:45Mike Fiedler: You have a session cookie that is good for, I don't know, eight hours or something like that.
- 27:50Mike Fiedler: So you don't have to do that all the time.
- 27:52Mike Fiedler: And this session cookie is something that they can use to then, they don't even need the TOTP within those 30 seconds.
- 27:59Mike Fiedler: They now have a session cookie and use that to log in as you.
- 28:03Mike Fiedler: And then the next part that they did was create an API token, publish.
- 28:08Mike Fiedler: API tokens today do not have any expiry.
- 28:11Mike Fiedler: So they were like, all right, I'm going to create a new API token.
- 28:14Mike Fiedler: And now I don't need your username, your password, your TOTP, the session token.
- 28:18Mike Fiedler: I don't need any of that.
- 28:19Mike Fiedler: I have an API token.
- 28:20Mike Fiedler: I can go ahead and do the things that I want to do on this website with this token.
- 28:26Mike Fiedler: So I think there's layers of security.
- 28:29Mike Fiedler: Something we added in the aftermath of this was if you now are using a session token and it was obtained via TOTP and it's coming from a different IP address, we're not going to accept that.
- 28:42Mike Fiedler: We're going to ask you to recertify that you are who you said you were because something is different.
- 28:49Mike Fiedler: But if you use WebOFN, then you're fine.
- 28:52Mike Fiedler: The people who will get impacted by this
- 28:55Mike Fiedler: are folks who are like bouncing between VPNs
- 28:58Mike Fiedler: or if you're riding a train
- 29:00Mike Fiedler: and you keep changing IP addresses
- 29:02Mike Fiedler: as you kind of go to different cell towers,
- 29:04Mike Fiedler: which I don't think happens very often, but it can.
- 29:07Mike Fiedler: Those are the people who will get caught in that net.
- 29:09Mike Fiedler: But it's like, yeah, you know,
- 29:10Mike Fiedler: we can't tell that you are who you said you were
- 29:13Mike Fiedler: based on those credentials.
- 29:14Mike Fiedler: Yeah.
- 29:14Mike Fiedler: Juanita, Seth, thoughts?
- 29:16Juanita Gomez: I want to say that this was one of my favorite talks of the track because it was very relatable.
- 29:22Juanita Gomez: Like a lot of the people that are sitting down in the room are maintainers who published their packages in YPI.
- 29:27Juanita Gomez: And just having Mike's perspective on like, oh, this can happen to you.
- 29:31Juanita Gomez: Like, you need to be aware of this.
- 29:34Juanita Gomez: I think it makes it much more impactful because it's like you are directly affected by some of these things.
- 29:41Juanita Gomez: And I think also Mike had a really, he not only told us a story about how all of these bad things happened, but also at the end, a call for action.
- 29:49Juanita Gomez: This is the things that you need to do in order to avoid these things from happening to you.
- 29:53Juanita Gomez: And so I thought that was really impactful for the people that were sitting down in that room.
- 29:58Michael Kennedy: Nice.
- 29:58Michael Kennedy: So one of the things I think is, I guess, I'm not sure if you mentioned it, but the result was there were some packages that got malicious code in them and then published a PyPI, right?
- 30:08Mike Fiedler: Just one that we know of, right?
- 30:10Mike Fiedler: We audited kind of a lot of the attacker signatures and kind of their behaviors.
- 30:14Mike Fiedler: We're only able to turn up one.
- 30:16Mike Fiedler: So only four of the user accounts of the, again, we have over a million user accounts on PyPI right now, but only four people fell for this phishing and like click through and actually logged in.
- 30:29Mike Fiedler: And only one package was kind of harvested and republished.
- 30:35Mike Fiedler: And again, that doesn't mean that others weren't created, you know, as a backup, but they went after one that is a dependency of a dependency of a dependency, right? They're working their way through the supply chain. They didn't go after anything that, you know, these other four, sorry, the other three maintainers had.
- 30:53Mike Fiedler: They went after the one maintainer who kind of fell for the fish.
- 30:58Mike Fiedler: And theirs was a dependency of Hugging Faces, Transformers library.
- 31:04Mike Fiedler: And if you're doing anything at all in AI land, which a lot of people are doing a lot in AI land, Transformers is kind of key.
- 31:12Mike Fiedler: It gets, I don't know, 30, 40 million downloads a day.
- 31:16Mike Fiedler: And Numb to Words is a sub-dependency of Transformers.
- 31:20Mike Fiedler: So by publishing a new version of Numb to Words, any Transformers user is going to get it.
- 31:26Michael Kennedy: Scary.
- 31:27Michael Kennedy: And it's, yeah, you know, and you maybe think I'm going to take on this dependency, so you'll review it.
- 31:32Michael Kennedy: But how far down the dependency chain do you follow, right?
- 31:35Michael Kennedy: I mean, the answer is like, you know, what was that TV show?
- 31:38Mike Fiedler: You are the weakest link.
- 31:39Mike Fiedler: Goodbye, right?
- 31:41Mike Fiedler: You're only as strong as the weakest link in your chain.
- 31:44Mike Fiedler: And we all depend on something and somebody else and somewhere, right?
- 31:48Mike Fiedler: None of us are writing 100% everything by ourselves based on like a C standards library.
- 31:54Mike Fiedler: Like you didn't write your compiler on your own.
- 31:56Mike Fiedler: You used somebody else's.
- 31:57Mike Fiedler: You didn't write the Python language on your own.
- 31:59Mike Fiedler: You used somebody else's.
- 32:00Mike Fiedler: And even if you are authoring Python, you're using tools that somebody else wrote, right?
- 32:05Mike Fiedler: You didn't write your editor on your own.
- 32:07Mike Fiedler: You didn't write your operating system on your own.
- 32:09Mike Fiedler: And again, if you are the one person who has done all of this, I commend you.
- 32:12Mike Fiedler: I also think you have put in a lot of effort that is commendable, but is unnecessary in
- 32:17Mike Fiedler: today's world.
- 32:18Mike Fiedler: but you are likely more secure as a result.
- 32:22Michael Kennedy: Yes.
- 32:24Michael Kennedy: This portion of Talk Python, I mean,
- 32:25Michael Kennedy: is brought to you by our AI tools.
- 32:28Michael Kennedy: You know that thing where you ask an AI
- 32:30Michael Kennedy: something about Python
- 32:31Michael Kennedy: and it confidently tells you about the library version
- 32:34Michael Kennedy: from 18 months ago?
- 32:35Michael Kennedy: Well, we fixed that, at least for our shows.
- 32:38Michael Kennedy: Talk Python and Python Bytes both have MCP servers now.
- 32:42Michael Kennedy: Connect Talk Python and your AI can search
- 32:44Michael Kennedy: over 550 episodes, full transcripts,
- 32:48Michael Kennedy: every guest in the entire course catalog of Talk Python courses,
- 32:52Michael Kennedy: ConnectPython Bytes,
- 32:52Michael Kennedy: and he gets almost 500 episodes of Python news going back to 2016,
- 32:58Michael Kennedy: including every link we've ever put in the show notes.
- 33:00Michael Kennedy: This means you can say things like,
- 33:03Michael Kennedy: ask Talk Python what astral joining OpenAI means for uv,
- 33:07Michael Kennedy: or what has Python Bytes said about Locust,
- 33:10Michael Kennedy: and get a real answer with real links, not a hallucination.
- 33:15Michael Kennedy: Name one of our shows in your prompt,
- 33:16Michael Kennedy: and your AI knows exactly where to look.
- 33:19Michael Kennedy: And if you live in the terminal,
- 33:20Michael Kennedy: Talk Python now has a CLI too.
- 33:22Michael Kennedy: One line, uvtoolinstalltalk-python-cli.
- 33:27Michael Kennedy: Then search the episodes, transcripts, guests, and courses
- 33:30Michael Kennedy: without ever even opening a browser.
- 33:32Michael Kennedy: It's open source and it outputs text, JSON, or Markdown,
- 33:36Michael Kennedy: so it also feeds AI tools that don't speak MCP.
- 33:40Michael Kennedy: And here's the real reason I built it.
- 33:41Michael Kennedy: Both shows cover around 10 years of Python history.
- 33:44Michael Kennedy: the people, the decisions, the packages that took over, and the ones that quietly didn't.
- 33:50Michael Kennedy: This enhanced access to all of our information is free. No account, no API keys, nothing to buy.
- 33:57Michael Kennedy: That history contained in these shows should be there for all of us. So visit talkpython.fm
- 34:02Michael Kennedy: and pythonbytes.fm and click the MCP link in the nav bar. Connect them right now to your agents
- 34:07Michael Kennedy: so that they will be accessible anytime they're needed in the future. Hope you all enjoy the access.
- 34:13Michael Kennedy: One thing that came to mind when I was looking at your talk is this whole concept of dependency
- 34:19Michael Kennedy: cooldowns, which is making some waves.
- 34:23Michael Kennedy: I think I noticed it pretty early in, put this up for everyone, pretty early, I guess
- 34:28Michael Kennedy: with uv, and I think pip is getting it as well, but also some of the other package managers.
- 34:34Michael Kennedy: But I've seen it sort of picking up steam in other areas unrelated to Python, other package
- 34:38Michael Kennedy: managers.
- 34:39Michael Kennedy: So I really like this idea.
- 34:42Michael Kennedy: I really like it.
- 34:43Mike Fiedler: I think cooldowns are a good idea for your average consumer. So in a different attack that Seth and I talk about later, we talk about how the people without using version pinning or deciding I want to use version 1.0.0 only, if you use unbounded versions, you're going to get the latest one that the registry has to offer.
- 35:09Mike Fiedler: And when attackers are looking to exploit you, that's kind of one vector they're looking to exploit to say these people are not pinning their versions.
- 35:20Mike Fiedler: Dumb to words was not pinned in Transformers.
- 35:23Mike Fiedler: So they're going to get whatever the latest one is.
- 35:26Mike Fiedler: Now, sub-dependency pinning and version bounds is a whole other set of conversations.
- 35:31Mike Fiedler: But as an end consumer, cooldowns is the easiest way for you to say, I don't want what the latest the registry has.
- 35:39Mike Fiedler: I want to wait three days or seven days because in the scope of those three to seven days,
- 35:44Mike Fiedler: it is very likely that some security scanners will have chewed through this and noticed
- 35:51Mike Fiedler: if there's a problem and reported it.
- 35:53Mike Fiedler: And if they have, there is a, again, a very high likelihood that that version is no longer
- 35:58Mike Fiedler: available for download in that time.
- 36:00Michael Kennedy: Yeah.
- 36:01Michael Kennedy: So like you look at cool, the thing I'm linking to is cooldowns.dev.
- 36:05Michael Kennedy: And in here, it pointed out, said, does it actually work?
- 36:09Michael Kennedy: And they gave some stats, you know, they talk about LiteLLM, some of the other issues that have come along.
- 36:13Michael Kennedy: They said, I think within a week, I think 90% of the vulnerable ones were taken down and most of them were taken down within a day or something like that, right?
- 36:24Mike Fiedler: Yeah. I mean, a lot of that on PyPI is thanks to our group of volunteer reporters.
- 36:30Mike Fiedler: And we don't have any kind of commercial relationship.
- 36:33Mike Fiedler: There's just people out there in the community who like scanning stuff.
- 36:36Mike Fiedler: There are businesses who do it, and some of them will report back to PyPI and say, hey, we found something fishy, something smelly.
- 36:43Mike Fiedler: We recommend you take a look.
- 36:44Mike Fiedler: Some of these folks have gotten such a very good or almost zero false positive rate that we kind of allow them on PyPI to put that into an automated quarantine status that requires a human like myself to review it and either clear it or tank it completely.
- 37:05Mike Fiedler: But in that interim state, it's no longer downloadable.
- 37:09Mike Fiedler: So those like our most notable one is Kamil Mankowski, who works out in Austria, and he
- 37:16Mike Fiedler: has gotten it down to like his reports are often within, you know, 30 minutes of publish.
- 37:22Mike Fiedler: His tooling has scanned it, analyzed it and reported it back with zero false positives.
- 37:27Mike Fiedler: And, you know, that only comes with curation and time.
- 37:30Mike Fiedler: And he's doing this as a volunteer effort.
- 37:32Mike Fiedler: So kudos out to Kamil.
- 37:34Mike Fiedler: It's a lot of data to be processing.
- 37:36Seth Larson: Yeah.
- 37:36Seth Larson: I wanted to comment on the cooldowns aspect too, like maybe about like the, who is it
- 37:40Seth Larson: for?
- 37:40Seth Larson: Cause I think this, this is always a challenge whenever we're building something at the scale
- 37:45Seth Larson: of Python, right?
- 37:47Seth Larson: Where it serves so many different communities and people and right.
- 37:50Seth Larson: There's people that have, you're on a developer team in a really large organization and you
- 37:54Seth Larson: have your own like security team who is deciding what your security policies are.
- 37:59Seth Larson: They're running a mirror of PyPI, right?
- 38:01Seth Larson: Like all this stuff is happening.
- 38:02Seth Larson: But then Python also needs to serve like students or people who this is their first programming
- 38:07Seth Larson: language.
- 38:08Seth Larson: And my thinking is, is that this sort of config where you set it once and then you don't have
- 38:14Seth Larson: to think about it and you benefit from this large apparatus that already exists out there
- 38:20Seth Larson: in PyPI, people that are scanning, people that are manually reviewing things, taking
- 38:24Seth Larson: them down, all of Mike's work, right?
- 38:25Seth Larson: Like you get to benefit from all of that work without having to have this massive, you know,
- 38:31Seth Larson: separate team or policy or having to necessarily think about like reviewing every single dependency
- 38:37Seth Larson: right like this is something that I don't think that a lot of developers are doing especially not
- 38:41Seth Larson: students right they want to run pip install with the thing that they want to install either for
- 38:46Seth Larson: their course or because they're learning they're not necessarily thinking about oh this is
- 38:50Seth Larson: potentially a way that malware is going to be installed on my system so set like a really
- 38:54Seth Larson: aggressive like seven days or something like that on your cooldown one time and then you're pretty
- 38:59Seth Larson: okay. Like, I think a lot of people should probably be using cooldowns, especially for like, developer
- 39:05Seth Larson: machines or a personal machine that you're running Python on where you're not, you don't have this
- 39:09Juanita Gomez: giant security apparatus working for you. Yeah, I want to second that and say that a lot of the
- 39:14Juanita Gomez: people that use Python packages have no idea of what is PyPI, where they're coming from, what does
- 39:20Juanita Gomez: pip install mean? And so having like, and like, like, seriously, but when I started doing all of
- 39:27Juanita Gomez: they say, I had no idea.
- 39:28Juanita Gomez: I was just running commands
- 39:29Juanita Gomez: that I was reading somewhere in Reddit
- 39:31Juanita Gomez: or somewhere else.
- 39:32Juanita Gomez: And I think just having some default ways
- 39:36Juanita Gomez: of keeping security
- 39:39Juanita Gomez: in my own developer environment
- 39:42Juanita Gomez: is, I think it's great.
- 39:44Juanita Gomez: For the most unexperienced developers,
- 39:46Juanita Gomez: this is definitely more usable.
- 39:48Michael Kennedy: Yeah, I think it's a great idea.
- 39:50Michael Kennedy: I really like the idea.
- 39:51Michael Kennedy: So I adopted this to some degree
- 39:54Michael Kennedy: and I thought it was amazing.
- 39:56Michael Kennedy: And then I ran into some problems.
- 39:58Michael Kennedy: And I'd love to hear your thoughts on this.
- 40:00Michael Kennedy: So I don't have unpinned dependencies.
- 40:04Michael Kennedy: But I use uvpipcompile, which will say, with an update,
- 40:08Michael Kennedy: and say, OK, well, I've decided now I'm
- 40:10Michael Kennedy: going to release a new version.
- 40:11Michael Kennedy: Let's go ahead and do a refresh of the update of the dependencies
- 40:15Michael Kennedy: and recompile.
- 40:16Michael Kennedy: And it will repin them to the newest.
- 40:17Michael Kennedy: And without this cooldown, it'll pin them to the very latest.
- 40:20Michael Kennedy: And so if, for some reason, something
- 40:23Michael Kennedy: were to git pushed into PyPI an hour ago, and I ran that command, well, I might as well have
- 40:29Michael Kennedy: unpinned dependencies, right? So I'm going to put uv pip compile dash dash, like wait, whatever the
- 40:34Michael Kennedy: command is, exclude newer one week. And I even put it into the Docker build for all of my server
- 40:40Michael Kennedy: stuff so that the Docker build would fail if using a combination of pip audit and this. So if there's
- 40:47Michael Kennedy: a CVE, it will fail because there's a problem with one of the packages. And then I would use this
- 40:53Michael Kennedy: older ones but here's what i ran into is there would be a cve in something and then it would
- 40:57Michael Kennedy: it would window into the seven days ago and the fix would be like one day later but it wouldn't
- 41:03Michael Kennedy: allow it to install the one without the cve because that was excluding newer and so then i end up with
- 41:08Michael Kennedy: all of these like x ignore this one because this one you know what i mean like it's these two things
- 41:13Michael Kennedy: clashing it's kind of like one package says version has to be greater than two on a dependency
- 41:18Michael Kennedy: and one says version has to be less than two you're like well now what do i do yeah michael you're
- 41:21Seth Larson: You're touching on the exact reason why I would have a hard time,
- 41:26Seth Larson: at least right this moment,
- 41:27Seth Larson: pushing for dependency cooldowns to be a default.
- 41:31Seth Larson: It confuses users,
- 41:33Seth Larson: especially when there are other systems
- 41:36Seth Larson: that are telling them that they need to resolve a problem.
- 41:39Seth Larson: And when they run the commands necessary that they know work
- 41:42Seth Larson: because they've used them before
- 41:44Seth Larson: to upgrade a dependency to a specific version or whatever,
- 41:47Seth Larson: they don't work.
- 41:47Seth Larson: Or they'll say something like,
- 41:49Seth Larson: oh, that version doesn't exist
- 41:51Seth Larson: because pip is like literally dropping
- 41:53Seth Larson: these versions from the candidate pool
- 41:55Seth Larson: or something like this, right?
- 41:56Seth Larson: It'll say that version doesn't exist
- 41:58Seth Larson: and you get these really confusing messages.
- 42:00Seth Larson: I mean, one day I do,
- 42:02Seth Larson: I would really like to have something,
- 42:05Seth Larson: it doesn't necessarily have to be cooldowns,
- 42:07Seth Larson: but some sort of system that the default is,
- 42:10Seth Larson: if you are not,
- 42:11Seth Larson: the way I like to think about it is like,
- 42:13Seth Larson: if you are not showing through your tool usage,
- 42:16Seth Larson: whether or not you have like operational maturity
- 42:19Seth Larson: is kind of how I think about it, right?
- 42:21Seth Larson: Like you're not using a mirror,
- 42:22Seth Larson: you're installing direct from latest.
- 42:24Seth Larson: If you're not showing that sort of operational maturity,
- 42:27Seth Larson: like asking for a lock or an exact version or whatever,
- 42:29Seth Larson: then there is some sort of secure default.
- 42:32Seth Larson: But that secure default policy
- 42:34Seth Larson: needs to take into account a lot of things.
- 42:36Seth Larson: And one of those things is
- 42:38Seth Larson: whether a security vulnerability is being fixed
- 42:41Seth Larson: by something that is within this cooldown window
- 42:43Seth Larson: or reviewing window.
- 42:44Seth Larson: And maybe this can be easier
- 42:46Seth Larson: if there's more of this happening
- 42:49Seth Larson: the index side. Like right now, IPI is mostly you upload it, it's immediately available, right? And
- 42:55Seth Larson: the scan comes after the fact, there's no intermediate step where it's like being reviewed
- 43:00Seth Larson: because we just can't, there's too much volume. And so like, if we get to a world where that is
- 43:05Seth Larson: happening, maybe tools can implement this sort of policy a little bit more easily, because it'll be
- 43:10Seth Larson: for the most part on the index side. But from a tool perspective, it's really difficult to get
- 43:14Seth Larson: a secure default that takes and respects all of these use cases perfectly right as a default.
- 43:21Seth Larson: It's very challenging.
- 43:23Juanita Gomez: So what you're saying is we need to hire a lot more people to scan packages before they
- 43:29Juanita Gomez: get published by BI.
- 43:30Juanita Gomez: That's what you say, right?
- 43:32Seth Larson: I'm open to emails.
- 43:34Seth Larson: Email Seth at Python.org for any interested parties solving this issue.
- 43:41Michael Kennedy: Indeed.
- 43:42Michael Kennedy: So earlier, Mike, you talked about API keys and how they're kind of outside the bounds of two-factor and so on.
- 43:49Michael Kennedy: So the next talk was Zero Trust in 200 Milliseconds, Identity Per Transaction with Tristan and McKinnon.
- 43:55Michael Kennedy: And that comes from FediRAMP, which is a U.S. government thing, the Federal Risk and Authorization Management Program that provides approach to security and risk and so on.
- 44:06Michael Kennedy: If I recall correctly, this is kind of a zero trust story where it's every single time you need to use an API key, you have to get a new version of an API key.
- 44:19Michael Kennedy: Like, I want to talk to AWS.
- 44:21Michael Kennedy: Great.
- 44:21Michael Kennedy: Here's a key you can use for two seconds or something, right?
- 44:25Michael Kennedy: Use it now.
- 44:27Michael Kennedy: Yeah.
- 44:27Michael Kennedy: What are your thoughts on this?
- 44:28Michael Kennedy: What are the takeaways from this one?
- 44:29Michael Kennedy: Anyone?
- 44:31Michael Kennedy: How do you feel about it?
- 44:31Seth Larson: So I was going to say, we're all pointing at each other.
- 44:34Seth Larson: I really love this talk.
- 44:36Seth Larson: because it talked about a side of Python and like development that a lot of people don't
- 44:42Seth Larson: necessarily experience, which is where you work in an industry that's like regulated or needs to
- 44:48Seth Larson: like implement FedRAMP, right? It is a tone of extra work to do this. And a lot of times it's
- 44:53Seth Larson: not really talked about a lot online because like you said, that's not necessarily like open source
- 44:59Seth Larson: communities that are doing this sort of work. It's mostly, you know, industry that is doing these
- 45:04Seth Larson: things. And so it's like really, really great to see this sort of talk where you're talking about
- 45:08Seth Larson: something like FedRAMP compliance and zero trust in Python with a lot of different like tools that
- 45:15Seth Larson: people already use. So like using the AWS SDK and how to implement with this with AWS and then
- 45:21Seth Larson: extrapolating that out to other different like backends. Right. So it's back end agnostic. I really
- 45:27Seth Larson: enjoyed this talk because of those reasons. Like this is just stuff that you don't necessarily see
- 45:31Seth Larson: at PyCon or at open source conferences,
- 45:35Seth Larson: people talking about federal policy requirements
- 45:38Seth Larson: and how to implement secure controls like this.
- 45:41Seth Larson: So really, really interesting talk.
- 45:42Michael Kennedy: Yeah, it is a bit of a look in an area
- 45:44Michael Kennedy: that you don't normally see.
- 45:45Michael Kennedy: And yeah, it's quite cool.
- 45:47Michael Kennedy: This next one, the next one is Rust.
- 45:51Michael Kennedy: And this by Emma Smith.
- 45:53Michael Kennedy: And this one certainly, it's interesting
- 45:56Michael Kennedy: because you can debate it technically,
- 45:58Michael Kennedy: but then you also have to debate it
- 45:59Michael Kennedy: from an organization perspective
- 46:01Michael Kennedy: and so on. And the idea is, what if we could have more of CPython written in Rust, right?
- 46:09Michael Kennedy: But a lot of the people who work on CPython, hey, guess what? What is the name there? CPython,
- 46:16Michael Kennedy: as in the language, our C developers, and they don't necessarily want to rewrite stuff in Rust,
- 46:21Michael Kennedy: and they don't necessarily have an expertise in it, and a whole bunch of things like that. So one,
- 46:26Michael Kennedy: thoughts on the talk. Two, thoughts on Rust and Python.
- 46:29Juanita Gomez: I want to give my thoughts on the talk. I think I love this talk for two reasons. The first one is it was a talk about Rust in a Python conference, which shows the intersection between these two communities. And I think, I mean, I think Emma did a great job of explaining like the technical implications of the migration and like of why we need to do this.
- 46:54Juanita Gomez: But at the same time, I think she was very clear about what this means from like a community perspective. And I think part of the talk was actually talking about how can we actually make this happen? Not from a technical perspective, but like from organizing the people and like actually getting the people to like agree with doing this and like how do we make this happen?
- 47:16Juanita Gomez: Which I think is very on point with open source and how open source works.
- 47:21Juanita Gomez: You don't just make a decision and take a different path on something that you're doing.
- 47:27Juanita Gomez: There's a whole lot of people that are involved in making decisions for a specific community.
- 47:31Juanita Gomez: And I think Emma did a great job of illustrating how that specific aspect of open source works with this particular talk.
- 47:37Juanita Gomez: So I loved it.
- 47:38Juanita Gomez: And one of my highlights was that Wido was there and he ended up asking questions to Emma about this particular talk.
- 47:46Juanita Gomez: that was like, isn't it cool that you have the creator of Python asking you questions about your
- 47:51Seth Larson: talk? That was that was one of my highlights. Yeah, from like a security. So I am very
- 47:56Seth Larson: intrigued about this idea. I, it makes sense. But it's also like you said, like in a social sense,
- 48:04Seth Larson: extremely challenging. And also even like a technical sense, it's extremely challenging,
- 48:09Seth Larson: right? This is this is not an easy project. I think that there's maybe when people think about
- 48:14Seth Larson: rewriting and rust and all of this stuff, right? It's almost kind of like a joke, right? That you
- 48:18Seth Larson: can all just rewrite it in rust and oh, rust Python already exists. Why? Why would this be hard? Right?
- 48:24Seth Larson: Like this already exists out there. And it is extremely difficult. I am really excited to talk
- 48:31Seth Larson: about this at the language summit at EuroPython is a talk there also. And I think that Emma and
- 48:37Seth Larson: the whole team that's working on rust for Python have their work cut out for them. It's going to be
- 48:43Seth Larson: long journey. Talking about like just the technical aspect of this, I think that they
- 48:48Seth Larson: have made a really great choice in which library they're decided to potentially like attack first
- 48:55Seth Larson: as like a first go, which is Zlib, which is a compression library that's pretty understood,
- 49:01Seth Larson: processes a lot of like untrusted data, right? So there's the memory management, memory of security
- 49:09Seth Larson: vulnerability aspect. Not necessarily that Zlib has had a ton of issues in that area,
- 49:14Seth Larson: but it's a really good one to attack as a first module. Yeah, I'm going to be
- 49:21Michael Kennedy: Give us an idea of exactly what they're proposing here. Is this like,
- 49:24Michael Kennedy: there are portions of the standard library that right now are pure Python or C, and we propose
- 49:30Seth Larson: rewriting some of them in Rust? So the proposal right now is to rewrite a single standard library
- 49:36Seth Larson: module in Rust with the long term goal being maybe more and even potentially the like parts
- 49:43Seth Larson: of the language being rewritten in Rust.
- 49:44Seth Larson: So like the I believe it was like legit.
- 49:47Seth Larson: The just in time compiler was another candidate for like a larger project or maybe like a here
- 49:53Seth Larson: you can cut your teeth on this.
- 49:54Seth Larson: We won't merge it, but we'll it'll it'll prove out whether or not the tooling that's around
- 49:59Seth Larson: this like compiling stuff to Rust and having it actually work for Python would work just
- 50:05Seth Larson: as an option.
- 50:05Seth Larson: this got discussed a while back too.
- 50:08Seth Larson: And so this has kind of been ongoing for quite a long time.
- 50:11Seth Larson: And so I'm like really excited that this talk,
- 50:12Seth Larson: this is kind of like the first time that Emma and the team have like poked
- 50:15Seth Larson: their head out and be like, talk to the wider community about this is happening.
- 50:19Seth Larson: We're discussing this and what it could mean.
- 50:21Seth Larson: But yeah, it's going to be a long road ahead.
- 50:23Seth Larson: I have a feeling.
- 50:24Michael Kennedy: So yeah.
- 50:24Michael Kennedy: All right.
- 50:25Michael Kennedy: Next up, Asleep at the Wheel, S-Bombs for Python Builds.
- 50:28Michael Kennedy: Sanchit Seye and Abhishek Reddy Piley.
- 50:34Michael Kennedy: Sorry about that.
- 50:35Michael Kennedy: Yeah, so SBOMs.
- 50:37Michael Kennedy: What are the thoughts on SBOMs, folks?
- 50:39Michael Kennedy: We need more of them.
- 50:40Juanita Gomez: Yes, and better.
- 50:41Juanita Gomez: They need to be accurate.
- 50:42Juanita Gomez: Exactly.
- 50:43Juanita Gomez: I think, honestly, I was just going to comment really quick that I was very proud of this talk because Abby and Sancheid are both students.
- 50:53Juanita Gomez: I think Sancheid is a master's student.
- 50:55Juanita Gomez: Abby is a PhD student.
- 50:57Juanita Gomez: And as a PhD student, I love to see the research that people are doing in conferences are not academic conferences.
- 51:05Juanita Gomez: And I think they have done a really good work on developing their research, but also interacting with the outside community to figure out how to make their tools available and usable.
- 51:18Juanita Gomez: I love that they have made their project part of the OpenSSF, like, bigger ecosystem, because that kind of shows how they want to make sure that anything that they're doing is actually usable.
- 51:31Juanita Gomez: And yeah, like it's not just a paper about something that's very abstract and not really relevant, but like it's actually something that the community can use and adopt.
- 51:41Juanita Gomez: So I'm really proud of this talk.
- 51:43Seth Larson: Yeah, I was going to add that this talk is the talk that showed me what SBOMIT actually was, which is really, really cool.
- 51:52Seth Larson: I'd heard of it.
- 51:53Seth Larson: I kind of knew what it meant, right?
- 51:56Seth Larson: It's one of these things where there's just so many security tools and approaches and so much area to cover that you kind of like end up knowing about something.
- 52:06Seth Larson: And, you know, like when you'd maybe reach over there to learn more, but you don't know like how deep the iceberg goes.
- 52:13Seth Larson: right and how much work had to go into making this basically work like magic to record all of the
- 52:20Seth Larson: stuff that happened during your build all the network calls all the command invocations and
- 52:25Seth Larson: how it gets then exported into an s bomb but then also this verifiable record using i believe it's
- 52:31Seth Larson: called in toto that's what the it is an s vomit um and like how it all works end to end and so it
- 52:37Seth Larson: just gets my mind thinking about like if we were to release this like either like a build farm for
- 52:43Seth Larson: PyPI if we ever to work on that project this is the sort of thing that we would like reach for and
- 52:48Seth Larson: say like okay maybe we could integrate this technology into that or if we were going to
- 52:52Seth Larson: create a like a recommended builder like a docker image that did building like this would potentially
- 52:59Seth Larson: be a part of that story where you're recording network calls and then you can get this extremely
- 53:04Seth Larson: accurate software bill of materials document at the end that shows how a package was built.
- 53:10Seth Larson: And then you can have that be published with the package or you can use it as a user, however
- 53:14Seth Larson: you want to use it.
- 53:15Seth Larson: Like that sort of information is really important.
- 53:17Seth Larson: And it's really difficult to get after the fact, as opposed to like when it's in flight
- 53:21Seth Larson: and when the actual programs are doing the installations and the builds and all of that.
- 53:25Seth Larson: And I think you mentioned...
- 53:26Seth Larson: Oh, sorry, Godwin.
- 53:27Juanita Gomez: I was just going to say that this talk actually did a very good job of making people aware
- 53:32Juanita Gomez: that the current tools that generate S-BOMs are not as accurate.
- 53:36Juanita Gomez: And there's still a lot of work needed to make S-BOMs actually usable
- 53:43Juanita Gomez: within a security perspective.
- 53:44Juanita Gomez: And they did a great job of just making that awareness.
- 53:48Juanita Gomez: And they also were brave enough to do a demo,
- 53:50Juanita Gomez: which is like people now don't do demos because they all break,
- 53:54Juanita Gomez: but they did a demo and it worked.
- 53:55Juanita Gomez: That was really cool.
- 53:56Michael Kennedy: Very cool.
- 53:57Michael Kennedy: Seth, you theorized there might be some magical process
- 54:00Michael Kennedy: involving cooldowns and pin dependencies and review.
- 54:04Michael Kennedy: And maybe SBOMs could be an input to that to say,
- 54:08Michael Kennedy: well, this ain't got a problem,
- 54:09Michael Kennedy: but it has some source down in the supply chain
- 54:12Michael Kennedy: that actually we've discovered is problematic.
- 54:14Michael Kennedy: So everything downstream from that,
- 54:16Michael Kennedy: we need to check or flag or whatever.
- 54:19Seth Larson: Yeah, SBOM, the way I think about SBOM
- 54:22Seth Larson: is mostly as just this third party.
- 54:25Seth Larson: It's not a part of an ecosystem,
- 54:28Seth Larson: so it works really well for Python.
- 54:30Seth Larson: because we have so many Python packages out there
- 54:33Seth Larson: are not just Python.
- 54:34Seth Larson: It's like C, Fortran, Rust, JavaScript,
- 54:37Seth Larson: all of these different ecosystems, right?
- 54:40Seth Larson: GPU shaders.
- 54:41Seth Larson: Yeah, GPU shaders.
- 54:42Seth Larson: Throw them in there.
- 54:42Seth Larson: Why not?
- 54:43Seth Larson: I mean, Mike knows this even more than I do.
- 54:45Seth Larson: Like there's video.
- 54:47Seth Larson: It's just all sorts of great, great content on PyPI.
- 54:51Seth Larson: Yeah, not that we encourage that use case.
- 54:53Seth Larson: But there's a lot of stuff in Python packages
- 54:57Seth Larson: and SBOMs are a great way to represent
- 54:59Seth Larson: like the provenance of all that software without it being Python specific.
- 55:04Michael Kennedy: For sure. All right. Picking up speed because we got a couple more to go through.
- 55:07Michael Kennedy: We've got maybe the follow on or the after case here is post incident runtime S-bomb generation
- 55:15Michael Kennedy: from Python memory by Hala, Ali and Andrew Case. And the general idea is there's what you've
- 55:20Michael Kennedy: declared to be your supply chain inputs and then there's what's actually there. So maybe look at
- 55:27Michael Kennedy: what is loaded into memory?
- 55:28Michael Kennedy: And you're like, oh, why is this library also loaded?
- 55:31Michael Kennedy: Or some other hacker type of thing got put on the machine
- 55:35Michael Kennedy: and then loaded in.
- 55:36Michael Kennedy: And now we can detect that through this generation
- 55:39Michael Kennedy: of looking at loaded modules and so on, right?
- 55:42Seth Larson: Yeah, this one, I was really intrigued about this
- 55:44Seth Larson: because it went so deep into Python memory management
- 55:48Seth Larson: and how modules are loaded and how functions are called
- 55:51Seth Larson: like extremely deep dive into this topic.
- 55:54Seth Larson: And so I was like super I was like in awe watching this talk.
- 55:58Seth Larson: I was like they just kept on being more cool stuff happening.
- 56:01Seth Larson: And so I was like looking at like runtime analysis.
- 56:03Seth Larson: You can see what functions are being called.
- 56:05Seth Larson: You can like to see whether or not like a CD is affecting your program.
- 56:10Seth Larson: So you can like introspect your program live while it's running and see whether
- 56:14Seth Larson: interesting like something is even being used.
- 56:16Seth Larson: You don't even have to like look at the source code to check or whatever.
- 56:20Seth Larson: You just look at your program and see if it's using that code.
- 56:23Michael Kennedy: Yeah, yeah, because if you bother, and I don't, maybe you all know better than I do, but if I were to speculate, I'd say less than 1% of people actually run pip audit or uv pip audit sort of thing, uv audit, whatever it is, on their code.
- 56:35Michael Kennedy: But even if you do, or you look at the CVE and you see one, or maybe get the PendaBot tells you, oh, there's a CVE in one of your dependencies, you better go fix it.
- 56:43Michael Kennedy: And then you got to go look and say, does it really matter?
- 56:46Michael Kennedy: I remember one of the packages I was using, it said, oh, on Windows, there's this issue that if you take untrusted input and it's a PDF and it's this way, it's going to do this terrible thing.
- 56:57Michael Kennedy: I'm like, yeah, but my deployment target is Linux on Docker and my dev machine is Mac.
- 57:03Michael Kennedy: And I don't think I've taken untrusted input whatsoever for this.
- 57:05Michael Kennedy: And so do I care?
- 57:07Michael Kennedy: I don't really care.
- 57:08Michael Kennedy: You know what?
- 57:09Michael Kennedy: I'm just going to not worry about it.
- 57:10Michael Kennedy: But PitBot will fill my build and then we're back to the cooldowns and all that.
- 57:15Michael Kennedy: But nonetheless, it's like, I think that's part of the problem.
- 57:18Michael Kennedy: And the fact, if you could say somehow combine the CVE and the CVE, actually, I can verify
- 57:23Michael Kennedy: it doesn't touch that bit of code.
- 57:25Michael Kennedy: That's super cool.
- 57:25Mike Fiedler: Yeah, on that front, I think there's an ongoing effort through the open source vulnerability
- 57:31Mike Fiedler: database to surface more rich details as to like code paths that are affected.
- 57:38Mike Fiedler: So that way you could automatically audit, do I use those code paths?
- 57:43Mike Fiedler: and then thus either fail or not fail your build.
- 57:46Mike Fiedler: But again, in languages like Python,
- 57:49Mike Fiedler: where dynamicism is used,
- 57:52Mike Fiedler: getting that an accurate representation
- 57:55Mike Fiedler: of am I using that code path
- 57:57Mike Fiedler: is often a harder question to answer
- 58:00Mike Fiedler: because you don't necessarily even have to import the library
- 58:03Mike Fiedler: via an import statement.
- 58:04Mike Fiedler: You can use import lib.
- 58:05Mike Fiedler: You can do all sorts of other different things.
- 58:08Mike Fiedler: So the challenge is how do we surface enough information
- 58:13Mike Fiedler: make a confident decision without misleading you down the wrong path.
- 58:18Michael Kennedy: Indeed.
- 58:19Michael Kennedy: Let's keep moving on because time is a ticking.
- 58:23Michael Kennedy: The next one is GitHub Action Security and Python Packages by Andrew Nesbitt.
- 58:28Michael Kennedy: So, yeah.
- 58:29Michael Kennedy: Terrifying.
- 58:29Michael Kennedy: There's some really weird stuff.
- 58:31Michael Kennedy: That was very eye-ocaching.
- 58:32Michael Kennedy: Weird caching.
- 58:33Mike Fiedler: So Andrew's a nerd, right?
- 58:34Mike Fiedler: He's the best kind of nerd, right?
- 58:36Mike Fiedler: He loves researching things.
- 58:38Mike Fiedler: He loves accumulating data.
- 58:40Mike Fiedler: He's the author behind Ecosystems.
- 58:43Mike Fiedler: That's ecosystem.sys.ms.
- 58:47Mike Fiedler: And he analyzes lots of projects
- 58:51Mike Fiedler: and was able to analyze a lot of GitHub project
- 58:54Mike Fiedler: IPI-linked repositories with Zismore,
- 58:56Mike Fiedler: which he did not write.
- 58:58Mike Fiedler: But it is a very cool tool
- 59:00Mike Fiedler: and great to audit your GitHub actions
- 59:03Mike Fiedler: for security vulnerability.
- 59:05Mike Fiedler: It's scary what its surface is.
- 59:07Mike Fiedler: And when we're talking about
- 59:10Mike Fiedler: folks getting started, this should be on that checklist of did you run Zizmor on your repository?
- 59:16Mike Fiedler: Better yet, did you add it as a GitHub action to run always on your repository? But, you know,
- 59:21Mike Fiedler: it surfaces a lot of easy to fix findings, and then sometimes surfaces the scarier ones of you've
- 59:27Mike Fiedler: left yourself open to an injection that leads to a exploit. And he talked about a couple of those.
- 59:33Michael Kennedy: Very interesting. Yeah, the GitHub actions have a lot of nuance and weird, there was some weird
- 59:38Michael Kennedy: cache poisoning that people could submit PRs that would trigger a GitHub Action build.
- 59:45Michael Kennedy: And even if they had no rights to the target system, their PR could point at a malicious
- 59:54Michael Kennedy: package somehow.
- 59:55Michael Kennedy: And then that would get cached into the actual build because the build ran in the context
- 1:00:01Michael Kennedy: of the target repo.
- 1:00:04Michael Kennedy: And hey, wouldn't it be nice if we could just cache this so we don't save it?
- 1:00:07Michael Kennedy: Maybe we should cache other people's inputs.
- 1:00:09Michael Kennedy: You said all the keywords there, Michael.
- 1:00:11Mike Fiedler: You said pull request and target.
- 1:00:13Mike Fiedler: That is the trigger for a lot of these.
- 1:00:15Mike Fiedler: GitHub Actions has a lot of different trigger keywords.
- 1:00:17Mike Fiedler: Push, pull request.
- 1:00:19Mike Fiedler: There is one called pull request target.
- 1:00:22Mike Fiedler: That one runs on forks.
- 1:00:24Mike Fiedler: It runs with elevated privileges.
- 1:00:26Mike Fiedler: It is dangerous.
- 1:00:28Mike Fiedler: Zismore calls that out as like,
- 1:00:30Mike Fiedler: you are probably using this wrong
- 1:00:33Mike Fiedler: because it is a very sharp, sharp knife.
- 1:00:35Mike Fiedler: If you pick it up the wrong way,
- 1:00:37Mike Fiedler: You have now cut your hand and it's easy to pick up the wrong one.
- 1:00:41Mike Fiedler: So Runs is more.
- 1:00:42Michael Kennedy: Please start trying to juggle three of those.
- 1:00:44Michael Kennedy: Yeah.
- 1:00:44Mike Fiedler: Don't juggle three.
- 1:00:45Mike Fiedler: Runs is more.
- 1:00:46Mike Fiedler: Follow its recommendations.
- 1:00:47Michael Kennedy: Move on with your life.
- 1:00:49Michael Kennedy: All right.
- 1:00:49Michael Kennedy: One more here.
- 1:00:51Michael Kennedy: Breaking Bad packages.
- 1:00:53Michael Kennedy: Why traditional vulnerability tracking fails supply chain attacks.
- 1:00:56Michael Kennedy: Shelby Cunningham and Madison Figuerely.
- 1:00:59Seth Larson: So I really like this one because it talks about the CVE system,
- 1:01:03Seth Larson: which is something that I've spent way too much time kind of digging around in.
- 1:01:06Seth Larson: And it's this challenge between intentional malicious software, like malware that we see on PyPI, and vulnerabilities.
- 1:01:17Seth Larson: And I think that there's this, sometimes we use CVEs for malware and sometimes we don't.
- 1:01:23Seth Larson: And because if we did, there'd be, you know, millions.
- 1:01:27Seth Larson: And it's like, do we, do we not?
- 1:01:29Seth Larson: Like, what are the trade-offs?
- 1:01:30Seth Larson: Does it overwhelm the system?
- 1:01:31Seth Larson: Is it even useful?
- 1:01:33Seth Larson: And it talked about all of these different watering hole attacks that ended up publishing malware to different open source ecosystems, including PIPI and how the this vulnerability record like CD or OSV responded in turn and like how people got the word out.
- 1:01:50Seth Larson: How did people respond to it?
- 1:01:53Seth Larson: And yeah, it's it's really challenging because it feels it feels so close to being the right system to use, but not quite.
- 1:01:59Seth Larson: And maybe that means that we need to build a new system.
- 1:02:02Seth Larson: Maybe that means that who knows what it means.
- 1:02:04Seth Larson: We need to do some more thinking in this area.
- 1:02:06Michael Kennedy: Yeah, I totally see it because malware is not a problem in valid software, right?
- 1:02:13Michael Kennedy: It's just a bad piece of software.
- 1:02:16Michael Kennedy: Whereas if I open up this PDF in Microsoft Word and it turns me into a botnet, that's a CVE.
- 1:02:21Michael Kennedy: Because Microsoft Word isn't intended to be malware.
- 1:02:24Michael Kennedy: All right, folks.
- 1:02:25Michael Kennedy: I think that might be it for the time that we've got.
- 1:02:30Michael Kennedy: So I guess final call to action here.
- 1:02:32Michael Kennedy: We have all these talks on PyCon US, and everyone links to them.
- 1:02:39Michael Kennedy: So every part of the show notes links up to them.
- 1:02:41Michael Kennedy: So I'll put the links in the show page for people listening and their podcast player and so on.
- 1:02:46Michael Kennedy: So go out and check out the interesting talks on YouTube.
- 1:02:49Michael Kennedy: I can put that out there.
- 1:02:51Michael Kennedy: But let's leave it with us.
- 1:02:53Michael Kennedy: Juanita, I'll give you the first word, and you can each answer this one.
- 1:02:56Michael Kennedy: So if everyone out there listening did one thing this week because of this episode,
- 1:03:02Michael Kennedy: because of what they heard us talking about.
- 1:03:03Michael Kennedy: What should they do?
- 1:03:04Michael Kennedy: What would you tell them?
- 1:03:04Juanita Gomez: Like, here's the one thing really I recommend most.
- 1:03:08Juanita Gomez: If it's only one, I'll just pick you, Sizmore.
- 1:03:11Mike Fiedler: Okay.
- 1:03:12Mike Fiedler: Mike?
- 1:03:13Mike Fiedler: Look at trusted publishing.
- 1:03:15Mike Fiedler: Convert at least one of your projects to use it.
- 1:03:18Mike Fiedler: And don't forget to delete the old token.
- 1:03:21Mike Fiedler: Got it.
- 1:03:21Mike Fiedler: Okay.
- 1:03:22Michael Kennedy: Spoken like a person who works on PyPI security.
- 1:03:25Michael Kennedy: Seth?
- 1:03:25Seth Larson: Yeah.
- 1:03:26Seth Larson: So my recommendation is if after hearing all of these security problems,
- 1:03:31Seth Larson: solutions like what's happening in security and how it's not this like solve thing to I'm assuming
- 1:03:38Seth Larson: that because you're watching this show that you have an interest in Python and you maybe you even
- 1:03:42Seth Larson: work with Python. I would recommend if you depend on Python or third party packages to look upstream
- 1:03:51Seth Larson: and to see that all of this work is being done and that there is so much more to do and support
- 1:03:58Seth Larson: those open source ecosystems that you depend on to enable them to do security. So whether that's
- 1:04:04Seth Larson: donating engineering time, so like working on a security team, making some of these security
- 1:04:09Seth Larson: focused contributions to open source projects that you care about, or whether that comes as
- 1:04:13Seth Larson: like funding, right? So like donating to the Python Software Foundation, for example,
- 1:04:18Seth Larson: nonprofit that is the home for Mike and I's job. Security is not free. It costs a lot of time to
- 1:04:25Seth Larson: implement all of these changes that everyone ends up benefiting from anyways. And it really would
- 1:04:30Seth Larson: not happen without internal advocates at companies and organizations working with their management and
- 1:04:36Seth Larson: all of that to convince them to support open source that they depend on. So that's my recommendation.
- 1:04:41Michael Kennedy: Perfect. And one final thing, maybe Juanita, people want to keep in touch with you.
- 1:04:46Michael Kennedy: Where's, you know, can they follow you on social? Do you got a blog?
- 1:04:50Juanita Gomez: I have a website where I guess I sometimes put things that I have done or I'm doing currently.
- 1:04:56Juanita Gomez: But honestly, the best way to reach me out is probably LinkedIn.
- 1:04:59Juanita Gomez: I try to post where I'm going to be if I'm giving talks, where to find me.
- 1:05:04Juanita Gomez: But if you just want to chat, just message me on LinkedIn.
- 1:05:07Juanita Gomez: I'm very happy to connect with people that are interested in any of the things that I'm working on.
- 1:05:11Mike Fiedler: Right on. Mike?
- 1:05:12Mike Fiedler: Yeah, I have a landing page at MikeTheMan.dev, and that will link you out to all of my other different locations, socials, blogs, etc.
- 1:05:22Mike Fiedler: And that is, yeah, I'm also on LinkedIn, but I also try to post on all the different socials of like, yep, I'm going to be at EuroPython.
- 1:05:29Mike Fiedler: Here's where I'm going to be.
- 1:05:30Mike Fiedler: So that way people can accost me on the hallway track and demand some new security feature, which is wonderful.
- 1:05:37Michael Kennedy: Love talking about it.
- 1:05:38Michael Kennedy: The most well-attended track of the conference indeed.
- 1:05:40Michael Kennedy: Seth.
- 1:05:41Seth Larson: Yeah, so you can find me online, sethamlarson.dev.
- 1:05:44Seth Larson: Links out to everywhere.
- 1:05:45Seth Larson: I prefer Mastodon, but I also respond to LinkedIn.
- 1:05:49Seth Larson: And there's even Signal there.
- 1:05:50Seth Larson: So if you want to just like privately ask me a security question or something like that,
- 1:05:53Seth Larson: or you just want to chat for a second, I respond to Signal.
- 1:05:57Seth Larson: So any of those locations work for me.
- 1:05:59Seth Larson: I publish a blog there as well.
- 1:06:00Seth Larson: So if you want to read anything about security or retro video games, those are your options.
- 1:06:05Seth Larson: Solid.
- 1:06:06Michael Kennedy: Great.
- 1:06:07Michael Kennedy: Thank you all for being here.
- 1:06:08Michael Kennedy: See you later.
- 1:06:09Michael Kennedy: Thank you.
- 1:06:10Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:06:13Michael Kennedy: Thank you to our sponsors.
- 1:06:14Michael Kennedy: Be sure to check out what they're offering.
- 1:06:15Michael Kennedy: It really helps support the show.
- 1:06:17Michael Kennedy: Take some stress out of your life.
- 1:06:19Michael Kennedy: Get notified immediately about errors and performance issues
- 1:06:23Michael Kennedy: in your web or mobile applications with Sentry.
- 1:06:25Michael Kennedy: Just visit talkpython.fm/sentry
- 1:06:28Michael Kennedy: and get started for free.
- 1:06:30Michael Kennedy: Be sure to use our code talkpython26.
- 1:06:33Michael Kennedy: That's Talk Python, the numbers two, six, all one word.
- 1:06:38Michael Kennedy: Talk Python and Python Bytes both now have MCP servers.
- 1:06:42Michael Kennedy: Point your AI at 10 plus years of Python episodes, transcripts, and show notes.
- 1:06:47Michael Kennedy: Free.
- 1:06:48Michael Kennedy: Click MCP in the nav at talkpython.fm and at pythonbytes.fm.
- 1:06:52Michael Kennedy: If you or your team needs to learn Python,
- 1:06:55Michael Kennedy: we have over 270 hours of beginner and advanced courses on topics
- 1:06:59Michael Kennedy: ranging from complete beginners to async code, Flask, Django, HTML, and even LLMs.
- 1:07:05Michael Kennedy: Best of all, there's no subscription in sight.
- 1:07:08Michael Kennedy: browse the catalog at talkpython.fm.
- 1:07:10Michael Kennedy: And if you're not already subscribed to the show
- 1:07:12Michael Kennedy: on your favorite podcast player,
- 1:07:14Michael Kennedy: what are you waiting for?
- 1:07:15Michael Kennedy: Just search for Python in your podcast player.
- 1:07:17Michael Kennedy: We should be right at the top.
- 1:07:19Michael Kennedy: If you enjoy that geeky rap song,
- 1:07:20Michael Kennedy: you can download the full track.
- 1:07:22Michael Kennedy: The link is actually in your podcast blur share notes.
- 1:07:24Michael Kennedy: This is your host, Michael Kennedy.
- 1:07:26Michael Kennedy: Thank you so much for listening.
- 1:07:27Michael Kennedy: I really appreciate it.
- 1:07:29Michael Kennedy: I'll see you next time.
- 1:07:41Michael Kennedy: I'm out.