Giter Site home page Giter Site logo

Comments (3)

bisskar avatar bisskar commented on June 29, 2024

I was able to deploy template using following code:

resource "azapi_resource" "PreviewMicrosoftDefenderThreatIntelligenceAnalytics" {            
            type = "Microsoft.SecurityInsights/alertRules@2023-02-01-preview"            
            name = "0dd422ee-e6af-4204-b219-f59ac172e4c6"
            parent_id = var.sentinel_workspace_id
            body = jsonencode({
                    kind = "ThreatIntelligence"
                    properties = {
                         alertRuleTemplateName = "0dd422ee-e6af-4204-b219-f59ac172e4c6"
                         enabled = true
                         severity = "Medium"   
                         tactics = ["Persistence", "LateralMovement"]
                         techniques = []
                         displayName = "(Preview) Microsoft Defender Threat Intelligence Analytics"                                      
                    }
            })
            schema_validation_enabled = false
        }

However, seems that bypassing schema validation is not a way to go, rule is broken, screenshots from "editing"

How it looks:

1
2
x23

How it should look:

x1
x2

from azure-sentinel.

bisskar avatar bisskar commented on June 29, 2024

Solved, sorry for bothering.

resource "azapi_resource" "PreviewMicrosoftDefenderThreatIntelligenceAnalytics" {            
            type = "Microsoft.SecurityInsights/alertRules@2023-02-01-preview"            
            name = "0dd422ee-e6af-4204-b219-f59ac172e4c6"
            parent_id = var.sentinel_workspace_id
            body = jsonencode({
                    kind = "ThreatIntelligence"
                    properties = {
                         alertRuleTemplateName = "0dd422ee-e6af-4204-b219-f59ac172e4c6"
                         enabled = true                         
                         description = <<EOF
                         This rule generates an alert when a Microsoft Defender Threat Intelligence Indicator gets matched with your event logs. The alerts are very high fidelity.
                         EOF
                         enabled = true                          
                         tactics = ["Persistence", "LateralMovement"]
                         techniques = []
                         displayName = "(Preview) Microsoft Defender Threat Intelligence Analytics"
                         severity = "Medium"
                    }
            })
            schema_validation_enabled = false            
        }
        

from azure-sentinel.

bisskar avatar bisskar commented on June 29, 2024

Bypassing schema validation works.

schema_validation_enabled = false

from azure-sentinel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.