<?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 Tejas C S on Medium]]></title>
        <description><![CDATA[Stories by Tejas C S on Medium]]></description>
        <link>https://medium.com/@tejascs111?source=rss-617ec29b900a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3WiymG3JtazhAwCfVrh9mQ.jpeg</url>
            <title>Stories by Tejas C S on Medium</title>
            <link>https://medium.com/@tejascs111?source=rss-617ec29b900a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:25:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tejascs111/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[Strengthening Your Multi-Cloud Security: A Guide to Microsoft Defender’s Cloud Security Posture…]]></title>
            <link>https://medium.com/kpmg-uk-engineering/strengthening-your-multi-cloud-security-a-guide-to-microsoft-defenders-cloud-security-posture-9e6f55d4fc4d?source=rss-617ec29b900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e6f55d4fc4d</guid>
            <category><![CDATA[cloud-compliance]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[multicloud-security]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[microsoft-defender]]></category>
            <dc:creator><![CDATA[Tejas C S]]></dc:creator>
            <pubDate>Tue, 21 May 2024 17:43:30 GMT</pubDate>
            <atom:updated>2024-05-21T17:43:30.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>Strengthening Your Multi-Cloud Security: A Guide to Microsoft Defender’s Cloud Security Posture Management</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*Rl_i7NaCNgyGJjGcACVtwA.png" /></figure><p>In today’s rapidly evolving cloud landscape, maintaining a strong security posture across multiple cloud environments is crucial. Microsoft Defender for Cloud offers a robust Cloud Security Posture Management (CSPM) solution designed to help organizations safeguard their multi-cloud environments. This solution comes in two flavors: the free Foundational CSPM and the more advanced Defender CSPM, each providing a suite of features tailored to meet different security needs.</p><h3>Understanding Cloud Security Posture Management (CSPM)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-9lcxAlX-XEMfdSfpnsarA.png" /><figcaption>Foundational CSPM vs Defender CSPM</figcaption></figure><p>Microsoft Defender for Cloud offers foundational and advanced cloud security posture management solutions to protect across your multicloud and hybrid environments. Foundational CSPM (for free) provides continuous assessments, security recommendations, Secure Score, and the Microsoft cloud security benchmark across Azure, Amazon Web Services(AWS), and Google Cloud.</p><p>Microsoft Defender CSPM provides advanced security posture capabilities including agentless vulnerability scanning, attack path analysis, integrated data-aware security posture, code to cloud contextualization, and an intelligent cloud security graph.</p><p>CSPM solutions identify and remediate risks across various cloud services, ensuring compliance with security policies and regulatory standards. Microsoft Defender CSPM integrates with Azure, AWS, Google Cloud Platform, and other cloud environments to provide a unified security framework, designed to continuously monitor and improve the security posture of cloud environments.</p><h4>Key Features of Microsoft Defender CSPM</h4><ul><li>Unified Security Management</li><li>Automated Threat Detection and Response</li><li>Compliance Management</li><li>Risk Assessment and Remediation</li><li>Integration with Existing Tools</li></ul><h3>Analyzing Blast Radius with Cloud Security Graph in Microsoft Defender CSPM</h3><p>The Cloud Security Graph in Microsoft Defender CSPM visualizes the relationships between cloud resources, helping to identify and mitigate the potential blast radius of security incidents.</p><p>By mapping these dependencies, it enables proactive isolation and protection of critical assets to reduce the overall impact of breaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Gd5d_9QizRaJ9DXDvnBXQ.png" /></figure><h3>Attack Path Analysis in Microsoft Defender CSPM</h3><p>Attack Path Analysis in Microsoft Defender CSPM identifies potential routes an attacker could exploit to move laterally within your cloud environment.</p><p>By visualizing these paths, it helps in proactively strengthening security controls to prevent unauthorized access and limit the spread of attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VzC8KnGY9QLG5uCCFR4OHw.png" /></figure><h3>Cloud Security Explorer in Microsoft Defender CSPM</h3><p>Cloud Security Explorer in Microsoft Defender CSPM provides an interactive, visual tool to navigate and investigate your cloud environment.</p><p>It allows security teams to explore resource configurations, detect vulnerabilities, and understand security postures using pre-built query templates, enabling proactive identification and remediation of potential risks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94rSEGtAprQ3qYc8ztltmQ.png" /></figure><h3>Driving Security Improvement with Governance in Microsoft Defender CSPM</h3><p>Microsoft Defender CSPM empowers organizations to enhance their security through robust governance features. Security teams can set accountability for recommendations, track progress, and drive owners to action using built-in notification capabilities.</p><p>Additionally, workload owners can focus on specific recommendations that require their attention, ensuring targeted and efficient remediation efforts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgY-BXDtd5z9nJglZQfBPw.png" /></figure><h3>Recommendations in Microsoft Defender CSPM</h3><p>Microsoft Defender CSPM offers tailored recommendations aligned with various regulatory compliance standards, including <strong>NIST SP 800–53 Rev 5, AWS-NIST SP 800–53 Rev 5, GCP-NIST SP 800–53 Rev 5</strong>, and more. By assessing your resources, it provides specific remediation steps and flags them as red or green based on their compliance status, ensuring your cloud environment meets required security standards.</p><p>Following these recommendations not only improves security across all three cloud environments but also helps maintain regulatory compliance and strengthens overall cloud security posture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YF8OnwKGpGuLesA0Vj4IOA.png" /></figure><blockquote><strong>Link :</strong><br> <a href="https://learn.microsoft.com/en-us/azure/governance/policy/samples/nist-sp-800-53-r5">https://learn.microsoft.com/en-us/azure/governance/policy/samples/nist-sp-800-53-r5</a><br><a href="https://docs.aws.amazon.com/pdfs/audit-manager/latest/userguide/user-guide.pdf.pdf#NIST800-53r5">https://docs.aws.amazon.com/pdfs/audit-manager/latest/userguide/user-guide.pdf.pdf#NIST800-53r5</a></blockquote><h3>Security Posture Feature in Microsoft Defender CSPM</h3><p>The Security Posture feature in Microsoft Defender CSPM provides a comprehensive overview of your organization’s security across all three cloud environments — Azure, AWS, and GCP — once onboarded.</p><p>It showcases the secure score and environment risk, categorizing recommendations by severity (Critical, High, Medium, Low, Not Evaluated). Additionally, it highlights the environments where CSPM is onboarded, identifies unhealthy resources, visualizes attack paths, and offers actionable recommendations to strengthen your security posture effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_00OIc0RGDENCbZPmVi9Pg.png" /></figure><h3>Compliance Assessment and Management in Microsoft Defender CSPM</h3><p>Microsoft Defender CSPM offers robust capabilities for assessing and managing compliance across your cloud environments:</p><ol><li><strong>Assess and Manage Compliance Status:</strong> Utilize Defender CSPM to assess and manage your organization’s compliance status with various regulatory standards and industry benchmarks. It provides comprehensive visibility into compliance posture and offers remediation guidance to address any gaps.</li><li><strong>Cloud Security Benchmark:</strong> Leverage the Cloud Security Benchmark provided by Defender CSPM to measure your organization’s adherence to industry best practices and security standards. This benchmark helps in evaluating security posture across multiple dimensions and aligning with leading security frameworks.</li><li><strong>Custom Recommendations and Standards:</strong> Customize compliance assessments and standards to align with your organization’s specific requirements and regulatory obligations. Defender CSPM allows you to create and implement custom recommendations and standards tailored to your unique cloud environment and compliance needs.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97eoRqlMTpchmycL0wq2HA.png" /></figure><h3>Data-aware security posture</h3><p>Microsoft Defender CSPM empowers organizations to enhance their data-aware security posture through a streamlined process:</p><ol><li><strong>Onboard:</strong> Seamlessly onboard your cloud environments onto Defender CSPM to initiate comprehensive security monitoring and management.</li><li><strong>Auto-discover:</strong> Automatically discover and classify sensitive data within your cloud infrastructure using Defender CSPM’s advanced data discovery capabilities. Gain insights into data flows and storage locations to understand potential risks.</li><li><strong>Uncover Risks:</strong> Identify and assess data-related risks across your cloud environments. Defender CSPM provides proactive risk assessment tools to uncover vulnerabilities, misconfigurations, and potential threats to sensitive data.</li><li><strong>Remediate Risks:</strong> Take swift action to remediate identified risks and strengthen your data security posture. Leveraging Defender CSPM’s remediation capabilities, implement security controls, apply access restrictions, and enforce encryption to mitigate risks effectively.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yG0wZ8O7aooD8PMN3cd9bQ.png" /><figcaption>Strengthen cloud data security posture by uncovering the cloud data estate and risks to data breaches</figcaption></figure><h3>Defender CSPM pricing guidance</h3><p>Pricing is dependent on cloud size, with billing based only on only Server, Storage account, and Database counts.</p><p>Additionally, it includes DevOps security capabilities to empower security teams to manage DevOps security across multi-pipeline environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dCYdeNsqXaaj1_DTZzqH7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m9qowQW47oITx6myPxy8Pw.png" /></figure><h3>Cloud workload protection plans</h3><p>Microsoft Defender for Cloud provides cloud workload protection to help organisations quickly prevent, detect, and respond to modern threats across multi-cloud and hybrid environments. Get advanced threat protection capabilities to secure critical workloads across virtual machines (VMs), containers, databases, storage, app services, APIs, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wd2sBDd3TJ1O_-uI82mgTw.png" /></figure><h3>Conclusion</h3><p>Microsoft Defender CSPM provides powerful tools to protect your cloud security across multi-cloud environments. With advanced features like agentless scanning, intelligent security graph synthesis, and prioritized risk analysis, it provides a comprehensive framework to proactively safeguard against emerging threats and ensure the resilience of cloud infrastructures.</p><p><em>Thanks for your time, see you on the next one. Happy Learning !</em></p><blockquote><strong><em>Connect with me on LinkedIn:</em></strong><em><br></em><a href="https://www.linkedin.com/in/tejas-c-s-439a021b1/">https://www.linkedin.com/in/tejas-c-s-439a021b1/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e6f55d4fc4d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kpmg-uk-engineering/strengthening-your-multi-cloud-security-a-guide-to-microsoft-defenders-cloud-security-posture-9e6f55d4fc4d">Strengthening Your Multi-Cloud Security: A Guide to Microsoft Defender’s Cloud Security Posture…</a> was originally published in <a href="https://medium.com/kpmg-uk-engineering">KPMG UK Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Refine Your Pricing Strategy: Tailoring Defender for Servers P1 or P2 on Specific Resources…]]></title>
            <link>https://medium.com/kpmg-uk-engineering/refine-your-pricing-strategy-tailoring-defender-for-servers-p1-or-p2-on-specific-resources-ab16ea4e46de?source=rss-617ec29b900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab16ea4e46de</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[microsoft-defender]]></category>
            <category><![CDATA[cost-optimization]]></category>
            <category><![CDATA[pricing-strategy]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Tejas C S]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 09:00:58 GMT</pubDate>
            <atom:updated>2024-03-20T16:17:39.332Z</atom:updated>
            <content:encoded><![CDATA[<h3>Refine Your Pricing Strategy: Tailoring Defender for Servers P1 or P2 on Specific Resources, including Subscription Level pricing plan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*Zfdx3D4J4LD8gv7_m5GzwQ.png" /><figcaption>Optimizing Azure resource costs</figcaption></figure><p>Picture Defender for Servers as your trusty guardian, watching over all your Azure VMs and Azure Arc-enabled Servers across your subscription. But in the world of cybersecurity, things aren’t always straightforward. Sometimes, you need to get specific. Maybe you want to tweak the protection on certain machines, like switching from a heavy-duty security plan to a lighter one, or only turning it on for certain servers.</p><p>In response to user needs, Microsoft has made a big change to how Microsoft Defender for Cloud works, especially with the Defender for Server P1 and P2 plans. Before, you could only activate these plans for your whole subscription. But now, Microsoft has given you the ability to activate them for individual servers too. There are scenarios in which it makes sense to downgrade individual machines from Defender for Servers Plan 2 to Plan 1, or only enable Defender for Servers Plan 1 on a subset of machines in a subscription. This means you can adjust your security exactly how you want it. The basic rules of keeping your subscription safe and sticking to the big security plan still matter. This change just gives you more options:</p><ul><li>Customize security settings for individual servers, enabling precise adjustments comparable to fine-tuning a machine’s operation.</li><li>Selectively designate the level of protection for each server, ensuring tailored security measures are applied where needed.</li><li>Maintain alignment with the main security plan while implementing these granular adjustments.</li></ul><h3>Section 1 : Enabling Microsoft defender for servers at the granular level covering Azure VM and Azure Arc Machines via Powershell method</h3><h4>Initialization and Azure Authentication:</h4><p>In this section, we initialize parameters, set up variable initialization, install and import necessary modules, and authenticate to Azure and retrieve access tokens, ensuring that we’re ready to interact with Azure resources securely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJRD4asnsAs7dx5C2Yb3-g.png" /></figure><h4>Resource Retrieval (Tag-based)</h4><p>The script retrieves Azure resources based on specific tags, such as environment: PROD. It fetches both virtual machines and Azure Arc-enabled machines tagged with the specified criteria.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IESGucgaGhTtDU0PSVkDGA.png" /></figure><h4>Outputting the resources</h4><p>This snippet displays a summary of the discovered resources, including virtual machines and Azure Arc-enabled servers. It provides a clear overview of the resources present in the Azure environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJGPCsBOzIttrBDmewv3lg.png" /></figure><h4>Pricing Plan Configuration</h4><p>The script allows users to specify a pricing tier (Free or Standard) for the resources. Based on the provided tier, it enables or disables pricing plans accordingly.</p><blockquote>$PricingTier = ‘Standard’</blockquote><p>Setting PricingTier to Standard enables the P1 Pricing plan on the targeted resources (Tag Based)</p><h4>Updating Pricing Configuration</h4><p>For each resource, the script updates the pricing configuration by sending REST API requests to Azure. It iterates through each resource, applies the designated pricing tier settings, and handles any errors encountered during the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3zsK1D_eEsktISe-uJdtWg.png" /></figure><h4>Error Handling</h4><p>The script incorporates error handling mechanisms to manage exceptions during resource retrieval and pricing configuration updates. It provides informative error messages to assist users in troubleshooting issues effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MAq-IxjgbdgsxeyW2RuSTA.png" /></figure><p>By integrating these sections of code into the blog post, users can gain a comprehensive understanding of how the PowerShell script manages Azure resource pricing plans at the resource level.</p><h4>Pricing Results Summary and Subplan Output</h4><p>After retrieving the resource pricing information, let’s summarize the results and display the pricing plan details for each resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RiP7gYo0fr-AtEPQK2WZNQ.png" /></figure><p>In this section, we provide a comprehensive summary of the pricing results, including the counts of virtual machines and Azure Arc-enabled servers found, along with the success and failure counts for setting them. Additionally, we output the pricing plan details for each resource, including virtual machines and Azure Arc-enabled servers, if available.</p><h4>Summary of the Pricing result and verifying the status on the Portal</h4><p>Added tags to the required Azure Virtual Machines (VMs) and Azure Arc-enabled machines</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8VwGofqXxMlpkVs7Hl_ZSg.png" /><figcaption>Summary of the Pricing results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITLSDxAkyXmvghs9Q7oKjw.png" /><figcaption>Azure Virtual Machines</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i0xv_CMcJgP29pKKU0__Q.png" /><figcaption>Azure Arc-enabled machines</figcaption></figure><blockquote><em>Note : </em><em>Resource level pricing is currently available only for </em><strong><em>P1 sub plan</em></strong><em>. If you want to enable P2 Pricing Plan on the resources, you can do it via Subscription level. I&#39;ve uploaded the code for implementing subscription-level/ Resouce-level pricing plan to the following Github repository :</em><a href="https://github.com/tejascs57/Microsoft-Defender-For-Cloud.git">https://github.com/tejascs57/Microsoft-Defender-For-Cloud.git</a></blockquote><h3>Section 2 : Implementing Azure Subscription-Level Pricing Plans with PowerShell</h3><h4>Initialization and Azure Authentication</h4><p>In this section, we initialize parameters, set up variable initialization, install and import necessary modules, and authenticate to Azure and retrieve access tokens, ensuring that we’re ready to interact with Azure resources securely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJRD4asnsAs7dx5C2Yb3-g.png" /></figure><h4>Resource Retrieval and Machine Enumeration Summary</h4><p>This section encompasses fetching information about all virtual machines and Azure Arc-enabled machines within the specified resource group. It also handles any errors that may occur during this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0DhghiELB0h-s3qfmNJ_A.png" /></figure><h4>Pricing Plan Configuration</h4><p>This section deals with updating the pricing configuration on the subscription level based on specified criteria such as the pricing tier and subplan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JNm2OYmBF2rca9mceK6FIw.png" /></figure><h4>Azure VM’s and Arc-enabled Server Pricing Plan Details</h4><p>This section retrieves and displays pricing plan details for each Azure VM and each Azure Arc-enabled server found in the resource group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aN638ClY4TD-I9Amh75Viw.png" /></figure><p>This section provides a comprehensive overview of how pricing plan details are fetched and displayed for both Azure VMs and Azure Arc-enabled servers.</p><blockquote>In the event that the value of the $PricingTier variable is designated as &#39;Free&#39;, the script is programmed to deactivate the pricing plan by adjusting the pricing tier settings accordingly</blockquote><h4>Summary of the Pricing result and verifying the status on the Portal</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*4mSR7cXhvY5sGfIpOBM5-g.png" /><figcaption>Summary of the Pricing results</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKUGTTO9eoJes5WvaqZLsA.png" /><figcaption>P2 Pricing Plan has been enabled on the subscription level</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbSfqd7dswceu5Ek-7Lvrg.png" /><figcaption>Workbooks | Coverage</figcaption></figure><h3>Section 3 : Downgrading Pricing Plan and Targeting Specific Resources</h3><p>When downgrading the pricing plan and targeting specific resources, it’s essential to ensure that the enforce parameter in the $pricingBody is set to <strong>False</strong> to allow the downgrade and disable the pricing plan for Azure VMs and ARC machines. Below is a snippet of the script illustrating this process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YijKeR7a8UJ7d6xh3NUpQg.png" /></figure><p>This section of the script effectively handles the process of downgrading the pricing plan from P2 to P1 and enabling or disabling the pricing plan for Azure VMs and ARC machines based on the specified conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*57GwP1fbTgYQDsMHWdPkLA.png" /><figcaption>Downgrading the Pricing Plan for required resources</figcaption></figure><h4>Conclusion</h4><p>Managing Azure subscription-level &amp; Resource-level pricing plans with PowerShell offers a powerful solution for optimizing costs and resource allocation in cloud environments, enabling more efficient and cost-effective operations.</p><p><em>Happy Learning !</em></p><p><em>You can find the code in the below link : </em><br><a href="https://github.com/tejascs57/Microsoft-Defender-For-Cloud.git">https://github.com/tejascs57/Microsoft-Defender-For-Cloud.git</a></p><p><em>Follow me on LinkedIn:<br></em><a href="https://www.linkedin.com/in/tejas-c-s-439a021b1/">https://www.linkedin.com/in/tejas-c-s-439a021b1/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab16ea4e46de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kpmg-uk-engineering/refine-your-pricing-strategy-tailoring-defender-for-servers-p1-or-p2-on-specific-resources-ab16ea4e46de">Refine Your Pricing Strategy: Tailoring Defender for Servers P1 or P2 on Specific Resources…</a> was originally published in <a href="https://medium.com/kpmg-uk-engineering">KPMG UK Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Azure Sentinel Workflows: A Deep Dive into Logic Apps, API Connections, and Custom…]]></title>
            <link>https://medium.com/kpmg-uk-engineering/automating-azure-sentinel-workflows-a-deep-dive-into-logic-apps-api-connections-and-custom-ea24e851c031?source=rss-617ec29b900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea24e851c031</guid>
            <dc:creator><![CDATA[Tejas C S]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 15:17:21 GMT</pubDate>
            <atom:updated>2024-01-18T12:38:08.001Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automating Azure Sentinel Workflows: A Deep Dive into Logic Apps, API Connections, and Custom Triggers</h3><p>Simplify Security with Logic: A Step-by-Step Journey into Azure Sentinel Automation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*lc-1j-nligOCIXQyCPrzcA.jpeg" /></figure><h3>Overview</h3><p>Azure Logic Apps is a cloud-based service that allows you to build and orchestrate scalable workflows for integrating applications, data, systems, and services across cloud and on-premises environments. Logic Apps provide a visual designer for creating workflows, making it easy to design, automate, and manage complex business processes.</p><h4><strong>Key Concepts:</strong></h4><p><strong>Workflow</strong>: A Logic App workflow is a series of steps that define the automation process. It consists of triggers, actions, and control flow.</p><p><strong>Triggers</strong>: Triggers define the event or condition that starts the execution of a Logic App. They can be based on various events, such as HTTP requests, timer schedules, or external services like Azure Sentinel incidents.</p><p><strong>Actions</strong>: Actions are the individual steps within a Logic App workflow. Each action performs a specific operation, such as sending an email, updating a database, or making an HTTP request.</p><h3>API Connections:</h3><p>API connections in Azure Logic Apps provide a secure and standardized way to connect to external services, APIs, or systems. They encapsulate the connection details and authentication parameters required to interact with the target service.</p><h4><strong>Key Concepts:</strong></h4><p><strong>Managed API:</strong> Azure Sentinel leverages managed APIs, which are pre-configured connectors to various services. In this case, the azuresentinel managed API are preconfigured connectors serve as gateways, streamlining the connection process and simplifying integration with Azure Sentinel.</p><p><strong>Authentication: </strong>API connections handle authentication details, such as client ID, client secret, and tenant ID, providing a secure way to interact with external services.</p><h4>Section 1: Setting the Foundation with Managed API</h4><p>To kickstart our automation journey, we begin by referencing the necessary managed API and configuring the client settings. The following data blocks ensure that we have the essential groundwork for creating a seamless connection to Azure Sentinel.</p><pre>data &quot;azurerm_client_config&quot; &quot;current&quot; {}<br><br>data &quot;azurerm_managed_api&quot; &quot;azuresentinel&quot; {<br>  name     = &quot;azuresentinel&quot;<br>  location = var.location<br>}</pre><p>In these blocks, we extract client configuration details and retrieve information about the Azure Sentinel managed API, setting the stage for subsequent resource creation.</p><h4>Section 2: Establishing the API Connection</h4><p>Establishing the API connection for Azure Sentinel, ensures a secure bridge between our Logic App and these services. In this process, we define authentication parameters and connection specifics, enabling seamless and authenticated interactions with Azure Sentinel</p><pre>resource &quot;azurerm_api_connection&quot; &quot;sentinel_api_connection&quot; {<br>  name                = &quot;qcyber-sentinel-api-connection&quot;<br>  resource_group_name = var.resource_group_name<br>  managed_api_id      = data.azurerm_managed_api.azuresentinel.id<br>  display_name        = &quot;qcyber-sentinel-automation&quot;<br><br>  parameter_values = {<br>    &quot;token:TenantId&quot;     = data.azurerm_client_config.current.tenant_id,<br>    &quot;token:clientId&quot;     = data.azurerm_client_config.current.client_id,<br>    &quot;token:clientSecret&quot; = var.client_secret,<br>    &quot;token:resourceUri&quot;  = &quot;https://management.core.windows.net/&quot;,<br>    &quot;token:grantType&quot;    = &quot;client_credentials&quot;<br>  }<br><br>  lifecycle {<br>    ignore_changes = [<br>      parameter_values<br>    ]<br>  }<br>}</pre><p>This resource block encapsulates the configuration details for our API connection, ensuring a secure and authenticated link to Azure Sentinel.</p><h4>Section 3: Crafting the Logic App Workflow</h4><p>With the foundational elements in place, we proceed to construct our automated workflow using Azure Logic Apps through the definition of a primary resource block.</p><pre>resource &quot;azurerm_logic_app_workflow&quot; &quot;sentinel_case_log_la&quot; {<br>  name                = &quot;sentinel-case-log-la&quot;<br>  location            = var.location<br>  resource_group_name = var.resource_group_name<br>  depends_on          = [azurerm_api_connection.sentinel_api_connection]<br><br>  workflow_parameters = {<br>    &quot;$connections&quot; = jsonencode({<br>      &quot;defaultValue&quot; : {},<br>      &quot;type&quot; : &quot;Object&quot;<br>    })<br>  }<br><br>  parameters = {<br>    &quot;$connections&quot; = jsonencode({<br>      &quot;azuresentinel_1&quot; : {<br>        &quot;connectionId&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.id}&quot;,<br>        &quot;connectionName&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.display_name}&quot;,<br>        &quot;id&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.managed_api_id}&quot;,<br>        &quot;clarityApiDomain&quot; : &quot;${var.clarityApiDomain}&quot;,<br>        &quot;clarityWebhookCode&quot; : &quot;${var.clarityWebhookCode}&quot;,<br>        &quot;clarityCustomerCode&quot; : &quot;${var.clarityCustomerCode}&quot;,<br>        &quot;clarityCustomerSecret&quot; : &quot;${var.clarityCustomerSecret}&quot;<br>      }<br>    })<br>  }<br>}</pre><p>This block outlines the fundamental parameters and dependencies that characterize the central structure of the Logic App. including API connection and specific variables crucial for seamless integration.</p><h4>Section 4: Custom Trigger for Sentinel Incidents</h4><p>A Logic App is only as powerful as its triggers. In this section, we define a custom trigger that responds specifically to Azure Sentinel incidents.</p><pre>resource &quot;azurerm_logic_app_trigger_custom&quot; &quot;sentinel_case_log_la_trigger&quot; {<br>  name         = &quot;When_Azure_Sentinel_incident_creation_rule_was_triggered&quot;<br>  logic_app_id = azurerm_logic_app_workflow.sentinel_case_log_la.id<br>  depends_on   = [azurerm_logic_app_workflow.sentinel_case_log_la_la]<br><br>  body = &lt;&lt;BODY<br>{<br>    &quot;type&quot;: &quot;ApiConnectionWebhook&quot;,<br>    &quot;inputs&quot;: {<br>    &quot;body&quot;: {<br>        &quot;callback_url&quot;: &quot;@{listCallbackUrl()}&quot;<br>    },<br>    &quot;host&quot;: {<br>        &quot;connection&quot;: {<br>        &quot;name&quot;: &quot;@parameters(&#39;$connections&#39;)[&#39;azuresentinel_1&#39;][&#39;connectionId&#39;]&quot;<br>        }<br>    },<br>    &quot;path&quot;: &quot;/incident-creation&quot;<br>    }<br>}<br>BODY<br>}</pre><p>This resource block defines a trigger which is a custom webhook triggered by Azure Sentinel incidents. The Logic App listens for specific events and initiates the workflow when an incident is created. by utilizing an API connection webhook, ensuring a targeted and efficient workflow.</p><h4>Section 5: Custom Actions for Intelligent Response</h4><p>Automating incident response requires intelligent actions. Here, we define custom actions within our Logic App to handle incidents based on specified conditions.</p><pre>resource &quot;azurerm_logic_app_action_custom&quot; &quot;should_be_ingested_action&quot; {<br>  name         = &quot;Should_be_ingested&quot;<br>  logic_app_id = azurerm_logic_app_workflow.sentinel_case_log_la.id<br>  depends_on   = [azurerm_logic_app_workflow.sentinel_case_log_la]<br><br>  body = &lt;&lt;BODY<br>{<br>  &quot;expression&quot;: {<br>    &quot;and&quot;: [<br>      {<br>        &quot;not&quot;: {<br>          &quot;equals&quot;: [<br>            &quot;@triggerBody()?[&#39;object&#39;]?[&#39;properties&#39;]?[&#39;severity&#39;]&quot;,<br>            &quot;Informational&quot;<br>          ]<br>        }<br>      }<br>    ]<br>  },<br>  &quot;runAfter&quot;: {},<br>  &quot;type&quot;: &quot;If&quot;,<br>  &quot;actions&quot;: {<br>    &quot;Add_comment_to_incident_(V3)&quot;: {<br>      &quot;runAfter&quot;: {<br>        &quot;Compose&quot;: [<br>          &quot;Succeeded&quot;<br>        ]<br>      },<br>      &quot;type&quot;: &quot;ApiConnection&quot;,<br>      &quot;inputs&quot;: {<br>        &quot;body&quot;: {<br>          &quot;incidentArmId&quot;: &quot;@triggerBody()?[&#39;object&#39;]?[&#39;id&#39;]&quot;,<br>          &quot;message&quot;: &quot;&lt;p&gt;This Azure Sentinel incident has been logged for review by the Cyber Security Operations Centre, ticket number @{outputs(&#39;Compose&#39;)}. Please see &lt;url&gt; for more information.&lt;/p&gt;&quot;<br>        },<br>        &quot;host&quot;: {<br>          &quot;connection&quot;: {<br>            &quot;name&quot;: &quot;@parameters(&#39;$connections&#39;)[&#39;azuresentinel_1&#39;][&#39;connectionId&#39;]&quot;<br>          }<br>        },<br>        &quot;method&quot;: &quot;post&quot;,<br>        &quot;path&quot;: &quot;/Incidents/Comment&quot;<br>      }<br>    },<br>    &quot;Compose&quot;: {<br>      &quot;runAfter&quot;: {<br>        &quot;Parse_JSON&quot;: [<br>          &quot;Succeeded&quot;<br>        ]<br>      },<br>      &quot;type&quot;: &quot;Compose&quot;,<br>      &quot;inputs&quot;: &quot;@body(&#39;Parse_JSON&#39;)?[&#39;jira&#39;]?[&#39;key&#39;]&quot;<br>    },<br>    &quot;HTTP_Webhook&quot;: {<br>      &quot;runAfter&quot;: {},<br>      &quot;type&quot;: &quot;HttpWebhook&quot;,<br>      &quot;runtimeConfiguration&quot;: {<br>        &quot;secureData&quot;: {<br>          &quot;properties&quot;: [<br>            &quot;inputs&quot;,<br>            &quot;outputs&quot;<br>          ]<br>        }<br>      },<br>      &quot;inputs&quot;: {<br>        &quot;subscribe&quot;: {<br>          &quot;body&quot;: {<br>            &quot;CallBackURL&quot;: &quot;@listCallbackUrl()&quot;,<br>            &quot;Incident&quot;: &quot;@triggerBody()&quot;<br>          },<br>          &quot;method&quot;: &quot;POST&quot;,<br>          &quot;uri&quot;: &quot;${var.uri}&quot;<br>        },<br>        &quot;unsubscribe&quot;: {}<br>      }<br>    },<br>    &quot;Parse_JSON&quot;: {<br>      &quot;runAfter&quot;: {<br>        &quot;HTTP_Webhook&quot;: [<br>          &quot;Succeeded&quot;<br>        ]<br>      },<br>      &quot;type&quot;: &quot;ParseJson&quot;,<br>      &quot;inputs&quot;: {<br>        &quot;content&quot;: &quot;@body(&#39;HTTP_Webhook&#39;)&quot;,<br>        &quot;schema&quot;: {<br>          &quot;properties&quot;: {<br>            &quot;clarity&quot;: {<br>              &quot;properties&quot;: {<br>                &quot;id&quot;: {<br>                  &quot;type&quot;: &quot;string&quot;<br>                }<br>              },<br>              &quot;type&quot;: &quot;object&quot;<br>            },<br>            &quot;jira&quot;: {<br>              &quot;properties&quot;: {<br>                &quot;id&quot;: {<br>                  &quot;type&quot;: &quot;string&quot;<br>                },<br>                &quot;key&quot;: {<br>                  &quot;type&quot;: &quot;string&quot;<br>                },<br>                &quot;self&quot;: {<br>                  &quot;type&quot;: &quot;string&quot;<br>                }<br>              },<br>              &quot;type&quot;: &quot;object&quot;<br>            }<br>          },<br>          &quot;type&quot;: &quot;object&quot;<br>        }<br>      }<br>    }<br>  }<br>}<br>BODY<br>}</pre><p>This block defines intelligent actions within the Logic App, ensuring a dynamic and context-aware incident response.</p><ul><li>Checks the severity of the incident and proceeds only if the severity is not “Informational.”</li><li>Posts a comment to the incident, providing information for review by the Cyber Security Operations Centre (SOC).</li><li>Makes an HTTP request to an external system, subscribing and unsubscribing to a webhook.</li></ul><h4>Section 6: Monitoring and Diagnostics</h4><p>The final piece of the code involves setting up monitoring and diagnostics for our Logic App. This resource block configures diagnostic settings to capture runtime behavior logs and metrics.</p><pre>resource &quot;azurerm_monitor_diagnostic_setting&quot; &quot;sentinel_case_log_la_diagnostics_settings&quot; {<br>  depends_on                 = [azurerm_logic_app_workflow.sentinel_case_log_la]<br>  name                       = &quot;sentinel_case_log_la_diagnostics_settings&quot;<br>  target_resource_id         = azurerm_logic_app_workflow.sentinel_case_log_la.id<br>  log_analytics_workspace_id = var.log_analytics_workspace_id<br><br>  enabled_log {<br>    category = &quot;WorkflowRuntime&quot;<br>  }<br><br>  metric {<br>    category = &quot;AllMetrics&quot;<br>  }<br>}</pre><p>This resource block ensures that we have comprehensive insights into the performance and behavior of our Logic App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCRRAyAMVGSoHEMSz8U7BA.png" /><figcaption>Finalized sentinel-case-log-la logic app workflow</figcaption></figure><h4>Section 7: Enhancing Incident Closure Automation</h4><p>To complete our automated incident response framework, let’s introduce an additional Logic App tailored for incident closure.</p><pre>resource &quot;azurerm_logic_app_workflow&quot; &quot;sentinel_case_close_la&quot; {<br>  name                = &quot;sentinel-case-close-la&quot;<br>  location            = var.location<br>  resource_group_name = var.resource_group_name<br>  depends_on          = [azurerm_api_connection.sentinel_api_connection]<br><br>  workflow_parameters = {<br>    &quot;$connections&quot; = jsonencode({<br>      &quot;defaultValue&quot; : {},<br>      &quot;type&quot; : &quot;Object&quot;<br>    })<br>  }<br><br>  parameters = {<br>    &quot;$connections&quot; = jsonencode({<br>      &quot;azuresentinel_1&quot; : {<br>        &quot;connectionId&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.id}&quot;,<br>        &quot;connectionName&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.display_name}&quot;,<br>        &quot;id&quot; : &quot;${azurerm_api_connection.sentinel_api_connection.managed_api_id}&quot;<br>      }<br>    })<br>  }<br>}</pre><p>This block introduces a new Logic App specifically designed for incident closure, providing a comprehensive solution for end-to-end incident management.</p><h4>Section 8: Custom Trigger for Incident Closure</h4><p>As with incident creation, incident closure requires a trigger. Here, we define a custom trigger that responds to HTTP requests for incident closure.</p><pre>resource &quot;azurerm_logic_app_trigger_custom&quot; &quot;sentinel_case_close_la_trigger&quot; {<br>  name         = &quot;When_a_HTTP_request_is_received&quot;<br>  logic_app_id = azurerm_logic_app_workflow.sentinel_case_close_la.id<br>  depends_on   = [azurerm_logic_app_workflow.sentinel_case_close_la]<br><br>  body = &lt;&lt;BODY<br>{<br>    &quot;type&quot;: &quot;Request&quot;,<br>    &quot;kind&quot;: &quot;Http&quot;,<br>    &quot;inputs&quot;: {<br>    &quot;schema&quot;: {<br>        &quot;properties&quot;: {<br>        &quot;alertId&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;classification&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;reason&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;resourceGroup&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;subscriptionId&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        },<br>        &quot;workspaceId&quot;: {<br>            &quot;type&quot;: &quot;string&quot;<br>        }<br>        },<br>        &quot;type&quot;: &quot;object&quot;<br>    }<br>    }<br>}<br>BODY<br>}</pre><p>This resource block defines a trigger for incident closure, ensuring that the Logic App responds appropriately to external requests for closing incidents.</p><h4>Section 9: Custom Action for Incident Closure</h4><p>Closing an incident involves specific actions. Let’s define a custom action within our Logic App to handle incident closure based on the provided parameters.</p><pre>resource &quot;azurerm_logic_app_action_custom&quot; &quot;sentinel_case_close_la_action&quot; {<br>  name         = &quot;Update_incident&quot;<br>  logic_app_id = azurerm_logic_app_workflow.sentinel_case_close_la.id<br>  depends_on   = [azurerm_logic_app_workflow.sentinel_case_close_la]<br><br>  body = &lt;&lt;BODY<br>{<br>    &quot;runAfter&quot;: {},<br>    &quot;type&quot;: &quot;ApiConnection&quot;,<br>    &quot;inputs&quot;: {<br>    &quot;body&quot;: {<br>        &quot;classification&quot;: {<br>        &quot;ClassificationAndReason&quot;: &quot;@triggerBody()?[&#39;classification&#39;]&quot;,<br>        &quot;ClassificationReasonText&quot;: &quot;@triggerBody()?[&#39;reason&#39;]&quot;<br>        },<br>        &quot;incidentArmId&quot;: &quot;@triggerBody()?[&#39;alertId&#39;]&quot;,<br>        &quot;ownerAction&quot;: &quot;Unassign&quot;,<br>        &quot;status&quot;: &quot;Closed&quot;<br>    },<br>    &quot;host&quot;: {<br>        &quot;connection&quot;: {<br>        &quot;name&quot;: &quot;@parameters(&#39;$connections&#39;)[&#39;azuresentinel_1&#39;][&#39;connectionId&#39;]&quot;<br>        }<br>    },<br>    &quot;method&quot;: &quot;put&quot;,<br>    &quot;path&quot;: &quot;/Incidents&quot;<br>    }<br>}<br>BODY<br>}</pre><p>This block defines a custom action for incident closure, ensuring that the Logic App updates the incident status and classification based on the provided parameters.</p><ul><li>Updates the status and classification of the incident to “Closed” based on parameters provided in the HTTP request.</li><li>Performs actions such as unassigning the incident and updating the classification reasons.</li></ul><h4>Section 10: Monitoring and Diagnostics for Incident Closure</h4><p>To complete our incident closure framework, let’s configure monitoring and diagnostics for the Logic App handling incident closure.</p><pre>resource &quot;azurerm_monitor_diagnostic_setting&quot; &quot;sentinel_case_close_la_diagnostics_settings&quot; {<br>  depends_on                 = [azurerm_logic_app_workflow.sentinel_case_close_la]<br>  name                       = &quot;sentinel_case_close_la_diagnostics_settings&quot;<br>  target_resource_id         = azurerm_logic_app_workflow.sentinel_case_close_la.id<br>  log_analytics_workspace_id = var.log_analytics_workspace_id<br><br>  enabled_log {<br>    category = &quot;WorkflowRuntime&quot;<br>  }<br><br>  metric {<br>    category = &quot;AllMetrics&quot;<br>  }<br>}</pre><p>This resource block ensures that we have comprehensive insights into the performance and behavior of the Logic App handling incident closure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sn8INGapgCrEJf4d5AzkSw.png" /><figcaption>Finalized sentinel-case-close-la logic app workflow</figcaption></figure><p>In summary, this guide provides a detailed exploration of automating Azure Sentinel workflows with Logic Apps, custom triggers, and API connections. Leveraging these tools empowers security operations to enhance efficiency and responsiveness and overall cybersecurity</p><p><em>Thanks for your time. Happy Learning !</em></p><p><em>Follow me on LinkedIn:<br></em><a href="https://www.linkedin.com/in/tejas-c-s-439a021b1/"><em>https://www.linkedin.com/in/tejas-c-s-439a021b1/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea24e851c031" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kpmg-uk-engineering/automating-azure-sentinel-workflows-a-deep-dive-into-logic-apps-api-connections-and-custom-ea24e851c031">Automating Azure Sentinel Workflows: A Deep Dive into Logic Apps, API Connections, and Custom…</a> was originally published in <a href="https://medium.com/kpmg-uk-engineering">KPMG UK Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>