Episode 9 of The Security Podcast of Silicon Valley came out on September 7, 2021, with Jon McLachlan hosting. The guest was Dylan Ayrey, co-founder and CEO of Truffle Security and the creator of TruffleHog, an open source tool that finds leaked secrets (Podbean, Apple Podcasts, Spotify, LinkedIn, GitHub, Truffle Security). The episode title ends “How Open-Source Makes the World More Secure.”
Dylan’s case is that open source makes security better twice. A tool like TruffleHog finds the API keys people leak into code, including the ones buried in old commits. And giving a tool away brings in users, use cases and contributors that one company would never reach on its own.
This page follows the conversation in order: a section for each part of it, eleven figures, eleven clips from the tape, a talk from Dylan’s YouTube channel, a post from Dylan’s LinkedIn, the full transcript, and five tools: a quiz, a scorecard for secrets in your git history, a calculator for how many keys a team leaks, a timeline, and a to-do list. Where the decodes of the tape disagree on a word, the transcript puts its best guess in brackets, and the page doesn’t quote or retell those words.
Talks before Truffle
Jon introduced Dylan as co-founder and CEO of Truffle Security, a contributing author of TruffleHog, the open source core of Truffle’s product, and before that a senior security partner at Netflix. LinkedIn dates the Netflix role to 2020 and 2021, and lists Dylan as the creator and maintainer of TruffleHog since December 2016 (LinkedIn).
Jon asked about the research Dylan did before Truffle Security. Dylan had spoken at conferences for a couple of years, most recently at Black Hat and DEF CON in 2020, on Google Cloud security work done in collaboration with Google. BSides SF was among the other stages.
“Usually it’s centered around application security.”
Dylan Ayrey, at 1:08
The video’s description says the talk covers ways to exploit GCP service accounts and tools that defend against them, such as org policy (YouTube). The tools from the talk are on Dylan’s GitHub as gcploit (GitHub). Wikipedia describes DEF CON as a hacker convention held every year in Las Vegas since June 1993 (Wikipedia).
A half handshake and a clipboard
Dylan’s earlier work included Wi-Fi hacking. The WPA2 half handshake crack showed you only needed half the handshake to attack a network, where earlier attacks needed the full one. The proof of concept on GitHub, from January 2015, listens for a phone or laptop probing for a known network, puts up a fake access point with that name, and runs a dictionary attack on the failed handshake (GitHub). Wikipedia describes WPA2’s four-way handshake as the step where a client and an access point confirm they hold the same pre-shared key without sending it (Wikipedia).
Then a run of application security posts. In one, Dylan showed that a malicious website can overwrite what’s on your clipboard and slip in malicious commands. Jon pointed to how people transfer bitcoins around. Wikipedia’s article on the clipboard has a related example, a hijacker swapping in its own cryptocurrency address (Wikipedia).
Dylan’s example was a command on a Stack Overflow page. You copy it and paste it into a bash shell.
“what you copy isn’t necessarily what’s in your clipboard.”
Dylan Ayrey, at 1:58
The page can add a new line at the end, so the command runs the moment you paste it. After the write-up, a terminal app changed.
“iTerm actually pushed out a new feature that prompts you and says, hey, what’s in your clipboard has a new line at the end.”
Dylan Ayrey, at 2:09
The write-up is on GitHub as Pastejacking, from May 2016. Its demo swaps a harmless echo command for one that ends in a new line, and it notes that iTerm warns before pasting a command that ends that way (GitHub). Wikipedia names the attack pastejacking and credits Dylan with developing it (Wikipedia). iTerm2 is a free and open source terminal for macOS (Wikipedia).
Dylan thinks the clipboard post spread because it’s easy to grasp whether or not you work in security. Other posts took more explaining, such as one on using CSS to steal a CSRF token over many requests. That repository, from February 2018, pulls the token one character at a time in about 10 seconds (GitHub). Wikipedia describes cross-site request forgery as an exploit where unauthorized commands come from a user the web application trusts (Wikipedia). Dylan said a number of other open sourced projects have collected dust on GitHub.
What TruffleHog does
Jon asked what Truffle Security does. The answer starts with TruffleHog, one of the tools Dylan open sourced.
“all it does is it finds API keys that are accidentally leaked out.”
Dylan Ayrey, at 3:18
It digs through old git commits for API keys that people committed by accident or on purpose.
“it was originally just written for me to do bug bounties.”
Dylan Ayrey, at 3:36
The README showed a screenshot from a real bug bounty, with a real key that has since been turned off. Then Dylan gave the tool to the community. People used it for bug bounties and in CI pipelines. At the time of the episode, Dylan counted something like a thousand daily installs from public repositories, and TruffleHog ships with Kali Linux.
Wikipedia describes a bug bounty program as a deal that pays people for reporting bugs, especially security vulnerabilities (Wikipedia), and Kali Linux as a Linux distribution built for digital forensics and penetration testing (Wikipedia). TruffleHog’s README today defines a secret as “a credential a machine uses to authenticate itself to another machine,” and says the tool can log in to confirm whether a key it finds is still live (GitHub).
Jon has had the same moment looking at a repository.
“oops, there’s a key.”
Jon McLachlan, at 4:52
Jon’s view: automated help can put a real dent in a pragmatic problem, and security people have an obligation to educate.
Half the history
GitHub’s search bar would find a key in the current code. It wouldn’t search the old commits, and Dylan found about half of the source code buried in that past.
“which meant up to that point, half the keys just weren’t being found.”
Dylan Ayrey, at 5:42
Dylan has committed keys too, and wants the work done without blame.
“Security should be ran in a blameless way, myself included, have committed keys in the past.”
Dylan Ayrey, at 5:49
One developer might commit a key or two over a year or two. A large company multiplies that.
“in an organization that’s got 7,000 people, that means you have more than 7,000 keys sticking out in a year.”
Dylan Ayrey, at 6:05
The risk grows when a big organization open sources code on a regular basis. Even code that passes an open source review can carry old keys.
“that old revision history wasn’t really audited super well.”
Dylan Ayrey, at 6:23
So TruffleHog digs through the past and helps find the keys that were missed. Wikipedia describes Git as a distributed version control system, created by Linus Torvalds for the Linux kernel (Wikipedia). The calculator below runs Dylan’s numbers for a team of your size.
Keys in the permafrost
The talk turned to archaeology, and Dylan brought up GitHub’s vault of open source code, locked in ice underground. Dylan asked how many API keys sit in that vault for good.
Dylan pictured archaeologists, 10,000 years from now, digging through what used to be permafrost, opening the vault and running forensics on ancient keys that leaked by accident. Some of those keys probably won’t be rotated by then.
“they’ll probably still be active 10,000 years.”
Dylan Ayrey, at 7:26
On the tape the vault is in Antarctica. Wikipedia places it in the Arctic World Archive, on Spitsbergen in Norway’s Svalbard archipelago, under the Arctic permafrost. GitHub announced the GitHub Archive Program in November 2019, and in July 2020 a 21-terabyte snapshot of public code went into the vault on 186 reels of film (Wikipedia).
Why give it away
Jon asked why build a company on open source, when many companies don’t go down that road. Dylan’s answer turned on what a closed tool can’t see. A company in San Francisco tends to build for the companies and use cases it knows.
“there are so many other use cases that you don’t get to see”
Dylan Ayrey, at 8:52
An open tool lets others come to the table, explain their use cases in tickets and submit pull requests. And the reach goes past the United States and past the wealthy parts of San Francisco, to people all over the world.
“we’re making technology more accessible to folks that don’t otherwise have access to it.”
Dylan Ayrey, at 9:33
That includes information security, and the chance to earn money from bug bounties in places that would otherwise struggle to get into those spaces. Open source tools got Dylan into security in the first place.
“I felt really the need to continue to give back to that”
Dylan Ayrey, at 10:22
That’s why Dylan wrote TruffleHog and open sourced it. Watching the community grow, and how many people came to depend on the tool, led Dylan to leave Netflix and support that community full time.
Not your community
Dylan expects open source to keep growing.
“It’s become the dominant operating system.”
Dylan Ayrey, at 11:57
It’s taking over infrastructure too, and it’s hard to picture a database these days that isn’t open source. Jon once heard someone, probably a venture capitalist, say that a company without a strong community gets commoditized and priced out of the market. With a strong community, the company always has that community, and it becomes part of the value proposition.
Dylan agreed the community has value, and named what founders of open source companies often get wrong.
“The community is its own thing. You’re just a part of it.”
Dylan Ayrey, at 12:55
To do it right, a company listens to the community as much as it hopes the community listens back.
“you’re not the dictator of that community”
Dylan Ayrey, at 13:07
Dylan’s word for the goal was a level playing field.
Leaving the day job
Jon asked when Dylan knew it was time to leave the day job, focus on the community and build a company. The timing came with the pandemic, and Dylan looks back on it with one wish.
“wish that I had done it sooner.”
Dylan Ayrey, at 14:16
Dylan would have liked to be more involved with the community earlier on, and still thinks the founders started at a good time.
“it’s never too late.”
Dylan Ayrey, at 14:34
Truffle Security’s blog post on its first funding round says Dylan left a full-time job in early 2021, with co-founders Dustin Decker and Julian Dunning (Truffle Security).
The stories are the best days
Jon asked for Dylan’s best day so far. The answer was hearing people’s stories: the use cases they have found for the tool over the years, bug bounties included. Dylan used to hear those stories off the cuff, and can now sit down with people and hear them all day.
“that’s really been the best times for me.”
Dylan Ayrey, at 15:33
Jon asked for one story in particular. An intern Dylan had worked with at Salesforce later moved to Airbnb, put TruffleHog into use there, and went on contributing and building new features. The two kept collaborating through the project without working at the same company.
“that’s really the power of open source”
Dylan Ayrey, at 16:21
The two companies would never have worked together otherwise. Competitors can work on the same tooling too, and everyone ends up more secure. Jon called it altruistic, with a sense of meaning and purpose that’s hard to get any other way.
Trust in the open
Dylan added a sense of trust that comes from code that’s out in the open.
“Not to say that open source projects can’t have vulnerabilities, like they certainly can.”
Dylan Ayrey, at 17:13
The transparency helps people trust a tool when they go to use it.
Knowledge you can take with you
Jon shared some mentoring advice from big companies: sort what you learn into two kinds. Transitive knowledge comes with you to the next job and stays useful over a career. Non-transitive knowledge is a legacy or proprietary system you’ll never work on again. Open source builds the first kind. Given the choice between an open source project and a proprietary one, Jon picks open source every time.
Dylan agreed, and aimed it at people early in their careers. Experience with Kubernetes, or with open source projects you’ve contributed to or built on, travels with you.
“pack up and take with you and bring to a job interview”
Dylan Ayrey, at 19:28
It’s useful on the first day of the next job. Time sunk into a big company’s historical proprietary internal system adds to the debt that company struggles to hire for, and it leaves you little to talk about in the next interview.
“you end up boxing yourself in”
Dylan Ayrey, at 19:50
Wikipedia describes Kubernetes as an open source container orchestration system, first designed by Google (Wikipedia). Jon’s own habit goes further, at every opportunity.
“rip out a proprietary system and replace it with something that’s open source. I do it.”
Jon McLachlan, at 20:23
It can take some finessing and a little political dancing, but Jon finds it better for the engineers, the company, the customers and the new people on the team.
Success is giving back
Jon asked what success looks like for Truffle Security in five or ten years. Dylan pointed back to the community: the ways Truffle has helped it, and the tools, scripts, talks and blog posts still to come.
“Look at all the folks new to security.”
Dylan Ayrey, at 21:21
Success means giving tooling and experience to people new to security, and helping the community that brought Dylan into security in the first place.
A starter kit for open source
Jon’s last question was for anyone thinking about open sourcing a project. Dylan’s first piece of advice was to lean toward publishing.
“you should probably bias towards open sourcing it”
Dylan Ayrey, at 22:24
That holds even when you’re unsure anyone will use it, or worried about handing a competitor an advantage.
“And if it takes off, it takes off. And if it doesn’t, then there really isn’t much harm with having open sourced it.”
Dylan Ayrey, at 22:42
The first step is a license. Dylan named choosealicense.org on the tape. The site lives at choosealicense.com, curated by GitHub, and it splits the choice into simple and permissive, like the MIT License, and sharing improvements, like the GNU GPLv3 (Choose a License).
“if you just throw code on GitHub by itself, it’ll be implicitly all rights reserved”
Dylan Ayrey, at 22:59
Choose a License puts it the same way: code is “under exclusive copyright by default” (Choose a License). The choice turns on whether the code and its derivatives must stay open. Wikipedia describes copyleft as granting freedoms on the condition that derivative works keep the same rights (Wikipedia). The MIT License is permissive and allows reuse inside proprietary software (Wikipedia), and the Apache License lets anyone use, modify and distribute the software for any purpose (Wikipedia).
“You’re going to want a code of conduct.”
Dylan Ayrey, at 23:23
A code of conduct says how people can interact, protects members from harassment, and gives you something to point to when someone breaks the rules. Standard ones can be added in one click. Wikipedia describes the Contributor Covenant as a code of conduct for contributors to free and open source projects (Wikipedia).
“If you go to the community tab, it’s got basically a checklist of different things”
Dylan Ayrey, at 23:47
GitHub’s documentation calls it the community profile, a check for files such as a README, a code of conduct, a license and contributing guidelines (GitHub Docs). TruffleHog’s own checklist also covers a security policy, issue templates and a pull request template (GitHub).
What happened after the tape
A first funding round. On December 8, 2021, Truffle Security announced a $14 million Series A led by a16z. Dylan’s post says TruffleHog started as a tool to “find API keys in Git source code” (Truffle Security).
TruffleHog v3. In April 2022, Truffle Security’s YouTube channel introduced version 3 of the tool. This is Truffle’s own video (YouTube). Today the README says TruffleHog looks for secrets in Git, chats, wikis, logs and more, and classifies over 800 types (GitHub).
A Series B. On November 6, 2025, Truffle Security announced a $25 million Series B led by Intel Capital and a16z. The release counts “23,000+ GitHub stars, 15 million downloads, and over 250,000 daily runs worldwide” for the open source tool (Truffle Security). On the tape, Dylan counted about a thousand daily installs.
Keys in training data. On June 1, 2026, Dylan wrote up a scan of Hugging Face training data: “7.6 petabytes across 187 million files.” It found 221,303 live, unique credentials in 6,003 datasets, and 1,131 datasets held the same live key. The post’s advice fits Dylan’s 10,000-year joke: “Rotation is still the only fix” (Truffle Security). Wikipedia describes Hugging Face as a platform where users share datasets and machine learning models (Wikipedia).
Dylan on scanning every Hugging Face dataset for secrets.
Dylan Ayrey · July 31, 2026
A revocation program. On November 4, 2026, Truffle Security launched a free Secrets Revocation Program. Issuers revoke the secrets Truffle finds exposed in public code, packages, container images and AI datasets, and the program starts with 1.4 million verified, live credentials. The release cites Truffle’s 2025 study of 21,981 live keys reported on GitLab and Bitbucket: six months later, 81% still worked (Truffle Security).
Truffle Security on this show. On episode 16, Jon introduced Will Butler, then on Robinhood’s red team, as a Truffle Security co-founder. On episode 84, Jack Cable of Corridor named Dylan among Corridor’s angel investors.
The same themes on this show. Episode 36 had Feross Aboukhadijeh of Socket on securing the open source supply chain. Episode 68 had Travis McPeak, who also went from Netflix to running a startup, on security built for developers. Episode 60 had Damon Fleury of SpyCloud on stolen credentials as open doors.
Did you catch it? A seven-question quiz
Seven questions from the episode. Each answer links the moment in the transcript or its section.
Quiz · seven questions
Did you catch it?
Pick an answer to see whether you caught it.
-
What did Dylan first write TruffleHog for?
b. "it was originally just written for me to do bug bounties." Transcript, 3:36.
-
How much of the source code did Dylan find buried in old commits?
c. A search of the latest code missed the keys in the history. See Half the history.
-
What changed in iTerm after Dylan's clipboard write-up?
a. "iTerm actually pushed out a new feature that prompts you and says, hey, what's in your clipboard has a new line at the end." Transcript, 2:09.
-
What worries Dylan about GitHub's archive in the ice?
b. "they'll probably still be active 10,000 years." Dylan means keys in the vault that nobody rotates. Transcript, 7:26.
-
Whose community is it, in Dylan's view?
c. "The community is its own thing. You're just a part of it." Transcript, 12:55.
-
What does Jon call knowledge you can take to your next job?
a. Open source builds it, and proprietary internal systems don't. See Knowledge you can take with you.
-
What's the first step in Dylan's starter kit for open source?
b. Code on GitHub without a license stays all rights reserved. See A starter kit for open source.
Are your keys out of your history?
Eight questions on secrets in code, built from the episode. Each tip links the section behind it.
Scorecard · eight questions
Are your keys out of your history?
Answer for your code as it stands today. If two answers fit, pick the lower one.
-
Does your secret scan cover every commit in the history?
- We don't scan
- The latest code only
- Every commit, on a schedule
"which meant up to that point, half the keys just weren't being found." See Half the history.
-
When a scan finds a key, how fast is it rotated?
- When someone gets to it
- Within a week
- The same day, with a runbook
Truffle's 2026 scan found the same live key in 1,131 datasets. See What happened after the tape.
-
Do you check whether a found key is still live?
- No
- By hand, sometimes
- Every finding is checked
TruffleHog can log in to confirm whether a key it finds still works. See What TruffleHog does.
-
Does every repository run a secret scan in CI?
- No
- Some repositories
- Every repository, on every push
TruffleHog users put it in CI pipelines. See What TruffleHog does.
-
Before you open source a repository, does anyone scan its history?
- No
- Sometimes
- Always, as part of the review
"that old revision history wasn't really audited super well." See Half the history.
-
Can engineers report a key they leaked without blame?
- No
- In practice, mostly
- Yes, and it's written down
"Security should be ran in a blameless way, myself included, have committed keys in the past." See Half the history.
-
Do your public repositories carry a license and a code of conduct?
- No
- Some of them
- All of them
Dylan's first steps for open source are a license and a code of conduct. See A starter kit for open source.
-
Do you scan for secrets beyond git, in chats, wikis and logs?
- No
- One or two places
- Yes, on a schedule
TruffleHog's README lists chats, wikis and logs next to Git. See What TruffleHog does.
Start with one scan of every commit, and a runbook for rotating what it finds.
The scans run. Check every finding for a live key, and scan the history before anything goes public.
Keep the scans on a schedule, and keep the reporting blameless.
How many keys does your team leak?
The calculator runs Dylan’s estimate from Half the history for a team of your size.
Calculator
How many keys does your team leak?
Three numbers: the people who commit code, the keys each of them commits in a year, and the share of keys that sit only in old commits.
50 people who commit code, at 1.0 keys each in a year, commit about 50 keys a year, or 1.0 a week. A scan of only the latest code would miss about 25 of them, the 50% that sit only in old commits.
The defaults follow the episode: about one key per person a year, and half the code in old commits. Swap in your own numbers. Keys in chats, wikis and logs aren't counted, so treat the result as a floor.
From a clipboard trick to a Series B
Dylan’s path, the field around it, and this show. Filter by topic.
Timeline
From a clipboard trick to a Series B
- Half a handshake
Dylan's proof of concept cracks WPA2 from a failed handshake with a fake access point (GitHub, on this page).
- Pastejacking
A demo of a website overwriting what you copy (GitHub, Wikipedia, on this page).
- TruffleHog
Dylan starts the open source tool, first written for bug bounties (LinkedIn, on this page).
- CSRF tokens through CSS
A demo that steals a token one character at a time (GitHub).
- The GitHub Archive Program
GitHub announces it will store public open source code in the Arctic World Archive (Wikipedia, on this page).
- Netflix
Dylan becomes a senior security partner at Netflix, into 2021 (LinkedIn).
- Into the vault
A 21-terabyte snapshot of public code goes under the permafrost in Svalbard (Wikipedia).
- The Google Cloud talk
Dylan posts the Black Hat and DEF CON talk on GCP service accounts (YouTube, on this page).
- Truffle Security
Dylan leaves a full-time job to found the company with Dustin Decker and Julian Dunning (Truffle Security, on this page).
- This episode
Dylan on the show (Podbean).
- A Series A
$14 million, led by a16z (Truffle Security).
- TruffleHog v3
Truffle's own video introduces the next version of the tool (YouTube).
- Episode 16
Will Butler, introduced as a Truffle Security co-founder (episode 16).
- A Series B
$25 million, led by Intel Capital and a16z (Truffle Security).
- Episode 84
Jack Cable names Dylan among Corridor's angel investors (episode 84).
- Secrets in training data
Truffle finds 221,303 live credentials in 6,003 Hugging Face datasets (Truffle Security).
- The scan, on LinkedIn
Dylan's video post on the Hugging Face scan (LinkedIn, on this page).
- Secrets Revocation Program
A free program for issuers to revoke the secrets Truffle finds exposed (Truffle Security).
What to do this week
Five things, in the order of the episode.
- Scan every commit, once. Run a secret scan over the full history of your repositories, as in Half the history.
- Count your exposure. Run the calculator with your own team’s numbers.
- Rotate what you find. A key in a public repository, a package or a dataset stays live until someone rotates it, as in Keys in the permafrost.
- Scan before you publish. Before you open source a repository, scan its history and add a license and a code of conduct, as in A starter kit for open source. The scorecard covers the rest.
- Get help with it. Our Secure AI SDLC & Engineering service protects secrets and branches in the repositories your engineers and coding agents touch, Training-Data Scrubbing removes embedded secrets from datasets, and Penetration Testing tests your application and cloud the way an attacker would. If you want to talk it through, book 15 minutes with us.