<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pulkit Rai on Medium]]></title>
        <description><![CDATA[Stories by Pulkit Rai on Medium]]></description>
        <link>https://medium.com/@pulkitrai?source=rss-b9db85e8e147------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pTKHsMKVwT32O5Ya9ieUgw.jpeg</url>
            <title>Stories by Pulkit Rai on Medium</title>
            <link>https://medium.com/@pulkitrai?source=rss-b9db85e8e147------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:31:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pulkitrai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Policy Aware SOC with RAG, Microsoft Foundry & Azure AI Search]]></title>
            <link>https://medium.com/@pulkitrai/building-a-policy-aware-soc-with-rag-microsoft-foundry-azure-ai-search-9fff6ec24c55?source=rss-b9db85e8e147------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fff6ec24c55</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <dc:creator><![CDATA[Pulkit Rai]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 11:03:33 GMT</pubDate>
            <atom:updated>2026-08-30T11:03:33.520Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been working on a security automation architecture where the goal is to move beyond simple rule-based SOC workflows.</p><p>Traditional automation often looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wisxcHGcJaMcrLBhDX-Obw.png" /><figcaption>END-2-END ARCHITECTURE</figcaption></figure><p><strong>Alert → Condition → Action</strong></p><p>That works well for deterministic scenarios, but real security operations also depend heavily on context:</p><p><strong>Which account is involved?</strong><br> <strong>What does our security policy say?</strong><br> <strong>Is this account protected?</strong><br> <strong>Is this remediation actually allowed?</strong><br> <strong>Are there exceptions?</strong></p><p>That is where I introduced <strong>RAG — Retrieval-Augmented Generation</strong> into the architecture.</p><h3>The idea</h3><p>Instead of putting every security policy directly into a Logic App or hard-coding every possible scenario, I created a searchable security knowledge layer.</p><p>The architecture starts with security policy documents and turns them into information that an AI-powered search system can retrieve based on meaning.</p><pre>Security Policy Documents<br>            ↓<br>       Document Chunks<br>            ↓<br>   Embedding Generation<br>            ↓<br>   text-embedding-3-small<br>            ↓<br>      Vector Embeddings<br>            ↓<br>     Azure AI Search<br>            ↓<br>      RAG Retrieval<br>            ↓<br>     Relevant Policy<br>            ↓<br>      SOC Workflow</pre><p>The important part is that the system is not simply searching for exact words.</p><p>The documents are represented as vectors so the retrieval layer can identify content that is semantically relevant to the security question being asked.</p><h3>Where Microsoft Foundry comes in</h3><p>I used <strong>Microsoft Foundry</strong> as the AI platform layer for the model deployment and monitoring side of the architecture.</p><p>The embedding model I used is:</p><p><strong>text-embedding-3-small</strong></p><p>One important distinction:</p><p>This model is not being used like a chatbot model that generates a normal text response.</p><p>Its job is to convert text into a numerical representation called an <strong>embedding</strong>.</p><p>For example:</p><pre>&quot;Protected Linux account must not be modified&quot;<br>                    ↓<br>          text-embedding-3-small<br>                    ↓<br>             Vector representation</pre><p>That vector can then be compared with other vectors to find semantically similar content.</p><p>So the embedding model becomes the bridge between:</p><p><strong>Human-readable security policy </strong>and <strong>Machine-searchable security knowledge.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsOuG8IE58P_l0j25gk_uA.png" /></figure><h3>Building the policy knowledge base</h3><p>The next part was creating the knowledge base itself.</p><p>Security policies can contain things like:</p><ul><li>Protected accounts</li><li>Remediation procedures</li><li>Incident response instructions</li><li>Exception handling</li><li>Asset-specific controls</li><li>Access rules</li><li>Operational procedures</li><li>Security standards</li></ul><p>Instead of forcing the SOC automation to understand all of these rules through hard-coded conditions, I made them available through the RAG layer.</p><p>The process looks like:</p><pre>Policy Document<br>      ↓<br>Chunking<br>      ↓<br>Embedding<br>      ↓<br>Vector<br>      ↓<br>Azure AI Search Index</pre><p>This creates a searchable knowledge layer that the security workflow can query later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tM4RE9aA_ZcRx7tMAsBxfA.png" /><figcaption>RAG INDEX</figcaption></figure><h3>Where Azure AI Search fits</h3><p>Azure AI Search is the retrieval component of the architecture.</p><p>During indexing:</p><pre>Security Policy<br>      ↓<br>Small document chunks<br>      ↓<br>Vector embeddings<br>      ↓<br>Vector index</pre><p>During an incident:</p><pre>Security Event<br>      ↓<br>Security Query<br>      ↓<br>Search Azure AI Search<br>      ↓<br>Retrieve relevant policy chunks<br>      ↓<br>Pass context to SOC workflow</pre><p>That means the workflow does not have to carry the entire security knowledge base inside its own logic.</p><p>It can retrieve the relevant information when it needs it.</p><h3>How this fits into a SOC</h3><p>This is where the architecture becomes interesting.</p><p>Imagine Microsoft Sentinel detects:</p><pre>Multiple failed SSH authentication attempts<br>Account: socuser4<br>Host: Linux VM</pre><p>Instead of immediately performing an action, the workflow can ask the policy knowledge base for relevant information:</p><pre>What is the password-reset policy<br>for this Linux account?<br>Are there protected accounts?<br>Are there exceptions?<br>What remediation is permitted?</pre><p>Azure AI Search retrieves the most relevant policy content.</p><p>The result becomes additional context for the security workflow.</p><p>So instead of:</p><pre>ALERT<br> ↓<br>Hard-coded action</pre><p>the architecture becomes:</p><pre>ALERT<br> ↓<br>IDENTIFY<br> ↓<br>RETRIEVE POLICY<br> ↓<br>EVALUATE<br> ↓<br>REMEDIATE</pre><p>That is the main reason I wanted RAG in the SOC architecture.</p><h3>Connecting RAG with Logic Apps</h3><p>The RAG layer was then connected to an automated Logic App workflow.</p><p>The overall flow becomes:</p><pre>SSH Authentication Failure<br>          ↓<br>Microsoft Sentinel<br>          ↓<br>Analytics Rule<br>          ↓<br>Alert<br>          ↓<br>Incident<br>          ↓<br>Logic App<br>          ↓<br>Account Entity<br>          ↓<br>Username<br>          ↓<br>Protected Account Check<br>          ↓<br>RAG / Azure AI Search<br>          ↓<br>Security Policy Context<br>          ↓<br>Automated Response</pre><p>The Logic App is responsible for orchestration.</p><p>Azure AI Search is responsible for retrieval.</p><p>Microsoft Foundry provides the AI model layer.</p><p>Microsoft Sentinel provides the detection and incident context.</p><p>Each component has a different responsibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uoDMDCDvhS9lRIvB_JsKXg.png" /></figure><h3>Adding a deterministic safety layer</h3><p>I also wanted to make sure that AI and retrieval would not blindly control a high-impact security action.</p><p>So I added a deterministic protection rule.</p><p>For example:</p><pre>Detected account<br>      ↓<br>Is account = socuser1?<br>      ↓<br>YES → STOP</pre><p>The protected account is therefore handled by an explicit rule before remediation can take place.</p><p>That gives the architecture two different layers:</p><pre>RAG<br> ↓<br>Context / Policy Retrieval</pre><pre>Deterministic Rules<br> ↓<br>Enforcement / Safety</pre><p>I think this separation is extremely important for security automation.</p><h3>RAG is not the same as authorization</h3><p>One of the biggest lessons from building this architecture was this:</p><blockquote><strong><em>Retrieving a policy is not the same as receiving authorization.</em></strong></blockquote><p>Suppose Azure AI Search returns a document saying:</p><pre>Password reset procedures<br>Protected accounts<br>Exception handling</pre><p>That only tells us that the document is relevant.</p><p>It does not automatically mean:</p><pre>ALLOW_RESET</pre><p>So a production SOC should ideally have a structured decision layer such as:</p><pre>ALLOW_RESET<br>DENY_RESET<br>UNKNOWN</pre><p>The automation should then behave like:</p><pre>RAG Retrieval<br>      ↓<br>Policy Evidence<br>      ↓<br>Explicit Decision<br>      ↓<br>Deterministic Safety Check<br>      ↓<br>Action</pre><p>For a high-impact action such as changing credentials, <strong>unknown should mean stop</strong>, not continue.</p><h3>Why I think RAG has value in SOC</h3><p>Security policies are not static.</p><p>Organizations constantly change:</p><ul><li>response procedures</li><li>access policies</li><li>account classifications</li><li>exceptions</li><li>remediation rules</li><li>compliance requirements</li><li>asset-specific controls</li></ul><p>Hard-coding every policy directly into automation becomes difficult to maintain.</p><p>A RAG-based architecture provides another option:</p><pre>Policy changes<br>      ↓<br>Update knowledge source<br>      ↓<br>Re-index<br>      ↓<br>Future searches retrieve updated context</pre><p>This can make the knowledge layer easier to evolve independently from the automation workflow.</p><h3>The architecture I’m building</h3><p>The bigger architecture is becoming:</p><pre>SECURITY EVENTS<br>                       ↓<br>               Microsoft Sentinel<br>                       ↓<br>                 Analytics Rules<br>                       ↓<br>                    Incident<br>                       ↓<br>                  Logic Apps<br>                       ↓<br>                Account / Context<br>                       ↓<br>            Protected Account Rules<br>                       ↓<br>                RAG Retrieval<br>                       ↓<br>             Azure AI Search<br>                       ↓<br>              Security Policy<br>                       ↓<br>           Explicit Decision Layer<br>                       ↓<br>            Automated Remediation</pre><p>And underneath the RAG layer:</p><pre>Policy Documents<br>                       ↓<br>                    Chunking<br>                       ↓<br>              Microsoft Foundry<br>                       ↓<br>             text-embedding-3-small<br>                       ↓<br>               Vector Embeddings<br>                       ↓<br>               Azure AI Search</pre><p>So the architecture combines:</p><p><strong>Detection</strong><br> Microsoft Sentinel</p><p><strong>Orchestration</strong><br> Azure Logic Apps</p><p><strong>AI platform</strong><br> Microsoft Foundry</p><p><strong>Embedding</strong><br> text-embedding-3-small</p><p><strong>Retrieval</strong><br> Azure AI Search</p><p><strong>Knowledge</strong><br> Security policy documents</p><p><strong>Enforcement</strong><br> Deterministic security controls</p><h3>The bigger idea</h3><p>The goal is not to replace SOC rules with AI.</p><p>The goal is to combine them.</p><pre>Rules<br> +<br>Security Knowledge<br> +<br>RAG<br> +<br>Deterministic Controls<br> =<br>More Context-Aware SOC Automatio</pre><p>This is the direction I’m exploring: building SOC workflows where security automation can <strong>retrieve organizational knowledge when it needs context</strong>, while high-impact actions remain protected by explicit controls and authorization.</p><p>This is the foundation of the larger security automation architecture I’m building.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fff6ec24c55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Complete SIEM + SOAR Lab in Microsoft Azure]]></title>
            <link>https://medium.com/@pulkitrai/building-a-complete-siem-soar-lab-in-microsoft-azure-d4ff385a8532?source=rss-b9db85e8e147------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ff385a8532</guid>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <dc:creator><![CDATA[Pulkit Rai]]></dc:creator>
            <pubDate>Thu, 21 May 2026 10:36:12 GMT</pubDate>
            <atom:updated>2026-05-21T10:40:05.036Z</atom:updated>
            <content:encoded><![CDATA[<p>I built a complete <strong>SIEM + SOAR</strong> environment in Microsoft Azure as a hands-on learning project. In this article, I’m sharing the full architecture, components, and what I learned while building it.</p><h3>Architecture Diagram</h3><p>Here’s the complete architecture diagram of the SIEM + SOAR lab I designed and implemented:</p><h4><a href="https://excalidraw.com/#json=IyJNFpbx2h9QFWuaNNiqw,5PFRQW1v3_6Lp54eVKlBuw">Architecture Diagram (excalidraw)</a> &lt; click here.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mztvNruCI0_dtLYMCxldgQ.png" /></figure><h3>Overview</h3><p>The goal of this lab was to create an end-to-end security operations environment using <strong>Microsoft Sentinel</strong> as the core SIEM platform combined with SOAR capabilities through automation.</p><p>The architecture covers the full lifecycle:</p><ul><li>Data collection from multiple sources</li><li>Detection using custom analytics rules</li><li>Automated response through playbooks</li><li>Integration with ticketing and notification systems</li></ul><h3>Key Components</h3><p><strong>1. Data Ingestion Layer</strong></p><ul><li>Resource Group and Log Analytics Workspace</li><li>Microsoft Sentinel enabled on the workspace</li><li>Data Collection Rules (DCR) configured for Windows VMs</li><li>Logs collected from:</li><li>Microsoft Defender XDR</li><li>Entra ID (Azure AD)</li><li>Office 365</li><li>Azure Activity Logs</li><li>On-premises devices via Syslog/CEF</li></ul><p><strong>2. Detection Layer</strong></p><ul><li>Custom <strong>KQL Analytics Rules</strong> created for scheduled log hunting</li><li>Rules automatically generate <strong>Incidents</strong> when suspicious activity is detected</li><li>Focused on real-world detection scenarios (brute force, anomalous logins, etc.)</li></ul><p><strong>3. SOAR &amp; Automation Layer</strong></p><ul><li><strong>Automation Rules</strong> in Sentinel configured to trigger on new incidents</li><li><strong>Logic Apps Playbooks</strong> used to automate response actions</li><li>Playbooks handle:</li><li>Sending notifications to Teams and Email</li><li>Creating tickets in ServiceNow / Jira</li><li>Automated remediation (Isolate device, Block user account, etc.)</li></ul><p><strong>4. Response &amp; Integration</strong></p><ul><li>Direct integration with Microsoft Defender portal</li><li>Analyst investigation workflow</li><li>Automated containment actions</li></ul><h3>What I Learned</h3><p>Building this lab gave me practical experience in several important areas:</p><ul><li>Designing proper data collection strategies using Data Collection Rules</li><li>Writing effective KQL queries for threat detection</li><li>Creating automated response workflows using Logic Apps</li><li>Understanding how SIEM and SOAR work together in a real environment</li><li>Integrating security tools with ticketing and collaboration platforms</li></ul><p>This project significantly improved my understanding of cloud security operations and Microsoft Sentinel capabilities.</p><h3>Final Thoughts</h3><p>Creating this SIEM + SOAR lab from scratch was one of the best hands-on learning experiences I’ve had. It helped me move beyond theory and actually implement a functional security operations pipeline in Azure.</p><p>If you’re preparing for Azure security roles or certifications like <strong>SC-200</strong>, I highly recommend building a similar lab. It’s one of the most effective ways to gain practical skills.</p><p>Feel free to ask any questions in the comments — happy to share more details about specific components (DCRs, KQL rules, or Logic Apps playbooks).</p><p><strong>Pulkit Rai</strong> Azure Security | Building Hands-on Security Labs</p><p><em>Thanks for reading! If you found this useful, please like and share.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ff385a8532" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Trust Gap: Why AI.com’s“No Charge” Promise Is Failing in India.]]></title>
            <link>https://medium.com/@pulkitrai/the-trust-gap-why-ai-coms-no-charge-promise-is-failing-in-india-a1e983257dc0?source=rss-b9db85e8e147------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e983257dc0</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Pulkit Rai]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 12:15:29 GMT</pubDate>
            <atom:updated>2026-02-10T12:15:29.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*0KyXtMIiG6xajFbkCSuAug.png" /></figure><h3>The Trust Gap: Why AI.com’s “No Charge” Promise Is Failing in India.</h3><blockquote>Silicon Valley says “We won’t charge you.” The Indian user hears “We’re going to scam you.” Here is why.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*4lg_y9I-p7Ug4vtHpRvHSg.png" /></figure><p>The launch of <strong>ai.com</strong> (the new Personal Agent platform) has hit a massive psychological wall in India. The problem isn’t the technology — it’s the verification screen shown above.</p><p>The UI is standard for a US-based product. It asks for a credit card to verify you are human and explicitly states in small text: <strong>“we will not charge your card.”</strong></p><p>To a Product Manager in San Francisco, this is a reassuring disclaimer. To a user in India, this is a <strong>red flag.</strong></p><p>Here is why this verification strategy is causing a massive drop-off in one of the world’s largest AI markets.</p><h3>1. The “We Will Not Charge” Paradox</h3><p>The screenshot above captures the core disconnect. The company believes that by writing <em>“we will not charge your card,”</em> they have removed the friction.</p><p><strong>The Reality:</strong> Indian digital natives operate in a “Zero Trust” environment. We have been burned by “free trials” that silently turn into auto-deducting subscriptions. We have seen phishing scams that start with “just verify your identity.”</p><p>When an Indian user sees a request for card details on a site they just met:</p><ul><li><strong>The Text Says:</strong> “Zero cost check.”</li><li><strong>The Brain Says</strong>:<em>“If it’s free, why do you need my financial instrument? You are going to auto-debit $99 next month and make it impossible to cancel.”</em></li></ul><p>In India, trust is not given; it is earned. Asking for sensitive financial data <em>before</em> the user has even experienced the product value (the “Aha!” moment) is a conversion killer. The text “we will not charge” is simply not believed.</p><h3>2. The “Student” Problem: You Are Card-Gating Your Best Users</h3><p>Beyond the trust issue, there is a logistical one. Who are the biggest early adopters of AI agents? <strong>Students and Gen Z.</strong></p><ul><li><strong>The Mismatch:</strong> This demographic relies on <strong>UPI (Unified Payments Interface)</strong> and basic Debit Cards (RuPay).</li><li><strong>The Blocker:</strong> Most of these cards are <strong>disabled for international transactions</strong> by default (an RBI regulation).</li></ul><p>Even if a student <em>wants</em> to trust you, and <em>tries</em> to enter their card, the transaction will likely fail. The bank will block the “zero-dollar auth” request from a foreign merchant. <strong>Result:</strong> You aren’t just filtering out bots; you are filtering out 60% of your actual human user base.</p><h3>3. The Fix: Localize Your “Proof of Humanity”</h3><p>If ai.com wants to unlock the Indian market, they need to verify humans using methods that humans in India actually trust and possess.</p><ul><li><strong>Option A: WhatsApp Verification (The Gold Standard)</strong> Everyone has a mobile number. Linking a mobile number via OTP is the standard way Indians verify identity. It feels safe, it’s instant, and it doesn’t touch a bank account.</li><li><strong>Option B: The UPI “Penny Drop”</strong> Instead of a credit card hold, ask the user to pay <strong>₹1 (INR)</strong> via UPI.</li><li><strong>Why it works:</strong> Users are terrified of <em>open-ended</em> access (Credit Cards). They are perfectly fine with <em>closed-ended</em> transactions (sending ₹1). It proves they are human, proves they are solvent, and eliminates the fear of hidden charges.</li></ul><h3>Conclusion</h3><p><strong>To the team at ai.com:</strong> Your disclaimer <em>“we will not charge your card”</em> is invisible to a user base conditioned to fear online fraud.</p><p>You are asking for a level of trust that a new brand hasn’t earned yet. If you want Indian users to claim their handles and train your AI, stop asking for their credit cards. Ask for their phone numbers, or ask for a single Rupee.</p><p><strong>Don’t let a payment gateway become the graveyard of your growth strategy.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e983257dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>