<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Programming on {IT}</title><link>https://igortkanov.com/computers/programming/</link><description>Recent content in Programming on {IT}</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2026 {IT}. All rights reserved. Unless otherwise stated, all text, images, diagrams, and other original content on this blog may not be reproduced, distributed, or used without prior written permission.</copyright><lastBuildDate>Tue, 22 Jul 2025 19:46:56 +0000</lastBuildDate><atom:link href="https://igortkanov.com/computers/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>How to prevent token misuse in LLM integrations</title><link>https://igortkanov.com/how-to-prevent-token-misuse-in-llm-integrations/</link><pubDate>Tue, 22 Jul 2025 19:46:56 +0000</pubDate><guid>https://igortkanov.com/how-to-prevent-token-misuse-in-llm-integrations/</guid><description>&lt;p&gt;&lt;figure class="alignright" style="max-width:140px"&gt;&lt;img src="https://igortkanov.com/how-to-prevent-token-misuse-in-llm-integrations/dsc06113.jpg" alt="Old microscope part" width="140" loading="lazy"&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;LLMs are powerful. And expensive. Every token counts, and if you&amp;rsquo;re building something that uses an LLM API (Claude, OpenAI, Gemini or PaLM, Mistral, etc.), malicious users can abuse it to burn through your credits. This is especially true for apps that take user input and feed it to the model.&lt;/p&gt;
&lt;p&gt;The trick is that an attacker doesn&amp;rsquo;t have to hack your servers. Not even &lt;em&gt;SQL-inject&lt;/em&gt; it. They just have to &lt;strong&gt;convince the LLM&lt;/strong&gt; to do something it shouldn&amp;rsquo;t by crafting a proper prompt. So, actually, it does look a bit like an SQL injection, but for AI prompts.&lt;/p&gt;</description></item></channel></rss>