L'IA installe du code malveillant : comment est-ce possible ? — Transcript
Full transcript
- 0:00Imagine you ask an AI to help you
- 0:02install a tool; it searches for the
- 0:04official documentation, finds the
- 0:06instructions, and executes them.
- 0:08Everything seems normal, except one of
- 0:10the software packages listed in that
- 0:12documentation, also known as a
- 0:13dependency, doesn't belong to the
- 0:15company. Researchers discovered this
- 0:17issue on dozens of sites. They then
- 0:20claimed some of those available package
- 0:22names. Less than 4 minutes after
- 0:25publishing one of these packages, the
- 0:27researchers received a first signal
- 0:30from the IT environment of one of the
- 0:32top 500 American companies. They hadn't
- 0:35hacked the company or the AI. The agent
- 0:38had simply followed the instructions it
- 0:41found. So, how can a simple instruction
- 0:44in documentation end up triggering the
- 0:46execution of code that no one in the
- 0:48company controls? That's what we'll
- 0:51understand in this video. To understand
- 0:55what happened, we must first understand
- 0:57one thing about AI agents. When you ask
- 1:00an agent like Claude Code or Codex to
- 1:02perform a task, it doesn't necessarily
- 1:05have all the information needed to do
- 1:07it. Imagine, for example, that you ask
- 1:10it to use a company's documentation to
- 1:12create a project with its tools. The
- 1:15agent can then search for that
- 1:17documentation, consult the instructions
- 1:19it contains, and identify the commands
- 1:21needed to use those tools. And today,
- 1:24some companies even publish files
- 1:27specifically designed to help AI agents
- 1:29find this information. Among them, we
- 1:32notably find a file called ll.txt. You
- 1:36can see it a bit like an entry point
- 1:38for information useful to the agent,
- 1:40like documentation, APIs, packages to
- 1:42install, or other resources. But an
- 1:44agent doesn't necessarily just read
- 1:46this information. It can act based on
- 1:49it. If an instruction tells it to
- 1:51install a package, for example, it can
- 1:53run the corresponding command. That is
- 1:56precisely what the researchers observed
- 1:58in their test. The agents were able to
- 2:00go find the necessary information
- 2:02themselves and follow the instructions
- 2:03they found there. And up to that point,
- 2:06this behavior is perfectly logical. The
- 2:09problem arises when these instructions
- 2:11ask to install something that no one in
- 2:13the company actually controls. The
- 2:18researchers therefore started analyzing
- 2:20these ll.txt files. Some companies
- 2:24published instructions asking agents to
- 2:26use a specific package or connect to a
- 2:29specific domain. What's the problem?
- 2:32Some of these packages didn't exist and
- 2:34some domains didn't belong to anyone.
- 2:36The researchers analyzed more than
- 2:3810,000 ll.txt files. They identified
- 2:42120 sites containing this type of
- 2:44problem with 227 commands that referred
- 2:47to non-existent packages or domains
- 2:49that could still be registered. Let's
- 2:52take a simple example. Imagine a
- 2:54company writes in its own documentation
- 2:57. To use our service, install the
- 2:59example-SDK package. This instruction
- 3:02seems legitimate. It indeed comes from
- 3:05the company's documentation. But let's
- 3:07imagine now that the company never
- 3:09registered example-SDK in the relevant
- 3:12package registry. At that moment, two
- 3:14things are true at the same time. The
- 3:17documentation is indeed legitimate, but
- 3:19the package it asks you to install does
- 3:21not belong to it. At this stage, the
- 3:26researchers had identified legitimate
- 3:27instructions pointing to resources that
- 3:29companies did not control. But one
- 3:31question remained open. Could an agent
- 3:34actually go so far as to install what
- 3:36was behind these names? To verify this,
- 3:40the researchers published intentionally
- 3:42harmless packages under some of the
- 3:44available names they had identified.
- 3:46These packages did not steal any data
- 3:48and did not install any backdoors. When
- 3:50they were installed, they simply sent a
- 3:53signal to the researcher. The goal was
- 3:55to see if an instruction found in
- 3:57documentation could actually lead to
- 3:59the installation of the package. And
- 4:01the answer is yes. Less than 4 minutes
- 4:04after the publication of one of these
- 4:06packages, the researchers received a
- 4:08first signal from the environment of
- 4:10one of the top 500 American companies.
- 4:12The chain had therefore worked all the
- 4:14way to the end. External information
- 4:16had led to an action inside a corporate
- 4:19environment. And that is the whole
- 4:22difference compared to information
- 4:24simply read by an AI. An agent can
- 4:26transform this information into action
- 4:29on a system. The agent does not
- 4:30necessarily need to be compromised. The
- 4:32documentation itself does not
- 4:34necessarily need to be hacked. It is
- 4:36enough that an instruction considered
- 4:39sufficiently reliable leads to a
- 4:41resource that is not. And here, the
- 4:43package was controlled by researchers
- 4:45and intentionally harmless. What
- 4:47happens if someone malicious takes that
- 4:49place? Let's go back to this situation.
- 4:55But from an attacker's point of view,
- 4:57they discover that a company indicates
- 4:59in its documentation to install
- 5:00example-SDK. They check this name on
- 5:03the package registry and discover that
- 5:05no one has registered it. They can then
- 5:07potentially take possession of this
- 5:09name and publish their own package
- 5:11behind this identity. From this moment
- 5:14on, the company's instruction has not
- 5:15changed. But when the AI agent requests
- 5:19example-SDK, it can now retrieve what
- 5:21the attacker has published. The
- 5:24attacker therefore did not need to
- 5:26modify the documentation or compromise
- 5:28the server hosting it. They placed
- 5:30themselves at a point in the chain that
- 5:32no one had actually secured. This type
- 5:34of problem belongs to what is called
- 5:38dependency confusion. The general idea
- 5:41is simple: a system requests a
- 5:43dependency using a name. But if this
- 5:45name can designate a resource that a
- 5:47third party is able to control, the
- 5:49system may retrieve something other
- 5:51than what was originally intended. In
- 5:54our case, AI adds an extra dimension.
- 5:57It can discover the instruction and
- 5:59trigger the installation as part of the
- 6:01task assigned to it. The attacker
- 6:03therefore doesn't necessarily need to
- 6:05deceive the agent directly. It exploits
- 6:08the trust placed in the chain preceding
- 6:11it. And now we can answer our initial
- 6:14question. How can a simple instruction
- 6:17in documentation cause the execution of
- 6:19code that no one in the company
- 6:21controls? Because an instruction can be
- 6:24perfectly authentic while pointing to a
- 6:27resource whose actual control no one
- 6:29has verified. But there is still an
- 6:32essential distinction to make. What
- 6:34have the researchers actually
- 6:36demonstrated, and what remains a
- 6:37possible attack scenario? At this point
- 6:43, an important distinction must be made
- 6:44. The researchers did not discover
- 6:46hundreds of companies infected by AI
- 6:48agents. What they demonstrated is more
- 6:51specific. They tested several agents
- 6:53and configurations, including Claude,
- 6:56Code, Codex, and Hermes. They gave it a
- 6:59provider's name and asked it to build a
- 7:01well or execute a project using its
- 7:03documentation. They did not give it the
- 7:05address of the llm.txt file directly.
- 7:08The agents had to find the necessary
- 7:10information themselves, and in their
- 7:12tests, they successfully discovered
- 7:14these instructions and installed the
- 7:16indicated dependencies. As we saw, when
- 7:20the researchers later published their
- 7:22intentionally harmless package, they
- 7:24received a first signal in under 4
- 7:26minutes from the environment of a
- 7:28Fortune 500 company. But that wasn't
- 7:31the only one. Other connections were
- 7:34subsequently observed from several
- 7:36corporate networks. This demonstrates
- 7:39that resources referenced by these
- 7:41instructions could indeed end up being
- 7:43retrieved and executed in corporate
- 7:45environments. However, this does not
- 7:48prove that attackers were already
- 7:50massively exploiting this technique,
- 7:52nor does it mean that Claude, Code,
- 7:54Codex, or Hermes had been hacked.
- 7:57Another case discovered during this
- 7:59research shows why this distinction is
- 8:02important. In the Clerk documentation,
- 8:05the researchers identified a reference
- 8:07to an npm package called clerk/upgrade.
- 8:11This time, the name had already been
- 8:13registered by someone else, and
- 8:15according to the researchers 'analysis,
- 8:17this package contained malicious code.
- 8:20But the fact that a malicious package
- 8:22is referenced does not in itself prove
- 8:24that it actually compromises systems
- 8:26via this chain. What this research
- 8:29demonstrates with much greater
- 8:31certainty is the existence of a
- 8:33dangerous path. Legitimate
- 8:35documentation can lead an AI agent to a
- 8:38resource controlled by someone neither
- 8:40the company nor the user intended. And
- 8:44ultimately, this problem goes far
- 8:46beyond Claude, Codex, or even AI agents
- 8:48. This story might make it seem like
- 8:54we've just discovered a new problem
- 8:56specific to AI agents, but in reality,
- 8:58this mechanism is much older. In
- 9:00cybersecurity, we constantly depend on
- 9:02resources created and controlled by
- 9:04others. When a developer installs a
- 9:07library, for example, they trust an
- 9:09entire chain. They trust the
- 9:11documentation that tells them what to
- 9:12install. They trust the package manager
- 9:15that will retrieve the dependency. They
- 9:17trust the package owners and,
- 9:19ultimately, they trust the code that
- 9:21will be executed on their machine. This
- 9:23is called a chain of trust, and every
- 9:25link in this chain can become an attack
- 9:28surface. This is precisely why supply
- 9:32chain attacks are particularly
- 9:34significant in cybersecurity. Rather
- 9:39than attacking the final target
- 9:41directly, an attacker can seek to
- 9:43compromise something the target already
- 9:45trusts. A dependency, a package, an
- 9:48update, or as in our case, a resource
- 9:51pointed to by documentation. AI,
- 9:53therefore, does not invent this
- 9:55principle. What it can change is the
- 9:57speed and the way this trust is
- 9:59transformed into action. Imagine a
- 10:02human reading documentation and coming
- 10:04across an installation command; they
- 10:06might pause, check the package name,
- 10:08look up who maintains it, or simply
- 10:10wonder why that command is necessary.
- 10:14An agent capable of acting can also
- 10:16perform checks if its environment and
- 10:18instructions provide for it. But if it
- 10:22considers the information sufficiently
- 10:23reliable, it may also proceed with the
- 10:25task and trigger the action. We then
- 10:28move from external information to a
- 10:30decision, and finally to an action on
- 10:32the system. And it is this transition
- 10:34that is important. The more autonomous
- 10:37an AI agent becomes, the more security
- 10:39depends not only on what it is capable
- 10:42of doing, but also on the information
- 10:44it is allowed to trust in deciding to
- 10:47do it. The real problem in this case is
- 10:50therefore not just llm.txt. It is not
- 10:53even just Claude Codex or Hermes. The
- 10:56problem is much more general. What
- 10:59happens when a system capable of acting
- 11:01makes its decisions based on external
- 11:03information it considers reliable? Once
- 11:07you frame the question that way, the
- 11:09protections become much easier to
- 11:11understand. So, how do we avoid this
- 11:16type of problem? The first mistake
- 11:18would be to assume that information is
- 11:20reliable simply because it comes from
- 11:23legitimate documentation. As we have
- 11:25just seen, documentation can be
- 11:27authentic while pointing to a resource
- 11:29that is not. Therefore, you must verify
- 11:31the entire chain. If an AI agent needs
- 11:33to install a package, for example, it
- 11:35is not enough to just check the page
- 11:36where its name appears. You must also
- 11:39verify the package itself. Is it really
- 11:41the expected party controlling it? Is
- 11:43it a legitimate dependency? But
- 11:45checking sources is not enough. You
- 11:47also have to ask a second question.
- 11:48What is the AI agent actually allowed
- 11:51to do? An agent that can only consult
- 11:54documentation does not pose the same
- 11:56risk as an agent capable of installing
- 11:58packages, running commands, or
- 12:00modifying a system. This is where we
- 12:03find a fundamental principle in
- 12:05cybersecurity: least privilege. You
- 12:07only give a user, a program, or in this
- 12:10case an agent, the permissions they
- 12:13actually need. And for certain
- 12:15sensitive actions, we can keep human
- 12:17validation. The AI agent might propose,
- 12:20"I need to install this package to
- 12:22continue." But before installation, a
- 12:24human must authorize it. Finally, when
- 12:27an agent must execute code from the
- 12:29outside, we can limit the consequences
- 12:32of an error by isolating its
- 12:34environment when possible. For example,
- 12:37with a sandbox or an isolated
- 12:38environment, the idea is simple. If
- 12:42something goes wrong, the code should
- 12:43not immediately have access to the
- 12:45entire system or the company network.
- 12:48None of these protections rely on the
- 12:50idea that the AI will never make a
- 12:51mistake. It is exactly the opposite. We
- 12:54assume that external information can be
- 12:57false, compromised, or simply
- 12:59misconfigured, and we build multiple
- 13:01barriers to prevent bad information
- 13:03from immediately becoming a dangerous
- 13:06action. Because fundamentally, what
- 13:09this case shows us is not just that we
- 13:11must secure AI agents, but above all,
- 13:14we must secure the trust we place in
- 13:16them. Let's return to our initial
- 13:21question. How can a simple instruction
- 13:23present in documentation end up causing
- 13:26the execution of code that no one in
- 13:28the company controls? Because in this
- 13:31case, the problem is not necessarily
- 13:33that the AI was hacked. It may have
- 13:35simply done exactly what was expected
- 13:37of it. Find documentation, read an
- 13:40instruction, retrieve a package, and
- 13:42install it. The problem lies in the
- 13:44trust placed in this chain. Legitimate
- 13:47documentation can point to a resource
- 13:50that is not. And if no one verifies
- 13:52this resource before acting, a
- 13:54perfectly authentic instruction can
- 13:56lead to the wrong code. This is
- 13:59probably one of the most important
- 14:01cybersecurity questions as we give more
- 14:04autonomy to AI agents. It is not just
- 14:07what is this AI capable of doing, but
- 14:10also what can it trust to decide to do
- 14:12it? Because the more ability we give
- 14:15Unia to act on a system, the more the
- 14:17trust it places in external information
- 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.