AI agent security: reducing risks when granting system access

Artificial intelligence

In June 2026, security specialists discovered a new vulnerability involving AI agents with access to corporate systems. It did not use a conventional hack, virus or stolen password. A single forged error record sent to the Sentry monitoring service was enough for an AI agent to interpret it as an instruction and execute a command with the user's permissions.

Why is this a real business threat?

AI agents used to accelerate development and automate routine tasks often receive broad access to systems, databases and infrastructure. If malicious instructions arrive through external data, such as error reports, an agent may execute them because it cannot distinguish a forged prompt from a legitimate command. This creates a substantial risk of data exposure or damage.

An attack through a monitoring service

  • Finding a public DSN key in website source code.
  • Sending a forged error report containing an external command.
  • Sentry receives the report and passes it to the AI agent.
  • The agent executes the command and accesses confidential systems and data.

Main causes of vulnerability

The problem is not one particular AI model. It is excessive agent permissions and a failure to separate trusted instructions from external data. Current language models cannot reliably distinguish commands from reference material or potentially malicious records.

Reducing risks when using AI agents

Safe AI use depends on access settings, not just intelligent algorithms. Business owners and marketers should follow these recommendations:

  • Limit network connections. Restrict agents' internet access to essential addresses to prevent external malicious code downloads and stolen data transfers.
  • Create separate accounts for agents with minimum required permissions, rather than employee accounts.
  • Apply least privilege. Issue short-lived tokens with access only to essential functions and data.
  • Maintain human oversight for critical actions: code generation and preparation can run unattended, but executing commands and accessing sensitive operations require manual approval.
  • Isolate the agent in a sandbox, without direct access to keys or configuration files, using proxies and secure intermediaries.
  • Monitor data sources carefully: apply extra monitoring and validation to external services, email and ticketing integrations.

What businesses and marketers need to know

The management lesson is straightforward: giving an AI agent system access is like hiring someone with broad powers who trusts any incoming text. Permissions and security procedures need careful design, or data exposure and damage risks increase. Removing unnecessary privileges and maintaining human oversight are essential protections.

Introduce AI agents thoughtfully to gain efficiency in marketing and IT without unnecessary exposure to security incidents.

Book an express marketing audit

Our express audit uses a growth hacking approach to identify 5 key growth opportunities and show where you may be losing enquiries, conversions or profit.

We review your strategy, advertising, website, analytics and funnel, focusing on practical outcomes rather than a report for its own sake.

Learn more about the audit

Message us

Telegram