<?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: Bangsaen AI</title>
    <description>The latest articles on DEV Community by Bangsaen AI (@bangsaenai).</description>
    <link>https://dev.to/bangsaenai</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%2F4042908%2F456abdee-3031-4af4-984d-5a8aa9fbd469.png</url>
      <title>DEV Community: Bangsaen AI</title>
      <link>https://dev.to/bangsaenai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bangsaenai"/>
    <language>en</language>
    <item>
      <title>Sub-Millisecond Scam Interception in C++: Defeating Cloud Latency via Koopman Operator Subspace Dynamics</title>
      <dc:creator>Bangsaen AI</dc:creator>
      <pubDate>Sat, 24 Oct 2026 11:59:59 +0000</pubDate>
      <link>https://dev.to/bangsaenai/sub-millisecond-scam-interception-in-c-defeating-cloud-latency-via-koopman-operator-subspace-17ee</link>
      <guid>https://dev.to/bangsaenai/sub-millisecond-scam-interception-in-c-defeating-cloud-latency-via-koopman-operator-subspace-17ee</guid>
      <description>&lt;p&gt;When defending users against active telecommunication fraud, deepfakes, or social engineering attacks, &lt;strong&gt;reaction time is everything&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Most modern defense systems attempt to pipe speech-to-text outputs or raw text buffers into cloud-hosted Large Language Models (LLMs) or Python-based runtimes. While these models possess sophisticated linguistic comprehension, they introduce severe bottlenecks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Network round-trip times (RTT) exceeding hundreds of milliseconds&lt;/li&gt;
&lt;li&gt;Non-deterministic garbage collection stutters&lt;/li&gt;
&lt;li&gt;Heavy memory marshalling across high-level runtimes&lt;/li&gt;
&lt;li&gt;Direct privacy concerns under GDPR and PDPA frameworks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A fraudulent transaction or an authorization code can be coerced in less than a second. A defense mechanism with a 500 ms latency window is fundamentally an &lt;strong&gt;after-the-fact alert system, not an active circuit breaker&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To achieve deterministic, hardware-level interruption, we engineered a &lt;strong&gt;Standalone C++ Native Engine&lt;/strong&gt; that couples lightweight in-memory embeddings directly with &lt;strong&gt;Koopman Operator Theory&lt;/strong&gt;, evaluating conversational dynamics in a 3,072-dimensional Hilbert subspace under &lt;strong&gt;1 millisecond&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎬 Live YouTube Demonstration
&lt;/h2&gt;

&lt;p&gt;We put the standalone C++ binary through a rigorous live benchmark across 10 distinct Thai language prompts, capturing live memory norms, state flips, and execution latency measured in microseconds.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/XFO5eT4oX14" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Watch the video above to see the real-time state flip from green &lt;code&gt;STATE_1&lt;/code&gt; to red &lt;code&gt;STATE_X&lt;/code&gt; circuit tripping.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Core Concept: Koopman Observable Lifting
&lt;/h2&gt;

&lt;p&gt;Adversarial linguistic manipulation is inherently a non-linear dynamical system. Rather than running multi-layer autoregressive token generation to predict maliciousness, we leverage &lt;strong&gt;Koopman Operator Theory&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;According to the theory, an infinite-dimensional linear operator $\mathcal{K}$ exists that advances observables along the flow of a non-linear dynamical system:&lt;/p&gt;

&lt;p&gt;$$\mathcal{K} \psi(x_t) = \psi(x_{t+1})$$&lt;/p&gt;

&lt;p&gt;In our C++ native core, we define a nonlinear lifting function that projects latent text representations into a &lt;strong&gt;3,072-dimensional Hilbert subspace&lt;/strong&gt; $\mathcal{H}_{3072}$:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Character Trigram Spatial Dispersion:&lt;/strong&gt; Evaluates structural byte sequences into lower-band projection bases (0..1535).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harmonic Behavioral Resonance:&lt;/strong&gt; Applies non-linear sinusoidal transforms across orthogonal bands (1536..3071).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subspace Energy Differential ($\Delta E$):&lt;/strong&gt; Computes projections against two pre-orthonormalized bases:

&lt;ul&gt;
&lt;li&gt;$Q_{\text{norm}}$ (Legitimate human conversational dynamics)&lt;/li&gt;
&lt;li&gt;$Q_{\text{att}}$ (Malicious / coercive / unauthorized trajectories)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$\Delta E = \frac{E_{\text{norm}} - E_{\text{att}}}{E_{\text{norm}} + E_{\text{att}}}$$&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When $\Delta E &amp;gt; 0$: Trajectory resides within legitimate bounds (&lt;strong&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt;&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;When $\Delta E &amp;lt; 0$: Trajectory enters the attack manifold (&lt;strong&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt;&lt;/strong&gt;), tripping the hardware-level action gate to sever the socket, drop the call, or perform a zero-norm memory wipe.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📊 Live Benchmark: 10 Thai Language Scenarios
&lt;/h2&gt;

&lt;p&gt;Here are the exact outputs captured from our live testing terminal:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Input Text / Scenario&lt;/th&gt;
&lt;th&gt;Intent Classification&lt;/th&gt;
&lt;th&gt;$\Delta E$ Output&lt;/th&gt;
&lt;th&gt;System State&lt;/th&gt;
&lt;th&gt;Core Latency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"เฮ้ยค่าเหล้าเมื่อคืนออกไป 500 ก่อนนะคืนมาด้วยนะเดี๋ยวส่งเลขบัญชีไปให้ใน Line"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Peer money request (Informal)&lt;/td&gt;
&lt;td&gt;$+0.8058$&lt;/td&gt;
&lt;td&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt; (Pass)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;881 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"แม่ค้าครับเสื้อตัวนี้รวมส่ง 390 บาทใช่ไหมครับเดี๋ยวผมสแกนจ่ายพร้อมเพย์แล้วส่งสลิปให้นะครับ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;E-commerce purchase&lt;/td&gt;
&lt;td&gt;$+0.5630$&lt;/td&gt;
&lt;td&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt; (Pass)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;286 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"สวัสดีครับคุณตำรวจพอดีกระเป๋าตังค์หายแถวตลาดนัดจะเข้าไปแจ้งความลงบันทึกประจำวันตอนบ่ายครับ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Legitimate police report&lt;/td&gt;
&lt;td&gt;$+0.5136$&lt;/td&gt;
&lt;td&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt; (Pass)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;490 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"สวัสดีค่ะพอดีลืม Password เข้าแอพธนาคารต้องนำสมุดบัญชีกับบัตรประชาชนไปติดต่อที่สาขาไหนคะ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Banking support query&lt;/td&gt;
&lt;td&gt;$+0.5568$&lt;/td&gt;
&lt;td&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt; (Pass)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;685 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"แม่โอนเงินค่าเทอมให้น้องหรือยังถ้ายังเดี๋ยวหนูโอนให้ก่อนนะ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Family tuition payment&lt;/td&gt;
&lt;td&gt;$+0.8793$&lt;/td&gt;
&lt;td&gt;🟢 &lt;code&gt;STATE_1&lt;/code&gt; (Pass)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;685 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"นี่คือพันตำรวจเอกสมชายบัญชีของคุณถูกนำไปใช้ฟอกเงินยาเสพติดถ้าไม่ให้ความร่วมมือจะถูกออกหมายจับ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Impersonation / Money laundering scam&lt;/td&gt;
&lt;td&gt;$-0.9875$&lt;/td&gt;
&lt;td&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt; (Tripped)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;235 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;7&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"ระบบตรวจพบการโอนเงินผิดปกติให้คุณกดลิงค์ในข้อความเพื่อติดตั้งแอปตรวจสอบความปลอดภัยเดี๋ยวนี้"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Phishing / Malicious APK download&lt;/td&gt;
&lt;td&gt;$-0.9875$&lt;/td&gt;
&lt;td&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt; (Tripped)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;925 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"สวัสดีค่ะโอนเงินผิดเข้าบัญชีคุณไป 50,000 บาทรบกวนโอนกลับมาที่บัญชีนี้ด่วนเลยค่ะไม่งั้นจะดำเนินคดี"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Accidental transfer threat scam&lt;/td&gt;
&lt;td&gt;$-0.9864$&lt;/td&gt;
&lt;td&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt; (Tripped)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;928 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;9&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"มีพัสดุจากต่างประเทศจ่าหน้าซองถึงคุณตรวจพบพาสปอร์ตปลอมและสิ่งผิดกฎหมายต้องจ่ายเงินมัดจำค่าปรับทันที"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Fake parcel / Customs extortion&lt;/td&gt;
&lt;td&gt;$-0.9904$&lt;/td&gt;
&lt;td&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt; (Tripped)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;764 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;10&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"ภารกิจนี้เหลือโควต้า 5 นาทีสุดท้ายโอนเงินเข้ามา 1,000 บาทจะได้เงินปันผลคืนทันที 3,000 บาทรีบตัดสินใจ"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Ponzi / Urgent high-yield scheme&lt;/td&gt;
&lt;td&gt;$-0.9920$&lt;/td&gt;
&lt;td&gt;🚨 &lt;code&gt;STATE_X&lt;/code&gt; (Tripped)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;765 µs&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Key Technical Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Zero False Positives in Ambiguous Scenarios:&lt;/strong&gt; In Scenario 5 (&lt;em&gt;"Mom, have you paid tuition for younger sibling yet? If not, I'll transfer first"&lt;/em&gt;), despite containing trigger phrases like &lt;em&gt;"transfer money"&lt;/em&gt; and &lt;em&gt;"transfer first"&lt;/em&gt;, the topological subspace preserved the familial context, resulting in a safe $+0.8793$ score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Immediate Threat Falsification:&lt;/strong&gt; In all 5 malicious instances, $\Delta E$ immediately plummeted to $\approx -0.99$, providing mathematical certainty for hard socket disconnection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-Millisecond Execution Window:&lt;/strong&gt; Every single projection cycle executed between &lt;strong&gt;191 µs and 928 µs&lt;/strong&gt; on native hardware—eliminating round-trip network delays and cloud operational costs.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Deterministic threat protection requires migrating mathematical evaluation directly to bare-metal native engines. By unifying observable lifting with low-level matrix projection inside a standalone C++ core, it is possible to achieve sub-millisecond, zero-cloud real-time defense against complex conversational attacks.&lt;/p&gt;

&lt;p&gt;Check out the full live run in the &lt;a href="https://youtu.be/XFO5eT4oX14" rel="noopener noreferrer"&gt;YouTube video&lt;/a&gt; and let me know your thoughts on applying non-linear dynamical systems to NLP security!&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>cpp</category>
      <category>performance</category>
      <category>security</category>
    </item>
    <item>
      <title>The Enterprise WAF Monopoly is Dead: How We Shattered Layer-7 Security Pricing with C++/WASM</title>
      <dc:creator>Bangsaen AI</dc:creator>
      <pubDate>Sat, 25 Jul 2026 17:05:06 +0000</pubDate>
      <link>https://dev.to/bangsaenai/the-enterprise-waf-monopoly-is-dead-how-we-shattered-layer-7-security-pricing-with-cwasm-12ng</link>
      <guid>https://dev.to/bangsaenai/the-enterprise-waf-monopoly-is-dead-how-we-shattered-layer-7-security-pricing-with-cwasm-12ng</guid>
      <description>&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo5ykx9j5asphiurt4c0p.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo5ykx9j5asphiurt4c0p.png" alt="Bangsaen Filter ROI Comparison"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For years, giant cloud providers have held a dirty secret: &lt;strong&gt;Enterprise WAFs ($200–$1,000+/month) are priced high not because Edge compute is expensive, but because they know you can't build one yourself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you run an e-commerce storefront, a event-ticketing platform, or a high-traffic app, you’ve experienced the &lt;strong&gt;Layer-7 Bot Tax&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Malicious scrapers, credential stuffers, or checkout bots flood dynamic endpoints (&lt;code&gt;/checkout/&lt;/code&gt;, &lt;code&gt;/cart/&lt;/code&gt;, &lt;code&gt;/api/&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Your origin server’s CPU spikes to 100%, triggering database locks and killing user sessions with &lt;code&gt;502 Bad Gateway&lt;/code&gt; errors.&lt;/li&gt;
&lt;li&gt;Your options? Either pay &lt;strong&gt;Cloudflare $200+/month for Business/Enterprise rules&lt;/strong&gt; or spend &lt;strong&gt;$150+/month upgrading your web server instances&lt;/strong&gt; just to process garbage traffic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We decided to end this monopoly.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡ The Paradigm Shift: Bare-Metal C++/WASM at the Edge
&lt;/h2&gt;

&lt;p&gt;The problem with traditional security isn't that Layer-7 filtering is impossible—it’s that people were doing it in the wrong place with the wrong tools. &lt;/p&gt;

&lt;p&gt;We compiled a bare-metal &lt;strong&gt;C++ security kernel directly into WebAssembly (WASM)&lt;/strong&gt; and deployed it to execute at the Global Edge. Instead of letting threats touch your web server, &lt;strong&gt;Bangsaen Filter v1.0.0&lt;/strong&gt; inspects payloads in microsecond timeframes right at the perimeter.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧪 Empirical Proof: Zero-Infrastructure Stress Test
&lt;/h3&gt;

&lt;p&gt;We didn't just benchmark this in a lab—we battle-tested it on a real-world WooCommerce storefront integrated with Stripe Express Checkout. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Test Constraints:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Origin Infrastructure:&lt;/strong&gt; A $0/month GCP &lt;code&gt;e2-micro&lt;/code&gt; instance (&lt;strong&gt;1 vCPU, 1 GB RAM&lt;/strong&gt;—literally the weakest free-tier VM available).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attack Vector:&lt;/strong&gt; Heavy dynamic Layer-7 attacks via &lt;code&gt;sqlmap&lt;/code&gt; and automated checkout scrapers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Empirical Results:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🛑 &lt;strong&gt;Bot Destruction:&lt;/strong&gt; 100% of threat payloads blocked at the Edge with an instant &lt;code&gt;HTTP 403&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Edge CPU Execution Time:&lt;/strong&gt; &lt;strong&gt;~1.3 milliseconds&lt;/strong&gt; average.&lt;/li&gt;
&lt;li&gt;🖥️ &lt;strong&gt;Origin CPU Utilization:&lt;/strong&gt; &lt;strong&gt;0.00%&lt;/strong&gt; (Zero PHP/MariaDB overhead. The attack never touched the server!).&lt;/li&gt;
&lt;li&gt;💳 &lt;strong&gt;Real Buyer Latency:&lt;/strong&gt; Legitimate shoppers checked out via Apple Pay and Google Pay in &lt;strong&gt;&amp;lt;600ms&lt;/strong&gt; while the attack was actively running.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💣 Why $19/mo for 1M Requests Changes Everything
&lt;/h2&gt;

&lt;p&gt;In the old model, 800,000 malicious bot requests meant a crashed server or a $300 hosting bill. &lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;Bangsaen Filter Pro ($19/mo)&lt;/strong&gt;, those 800,000 bad requests are destroyed at the Edge in 1.3ms. Your $0–$10/mo origin server processes only the 200,000 real buyers without sweating.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ 1,000,000 Incoming Edge Requests ]
├── 800,000 Bad Bots    ──► [ C++/WASM Edge Kernel ] ──► Instant 403 (1.3ms)
└── 200,000 Real Buyers  ──► [ GCP e2-micro Origin ]  ──► 200 OK (0.00% Bot CPU Load)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We are giving SMEs and developers the exact same high-speed, sub-millisecond protection that big corporations pay thousands for—at a price so low it makes legacy security pricing look absurd.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛡️ Take Back Control of Your Infrastructure
&lt;/h2&gt;

&lt;p&gt;Stop paying cloud providers for the computational energy consumed by bad bots. Keep your origin infrastructure minimal, fast, and dirt cheap.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📦 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/bangsaenai/bangsaen-filter-bot-killer-docs/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;Bangsaen Filter Release v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🔑 &lt;strong&gt;Claim Free Tier (100,000 Reqs/mo):&lt;/strong&gt; &lt;a href="https://www.bangsaenai.com" rel="noopener noreferrer"&gt;Get Started Free&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;How much are you currently paying in hosting or WAF costs just to absorb threat traffic? Let’s talk architecture in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>devops</category>
      <category>webassembly</category>
      <category>security</category>
    </item>
    <item>
      <title>How I Compiled C++ to WebAssembly on Cloudflare Edge to Kill Bots with 0.000ms Origin Overhead</title>
      <dc:creator>Bangsaen AI</dc:creator>
      <pubDate>Thu, 23 Jul 2026 03:02:49 +0000</pubDate>
      <link>https://dev.to/bangsaenai/how-i-compiled-c-to-webassembly-on-cloudflare-edge-to-kill-bots-with-0000ms-origin-overhead-3bb8</link>
      <guid>https://dev.to/bangsaenai/how-i-compiled-c-to-webassembly-on-cloudflare-edge-to-kill-bots-with-0000ms-origin-overhead-3bb8</guid>
      <description>&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9avp3bz5m2gid69qur9.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9avp3bz5m2gid69qur9.PNG" alt=" " width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every web service faces the same annoying issue: &lt;strong&gt;AI scrapers, automated brute-force bots, and bad actors eating up origin server CPU &amp;amp; RAM&lt;/strong&gt; before they even get blocked.&lt;/p&gt;

&lt;p&gt;Traditional middleware (like PHP or Node.js security plugins) still forces your origin host to execute code just to decide whether to drop a request. That’s wasted computing resources.&lt;/p&gt;

&lt;p&gt;I wanted to solve this with a strict rule: &lt;strong&gt;Zero host CPU impact on the origin server.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is how I compiled a C++ kernel to WebAssembly (WASM) and deployed it directly to Cloudflare Global Edge.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗️ The Architecture
&lt;/h2&gt;

&lt;p&gt;Instead of filtering traffic at the origin, the protection layer is pushed to Cloudflare’s 300+ Edge locations globally.&lt;/p&gt;

&lt;p&gt;[ Incoming Request ]&lt;br&gt;
│&lt;br&gt;
▼&lt;br&gt;
[ Cloudflare Global Edge ]&lt;br&gt;
│ ──► [ C++ WASM Kernel Inspection ] ──► (Blocked if Bot)&lt;br&gt;
▼&lt;br&gt;
&lt;a href="//0.000ms%20CPU%20Impact!"&gt; Your Origin Server &lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Why C++ WebAssembly on the Edge?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ultra-Low Latency:&lt;/strong&gt; Executing C++ compiled to WASM delivers sub-millisecond execution (&lt;code&gt;0.000ms&lt;/code&gt; kernel impact).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant Dropping:&lt;/strong&gt; Bad actors are terminated at the nearest edge node—never reaching your actual server stack.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language Efficiency:&lt;/strong&gt; C++ provides predictable memory usage and near-bare-metal speeds compared to standard V8 JavaScript isolates.&lt;/li&gt;
&lt;/ol&gt;


&lt;h2&gt;
  
  
  ⚡ Try it with cURL
&lt;/h2&gt;

&lt;p&gt;You can inspect the response directly from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="o"&gt;[&lt;/span&gt;https://bangsaen-bot-killer.bangsaen-filter.workers.dev]&lt;span class="o"&gt;(&lt;/span&gt;https://bangsaen-bot-killer.bangsaen-filter.workers.dev&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"x-bangsaen-key: YOUR_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sample JSON Response:&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "status": "Success",&lt;br&gt;
  "botDetected": false,&lt;br&gt;
  "score": "0.0000",&lt;br&gt;
  "executionTime": "0.000ms"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;🔌 What's Next &amp;amp; Free Tier&lt;br&gt;
I've made the API gateway available with a Free Tier (100,000 requests/month) so developers can offload scraper mitigation without paying a dime or using a credit card.&lt;/p&gt;

&lt;p&gt;🌐 Live Demo &amp;amp; API Key: bangsaenai.com&lt;/p&gt;

&lt;p&gt;🔌 WordPress Users: We have submitted the official Bangsaen Filter plugin to the WordPress.org directory—currently under manual review and scheduled to launch in ~5 days!&lt;/p&gt;

&lt;p&gt;Would love to hear your thoughts on latency optimization and edge security architecture!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>cpp</category>
      <category>webassembly</category>
    </item>
  </channel>
</rss>
