<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://kl1d.me/blog</id>
    <title>kl1d.me Blog</title>
    <updated>2026-09-28T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://kl1d.me/blog"/>
    <subtitle>Cyber deception research and production AI security notes from Khalid Alasiri</subtitle>
    <icon>https://kl1d.me/img/favicon.ico</icon>
    <rights>Copyright © 2026 Khalid Alasiri</rights>
    <entry>
        <title type="html"><![CDATA[أدوات الـ Vibe Coding رائعة، بس أحد يشرح لك وش يصير ورا الكواليس؟]]></title>
        <id>https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes</id>
        <link href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes"/>
        <updated>2026-09-28T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[أدوات الـ coding agents تبني لك تطبيق كامل من وصف بسيط — لكن localhost والـ tunnel يخفون خطرًا مهمًا لازم تفهمه قبل ما تشارك الرابط.]]></summary>
        <content type="html"><![CDATA[<p>أدوات الـ coding agents اللي تكتب لك الكود وتبني لك تطبيق كامل من وصف بسيط شي مذهل بصراحة، وأنا من أكثر الناس اللي يستخدمونها ومقتنع فيها. صار اللي ما يعرف برمجة يبني صفحة أو أداة في ساعة، وهذا شي حلو ولازم نشجعه. لكن المشكلة إن الأداة تبني لك التطبيق وتخفي عنك كيف يشتغل في الواقع، وناس كثير تستخدم النتيجة وهي ما تدري وش الخطر فيها.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="وش-يعني-localhost">وش يعني <code>localhost</code>؟<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%88%D8%B4-%D9%8A%D8%B9%D9%86%D9%8A-localhost" class="hash-link" aria-label="Direct link to وش-يعني-localhost" title="Direct link to وش-يعني-localhost">​</a></h2>
<p>خلني أشرح لك مثال شائع. الـ agent يبني لك صفحة أو تطبيق ويشغله على جهازك، ويعطيك عنوان اسمه <a href="https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname" target="_blank" rel="noopener noreferrer"><code>localhost</code></a> — ومعناه حرفيًا: <strong>جهازك نفسه</strong>.</p>
<ul>
<li>لو فتحته أنت: تشوف الصفحة.</li>
<li>لو صديقك كتب نفس العنوان: يفتح <strong>جهازه هو</strong>، مو جهازك.</li>
</ul>
<p>عشان كذا ما أحد غيرك يشوف اللي بنيته. وتخيل الجهاز عمارة، والـ <a href="https://developer.mozilla.org/en-US/docs/Glossary/Port" target="_blank" rel="noopener noreferrer"><strong>port</strong></a> هو رقم الشقة اللي يشتغل فيها البرنامج.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="كيف-تورّي-أحد-الصفحة-الـ-tunnel">كيف تورّي أحد الصفحة؟ الـ tunnel<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%83%D9%8A%D9%81-%D8%AA%D9%88%D8%B1%D9%91%D9%8A-%D8%A3%D8%AD%D8%AF-%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9-%D8%A7%D9%84%D9%80-tunnel" class="hash-link" aria-label="Direct link to كيف تورّي أحد الصفحة؟ الـ tunnel" title="Direct link to كيف تورّي أحد الصفحة؟ الـ tunnel">​</a></h2>
<p>طيب، تبي تورّي أحد الصفحة. هنا تدخل أدوات الـ <strong>tunnel</strong>. أشهرها الحين <a href="https://try.cloudflare.com/" target="_blank" rel="noopener noreferrer">Cloudflare Quick Tunnel</a>: أمر واحد، بدون حساب، ويعطيك رابط عام.</p>
<p>الفكرة إن جهازك <strong>ما يفتح باب لأحد</strong>، بل هو اللي يتصل للخارج بشركة وسيطة ويخلي الخط مفتوح:</p>
<ol>
<li>جهازك يتصل لـ Cloudflare ويترك الخط مفتوحًا.</li>
<li>الشركة تعطيك رابطًا عامًا.</li>
<li>أي أحد يفتح الرابط يروح لها، وهي تمرر الطلب من الخط اللي فتحته أنت لين يوصل لتطبيقك.</li>
</ol>
<p>مثل مكتب استقبال: الزوار يكلمون الاستقبال، والاستقبال يوصلهم لك.</p>
<p>الأداة موجودة من <a href="https://blog.cloudflare.com/sharing-your-local-dev-environment-with-others-with-cloudflare-tunnel/" target="_blank" rel="noopener noreferrer">2021</a>، لكنها رجعت للواجهة في سبتمبر 2026 لما Cloudflare سوّت لها <a href="https://try.cloudflare.com/" target="_blank" rel="noopener noreferrer">صفحة تعريف جديدة</a>، وصارت أدوات الـ agents تستخدمها لمشاركة اللي تسويه.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="وين-الخطر-مو-في-الـ-tunnel-نفسه">وين الخطر؟ (مو في الـ tunnel نفسه)<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%88%D9%8A%D9%86-%D8%A7%D9%84%D8%AE%D8%B7%D8%B1-%D9%85%D9%88-%D9%81%D9%8A-%D8%A7%D9%84%D9%80-tunnel-%D9%86%D9%81%D8%B3%D9%87" class="hash-link" aria-label="Direct link to وين الخطر؟ (مو في الـ tunnel نفسه)" title="Direct link to وين الخطر؟ (مو في الـ tunnel نفسه)">​</a></h2>
<p>وهنا الخطر — وهو <strong>مو في الـ tunnel نفسه</strong>.</p>
<p>الـ tunnel ما يفتح جهازك كله؛ يكشف بس التطبيق اللي وجهته له. لكن هالتطبيق صار قدام الإنترنت كله، وهو <strong>ما انبنى لكذا</strong>.</p>
<p>الـ agent غالبًا يعتبر إن جهازك بيئة آمنة، فما يحط تسجيل دخول ولا حماية، لأن الكود مكتوب على فكرة إن اللي يستخدمه <strong>أنت وبس</strong>. وأي أحد عنده الرابط — وحتى لو ما شاركته أنت — يقدر يجرب عليه.</p>
<p>وفيه نقطة أدق: التطبيق ما يقدر يفرق بين الزائر الغريب وبينك، لأن كل الطلبات توصله عن طريق جهازك نفسه. فأي كود يقول «الطلبات اللي من نفس الجهاز موثوقة» يصير يثق بالإنترنت كله.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="لو-انكسر-التطبيق-وش-اللي-يصير">لو انكسر التطبيق، وش اللي يصير؟<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%84%D9%88-%D8%A7%D9%86%D9%83%D8%B3%D8%B1-%D8%A7%D9%84%D8%AA%D8%B7%D8%A8%D9%8A%D9%82-%D9%88%D8%B4-%D8%A7%D9%84%D9%84%D9%8A-%D9%8A%D8%B5%D9%8A%D8%B1" class="hash-link" aria-label="Direct link to لو انكسر التطبيق، وش اللي يصير؟" title="Direct link to لو انكسر التطبيق، وش اللي يصير؟">​</a></h2>
<p>لو سمعت عن <a href="https://www.wiz.io/academy/container-security/container-escape" target="_blank" rel="noopener noreferrer">هروب الحاويات (container escape)</a> في Docker فالفكرة قريبة، لكن هنا أسوأ:</p>
<table><thead><tr><th></th><th>Docker</th><th>تطبيق على جهازك مباشرة</th></tr></thead><tbody><tr><td>العزل</td><td>فيه جدار عزل (الحاوية)</td><td><strong>ما فيه جدار أصلاً</strong></td></tr><tr><td>ماذا يحتاج المهاجم؟</td><td>يكسر العزل عشان يوصل للجهاز</td><td>يدخل التطبيق ويشتغل بصلاحياتك أنت</td></tr><tr><td>ماذا يصل إليه؟</td><td>بعد كسر العزل فقط</td><td>ملفاتك، مفاتيح SSH، كلمات السر، حسابات الكلاود، وشبكة بيتك</td></tr></tbody></table>
<p>وأخطر منها أدوات الـ agents نفسها: كثير منها يقدر يشغّل أوامر ويقرأ ملفات. فلو انكشفت لغيرك، ما يشوف صفحة بس — يستعمل صلاحياتها.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="خلني-أكون-دقيق">خلني أكون دقيق<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D8%AE%D9%84%D9%86%D9%8A-%D8%A3%D9%83%D9%88%D9%86-%D8%AF%D9%82%D9%8A%D9%82" class="hash-link" aria-label="Direct link to خلني أكون دقيق" title="Direct link to خلني أكون دقيق">​</a></h3>
<p>هذا <strong>مو تلقائي</strong>. لازم تجتمع شروط:</p>
<ol>
<li>الـ tunnel شغال</li>
<li>في التطبيق ثغرة أو وظيفة خطيرة بدون حماية</li>
<li>للتطبيق صلاحيات حقيقية على الجهاز</li>
</ol>
<p>وموقع ثابت يعرض ملفات بس أقل خطرًا بكثير من تطبيق ديناميكي له backend.</p>
<p>وأنا ما وجدت حالات موثقة لهالسلسلة بالذات من تطبيقات بناها agent — فأنا أتكلم عن <strong>خطر ناتج من طريقة التصميم</strong>، مو عن موجة هجمات شفتها.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="ليش-السيرفر-الحقيقي-مختلف">ليش السيرفر الحقيقي مختلف؟<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%84%D9%8A%D8%B4-%D8%A7%D9%84%D8%B3%D9%8A%D8%B1%D9%81%D8%B1-%D8%A7%D9%84%D8%AD%D9%82%D9%8A%D9%82%D9%8A-%D9%85%D8%AE%D8%AA%D9%84%D9%81" class="hash-link" aria-label="Direct link to ليش السيرفر الحقيقي مختلف؟" title="Direct link to ليش السيرفر الحقيقي مختلف؟">​</a></h2>
<p>لأنه مبني من الأساس عشان يستقبل الناس:</p>
<ul>
<li>جدار ناري يقفل كل شي إلا اللي لازم</li>
<li>شهادة HTTPS</li>
<li>تسجيل دخول للأجزاء الحساسة</li>
<li>تحديثات أمنية</li>
<li>سجلات (logs) تنراقب</li>
<li>معزول عن ملفات أي شخص</li>
</ul>
<p>جهازك فيه بريدك وصورك وكلمات السر — وما هو مصمم يستقبل الغرباء.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="وش-أسوي-عمليًا">وش أسوي عمليًا؟<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D9%88%D8%B4-%D8%A3%D8%B3%D9%88%D9%8A-%D8%B9%D9%85%D9%84%D9%8A%D9%8B%D8%A7" class="hash-link" aria-label="Direct link to وش أسوي عمليًا؟" title="Direct link to وش أسوي عمليًا؟">​</a></h2>
<ol>
<li><strong>شغّل الـ agent وتطبيقه داخل حاوية (container) أو جهاز افتراضي معزول</strong> — عشان لو انكسر التطبيق ما يوصل المهاجم لباقي جهازك.</li>
<li><strong>حط كلمة سر أو تسجيل دخول قدام الـ tunnel.</strong></li>
<li><strong>لو تبي بس تعرض صفحة:</strong> اعرضها كملفات ثابتة بدل تطبيق كامل.</li>
<li><strong>خلّ الـ tunnel مفتوح أقصر وقت ممكن</strong>، وسكّره أول ما تخلص.</li>
<li><strong>لا تخلي الـ agent يفتح tunnel بدون ما يسألك.</strong></li>
<li><strong>إذا تبي شي يدوم:</strong> استضفه على منصة استضافة حقيقية — لا تخلي جهازك هو السيرفر.</li>
</ol>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="المصدر">المصدر<a href="https://kl1d.me/blog/vibe-coding-tunnels-behind-the-scenes#%D8%A7%D9%84%D9%85%D8%B5%D8%AF%D8%B1" class="hash-link" aria-label="Direct link to المصدر" title="Direct link to المصدر">​</a></h2>
<ul>
<li>Flavio Copes، <a href="https://flaviocopes.com/cloudflare-quick-tunnels/" target="_blank" rel="noopener noreferrer">The complete guide to Cloudflare Quick Tunnels</a>، 23 سبتمبر 2026</li>
<li><a href="https://try.cloudflare.com/" target="_blank" rel="noopener noreferrer">وثائق Cloudflare — TryCloudflare / Quick Tunnels</a></li>
</ul>]]></content>
        <author>
            <name>Khalid Alasiri</name>
            <uri>https://kl1d.me</uri>
        </author>
        <category label="AI Security" term="AI Security"/>
        <category label="MENA" term="MENA"/>
        <category label="Cybersecurity" term="Cybersecurity"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Can LLMs Actually Investigate Cyberattacks?]]></title>
        <id>https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks</id>
        <link href="https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks"/>
        <updated>2026-09-23T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[AuditBench asks a narrower question than most LLM-security papers — can a model investigate an incident from raw logs the way an analyst would — and grounds the answer in real ATT&CK telemetry.]]></summary>
        <content type="html"><![CDATA[<p>A paper that crossed my feed last week is doing something I think more security-and-LLM work should do: instead of asking "is this LLM smart," it asks a narrower, more useful question — can an LLM actually investigate a security incident from raw system logs, the way an analyst would.</p>
<p>The paper is <a href="https://arxiv.org/abs/2606.10281" target="_blank" rel="noopener noreferrer"><strong>AuditBench</strong></a> (Anand et al., 2026). What stood out to me wasn't the leaderboard of which model scored highest — it's how they built the benchmark.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="grounded-in-what-ir-teams-actually-do">Grounded in what IR teams actually do<a href="https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks#grounded-in-what-ir-teams-actually-do" class="hash-link" aria-label="Direct link to Grounded in what IR teams actually do" title="Direct link to Grounded in what IR teams actually do">​</a></h2>
<p>They didn't invent arbitrary tasks. They grounded everything in four things incident-response teams actually do:</p>
<ol>
<li><strong>Triage</strong> an alert</li>
<li><strong>Find persistence</strong></li>
<li><strong>Trace lateral movement</strong></li>
<li><strong>Spot exfiltration</strong></li>
</ol>
<p>Then, for three of those, they tied the scenarios directly to <a href="https://attack.mitre.org/" target="_blank" rel="noopener noreferrer">MITRE ATT&amp;CK</a> techniques, executed them for real using <a href="https://github.com/redcanaryco/atomic-red-team" target="_blank" rel="noopener noreferrer">Atomic Red Team</a> on live VMs, and captured the resulting telemetry through <a href="https://github.com/linux-audit/audit-userspace" target="_blank" rel="noopener noreferrer">auditd</a> and <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/procmon" target="_blank" rel="noopener noreferrer">ProcMon</a>.</p>
<p>So the ground truth isn't synthetic — it's <em>"we ran this technique, here's what it actually looked like in the logs."</em></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-framework--telemetry-pipeline">The framework → telemetry pipeline<a href="https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks#the-framework--telemetry-pipeline" class="hash-link" aria-label="Direct link to The framework → telemetry pipeline" title="Direct link to The framework → telemetry pipeline">​</a></h2>
<p>That framework-to-telemetry pipeline is the part I keep coming back to. It's a specific, hard problem: taking a behavior described at the ATT&amp;CK level and turning it into something <strong>observable and gradable</strong> in raw system data.</p>
<p>That's a step I think about a lot in my own work right now, which has been moving toward using ATT&amp;CK-style frameworks to reason about behavior — including in settings where LLMs are involved on either side of that reasoning, not just as the thing being evaluated. I'm not sharing specifics on that yet, but this paper is a useful reference point for anyone thinking about the same gap: getting from <em>"described attacker behavior"</em> to <em>"something a model can actually be evaluated against."</em></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="are-raw-logs-even-the-right-input">Are raw logs even the right input?<a href="https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks#are-raw-logs-even-the-right-input" class="hash-link" aria-label="Direct link to Are raw logs even the right input?" title="Direct link to Are raw logs even the right input?">​</a></h2>
<p>The other thing worth flagging: AuditBench also tests whether raw logs are even the right input format for an LLM, comparing them against a more compact, provenance-based representation. That's a <strong>systems</strong> question as much as a model question — and it's one that gets skipped in a lot of "let's just throw logs at an LLM" work.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="paper">Paper<a href="https://kl1d.me/blog/can-llms-actually-investigate-cyberattacks#paper" class="hash-link" aria-label="Direct link to Paper" title="Direct link to Paper">​</a></h2>
<p>Anand et al., <em>Benchmarking and Exploring the Capabilities of LLMs for Attack Investigations</em>, arXiv:2606.10281, 2026.</p>
<p>→ <a href="https://arxiv.org/abs/2606.10281" target="_blank" rel="noopener noreferrer">Read on arXiv</a> · <a href="https://arxiv.org/pdf/2606.10281" target="_blank" rel="noopener noreferrer">PDF</a></p>]]></content>
        <author>
            <name>Khalid Alasiri</name>
            <uri>https://kl1d.me</uri>
        </author>
        <category label="AI Security" term="AI Security"/>
        <category label="Cybersecurity" term="Cybersecurity"/>
    </entry>
</feed>