<?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: cyyier</title>
    <description>The latest articles on DEV Community by cyyier (@cyyier).</description>
    <link>https://dev.to/cyyier</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4286433%2Fa5cccfaa-6ee7-48f8-94d0-74f7a1553d29.png</url>
      <title>DEV Community: cyyier</title>
      <link>https://dev.to/cyyier</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cyyier"/>
    <language>en</language>
    <item>
      <title>I built a small open-source white-box CTF puzzle (134 KB native binary) in Pa, a Python-syntax LLVM language</title>
      <dc:creator>cyyier</dc:creator>
      <pubDate>Sun, 06 Dec 2026 14:01:41 +0000</pubDate>
      <link>https://dev.to/cyyier/i-built-a-small-open-source-white-box-ctf-puzzle-134-kb-native-binary-in-pa-a-python-syntax-llvm-431j</link>
      <guid>https://dev.to/cyyier/i-built-a-small-open-source-white-box-ctf-puzzle-134-kb-native-binary-in-pa-a-python-syntax-llvm-431j</guid>
      <description>&lt;p&gt;I have been working on Pa, a statically compiled language that uses a standard Python-compatible AST (&lt;code&gt;ast.parse&lt;/code&gt; passes) and compiles via LLVM &lt;code&gt;-O2&lt;/code&gt; to standalone native binaries.&lt;/p&gt;

&lt;p&gt;To stress-test the standalone binary pipeline (&lt;code&gt;libpa.hash&lt;/code&gt;, &lt;code&gt;zeroize&lt;/code&gt;, &lt;code&gt;ct_eq&lt;/code&gt;, &lt;code&gt;parallel()&lt;/code&gt;), I built a small self-contained white-box CTF / CrackMe (&lt;code&gt;~134 KB&lt;/code&gt; stripped Linux ELF / &lt;code&gt;~189 KB&lt;/code&gt; macOS arm64 Mach-O, linking only system libs).&lt;/p&gt;

&lt;p&gt;Full source (&lt;code&gt;challenge.pa&lt;/code&gt;) is public from minute zero — you can audit it, build it locally, or ignore the source and try a blind binary RE run:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;4 independent offline puzzles (&lt;code&gt;--p1&lt;/code&gt;..&lt;code&gt;--p4&lt;/code&gt;):&lt;/strong&gt; 2,880 telemetry samples (&lt;code&gt;--diag&lt;/code&gt;), a 200M-domain non-invertible 12-round ARX digest search, a 24-round 64-bit state machine, and a 36-weight modular sum mod &lt;code&gt;2^64&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vault:&lt;/strong&gt; All 4 answers derive a seed into a 6-layer × 16 MB DRAM-bound serial maze (~6s/try) with BLAKE3-CTR, a 256-bit keyed BLAKE3 MAC (&lt;code&gt;ct_eq&lt;/code&gt;), and a 15s/layer timeout fuse (&lt;code&gt;zeroize&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decoy path:&lt;/strong&gt; Wrong inputs still run ~6s and output a deterministic decoy code (&lt;code&gt;exit 2&lt;/code&gt;), while an authentic MAC-verified unlock exits &lt;code&gt;0&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Starter nudges for the first two:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--p2&lt;/code&gt;: 200M iterations is slow in pure Python, ~3s in a 15-line parallel native solver (Pa / C / Rust).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--p3&lt;/code&gt;: Every step in &lt;code&gt;p3_forward(x)&lt;/code&gt; is invertible mod &lt;code&gt;2^64&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source, build steps, and discussion thread are in the repo:&lt;br&gt;
&lt;a href="https://github.com/palang-dev/pa/tree/main/challenges/coffee_maze" rel="noopener noreferrer"&gt;https://github.com/palang-dev/pa/tree/main/challenges/coffee_maze&lt;/a&gt;&lt;/p&gt;

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