Heuristic Mode
Better Stack Nov 27, 2026 skeptical default-text

The Dark Side of Cheap AI APIs #ai #security #programming

Summary

HD Moore ran an experiment pushing roughly two million prompts laced with canary credentials — API keys, SSH passwords, secret URLs — through budget AI inference services to see who leaks them. The finding: cheap third-party routers and resellers often see prompts in plaintext, so a compromised or dishonest intermediary can harvest whatever secrets pass through, and a zero-retention promise is a policy statement rather than a technical guarantee. Engineers should treat every third-party LLM endpoint as an untrusted hop for anything sensitive.

Key takeaways

  • Assume any prompt sent to a third-party inference endpoint may be logged, forwarded, or resold — treat the model call as an untrusted network boundary and strip secrets before they leave your process.
  • Zero data retention is contractual, not cryptographic; it does not stop a malicious reseller or a compromised upstream provider from capturing plaintext in transit or in memory.
  • Router and gateway layers (OpenRouter, Vercel AI Gateway, and similar) add an extra party to the trust chain — audit who actually terminates the request before sending regulated data.
  • Credential hygiene beats prompt hygiene: use short-lived, scoped tokens and never place long-lived AWS keys or SSH passwords in prompt context where a log sink can capture them.
  • If data sensitivity is high, self-host the model or contract directly with a first-party inference provider rather than going through discount resellers.

Key moments