Research Uncovers Security Breaches in AI Service Prompts
A recent study conducted by the cybersecurity firm Dragos has revealed alarming vulnerabilities within the artificial intelligence (AI) ecosystem. The research identified significant breaches where attackers intercepted and stole queries directed at AI services via third-party hosting providers and routing platforms. This troubling discovery raises concerns not only about data security but also about the integrity of the broader AI infrastructure, particularly as usage of AI technologies continues to grow.
Between July and November, researchers from Dragos undertook an ambitious investigation, sending nearly 2 million test prompts that contained unique tracking tokens to various AI services. These tokens included distinctive URLs and login credentials, facilitating the monitoring of when and where the prompts were accessed. The results were shocking: attackers successfully extracted data from at least three hosting providers, all of which remained unaware of the breaches until Dragos brought the security issues to their attention.
Many users access AI models through intermediary routing services. These platforms offer convenient one-stop access to different AI models, selecting the best option based on factors such as price or model capability. However, the Dragos research unveiled substantial security lapses in this ecosystem. One of the most concerning findings was that attackers managed to acquire around 200 AWS access keys from the compromised hosting providers. The urgency of these security lapses became evident when some of the stolen credentials were exploited within mere hours of being obtained, accentuating the immediate danger posed by these vulnerabilities.
The research went further to identify three primary methods employed by attackers to gain access to sensitive prompts. The first method involved directly compromising hosting providers, resulting in the theft of prompts even in cases where these services claimed to reject or employ zero data retention policies. The second technique leveraged the promise of low prices, with attackers advertising AI models at significantly reduced rates to routing services. This tactic led to scenarios where customer prompts were inadvertently directed to systems controlled by attackers, enabling them to log sensitive information effortlessly. The third method revealed a more disturbing trend: some AI service providers themselves engaged in collecting sensitive information from prompts. Notably, one Chinese AI lab was found to have accessed secret URLs from over half of the test prompts sent to its models, including a concerning two-thirds of those explicitly marked for no data collection.
The ramifications of these findings extend beyond direct breaches and into the realm of security architecture. While prompts may be encrypted during transmission, they must be decrypted at various intermediary points along the routing chain. Each of these points presents a potential opportunity for compromise. Users who intentionally chose US-based providers to retain data within domestic borders discovered, perhaps alarmingly, that their prompts were occasionally redirected to overseas services without their express consent or knowledge. In response to these concerns, the Chinese AI model provider MiniMax acknowledged in November that its security software had logged and opened URLs from prompts, although they claimed not to retain entire conversations and have subsequently disabled the flawed process.
In light of these vulnerabilities, the study calls on organizations and individuals utilizing AI routing services to adopt proactive measures to bolster their security posture. One effective strategy involves running AI models locally on personal hardware, thereby eliminating the risk of third-party access to sensitive prompts. However, this option requires substantial computing resources that may not be accessible to all users. Another recommendation is to collaborate directly with AI model providers to minimize the number of entities handling sensitive data. When opting to use routing services, users are encouraged to manually select which providers can receive their prompts and to review the privacy policies of these providers thoroughly.
Furthermore, enabling automatic credential filtering where possible, refraining from incorporating passwords or sensitive personal information in prompts, and considering the use of custom tracking tokens to identify unauthorized access are critical protective strategies. Following the research findings, AI routing service OpenRouter took decisive action, eliminating 125 endpoints from zero data retention eligibility to enhance security.
Overall, as AI technologies become more integral to a wide array of applications, the importance of addressing these vulnerabilities cannot be overstated. While the allure of convenience offered by routing services is significant, just as critical is the need for robust protective measures to safeguard sensitive information against malicious actors. The findings from Dragos serve as a crucial reminder of the ongoing challenges in securing the AI landscape and the necessity for vigilance in safeguarding data amid escalating cyber threats.
Source: Malwarebytes Blog

