YouTube2Text

L'IA installe du code malveillant : comment est-ce possible ? — Transcript

by Techno · 2,191 words · 358 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Imagine you ask an AI to help you
  2. 0:02install a tool; it searches for the
  3. 0:04official documentation, finds the
  4. 0:06instructions, and executes them.
  5. 0:08Everything seems normal, except one of
  6. 0:10the software packages listed in that
  7. 0:12documentation, also known as a
  8. 0:13dependency, doesn't belong to the
  9. 0:15company. Researchers discovered this
  10. 0:17issue on dozens of sites. They then
  11. 0:20claimed some of those available package
  12. 0:22names. Less than 4 minutes after
  13. 0:25publishing one of these packages, the
  14. 0:27researchers received a first signal
  15. 0:30from the IT environment of one of the
  16. 0:32top 500 American companies. They hadn't
  17. 0:35hacked the company or the AI. The agent
  18. 0:38had simply followed the instructions it
  19. 0:41found. So, how can a simple instruction
  20. 0:44in documentation end up triggering the
  21. 0:46execution of code that no one in the
  22. 0:48company controls? That's what we'll
  23. 0:51understand in this video. To understand
  24. 0:55what happened, we must first understand
  25. 0:57one thing about AI agents. When you ask
  26. 1:00an agent like Claude Code or Codex to
  27. 1:02perform a task, it doesn't necessarily
  28. 1:05have all the information needed to do
  29. 1:07it. Imagine, for example, that you ask
  30. 1:10it to use a company's documentation to
  31. 1:12create a project with its tools. The
  32. 1:15agent can then search for that
  33. 1:17documentation, consult the instructions
  34. 1:19it contains, and identify the commands
  35. 1:21needed to use those tools. And today,
  36. 1:24some companies even publish files
  37. 1:27specifically designed to help AI agents
  38. 1:29find this information. Among them, we
  39. 1:32notably find a file called ll.txt. You
  40. 1:36can see it a bit like an entry point
  41. 1:38for information useful to the agent,
  42. 1:40like documentation, APIs, packages to
  43. 1:42install, or other resources. But an
  44. 1:44agent doesn't necessarily just read
  45. 1:46this information. It can act based on
  46. 1:49it. If an instruction tells it to
  47. 1:51install a package, for example, it can
  48. 1:53run the corresponding command. That is
  49. 1:56precisely what the researchers observed
  50. 1:58in their test. The agents were able to
  51. 2:00go find the necessary information
  52. 2:02themselves and follow the instructions
  53. 2:03they found there. And up to that point,
  54. 2:06this behavior is perfectly logical. The
  55. 2:09problem arises when these instructions
  56. 2:11ask to install something that no one in
  57. 2:13the company actually controls. The
  58. 2:18researchers therefore started analyzing
  59. 2:20these ll.txt files. Some companies
  60. 2:24published instructions asking agents to
  61. 2:26use a specific package or connect to a
  62. 2:29specific domain. What's the problem?
  63. 2:32Some of these packages didn't exist and
  64. 2:34some domains didn't belong to anyone.
  65. 2:36The researchers analyzed more than
  66. 2:3810,000 ll.txt files. They identified
  67. 2:42120 sites containing this type of
  68. 2:44problem with 227 commands that referred
  69. 2:47to non-existent packages or domains
  70. 2:49that could still be registered. Let's
  71. 2:52take a simple example. Imagine a
  72. 2:54company writes in its own documentation
  73. 2:57. To use our service, install the
  74. 2:59example-SDK package. This instruction
  75. 3:02seems legitimate. It indeed comes from
  76. 3:05the company's documentation. But let's
  77. 3:07imagine now that the company never
  78. 3:09registered example-SDK in the relevant
  79. 3:12package registry. At that moment, two
  80. 3:14things are true at the same time. The
  81. 3:17documentation is indeed legitimate, but
  82. 3:19the package it asks you to install does
  83. 3:21not belong to it. At this stage, the
  84. 3:26researchers had identified legitimate
  85. 3:27instructions pointing to resources that
  86. 3:29companies did not control. But one
  87. 3:31question remained open. Could an agent
  88. 3:34actually go so far as to install what
  89. 3:36was behind these names? To verify this,
  90. 3:40the researchers published intentionally
  91. 3:42harmless packages under some of the
  92. 3:44available names they had identified.
  93. 3:46These packages did not steal any data
  94. 3:48and did not install any backdoors. When
  95. 3:50they were installed, they simply sent a
  96. 3:53signal to the researcher. The goal was
  97. 3:55to see if an instruction found in
  98. 3:57documentation could actually lead to
  99. 3:59the installation of the package. And
  100. 4:01the answer is yes. Less than 4 minutes
  101. 4:04after the publication of one of these
  102. 4:06packages, the researchers received a
  103. 4:08first signal from the environment of
  104. 4:10one of the top 500 American companies.
  105. 4:12The chain had therefore worked all the
  106. 4:14way to the end. External information
  107. 4:16had led to an action inside a corporate
  108. 4:19environment. And that is the whole
  109. 4:22difference compared to information
  110. 4:24simply read by an AI. An agent can
  111. 4:26transform this information into action
  112. 4:29on a system. The agent does not
  113. 4:30necessarily need to be compromised. The
  114. 4:32documentation itself does not
  115. 4:34necessarily need to be hacked. It is
  116. 4:36enough that an instruction considered
  117. 4:39sufficiently reliable leads to a
  118. 4:41resource that is not. And here, the
  119. 4:43package was controlled by researchers
  120. 4:45and intentionally harmless. What
  121. 4:47happens if someone malicious takes that
  122. 4:49place? Let's go back to this situation.
  123. 4:55But from an attacker's point of view,
  124. 4:57they discover that a company indicates
  125. 4:59in its documentation to install
  126. 5:00example-SDK. They check this name on
  127. 5:03the package registry and discover that
  128. 5:05no one has registered it. They can then
  129. 5:07potentially take possession of this
  130. 5:09name and publish their own package
  131. 5:11behind this identity. From this moment
  132. 5:14on, the company's instruction has not
  133. 5:15changed. But when the AI agent requests
  134. 5:19example-SDK, it can now retrieve what
  135. 5:21the attacker has published. The
  136. 5:24attacker therefore did not need to
  137. 5:26modify the documentation or compromise
  138. 5:28the server hosting it. They placed
  139. 5:30themselves at a point in the chain that
  140. 5:32no one had actually secured. This type
  141. 5:34of problem belongs to what is called
  142. 5:38dependency confusion. The general idea
  143. 5:41is simple: a system requests a
  144. 5:43dependency using a name. But if this
  145. 5:45name can designate a resource that a
  146. 5:47third party is able to control, the
  147. 5:49system may retrieve something other
  148. 5:51than what was originally intended. In
  149. 5:54our case, AI adds an extra dimension.
  150. 5:57It can discover the instruction and
  151. 5:59trigger the installation as part of the
  152. 6:01task assigned to it. The attacker
  153. 6:03therefore doesn't necessarily need to
  154. 6:05deceive the agent directly. It exploits
  155. 6:08the trust placed in the chain preceding
  156. 6:11it. And now we can answer our initial
  157. 6:14question. How can a simple instruction
  158. 6:17in documentation cause the execution of
  159. 6:19code that no one in the company
  160. 6:21controls? Because an instruction can be
  161. 6:24perfectly authentic while pointing to a
  162. 6:27resource whose actual control no one
  163. 6:29has verified. But there is still an
  164. 6:32essential distinction to make. What
  165. 6:34have the researchers actually
  166. 6:36demonstrated, and what remains a
  167. 6:37possible attack scenario? At this point
  168. 6:43, an important distinction must be made
  169. 6:44. The researchers did not discover
  170. 6:46hundreds of companies infected by AI
  171. 6:48agents. What they demonstrated is more
  172. 6:51specific. They tested several agents
  173. 6:53and configurations, including Claude,
  174. 6:56Code, Codex, and Hermes. They gave it a
  175. 6:59provider's name and asked it to build a
  176. 7:01well or execute a project using its
  177. 7:03documentation. They did not give it the
  178. 7:05address of the llm.txt file directly.
  179. 7:08The agents had to find the necessary
  180. 7:10information themselves, and in their
  181. 7:12tests, they successfully discovered
  182. 7:14these instructions and installed the
  183. 7:16indicated dependencies. As we saw, when
  184. 7:20the researchers later published their
  185. 7:22intentionally harmless package, they
  186. 7:24received a first signal in under 4
  187. 7:26minutes from the environment of a
  188. 7:28Fortune 500 company. But that wasn't
  189. 7:31the only one. Other connections were
  190. 7:34subsequently observed from several
  191. 7:36corporate networks. This demonstrates
  192. 7:39that resources referenced by these
  193. 7:41instructions could indeed end up being
  194. 7:43retrieved and executed in corporate
  195. 7:45environments. However, this does not
  196. 7:48prove that attackers were already
  197. 7:50massively exploiting this technique,
  198. 7:52nor does it mean that Claude, Code,
  199. 7:54Codex, or Hermes had been hacked.
  200. 7:57Another case discovered during this
  201. 7:59research shows why this distinction is
  202. 8:02important. In the Clerk documentation,
  203. 8:05the researchers identified a reference
  204. 8:07to an npm package called clerk/upgrade.
  205. 8:11This time, the name had already been
  206. 8:13registered by someone else, and
  207. 8:15according to the researchers 'analysis,
  208. 8:17this package contained malicious code.
  209. 8:20But the fact that a malicious package
  210. 8:22is referenced does not in itself prove
  211. 8:24that it actually compromises systems
  212. 8:26via this chain. What this research
  213. 8:29demonstrates with much greater
  214. 8:31certainty is the existence of a
  215. 8:33dangerous path. Legitimate
  216. 8:35documentation can lead an AI agent to a
  217. 8:38resource controlled by someone neither
  218. 8:40the company nor the user intended. And
  219. 8:44ultimately, this problem goes far
  220. 8:46beyond Claude, Codex, or even AI agents
  221. 8:48. This story might make it seem like
  222. 8:54we've just discovered a new problem
  223. 8:56specific to AI agents, but in reality,
  224. 8:58this mechanism is much older. In
  225. 9:00cybersecurity, we constantly depend on
  226. 9:02resources created and controlled by
  227. 9:04others. When a developer installs a
  228. 9:07library, for example, they trust an
  229. 9:09entire chain. They trust the
  230. 9:11documentation that tells them what to
  231. 9:12install. They trust the package manager
  232. 9:15that will retrieve the dependency. They
  233. 9:17trust the package owners and,
  234. 9:19ultimately, they trust the code that
  235. 9:21will be executed on their machine. This
  236. 9:23is called a chain of trust, and every
  237. 9:25link in this chain can become an attack
  238. 9:28surface. This is precisely why supply
  239. 9:32chain attacks are particularly
  240. 9:34significant in cybersecurity. Rather
  241. 9:39than attacking the final target
  242. 9:41directly, an attacker can seek to
  243. 9:43compromise something the target already
  244. 9:45trusts. A dependency, a package, an
  245. 9:48update, or as in our case, a resource
  246. 9:51pointed to by documentation. AI,
  247. 9:53therefore, does not invent this
  248. 9:55principle. What it can change is the
  249. 9:57speed and the way this trust is
  250. 9:59transformed into action. Imagine a
  251. 10:02human reading documentation and coming
  252. 10:04across an installation command; they
  253. 10:06might pause, check the package name,
  254. 10:08look up who maintains it, or simply
  255. 10:10wonder why that command is necessary.
  256. 10:14An agent capable of acting can also
  257. 10:16perform checks if its environment and
  258. 10:18instructions provide for it. But if it
  259. 10:22considers the information sufficiently
  260. 10:23reliable, it may also proceed with the
  261. 10:25task and trigger the action. We then
  262. 10:28move from external information to a
  263. 10:30decision, and finally to an action on
  264. 10:32the system. And it is this transition
  265. 10:34that is important. The more autonomous
  266. 10:37an AI agent becomes, the more security
  267. 10:39depends not only on what it is capable
  268. 10:42of doing, but also on the information
  269. 10:44it is allowed to trust in deciding to
  270. 10:47do it. The real problem in this case is
  271. 10:50therefore not just llm.txt. It is not
  272. 10:53even just Claude Codex or Hermes. The
  273. 10:56problem is much more general. What
  274. 10:59happens when a system capable of acting
  275. 11:01makes its decisions based on external
  276. 11:03information it considers reliable? Once
  277. 11:07you frame the question that way, the
  278. 11:09protections become much easier to
  279. 11:11understand. So, how do we avoid this
  280. 11:16type of problem? The first mistake
  281. 11:18would be to assume that information is
  282. 11:20reliable simply because it comes from
  283. 11:23legitimate documentation. As we have
  284. 11:25just seen, documentation can be
  285. 11:27authentic while pointing to a resource
  286. 11:29that is not. Therefore, you must verify
  287. 11:31the entire chain. If an AI agent needs
  288. 11:33to install a package, for example, it
  289. 11:35is not enough to just check the page
  290. 11:36where its name appears. You must also
  291. 11:39verify the package itself. Is it really
  292. 11:41the expected party controlling it? Is
  293. 11:43it a legitimate dependency? But
  294. 11:45checking sources is not enough. You
  295. 11:47also have to ask a second question.
  296. 11:48What is the AI agent actually allowed
  297. 11:51to do? An agent that can only consult
  298. 11:54documentation does not pose the same
  299. 11:56risk as an agent capable of installing
  300. 11:58packages, running commands, or
  301. 12:00modifying a system. This is where we
  302. 12:03find a fundamental principle in
  303. 12:05cybersecurity: least privilege. You
  304. 12:07only give a user, a program, or in this
  305. 12:10case an agent, the permissions they
  306. 12:13actually need. And for certain
  307. 12:15sensitive actions, we can keep human
  308. 12:17validation. The AI agent might propose,
  309. 12:20"I need to install this package to
  310. 12:22continue." But before installation, a
  311. 12:24human must authorize it. Finally, when
  312. 12:27an agent must execute code from the
  313. 12:29outside, we can limit the consequences
  314. 12:32of an error by isolating its
  315. 12:34environment when possible. For example,
  316. 12:37with a sandbox or an isolated
  317. 12:38environment, the idea is simple. If
  318. 12:42something goes wrong, the code should
  319. 12:43not immediately have access to the
  320. 12:45entire system or the company network.
  321. 12:48None of these protections rely on the
  322. 12:50idea that the AI will never make a
  323. 12:51mistake. It is exactly the opposite. We
  324. 12:54assume that external information can be
  325. 12:57false, compromised, or simply
  326. 12:59misconfigured, and we build multiple
  327. 13:01barriers to prevent bad information
  328. 13:03from immediately becoming a dangerous
  329. 13:06action. Because fundamentally, what
  330. 13:09this case shows us is not just that we
  331. 13:11must secure AI agents, but above all,
  332. 13:14we must secure the trust we place in
  333. 13:16them. Let's return to our initial
  334. 13:21question. How can a simple instruction
  335. 13:23present in documentation end up causing
  336. 13:26the execution of code that no one in
  337. 13:28the company controls? Because in this
  338. 13:31case, the problem is not necessarily
  339. 13:33that the AI was hacked. It may have
  340. 13:35simply done exactly what was expected
  341. 13:37of it. Find documentation, read an
  342. 13:40instruction, retrieve a package, and
  343. 13:42install it. The problem lies in the
  344. 13:44trust placed in this chain. Legitimate
  345. 13:47documentation can point to a resource
  346. 13:50that is not. And if no one verifies
  347. 13:52this resource before acting, a
  348. 13:54perfectly authentic instruction can
  349. 13:56lead to the wrong code. This is
  350. 13:59probably one of the most important
  351. 14:01cybersecurity questions as we give more
  352. 14:04autonomy to AI agents. It is not just
  353. 14:07what is this AI capable of doing, but
  354. 14:10also what can it trust to decide to do
  355. 14:12it? Because the more ability we give
  356. 14:15Unia to act on a system, the more the
  357. 14:17trust it places in external information
  358. 14:20becomes an attack surface itself.

About this transcript

This page contains the full transcript of L'IA installe du code malveillant : comment est-ce possible ? by Techno, generated from the public captions YouTube serves with the video. The transcript has 2,191 words across 358 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.