{
  "schemaVersion": 1,
  "videoId": "fKQ8FUnrCaU",
  "videoUrl": "https://www.youtube.com/watch?v=fKQ8FUnrCaU",
  "title": "Security improvements and operational lessons from py-libp2p and Py-IPFS-lite",
  "speakerCredit": "Sumanjeet",
  "programmeTalkId": "sumanjeet",
  "language": "en",
  "captionType": "auto-generated",
  "humanAccuracyReviewed": false,
  "spokenAudioCompletenessVerified": false,
  "cueEndTimesAvailable": false,
  "source": {
    "provider": "YouTube",
    "method": "native browser transcript export",
    "sha256": "61e1e165ba08404e6bcac3f5e2468d5ad4e5edb42b02d70dcc16ad2cbf553458",
    "exportedAt": "2026-11-16T07:34:53.182620+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": 6,
    "last_cue_start_seconds": 340,
    "video_duration_seconds": 343,
    "seconds_after_last_cue_start": 3,
    "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": 6,
      "source_timestamp": "0:06",
      "end_seconds": null,
      "text": "Hello everyone."
    },
    {
      "index": 1,
      "start_seconds": 8,
      "source_timestamp": "0:08",
      "end_seconds": null,
      "text": "My name is Sumanjit and I am an open"
    },
    {
      "index": 2,
      "start_seconds": 10,
      "source_timestamp": "0:10",
      "end_seconds": null,
      "text": "source developer from India."
    },
    {
      "index": 3,
      "start_seconds": 13,
      "source_timestamp": "0:13",
      "end_seconds": null,
      "text": "Currently I am the maintainer of"
    },
    {
      "index": 4,
      "start_seconds": 14,
      "source_timestamp": "0:14",
      "end_seconds": null,
      "text": "PylibP2P which is a Python"
    },
    {
      "index": 5,
      "start_seconds": 16,
      "source_timestamp": "0:16",
      "end_seconds": null,
      "text": "implementation of libp2p and I am also a"
    },
    {
      "index": 6,
      "start_seconds": 19,
      "source_timestamp": "0:19",
      "end_seconds": null,
      "text": "maintainer of unified testing where we"
    },
    {
      "index": 7,
      "start_seconds": 22,
      "source_timestamp": "0:22",
      "end_seconds": null,
      "text": "do all kind of interrupt testing between"
    },
    {
      "index": 8,
      "start_seconds": 25,
      "source_timestamp": "0:25",
      "end_seconds": null,
      "text": "different libp2p implementations."
    },
    {
      "index": 9,
      "start_seconds": 28,
      "source_timestamp": "0:28",
      "end_seconds": null,
      "text": "Recently I was auditing the security"
    },
    {
      "index": 10,
      "start_seconds": 30,
      "source_timestamp": "0:30",
      "end_seconds": null,
      "text": "layer of Python libp2p and there I have"
    },
    {
      "index": 11,
      "start_seconds": 33,
      "source_timestamp": "0:33",
      "end_seconds": null,
      "text": "found some of the security gaps and"
    },
    {
      "index": 12,
      "start_seconds": 36,
      "source_timestamp": "0:36",
      "end_seconds": null,
      "text": "today I want to share about those"
    },
    {
      "index": 13,
      "start_seconds": 37,
      "source_timestamp": "0:37",
      "end_seconds": null,
      "text": "security gaps with you. What was the"
    },
    {
      "index": 14,
      "start_seconds": 40,
      "source_timestamp": "0:40",
      "end_seconds": null,
      "text": "gaps, how we have fixed it and what"
    },
    {
      "index": 15,
      "start_seconds": 43,
      "source_timestamp": "0:43",
      "end_seconds": null,
      "text": "lessons we have learned from them."
    },
    {
      "index": 16,
      "start_seconds": 48,
      "source_timestamp": "0:48",
      "end_seconds": null,
      "text": "So for all the people new to libp2p"
    },
    {
      "index": 17,
      "start_seconds": 51,
      "source_timestamp": "0:51",
      "end_seconds": null,
      "text": "libp2p is an open source project which"
    },
    {
      "index": 18,
      "start_seconds": 54,
      "source_timestamp": "0:54",
      "end_seconds": null,
      "text": "is used to create peer-to-peer"
    },
    {
      "index": 19,
      "start_seconds": 56,
      "source_timestamp": "0:56",
      "end_seconds": null,
      "text": "applications. Every peer has a unique"
    },
    {
      "index": 20,
      "start_seconds": 59,
      "source_timestamp": "0:59",
      "end_seconds": null,
      "text": "identity called peer ID"
    },
    {
      "index": 21,
      "start_seconds": 61,
      "source_timestamp": "1:01",
      "end_seconds": null,
      "text": "and the peer ID is derived from the"
    },
    {
      "index": 22,
      "start_seconds": 64,
      "source_timestamp": "1:04",
      "end_seconds": null,
      "text": "public key of that peer."
    },
    {
      "index": 23,
      "start_seconds": 66,
      "source_timestamp": "1:06",
      "end_seconds": null,
      "text": "And libp2p allows these peers to"
    },
    {
      "index": 24,
      "start_seconds": 69,
      "source_timestamp": "1:09",
      "end_seconds": null,
      "text": "discover each other and create"
    },
    {
      "index": 25,
      "start_seconds": 72,
      "source_timestamp": "1:12",
      "end_seconds": null,
      "text": "connections with each other and along"
    },
    {
      "index": 26,
      "start_seconds": 74,
      "source_timestamp": "1:14",
      "end_seconds": null,
      "text": "with that there are some security"
    },
    {
      "index": 27,
      "start_seconds": 76,
      "source_timestamp": "1:16",
      "end_seconds": null,
      "text": "protocols like TLS using which these"
    },
    {
      "index": 28,
      "start_seconds": 79,
      "source_timestamp": "1:19",
      "end_seconds": null,
      "text": "peers can create secure connections."
    },
    {
      "index": 29,
      "start_seconds": 84,
      "source_timestamp": "1:24",
      "end_seconds": null,
      "text": "So while auditing the security layer I"
    },
    {
      "index": 30,
      "start_seconds": 86,
      "source_timestamp": "1:26",
      "end_seconds": null,
      "text": "have found that these are the three"
    },
    {
      "index": 31,
      "start_seconds": 88,
      "source_timestamp": "1:28",
      "end_seconds": null,
      "text": "issues where I have found the same"
    },
    {
      "index": 32,
      "start_seconds": 91,
      "source_timestamp": "1:31",
      "end_seconds": null,
      "text": "pattern. We are not correctly verifying"
    },
    {
      "index": 33,
      "start_seconds": 94,
      "source_timestamp": "1:34",
      "end_seconds": null,
      "text": "some of the certificates due to which we"
    },
    {
      "index": 34,
      "start_seconds": 97,
      "source_timestamp": "1:37",
      "end_seconds": null,
      "text": "are getting some of the security gaps."
    },
    {
      "index": 35,
      "start_seconds": 99,
      "source_timestamp": "1:39",
      "end_seconds": null,
      "text": "So the first security issue was related"
    },
    {
      "index": 36,
      "start_seconds": 102,
      "source_timestamp": "1:42",
      "end_seconds": null,
      "text": "to quick module where we are not"
    },
    {
      "index": 37,
      "start_seconds": 105,
      "source_timestamp": "1:45",
      "end_seconds": null,
      "text": "correctly verifying the remote peer's"
    },
    {
      "index": 38,
      "start_seconds": 108,
      "source_timestamp": "1:48",
      "end_seconds": null,
      "text": "certificate. So that's why we can have a"
    },
    {
      "index": 39,
      "start_seconds": 111,
      "source_timestamp": "1:51",
      "end_seconds": null,
      "text": "connection from remote peer even without"
    },
    {
      "index": 40,
      "start_seconds": 114,
      "source_timestamp": "1:54",
      "end_seconds": null,
      "text": "that peer is correctly giving a"
    },
    {
      "index": 41,
      "start_seconds": 116,
      "source_timestamp": "1:56",
      "end_seconds": null,
      "text": "certificate."
    },
    {
      "index": 42,
      "start_seconds": 117,
      "source_timestamp": "1:57",
      "end_seconds": null,
      "text": "The second issue was in TLS module."
    },
    {
      "index": 43,
      "start_seconds": 120,
      "source_timestamp": "2:00",
      "end_seconds": null,
      "text": "There also we are getting some inbound"
    },
    {
      "index": 44,
      "start_seconds": 122,
      "source_timestamp": "2:02",
      "end_seconds": null,
      "text": "connections and even if they are not"
    },
    {
      "index": 45,
      "start_seconds": 124,
      "source_timestamp": "2:04",
      "end_seconds": null,
      "text": "giving us certificate, then also we are"
    },
    {
      "index": 46,
      "start_seconds": 127,
      "source_timestamp": "2:07",
      "end_seconds": null,
      "text": "accepting this connection."
    },
    {
      "index": 47,
      "start_seconds": 130,
      "source_timestamp": "2:10",
      "end_seconds": null,
      "text": "Third issue was in peer records where we"
    },
    {
      "index": 48,
      "start_seconds": 133,
      "source_timestamp": "2:13",
      "end_seconds": null,
      "text": "are not verifying the signed peer"
    },
    {
      "index": 49,
      "start_seconds": 135,
      "source_timestamp": "2:15",
      "end_seconds": null,
      "text": "identity. Like we are not verifying who"
    },
    {
      "index": 50,
      "start_seconds": 138,
      "source_timestamp": "2:18",
      "end_seconds": null,
      "text": "has correctly signed that certificate."
    },
    {
      "index": 51,
      "start_seconds": 142,
      "source_timestamp": "2:22",
      "end_seconds": null,
      "text": "The peer records issue is more"
    },
    {
      "index": 52,
      "start_seconds": 145,
      "source_timestamp": "2:25",
      "end_seconds": null,
      "text": "important. So what is a peer record?"
    },
    {
      "index": 53,
      "start_seconds": 148,
      "source_timestamp": "2:28",
      "end_seconds": null,
      "text": "A peer record is an identity or better"
    },
    {
      "index": 54,
      "start_seconds": 151,
      "source_timestamp": "2:31",
      "end_seconds": null,
      "text": "to say it is an signed identity of a"
    },
    {
      "index": 55,
      "start_seconds": 154,
      "source_timestamp": "2:34",
      "end_seconds": null,
      "text": "peer. It also contains the address on"
    },
    {
      "index": 56,
      "start_seconds": 157,
      "source_timestamp": "2:37",
      "end_seconds": null,
      "text": "which that peer can be connected. So it"
    },
    {
      "index": 57,
      "start_seconds": 159,
      "source_timestamp": "2:39",
      "end_seconds": null,
      "text": "is a very important thing. So if we are"
    },
    {
      "index": 58,
      "start_seconds": 162,
      "source_timestamp": "2:42",
      "end_seconds": null,
      "text": "not correctly verifying who has signed"
    },
    {
      "index": 59,
      "start_seconds": 165,
      "source_timestamp": "2:45",
      "end_seconds": null,
      "text": "the identity or the peer record, then we"
    },
    {
      "index": 60,
      "start_seconds": 168,
      "source_timestamp": "2:48",
      "end_seconds": null,
      "text": "are storing this peer record in our"
    },
    {
      "index": 61,
      "start_seconds": 171,
      "source_timestamp": "2:51",
      "end_seconds": null,
      "text": "routing table. So if we store this peer"
    },
    {
      "index": 62,
      "start_seconds": 175,
      "source_timestamp": "2:55",
      "end_seconds": null,
      "text": "record in our routing table without"
    },
    {
      "index": 63,
      "start_seconds": 176,
      "source_timestamp": "2:56",
      "end_seconds": null,
      "text": "verifying, what things can go wrong?"
    },
    {
      "index": 64,
      "start_seconds": 179,
      "source_timestamp": "2:59",
      "end_seconds": null,
      "text": "Okay. We can have wrong address of other"
    },
    {
      "index": 65,
      "start_seconds": 182,
      "source_timestamp": "3:02",
      "end_seconds": null,
      "text": "peers inside our routing table. So our"
    },
    {
      "index": 66,
      "start_seconds": 185,
      "source_timestamp": "3:05",
      "end_seconds": null,
      "text": "node can become isolated from the entire"
    },
    {
      "index": 67,
      "start_seconds": 187,
      "source_timestamp": "3:07",
      "end_seconds": null,
      "text": "network. We might be connecting to"
    },
    {
      "index": 68,
      "start_seconds": 190,
      "source_timestamp": "3:10",
      "end_seconds": null,
      "text": "different peers and we will think that"
    },
    {
      "index": 69,
      "start_seconds": 192,
      "source_timestamp": "3:12",
      "end_seconds": null,
      "text": "okay, we have connected to the correct"
    },
    {
      "index": 70,
      "start_seconds": 194,
      "source_timestamp": "3:14",
      "end_seconds": null,
      "text": "peer. So we always have to"
    },
    {
      "index": 71,
      "start_seconds": 198,
      "source_timestamp": "3:18",
      "end_seconds": null,
      "text": "verify before storing any kind of peer"
    },
    {
      "index": 72,
      "start_seconds": 201,
      "source_timestamp": "3:21",
      "end_seconds": null,
      "text": "records."
    },
    {
      "index": 73,
      "start_seconds": 202,
      "source_timestamp": "3:22",
      "end_seconds": null,
      "text": "And if we are not doing this, then we"
    },
    {
      "index": 74,
      "start_seconds": 205,
      "source_timestamp": "3:25",
      "end_seconds": null,
      "text": "are isolating our our peer from rest of"
    },
    {
      "index": 75,
      "start_seconds": 209,
      "source_timestamp": "3:29",
      "end_seconds": null,
      "text": "the networks."
    },
    {
      "index": 76,
      "start_seconds": 213,
      "source_timestamp": "3:33",
      "end_seconds": null,
      "text": "Okay. So there are some places or there"
    },
    {
      "index": 77,
      "start_seconds": 215,
      "source_timestamp": "3:35",
      "end_seconds": null,
      "text": "are sometimes when we have one"
    },
    {
      "index": 78,
      "start_seconds": 217,
      "source_timestamp": "3:37",
      "end_seconds": null,
      "text": "specifications and we have to create"
    },
    {
      "index": 79,
      "start_seconds": 220,
      "source_timestamp": "3:40",
      "end_seconds": null,
      "text": "different implementations out of it."
    },
    {
      "index": 80,
      "start_seconds": 222,
      "source_timestamp": "3:42",
      "end_seconds": null,
      "text": "Talking about the libp2p, we have one"
    },
    {
      "index": 81,
      "start_seconds": 225,
      "source_timestamp": "3:45",
      "end_seconds": null,
      "text": "specifications of libp2p and we have to"
    },
    {
      "index": 82,
      "start_seconds": 228,
      "source_timestamp": "3:48",
      "end_seconds": null,
      "text": "create different implementations of it"
    },
    {
      "index": 83,
      "start_seconds": 230,
      "source_timestamp": "3:50",
      "end_seconds": null,
      "text": "for different use cases. Like we have"
    },
    {
      "index": 84,
      "start_seconds": 233,
      "source_timestamp": "3:53",
      "end_seconds": null,
      "text": "rust libp2p, Go libp2p and all other"
    },
    {
      "index": 85,
      "start_seconds": 237,
      "source_timestamp": "3:57",
      "end_seconds": null,
      "text": "kind of implementations like Python"
    },
    {
      "index": 86,
      "start_seconds": 239,
      "source_timestamp": "3:59",
      "end_seconds": null,
      "text": "libp2p."
    },
    {
      "index": 87,
      "start_seconds": 240,
      "source_timestamp": "4:00",
      "end_seconds": null,
      "text": "So where"
    },
    {
      "index": 88,
      "start_seconds": 241,
      "source_timestamp": "4:01",
      "end_seconds": null,
      "text": "we have to verify that whether they are"
    },
    {
      "index": 89,
      "start_seconds": 244,
      "source_timestamp": "4:04",
      "end_seconds": null,
      "text": "able to talk with each other"
    },
    {
      "index": 90,
      "start_seconds": 247,
      "source_timestamp": "4:07",
      "end_seconds": null,
      "text": "each other or not."
    },
    {
      "index": 91,
      "start_seconds": 248,
      "source_timestamp": "4:08",
      "end_seconds": null,
      "text": "Even if we are able to create different"
    },
    {
      "index": 92,
      "start_seconds": 251,
      "source_timestamp": "4:11",
      "end_seconds": null,
      "text": "implementations of libp2p, it will not"
    },
    {
      "index": 93,
      "start_seconds": 254,
      "source_timestamp": "4:14",
      "end_seconds": null,
      "text": "verify that whether all the"
    },
    {
      "index": 94,
      "start_seconds": 256,
      "source_timestamp": "4:16",
      "end_seconds": null,
      "text": "implementations are verifying the"
    },
    {
      "index": 95,
      "start_seconds": 260,
      "source_timestamp": "4:20",
      "end_seconds": null,
      "text": "nodes identity or not. Just imagining a"
    },
    {
      "index": 96,
      "start_seconds": 264,
      "source_timestamp": "4:24",
      "end_seconds": null,
      "text": "situation where we have two different"
    },
    {
      "index": 97,
      "start_seconds": 266,
      "source_timestamp": "4:26",
      "end_seconds": null,
      "text": "implementations. One is Python libp2p"
    },
    {
      "index": 98,
      "start_seconds": 269,
      "source_timestamp": "4:29",
      "end_seconds": null,
      "text": "and one is Go libp2p."
    },
    {
      "index": 99,
      "start_seconds": 271,
      "source_timestamp": "4:31",
      "end_seconds": null,
      "text": "So they may be interoperable. They may"
    },
    {
      "index": 100,
      "start_seconds": 273,
      "source_timestamp": "4:33",
      "end_seconds": null,
      "text": "be able to communicate with each other,"
    },
    {
      "index": 101,
      "start_seconds": 275,
      "source_timestamp": "4:35",
      "end_seconds": null,
      "text": "but then also it is not confirmed that"
    },
    {
      "index": 102,
      "start_seconds": 278,
      "source_timestamp": "4:38",
      "end_seconds": null,
      "text": "whether both of them are doing the same"
    },
    {
      "index": 103,
      "start_seconds": 282,
      "source_timestamp": "4:42",
      "end_seconds": null,
      "text": "security checks or not. So we have to do"
    },
    {
      "index": 104,
      "start_seconds": 285,
      "source_timestamp": "4:45",
      "end_seconds": null,
      "text": "a deep analysis of each of the"
    },
    {
      "index": 105,
      "start_seconds": 287,
      "source_timestamp": "4:47",
      "end_seconds": null,
      "text": "implementations that whether they are"
    },
    {
      "index": 106,
      "start_seconds": 290,
      "source_timestamp": "4:50",
      "end_seconds": null,
      "text": "doing the right security checks or not."
    },
    {
      "index": 107,
      "start_seconds": 295,
      "source_timestamp": "4:55",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 108,
      "start_seconds": 296,
      "source_timestamp": "4:56",
      "end_seconds": null,
      "text": "these are the four PRs which we have"
    },
    {
      "index": 109,
      "start_seconds": 298,
      "source_timestamp": "4:58",
      "end_seconds": null,
      "text": "merged for fixing all the security"
    },
    {
      "index": 110,
      "start_seconds": 301,
      "source_timestamp": "5:01",
      "end_seconds": null,
      "text": "issues security issues. The first one"
    },
    {
      "index": 111,
      "start_seconds": 304,
      "source_timestamp": "5:04",
      "end_seconds": null,
      "text": "was quick, then TLS, then peer store,"
    },
    {
      "index": 112,
      "start_seconds": 307,
      "source_timestamp": "5:07",
      "end_seconds": null,
      "text": "and there was one more security issue"
    },
    {
      "index": 113,
      "start_seconds": 309,
      "source_timestamp": "5:09",
      "end_seconds": null,
      "text": "which was related to circuit relay."
    },
    {
      "index": 114,
      "start_seconds": 313,
      "source_timestamp": "5:13",
      "end_seconds": null,
      "text": "So we have got some more issues like the"
    },
    {
      "index": 115,
      "start_seconds": 317,
      "source_timestamp": "5:17",
      "end_seconds": null,
      "text": "four GitHub advisory we have got. We are"
    },
    {
      "index": 116,
      "start_seconds": 320,
      "source_timestamp": "5:20",
      "end_seconds": null,
      "text": "working on it and we will fix it soon."
    },
    {
      "index": 117,
      "start_seconds": 322,
      "source_timestamp": "5:22",
      "end_seconds": null,
      "text": "For anyone working on"
    },
    {
      "index": 118,
      "start_seconds": 324,
      "source_timestamp": "5:24",
      "end_seconds": null,
      "text": "decentralized systems or anyone creating"
    },
    {
      "index": 119,
      "start_seconds": 327,
      "source_timestamp": "5:27",
      "end_seconds": null,
      "text": "some more applications, I just want to"
    },
    {
      "index": 120,
      "start_seconds": 330,
      "source_timestamp": "5:30",
      "end_seconds": null,
      "text": "say that before negotiating on any of"
    },
    {
      "index": 121,
      "start_seconds": 332,
      "source_timestamp": "5:32",
      "end_seconds": null,
      "text": "the application level protocols, you"
    },
    {
      "index": 122,
      "start_seconds": 335,
      "source_timestamp": "5:35",
      "end_seconds": null,
      "text": "must verify whether the remote peers"
    },
    {
      "index": 123,
      "start_seconds": 338,
      "source_timestamp": "5:38",
      "end_seconds": null,
      "text": "identity is correct or not."
    },
    {
      "index": 124,
      "start_seconds": 340,
      "source_timestamp": "5:40",
      "end_seconds": null,
      "text": "Okay. Thank you."
    }
  ]
}
