Habr•August 6, 2026•🇷🇺Translated from Russian

Prompt Injection Emerges as Top Risk for LLM Applications in Production

Prompt injection attacks are shifting from lab demonstrations to production incidents that compromise AI assistants handling corporate data and code. The vulnerability arises because large language models receive all instructions in plain human language without reliable separation between developer rules and external content.

Why Models Confuse Commands and Data

Applications typically combine a hidden system prompt with user messages and retrieved documents before sending everything to the model. The model cannot distinguish trusted instructions from untrusted text such as emails, PDFs, or web pages. Classic examples show users appending phrases like “ignore previous instructions” to force unintended outputs. Indirect attacks hide instructions inside shared documents or repository comments, activating when the model summarizes or processes the file.

Real-World Incidents in 2025-2026

Microsoft 365 Copilot was shown leaking corporate data through a single email without user clicks. GitHub Copilot allowed a chain from a malicious comment in an external repository to code execution on a developer machine. Cursor faced issues with MCP configuration files where a poisoned document could insert backdoors. Earlier cases include a Chevrolet chatbot agreeing to sell a vehicle for one dollar and Air Canada losing a court case over chatbot responses. Slack AI demonstrated extraction of data from private channels via indirect injection.

Attack Vectors Without User Interaction

Attackers place hidden instructions in resumes, contracts, HTML comments, or image metadata. When a user requests a summary, the model executes the embedded command. Data can leak through URLs or images rendered in responses, sending secrets to attacker-controlled domains without any click. Substitutions in shared knowledge bases or tool-calling functions allow modification of external actions such as API calls or file changes.

Practical Defenses Recommended by Vendors

  • Enforce permissions in code rather than prompts and grant models only minimum required access.
  • Filter both inputs from external sources and outputs containing suspicious links or images.
  • Require human confirmation for irreversible actions such as payments, deletions, or external publications.
  • Explicitly mark external content in prompts to reduce confusion between developer instructions and retrieved data.
  • Test against malicious PDFs, emails, and repository comments, not only direct chat attempts.
  • Limit automatic image loading and restrict the model’s ability to publish or modify data without oversight.

Meta advises against combining untrusted external reading, access to sensitive data, and external modification in a single session. NIST research confirms that any finite set of static rules remains bypassable by adaptive attackers. OpenAI, Anthropic, and Google report that most published defenses were defeated in real adaptive scenarios with success rates exceeding 90 percent.

Organizations are advised to treat AI agents like web applications accepting untrusted input and to maintain continuous testing and layered controls rather than relying on a single patch.

Related articles

Habr•AI Security

AWS Key Left in .env File Stolen in 31 Hours and Abused for Amazon Bedrock LLM Access

A researcher deployed a honeypot domain you-are-bot.ru with an AWS access key placed inside multiple .env files to study real-world scanner behavior. The first external visitor arrived within 13 minutes, and a Google Cloud scanner extracted the key after 31 hours. Within 72 minutes the key was actively tested, leading to 54 API calls from six countries over three days. Attackers primarily queried Amazon Bedrock for available foundation models, checked SES email quotas, attempted to launch EC2 instances, and used SSM SendCommand to execute remote commands. The key was a canarytokens.org token that generated detailed alerts for every invocation, revealing use of aws-cli and Boto3 from residential and hosting networks. The same scanners also searched for AI-agent configuration files such as .claude/settings.json and .cursor/mcp.json on production sites. The experiment demonstrates how quickly exposed cloud credentials are discovered and repurposed for LLMjacking.

Habr•AI Security

Anthropic Rolls Out KYC Verification for Claude Users in Unsupported Regions

Anthropic has implemented mandatory identity verification through Persona for Claude users, requiring government ID and live selfies. The policy targets physical location in unsupported regions and work for companies based there, with Russia explicitly excluded from the Supported Regions Policy updated in November. Successful verification does not guarantee continued access, as bans can still occur afterward for policy violations. Users report repeated verification requests weeks later, unpredictable refunds, and limited chat history exports after bans. A gray market has emerged offering proxy verifications using migrant documents for fees between $30 and $50, though these accounts are frequently banned shortly after. Many affected users are migrating to alternatives including ChatGPT, Gemini, and Chinese models like DeepSeek and Kimi. Anthropic has not commented on the wave of Russian account restrictions or provided official statistics on ban rates.

Habr•AI Security

OpenShell Isolates Untrusted AI Agents Running Real Credentials in Kubernetes Using Agent Sandbox and Kyverno

OpenShell, a CNCF Sandbox project originally started by NVIDIA, provides a secure runtime for AI agents that execute shells, install packages, read files, and open network connections based on untrusted internet-sourced text. Each agent runs inside a sandbox where a trusted supervisor enforces fine-grained controls on filesystem via Landlock, processes via seccomp and non-root users, network traffic at the binary and HTTP level, and credentials by substituting real keys only for approved endpoints. The Kubernetes backend relies on Agent Sandbox resources to create pods, Services, PVCs, Secrets, and NetworkPolicies, while Kyverno admission policies add enforcement for images, RBAC, and resource limits that OpenShell itself does not cover. In contrast, Agent Substrate from Google focuses on cost-efficient scaling by pausing idle agents and using gVisor or Cloud Hypervisor sandboxes with snapshotting instead of per-agent supervisor pods. Administrators can update network and HTTP policies on a live sandbox without restart, and every outbound request is inspected for destination, port, calling binary, and method. The approach gives platform teams Kubernetes-native objects for auditing while addressing the fundamental risk of giving production credentials to agents that process arbitrary external input.

AntiMalware•AI Security

Yandex Releases AI Pentester for Continuous Vulnerability Scanning in Web Apps and AI Systems

Yandex Security has introduced Yandex AI Pentester, an automated penetration testing platform powered by AI agents. The tool performs ongoing security assessments of corporate web applications, APIs, and AI-based functions, with a focus on both traditional vulnerabilities and prompt injection attacks. Currently available only in on-premises deployments, the SaaS version is scheduled for release in the first quarter of 2027. The announcement highlights that exploitation of known vulnerabilities has become the leading initial access vector for corporate networks, surpassing the use of stolen credentials. Yandex also reported the first observed attacks using fully autonomous AI systems in autumn 2026, while noting that organizations take an average of 43 days to remediate vulnerabilities. The solution builds on SolidPoint technology and 15 years of experience from SolidLab, which has conducted over 500 penetration tests for major Russian companies.