{
  "schemaVersion": 1,
  "videoId": "e3JjEcyWW9c",
  "videoUrl": "https://www.youtube.com/watch?v=e3JjEcyWW9c",
  "title": "Patch the Planet: Three Lessons for DeFi from AI Bug Hunting",
  "speakerCredit": "nisedo",
  "programmeTalkId": "dss26-71ba32592cfcbdc7",
  "language": "en",
  "captionType": "auto-generated",
  "humanAccuracyReviewed": false,
  "spokenAudioCompletenessVerified": false,
  "cueEndTimesAvailable": false,
  "source": {
    "provider": "YouTube",
    "method": "native browser transcript export",
    "sha256": "d2c2088678dc70d7c38327c701bccec8ebc283f30fee9da1ccc5bdb9f948a401",
    "exportedAt": "2026-11-16T07:49:14.967669+00:00"
  },
  "qualityCaveats": [
    "Names, organizations, technical terms, code and numbers may be misrecognized.",
    "Source wording and disfluencies are preserved; no editorial corrections were applied.",
    "Export contains whole-second cue starts only; cue ends and subsecond timing are unavailable.",
    "A full caption-track export does not establish that every spoken word is represented.",
    "Automatic YouTube captions; not human-verified against the audio."
  ],
  "timingValidation": {
    "first_cue_start_seconds": 0,
    "last_cue_start_seconds": 311,
    "video_duration_seconds": 313,
    "seconds_after_last_cue_start": 2,
    "cue_start_gaps_over_30_seconds": [],
    "boundary_check": "pass",
    "criterion": "first cue <=15 seconds; last cue start within 30 seconds of player duration, allowing 1-second precision",
    "meaning": "Timing plausibility only; silence/applause or source caption omissions require audio review."
  },
  "segments": [
    {
      "index": 0,
      "start_seconds": 0,
      "source_timestamp": "0:00",
      "end_seconds": null,
      "text": "Thank you."
    },
    {
      "index": 1,
      "start_seconds": 2,
      "source_timestamp": "0:02",
      "end_seconds": null,
      "text": "Do you hear me?"
    },
    {
      "index": 2,
      "start_seconds": 2,
      "source_timestamp": "0:02",
      "end_seconds": null,
      "text": ">> Set up the audio."
    },
    {
      "index": 3,
      "start_seconds": 3,
      "source_timestamp": "0:03",
      "end_seconds": null,
      "text": ">> No."
    },
    {
      "index": 4,
      "start_seconds": 5,
      "source_timestamp": "0:05",
      "end_seconds": null,
      "text": "No. Oh, yeah. Okay."
    },
    {
      "index": 5,
      "start_seconds": 7,
      "source_timestamp": "0:07",
      "end_seconds": null,
      "text": "Uh hi everyone. I'm from Trail of Bits."
    },
    {
      "index": 6,
      "start_seconds": 11,
      "source_timestamp": "0:11",
      "end_seconds": null,
      "text": "And today we'll be talking about Patch"
    },
    {
      "index": 7,
      "start_seconds": 13,
      "source_timestamp": "0:13",
      "end_seconds": null,
      "text": "the Planet because for the last few"
    },
    {
      "index": 8,
      "start_seconds": 14,
      "source_timestamp": "0:14",
      "end_seconds": null,
      "text": "months or so we run"
    },
    {
      "index": 9,
      "start_seconds": 16,
      "source_timestamp": "0:16",
      "end_seconds": null,
      "text": "a handful of agents on some of the most"
    },
    {
      "index": 10,
      "start_seconds": 19,
      "source_timestamp": "0:19",
      "end_seconds": null,
      "text": "critical and most reviewed open source"
    },
    {
      "index": 11,
      "start_seconds": 21,
      "source_timestamp": "0:21",
      "end_seconds": null,
      "text": "code out there in order to find bugs and"
    },
    {
      "index": 12,
      "start_seconds": 24,
      "source_timestamp": "0:24",
      "end_seconds": null,
      "text": "we learn a few lessons that I will be"
    },
    {
      "index": 13,
      "start_seconds": 26,
      "source_timestamp": "0:26",
      "end_seconds": null,
      "text": "sharing with you that will be hopefully"
    },
    {
      "index": 14,
      "start_seconds": 28,
      "source_timestamp": "0:28",
      "end_seconds": null,
      "text": "helpful for your next next DeFi audit."
    },
    {
      "index": 15,
      "start_seconds": 31,
      "source_timestamp": "0:31",
      "end_seconds": null,
      "text": "Um first of all, what's Patch the"
    },
    {
      "index": 16,
      "start_seconds": 32,
      "source_timestamp": "0:32",
      "end_seconds": null,
      "text": "Planet? It's an initiative between Trail"
    },
    {
      "index": 17,
      "start_seconds": 35,
      "source_timestamp": "0:35",
      "end_seconds": null,
      "text": "of Bits and OpenAI. The goal was to help"
    },
    {
      "index": 18,
      "start_seconds": 38,
      "source_timestamp": "0:38",
      "end_seconds": null,
      "text": "secure critical open source software."
    },
    {
      "index": 19,
      "start_seconds": 40,
      "source_timestamp": "0:40",
      "end_seconds": null,
      "text": "Open source software as we know it and"
    },
    {
      "index": 20,
      "start_seconds": 43,
      "source_timestamp": "0:43",
      "end_seconds": null,
      "text": "the news lately have been a proof of it"
    },
    {
      "index": 21,
      "start_seconds": 46,
      "source_timestamp": "0:46",
      "end_seconds": null,
      "text": "are very critical and everywhere in all"
    },
    {
      "index": 22,
      "start_seconds": 49,
      "source_timestamp": "0:49",
      "end_seconds": null,
      "text": "of our dependencies and system, but they"
    },
    {
      "index": 23,
      "start_seconds": 51,
      "source_timestamp": "0:51",
      "end_seconds": null,
      "text": "are often maintained by a small group of"
    },
    {
      "index": 24,
      "start_seconds": 53,
      "source_timestamp": "0:53",
      "end_seconds": null,
      "text": "people with limited time and resources."
    },
    {
      "index": 25,
      "start_seconds": 56,
      "source_timestamp": "0:56",
      "end_seconds": null,
      "text": "And so our goal was to use the latest"
    },
    {
      "index": 26,
      "start_seconds": 59,
      "source_timestamp": "0:59",
      "end_seconds": null,
      "text": "and best GPT models in order to find"
    },
    {
      "index": 27,
      "start_seconds": 61,
      "source_timestamp": "1:01",
      "end_seconds": null,
      "text": "bugs, to fix them, and to work with the"
    },
    {
      "index": 28,
      "start_seconds": 64,
      "source_timestamp": "1:04",
      "end_seconds": null,
      "text": "maintainers hand in hand in order to"
    },
    {
      "index": 29,
      "start_seconds": 66,
      "source_timestamp": "1:06",
      "end_seconds": null,
      "text": "help them strengthen their project for"
    },
    {
      "index": 30,
      "start_seconds": 68,
      "source_timestamp": "1:08",
      "end_seconds": null,
      "text": "the future."
    },
    {
      "index": 31,
      "start_seconds": 70,
      "source_timestamp": "1:10",
      "end_seconds": null,
      "text": "So one of our main weapon for Patch the"
    },
    {
      "index": 32,
      "start_seconds": 73,
      "source_timestamp": "1:13",
      "end_seconds": null,
      "text": "Planet was the slash goal feature, codex"
    },
    {
      "index": 33,
      "start_seconds": 76,
      "source_timestamp": "1:16",
      "end_seconds": null,
      "text": "feature, which is a very powerful"
    },
    {
      "index": 34,
      "start_seconds": 77,
      "source_timestamp": "1:17",
      "end_seconds": null,
      "text": "feature because"
    },
    {
      "index": 35,
      "start_seconds": 79,
      "source_timestamp": "1:19",
      "end_seconds": null,
      "text": "the way an agent session works usually"
    },
    {
      "index": 36,
      "start_seconds": 81,
      "source_timestamp": "1:21",
      "end_seconds": null,
      "text": "is that"
    },
    {
      "index": 37,
      "start_seconds": 82,
      "source_timestamp": "1:22",
      "end_seconds": null,
      "text": "the agent will stop when it thinks it"
    },
    {
      "index": 38,
      "start_seconds": 85,
      "source_timestamp": "1:25",
      "end_seconds": null,
      "text": "has ended, but it's often too early. So"
    },
    {
      "index": 39,
      "start_seconds": 88,
      "source_timestamp": "1:28",
      "end_seconds": null,
      "text": "by enforcing the slash goal feature, the"
    },
    {
      "index": 40,
      "start_seconds": 91,
      "source_timestamp": "1:31",
      "end_seconds": null,
      "text": "harness will check at the end of each"
    },
    {
      "index": 41,
      "start_seconds": 93,
      "source_timestamp": "1:33",
      "end_seconds": null,
      "text": "session if the agent has reached the"
    },
    {
      "index": 42,
      "start_seconds": 95,
      "source_timestamp": "1:35",
      "end_seconds": null,
      "text": "goal you attributed to it. Otherwise the"
    },
    {
      "index": 43,
      "start_seconds": 98,
      "source_timestamp": "1:38",
      "end_seconds": null,
      "text": "agent will keep continuing."
    },
    {
      "index": 44,
      "start_seconds": 100,
      "source_timestamp": "1:40",
      "end_seconds": null,
      "text": "And the trick though is that now you"
    },
    {
      "index": 45,
      "start_seconds": 102,
      "source_timestamp": "1:42",
      "end_seconds": null,
      "text": "have to define your goal very precisely,"
    },
    {
      "index": 46,
      "start_seconds": 104,
      "source_timestamp": "1:44",
      "end_seconds": null,
      "text": "otherwise it won't reach the"
    },
    {
      "index": 47,
      "start_seconds": 107,
      "source_timestamp": "1:47",
      "end_seconds": null,
      "text": "expected output."
    },
    {
      "index": 48,
      "start_seconds": 110,
      "source_timestamp": "1:50",
      "end_seconds": null,
      "text": "And so this come our first lessons, how"
    },
    {
      "index": 49,
      "start_seconds": 113,
      "source_timestamp": "1:53",
      "end_seconds": null,
      "text": "to actually write a good slash goal"
    },
    {
      "index": 50,
      "start_seconds": 115,
      "source_timestamp": "1:55",
      "end_seconds": null,
      "text": "prompt. And the best way we find it is"
    },
    {
      "index": 51,
      "start_seconds": 118,
      "source_timestamp": "1:58",
      "end_seconds": null,
      "text": "to ask the agent to it itself to find"
    },
    {
      "index": 52,
      "start_seconds": 121,
      "source_timestamp": "2:01",
      "end_seconds": null,
      "text": "loopholes in the goal and to improve it."
    },
    {
      "index": 53,
      "start_seconds": 124,
      "source_timestamp": "2:04",
      "end_seconds": null,
      "text": "So usually we will start with this first"
    },
    {
      "index": 54,
      "start_seconds": 126,
      "source_timestamp": "2:06",
      "end_seconds": null,
      "text": "draft. We all tried it. Find all bugs,"
    },
    {
      "index": 55,
      "start_seconds": 128,
      "source_timestamp": "2:08",
      "end_seconds": null,
      "text": "make no mistakes. It sounds nice nice"
    },
    {
      "index": 56,
      "start_seconds": 131,
      "source_timestamp": "2:11",
      "end_seconds": null,
      "text": "but it's actually not really um precise"
    },
    {
      "index": 57,
      "start_seconds": 134,
      "source_timestamp": "2:14",
      "end_seconds": null,
      "text": "and you will end up with the admin can"
    },
    {
      "index": 58,
      "start_seconds": 136,
      "source_timestamp": "2:16",
      "end_seconds": null,
      "text": "steal all the fun. Not very useful. Um"
    },
    {
      "index": 59,
      "start_seconds": 139,
      "source_timestamp": "2:19",
      "end_seconds": null,
      "text": "by asking the agent to challenge it and"
    },
    {
      "index": 60,
      "start_seconds": 141,
      "source_timestamp": "2:21",
      "end_seconds": null,
      "text": "to find loopholes you will hopefully end"
    },
    {
      "index": 61,
      "start_seconds": 143,
      "source_timestamp": "2:23",
      "end_seconds": null,
      "text": "up with something closer to the second"
    },
    {
      "index": 62,
      "start_seconds": 145,
      "source_timestamp": "2:25",
      "end_seconds": null,
      "text": "one. Prove that an unprivileged user can"
    },
    {
      "index": 63,
      "start_seconds": 147,
      "source_timestamp": "2:27",
      "end_seconds": null,
      "text": "steal someone else's funds and prove it"
    },
    {
      "index": 64,
      "start_seconds": 150,
      "source_timestamp": "2:30",
      "end_seconds": null,
      "text": "with a POC."
    },
    {
      "index": 65,
      "start_seconds": 151,
      "source_timestamp": "2:31",
      "end_seconds": null,
      "text": "It's a simplified example but you get"
    },
    {
      "index": 66,
      "start_seconds": 153,
      "source_timestamp": "2:33",
      "end_seconds": null,
      "text": "the idea. The goal is to give your"
    },
    {
      "index": 67,
      "start_seconds": 155,
      "source_timestamp": "2:35",
      "end_seconds": null,
      "text": "threat model to the agent so the agent"
    },
    {
      "index": 68,
      "start_seconds": 157,
      "source_timestamp": "2:37",
      "end_seconds": null,
      "text": "has all the necessary context and then"
    },
    {
      "index": 69,
      "start_seconds": 159,
      "source_timestamp": "2:39",
      "end_seconds": null,
      "text": "you will end up with something which is"
    },
    {
      "index": 70,
      "start_seconds": 160,
      "source_timestamp": "2:40",
      "end_seconds": null,
      "text": "precise enough for the agent to actually"
    },
    {
      "index": 71,
      "start_seconds": 163,
      "source_timestamp": "2:43",
      "end_seconds": null,
      "text": "be able to reach it."
    },
    {
      "index": 72,
      "start_seconds": 165,
      "source_timestamp": "2:45",
      "end_seconds": null,
      "text": "Lesson two, how to find how to use the"
    },
    {
      "index": 73,
      "start_seconds": 168,
      "source_timestamp": "2:48",
      "end_seconds": null,
      "text": "bugs you already found in order to found"
    },
    {
      "index": 74,
      "start_seconds": 171,
      "source_timestamp": "2:51",
      "end_seconds": null,
      "text": "um to to find variance and to find"
    },
    {
      "index": 75,
      "start_seconds": 173,
      "source_timestamp": "2:53",
      "end_seconds": null,
      "text": "similar bugs of it."
    },
    {
      "index": 76,
      "start_seconds": 174,
      "source_timestamp": "2:54",
      "end_seconds": null,
      "text": "Um it comes from a simple observation."
    },
    {
      "index": 77,
      "start_seconds": 177,
      "source_timestamp": "2:57",
      "end_seconds": null,
      "text": "Usually when a dev makes a mistake it"
    },
    {
      "index": 78,
      "start_seconds": 179,
      "source_timestamp": "2:59",
      "end_seconds": null,
      "text": "will make it elsewhere in the codebase"
    },
    {
      "index": 79,
      "start_seconds": 181,
      "source_timestamp": "3:01",
      "end_seconds": null,
      "text": "and so this is something we use a lot on"
    },
    {
      "index": 80,
      "start_seconds": 183,
      "source_timestamp": "3:03",
      "end_seconds": null,
      "text": "the Rust Page Planet project and was"
    },
    {
      "index": 81,
      "start_seconds": 185,
      "source_timestamp": "3:05",
      "end_seconds": null,
      "text": "very very successful."
    },
    {
      "index": 82,
      "start_seconds": 188,
      "source_timestamp": "3:08",
      "end_seconds": null,
      "text": "We gave um our agents all the previous"
    },
    {
      "index": 83,
      "start_seconds": 191,
      "source_timestamp": "3:11",
      "end_seconds": null,
      "text": "critical issues found in the Rust"
    },
    {
      "index": 84,
      "start_seconds": 193,
      "source_timestamp": "3:13",
      "end_seconds": null,
      "text": "codebase."
    },
    {
      "index": 85,
      "start_seconds": 195,
      "source_timestamp": "3:15",
      "end_seconds": null,
      "text": "We uh generalize each of them into a bug"
    },
    {
      "index": 86,
      "start_seconds": 198,
      "source_timestamp": "3:18",
      "end_seconds": null,
      "text": "class or bug family which was the trick"
    },
    {
      "index": 87,
      "start_seconds": 200,
      "source_timestamp": "3:20",
      "end_seconds": null,
      "text": "not to use the finding details otherwise"
    },
    {
      "index": 88,
      "start_seconds": 203,
      "source_timestamp": "3:23",
      "end_seconds": null,
      "text": "the agent will be lost in detail finding"
    },
    {
      "index": 89,
      "start_seconds": 206,
      "source_timestamp": "3:26",
      "end_seconds": null,
      "text": "the exact copy of the bug. But if you"
    },
    {
      "index": 90,
      "start_seconds": 208,
      "source_timestamp": "3:28",
      "end_seconds": null,
      "text": "give it a bug class it has enough"
    },
    {
      "index": 91,
      "start_seconds": 210,
      "source_timestamp": "3:30",
      "end_seconds": null,
      "text": "freedom and room to look for variance"
    },
    {
      "index": 92,
      "start_seconds": 214,
      "source_timestamp": "3:34",
      "end_seconds": null,
      "text": "and it was very very helpful for us and"
    },
    {
      "index": 93,
      "start_seconds": 216,
      "source_timestamp": "3:36",
      "end_seconds": null,
      "text": "very successful."
    },
    {
      "index": 94,
      "start_seconds": 219,
      "source_timestamp": "3:39",
      "end_seconds": null,
      "text": "Last lesson um and and lesson three um"
    },
    {
      "index": 95,
      "start_seconds": 222,
      "source_timestamp": "3:42",
      "end_seconds": null,
      "text": "how to properly divide your agent works."
    },
    {
      "index": 96,
      "start_seconds": 226,
      "source_timestamp": "3:46",
      "end_seconds": null,
      "text": "We realize especially in very big code"
    },
    {
      "index": 97,
      "start_seconds": 228,
      "source_timestamp": "3:48",
      "end_seconds": null,
      "text": "bases that the agents won't coordinate"
    },
    {
      "index": 98,
      "start_seconds": 231,
      "source_timestamp": "3:51",
      "end_seconds": null,
      "text": "and will most likely go to the same"
    },
    {
      "index": 99,
      "start_seconds": 233,
      "source_timestamp": "3:53",
      "end_seconds": null,
      "text": "areas of the code um again and again"
    },
    {
      "index": 100,
      "start_seconds": 236,
      "source_timestamp": "3:56",
      "end_seconds": null,
      "text": "because they think this is the most"
    },
    {
      "index": 101,
      "start_seconds": 237,
      "source_timestamp": "3:57",
      "end_seconds": null,
      "text": "critical part of the codebase"
    },
    {
      "index": 102,
      "start_seconds": 239,
      "source_timestamp": "3:59",
      "end_seconds": null,
      "text": "and so they will lack a lot on coverage."
    },
    {
      "index": 103,
      "start_seconds": 241,
      "source_timestamp": "4:01",
      "end_seconds": null,
      "text": "So our first"
    },
    {
      "index": 104,
      "start_seconds": 242,
      "source_timestamp": "4:02",
      "end_seconds": null,
      "text": "was to give uh as part of the slash goal"
    },
    {
      "index": 105,
      "start_seconds": 245,
      "source_timestamp": "4:05",
      "end_seconds": null,
      "text": "another sub-goal which was to improve"
    },
    {
      "index": 106,
      "start_seconds": 248,
      "source_timestamp": "4:08",
      "end_seconds": null,
      "text": "coverage."
    },
    {
      "index": 107,
      "start_seconds": 249,
      "source_timestamp": "4:09",
      "end_seconds": null,
      "text": "But we quickly realized that when"
    },
    {
      "index": 108,
      "start_seconds": 251,
      "source_timestamp": "4:11",
      "end_seconds": null,
      "text": "dividing one goal into two sub-goal"
    },
    {
      "index": 109,
      "start_seconds": 255,
      "source_timestamp": "4:15",
      "end_seconds": null,
      "text": "sub-goals the agent will lose focus and"
    },
    {
      "index": 110,
      "start_seconds": 258,
      "source_timestamp": "4:18",
      "end_seconds": null,
      "text": "usually reach out for the easiest of"
    },
    {
      "index": 111,
      "start_seconds": 260,
      "source_timestamp": "4:20",
      "end_seconds": null,
      "text": "both goals which is in that case the"
    },
    {
      "index": 112,
      "start_seconds": 262,
      "source_timestamp": "4:22",
      "end_seconds": null,
      "text": "coverage one and we lack on the finding"
    },
    {
      "index": 113,
      "start_seconds": 264,
      "source_timestamp": "4:24",
      "end_seconds": null,
      "text": "bugs one."
    },
    {
      "index": 114,
      "start_seconds": 265,
      "source_timestamp": "4:25",
      "end_seconds": null,
      "text": "Um so our best successes went from um"
    },
    {
      "index": 115,
      "start_seconds": 269,
      "source_timestamp": "4:29",
      "end_seconds": null,
      "text": "dividing the code base into the most"
    },
    {
      "index": 116,
      "start_seconds": 271,
      "source_timestamp": "4:31",
      "end_seconds": null,
      "text": "important attack surfaces"
    },
    {
      "index": 117,
      "start_seconds": 273,
      "source_timestamp": "4:33",
      "end_seconds": null,
      "text": "in the DeFi case which are withdrawal,"
    },
    {
      "index": 118,
      "start_seconds": 276,
      "source_timestamp": "4:36",
      "end_seconds": null,
      "text": "liquidation etc."
    },
    {
      "index": 119,
      "start_seconds": 277,
      "source_timestamp": "4:37",
      "end_seconds": null,
      "text": "One surface per agent per code base per"
    },
    {
      "index": 120,
      "start_seconds": 281,
      "source_timestamp": "4:41",
      "end_seconds": null,
      "text": "slash goal session sorry and an"
    },
    {
      "index": 121,
      "start_seconds": 283,
      "source_timestamp": "4:43",
      "end_seconds": null,
      "text": "additional agent which will be free to"
    },
    {
      "index": 122,
      "start_seconds": 285,
      "source_timestamp": "4:45",
      "end_seconds": null,
      "text": "look everywhere in order to hopefully"
    },
    {
      "index": 123,
      "start_seconds": 288,
      "source_timestamp": "4:48",
      "end_seconds": null,
      "text": "find anything that could have been"
    },
    {
      "index": 124,
      "start_seconds": 289,
      "source_timestamp": "4:49",
      "end_seconds": null,
      "text": "missed by the ranking."
    },
    {
      "index": 125,
      "start_seconds": 293,
      "source_timestamp": "4:53",
      "end_seconds": null,
      "text": "And so"
    },
    {
      "index": 126,
      "start_seconds": 294,
      "source_timestamp": "4:54",
      "end_seconds": null,
      "text": "use the slash goal feature, very"
    },
    {
      "index": 127,
      "start_seconds": 296,
      "source_timestamp": "4:56",
      "end_seconds": null,
      "text": "powerful feature, make the agent write"
    },
    {
      "index": 128,
      "start_seconds": 298,
      "source_timestamp": "4:58",
      "end_seconds": null,
      "text": "and improve and challenge the goal, the"
    },
    {
      "index": 129,
      "start_seconds": 301,
      "source_timestamp": "5:01",
      "end_seconds": null,
      "text": "prompt."
    },
    {
      "index": 130,
      "start_seconds": 302,
      "source_timestamp": "5:02",
      "end_seconds": null,
      "text": "Uh use variant analysis but not with the"
    },
    {
      "index": 131,
      "start_seconds": 304,
      "source_timestamp": "5:04",
      "end_seconds": null,
      "text": "bug details with the bug families and"
    },
    {
      "index": 132,
      "start_seconds": 306,
      "source_timestamp": "5:06",
      "end_seconds": null,
      "text": "classes instead and give one agent a"
    },
    {
      "index": 133,
      "start_seconds": 308,
      "source_timestamp": "5:08",
      "end_seconds": null,
      "text": "focus attack surface in order not to"
    },
    {
      "index": 134,
      "start_seconds": 311,
      "source_timestamp": "5:11",
      "end_seconds": null,
      "text": "lose focus. Thanks. s"
    }
  ]
}
