<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: marbad1994</title>
    <description>The latest articles on DEV Community by marbad1994 (@marbad1994).</description>
    <link>https://dev.to/marbad1994</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F524088%2Fc4ba7ef4-6cf2-45df-bcf3-7941deefbecc.jpg</url>
      <title>DEV Community: marbad1994</title>
      <link>https://dev.to/marbad1994</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marbad1994"/>
    <language>en</language>
    <item>
      <title>I Accidentally Hacked Claude's API</title>
      <dc:creator>marbad1994</dc:creator>
      <pubDate>Sat, 30 May 2026 22:59:56 +0000</pubDate>
      <link>https://dev.to/marbad1994/i-accidentally-hacked-claudes-api-42c</link>
      <guid>https://dev.to/marbad1994/i-accidentally-hacked-claudes-api-42c</guid>
      <description>&lt;p&gt;I was using &lt;a href="https://cline.bot" rel="noopener noreferrer"&gt;Cline&lt;/a&gt;. Great tool, genuinely — but it eats tokens like nothing else and I needed something leaner. So I started building my own. While doing that I noticed Cline accepts the Codex authentication from ChatGPT. So if it's actually possible to authenticate the &lt;a href="https://openai.com" rel="noopener noreferrer"&gt;Codex&lt;/a&gt; API through &lt;a href="https://chatgpt.com" rel="noopener noreferrer"&gt;ChatGPT&lt;/a&gt; login… then I must do it. I honestly can't help myself, it felt like a mockery from Cline.&lt;/p&gt;

&lt;p&gt;Codex was not a challenge. Websockets wide open. It's like leaving your front door unlocked in Rio de Janeiro and going on vacation. Full control flow in no time. My ego was in good shape.&lt;/p&gt;

&lt;p&gt;So I went for &lt;a href="https://anthropic.com" rel="noopener noreferrer"&gt;Claude&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I did my research, found that someone had done it before, and then found out Anthropic had shut it down. A handful of tools on GitHub broke overnight. I tried for a while and gave up. Anthropic won that round. Especially because I spent more time than I am willing to admit before doing any research.&lt;/p&gt;

&lt;p&gt;Then Codex quietly patched their exploit too. So now I had nothing.&lt;/p&gt;

&lt;p&gt;A few weeks later I hadn't slept properly in days and I was convinced I had malware. I know that's probably just what sleep deprivation does to you. I did it anyway. Went through every process, every port, every log file I'd never looked at before. And when I'd exhausted everything else there was still traffic I couldn't account for.&lt;/p&gt;

&lt;p&gt;Then I started thinking I need to know what these fellows are talking about. It's clearly CIA or the Chinese. Maybe they're working together!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;…Turns out it was Claude Desktop.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I couldn't back down from this fight, not after the last fiasco. But QUIC streams, the fuck is that? Good thing I hadn't read up on the latest IP protocols. So naturally I am thinking "how hard can it be?". It was quite hard but not nearly hard enough to be deemed secure. Once I finished that's when it hit me: I should probably have checked the Claude CLI traffic. And it was just stupid TCP, took like 10 minutes to crack that case.&lt;/p&gt;

&lt;p&gt;I didn't plan any of this. If you want to poke around, the repo is &lt;a href="https://github.com/marbad1994/anthprox-makk-gpt" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1-1&lt;/strong&gt; &lt;a href="https://anthropic.com" rel="noopener noreferrer"&gt;Anthropic&lt;/a&gt;. It was a fair match.&lt;/p&gt;

&lt;p&gt;Then I went &lt;strong&gt;2 for 2&lt;/strong&gt; on Codex. It's starting to feel like &lt;em&gt;bullying&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqilcjwqrb4reqs2wa0v0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqilcjwqrb4reqs2wa0v0.png" alt="Feasting off of that affirmation i desperatly need" width="800" height="1278"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>showdev</category>
      <category>ai</category>
      <category>python</category>
    </item>
  </channel>
</rss>
