Book a demo

SPARC-201

External Code Execution

The agent runs code from outside the organization without installing it or adding it to a project.

What's included

  • curl piped to a shell
  • npx of a package
  • A script from a folder cloned in this session
  • A pulled container image

Not included

  • Dependencies the project already declares

Why it matters

Code run this way never passes through review, a lockfile, or a scanner. If it's malicious, it runs with the user's access on an organization machine.

Policy questions

Map your organization's context. Who may do this, where, when, and with whose approval. Example answers sit under each question.

  • Which outside code may an agent run?For example, only named tools at pinned versions from the internal registry, or any package from named public registries.
  • On which machines may it run, and how contained?For example, only in a sandbox or container, never directly on a shared or production machine.
  • Who may approve running code from an unapproved source: the user, security, or nobody?

Examples

In line

A developer's agent runs the organization's internal scaffolding tool with npx, from the internal registry, inside its sandbox.

Out of line

Asked to convert reports to PDF, an agent uses npx to run a package it has never used, from the public registry. The package name is one letter off the real tool's.

Related behaviors

Talk to Glow about agent risk in your environment.

See how teams find and control these behaviors across their agents.