Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

Agentic IDE shell built-ins: why allowlists are failing


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 4368
Topic starter  

TL;DR: A Cursor vulnerability, CVE-2026-22708, lets trusted shell built-ins like export, typeset, and declare poison environment variables, bypass an empty allowlist, and turn benign commands into sandbox escape and remote code execution paths, according to Pillar Security researchers.

NHIMG editorial — based on content published by Pillar Security: The Agent Security Paradox, focusing on trusted commands in Cursor becoming attack vectors

By the numbers:

Questions worth separating out

Q: What breaks when agentic IDEs rely on command allowlists for safety?

A: Command allowlists break when the dangerous behaviour sits in the environment, not in the visible command.

Q: Why do shell built-ins create a governance problem for AI agents?

A: Shell built-ins create a governance problem because they mutate process state without looking like ordinary external commands.

Q: How can security teams reduce environment poisoning risk in agent workflows?

A: Security teams should isolate agent execution state, monitor inherited variables, and treat runtime context as part of the approval decision.

Practitioner guidance

  • Audit shell built-ins as privileged operations Inventory where agentic IDEs, shells, or automation layers allow export, typeset, declare, readonly, and unset to run without separate review.
  • Separate command approval from environment approval Require explicit controls for inherited variables such as PATH, PAGER, PYTHONWARNINGS, BROWSER, and PERL5OPT before any trusted tool runs.
  • Isolate agent execution state between steps Reset or sandbox process state between agent actions so one approved operation cannot prepare the next one.

What's in the full article

Pillar Security's full research covers the operational detail this post intentionally leaves for the source:

  • Proof-of-concept command chains for zero-click and one-click exploitation across shell built-ins
  • The exact environment variables and interpreter behaviours used in the attack paths
  • Responsible disclosure timeline and the vendor's fix boundary
  • Mitigation guidance on when allowlists still leave exposure open

👉 Read Pillar Security's research on trusted shell commands becoming agent attack vectors →

Agentic IDE shell built-ins: why allowlists are failing?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
Share: