r/DefenderATP • u/Icy_Air2574 • Sep 25 '26
Building Custom Security Copilot Agents for Defender Alert Investigations
I'm currently working on building a custom Microsoft Security Copilot agent that acts as a Tier-2 SOC analyst and performs automated investigations for alerts originating from Microsoft Defender XDR, Microsoft Sentinel, and related security products.
Currently, I'm struggling with defining the best structure for agent instructions and deciding how granular the investigation workflow should be.
Has anyone successfully implemented a Security Copilot custom agent for automated incident investigation ?
1
u/Most-Movie5722 Sep 25 '26
Please share any custom instructions set for copilot, we are also on the same boat. Agent does not follow the instruction properly
0
u/Tricky_Stage9980 Sep 25 '26
Give me example of what you are trying to get it to do.
One more limitation with Sec copilot is that it does not have access to query the custom kql tablea
1
1
u/hexdurp Sep 25 '26
Ugh, reading this give me hope for our future, but I’m stuck in gcc…it’s not available yet.
0
1
u/Tricky_Stage9980 Sep 25 '26
Hey yes, you can find some samples online. I usually get Github copilot to write the agent instructions and skills, and upload it to the portal. It does a good job.