Close MCAS alert via API

%3CLINGO-SUB%20id%3D%22lingo-sub-1945149%22%20slang%3D%22en-US%22%3EClose%20MCAS%20alert%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1945149%22%20slang%3D%22en-US%22%3E%3CPRE%3E%3CSPAN%3EGood%20afternoon%20people.%0A%0AI%20am%20drawing%20a%20flow%20in%20the%20Logic%20App%20to%20close%20the%20alert%20in%20MCAS.%0A%0AI%20have%20little%20experience%20with%20API%20and%20would%20like%20to%20get%20help.%0A%0AI%20was%20using%20the%20API%20call%20via%20the%20path%20%5B%0A%5BXXXX.us3.portal.cloudappsecurity.com%2Fapi%2Fv1%2Falerts%2FID_ALERT%2Fdismiss%2F%5Dto%20end%20the%20alert%20as%20a%20false%20positive.%0A%0AThe%20documentation%20updated%20and%20reported%20that%20this%20feature%20is%20obsolete%2C%0Apassing%20using%20the%20path%20%5Bapi%20%2F%20v1%20%2F%20alerts%20%2F%20close_false_positive%20%2F%5D%20with%20filters%2C%20as%20reported%20here%20%5B%20docs.microsoft.com%2Fen-us%2Fcloud-app-security%2Fapi-alerts-close-false-positive%20%5D%0A%0AThe%20point%20is%20that%20I%20am%20not%20sure%20how%20to%20pass%20the%20filters%20through%20the%20Logic%20APP%20in%20HTTP%20POST%20of%20this%20new%20format.%0A%0ACan%20anyone%20help%20me%20in%20this%20regard%3F%0A%0AOld%20process%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22process.PNG%22%20style%3D%22width%3A%20819px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F236939i4132193675D3A163%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22process.PNG%22%20alt%3D%22process.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%26nbsp%3B%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1948500%22%20slang%3D%22en-US%22%3ERe%3A%20Close%20MCAS%20alert%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1948500%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F670054%22%20target%3D%22_blank%22%3E%40Luizao_f%3C%2FA%3E%26nbsp%3BHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20what%20I've%20been%20doing%20from%20my%20end%20and%20it%20seems%20to%20be%20working%20fine.%20Please%20give%20it%20a%20try%20and%20see%20how%20it%20goes.%3C%2FP%3E%3CP%3EWhere%20MCASTenant%20is%20the%20name%20of%20the%20tenant.%20Make%20sure%20that%20you%20have%20a%20token%20for%20authorization.%20I%20assume%20that%20you%20are%20well%20aware%20as%20to%20how%20the%20token%20has%20to%20be%20generated.%20Make%20no%20changes%20value%20of%20the%20header%20should%20be%20(Token%20followed%20the%20token%20generated).%20In%20case%20you%20do%20not%20know%20how%20to%20generate%20a%20token%20here's%20the%20link(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcloud-app-security%2Fapi-tokens%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcloud-app-security%2Fapi-tokens%3C%2FA%3E)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Pranesh1060_0-1606916298301.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F237331iBDC584722C0B967A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Pranesh1060_0-1606916298301.png%22%20alt%3D%22Pranesh1060_0-1606916298301.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdd%20this%20to%20your%20Body%3C%2FP%3E%3CP%3Ewhere%20Href%20is%20the%20alert%20id%20generated%20in%20MCAS.%20For%20testing%20copy%20the%20id%20from%20Sentinel%20incident%20and%20try%20to%20execute%2C%20at%20a%20later%20stage%20pass%20this%20as%20a%20variable.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Pranesh1060_1-1606916427564.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F237332i84BABB55D7E08150%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Pranesh1060_1-1606916427564.png%22%20alt%3D%22Pranesh1060_1-1606916427564.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHope%20this%20works%20for%20you!!.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1954746%22%20slang%3D%22en-US%22%3ERe%3A%20Close%20MCAS%20alert%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1954746%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F428046%22%20target%3D%22_blank%22%3E%40Pranesh1060%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%3EVery%20good.%20I%20tested%20your%20process%20and%20it%20worked%20correctly.%20Thank%20you.%20Show.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EMy%20second%20step%20is%20to%20close%20open%20incidents%20in%20Defender%20ATP.%20Do%20you%20have%20something%20like%20that%3F%20Are%20you%20ending%20incidents%20on%20another%20technology%20through%20the%20Logic%20App%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960226%22%20slang%3D%22en-US%22%3ERe%3A%20Close%20MCAS%20alert%20via%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960226%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F670054%22%20target%3D%22_blank%22%3E%40Luizao_f%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F428046%22%20target%3D%22_blank%22%3E%40Pranesh1060%3C%2FA%3E%26nbsp%3B%3A%20note%20that%20incident%20synchronizatoin%20with%20all%20Microsoft%20365%20defender%20sources%20is%20already%20in%20private%20preview.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor
Good afternoon people.

I am drawing a flow in the Logic App to close the alert in MCAS.

I have little experience with API and would like to get help.

I was using the API call via the path [
[XXXX.us3.portal.cloudappsecurity.com/api/v1/alerts/ID_ALERT/dismiss/]to end the alert as a false positive.

The documentation updated and reported that this feature is obsolete,
passing using the path [api / v1 / alerts / close_false_positive /] with filters, as reported here [ docs.microsoft.com/en-us/cloud-app-security/api-alerts-close-false-positive ]

The point is that I am not sure how to pass the filters through the Logic APP in HTTP POST of this new format.

Can anyone help me in this regard?

Old process:

process.PNG

 

 

 
5 Replies

@Luizao_f Hello,

 

This is what I've been doing from my end and it seems to be working fine. Please give it a try and see how it goes.

Where MCASTenant is the name of the tenant. Make sure that you have a token for authorization. I assume that you are well aware as to how the token has to be generated. Make no changes value of the header should be (Token followed the token generated). In case you do not know how to generate a token here's the link(https://docs.microsoft.com/en-us/cloud-app-security/api-tokens)

Pranesh1060_0-1606916298301.png

 

Add this to your Body

where Href is the alert id generated in MCAS. For testing copy the id from Sentinel incident and try to execute, at a later stage pass this as a variable. 

Pranesh1060_1-1606916427564.png

Hope this works for you!!.

 

 

@Pranesh1060 
Very good. I tested your process and it worked correctly. Thank you. Show.

My second step is to close open incidents in Defender ATP. Do you have something like that? Are you ending incidents on another technology through the Logic App?

@Luizao_f , @Pranesh1060 : note that incident synchronizatoin with all Microsoft 365 defender sources is already in private preview.

@Ofer_Shezaf 

Is this reverse closure mentioned above about Micrososft 365 Security Center (https://security.microsoft.com)? I use Azure Sentinel as a centralizer, so I am trying to create integrations for the reserve closure.

@Luizao_f We do have the connector available which can update the alert directly in MDATP and perform other operations like Run AV scan, Collect packages for investigation etc etc. The action you are looking for is update alert. Maybe you can use the same logic to split and isolate the alert id and then close it. 

Pranesh1060_0-1607347421247.png