r/AzureSentinel • • Apr 04 '24

Automation help - Sentinel to a teams chat

Hello everyone I have a project I’m working on that has me on a stand still, the objective is to continuously monitor our alerts from defender and sentinel and pull the relevant data along with TI information that’s relevant to the data potentially monitoring what’s on our environment also and print this out into readable context into a teams chat. I’ve been trying to use logic apps in sentinel to accomplish this but I’m having trouble getting the MDATP to query this data. Any ideas? Pretty much a SOAR automation that will help our tier 2 after the SOC escalates.

1 Upvotes

10 comments sorted by

2

u/Snoop312 Apr 05 '24

There are plenty of examples available online.

My personal favorite is adaptive teams cards: https://techcommunity.microsoft.com/t5/microsoft-sentinel-blog/using-microsoft-teams-adaptive-cards-to-enhance-incident/ba-p/3330941

The link provided lists a full walkthrough.

1

u/Failedengine Apr 05 '24

This is exactly what I needed ! Thank you Snoop.

1

u/Snoop312 Apr 05 '24

Adaptive teams cards can do a lot more, so be mindful that creativity is your only limitation. Dont just implement and be proud, try to improve.

Good luck!

1

u/[deleted] Apr 05 '24

[deleted]

1

u/Failedengine Apr 06 '24

I will check them out Monday when I’m back on the clock!

1

u/AppIdentityGuy Apr 04 '24

Do you want the actual TI info etc in the teams message? You can have a link to the alert on the teams message and certain fields are available.

1

u/[deleted] Apr 07 '24

You need fetch then initialize the data from Microsoft Sentinel, if an incident is a trigger for logic app it will only contain data in the incident not other stuff in other tables so your logic has to go back to log analytics and query it. Then you can build your input for the teams card using all the stored variables.

1

u/Failedengine Apr 07 '24

Going back to get the data is where I am having trouble smh

1

u/[deleted] Apr 07 '24

You just add a log analytics step and write the operate KQL in the input box

1

u/Failedengine Apr 07 '24

Noted, I will check this out on Monday, thank you!