Run the attack.
Strengthen your defenses.

Build detections in Microsoft Sentinel. Test access controls in Azure and agent guardrails in Microsoft Foundry.

apt29_add_sp_credential
T1098.001
// APT29 — credential added to a service principal  (T1098.001)
AuditLogs
| where OperationName == "Add service principal credentials"
| where Result == "success"
| extend actor  = tostring(InitiatedBy.user.userPrincipalName)
| where actor !in (ApprovedAdmins)
| summarize adds = count() by actor, bin(TimeGenerated, 1h)
| where adds > 1
One of 11 detections you build in Microsoft Sentinel.

Detection Engineering Azure Cloud & AI Security Engineering

What you’ll build and test

Build 11 Sentinel detections

Deploy your Azure lab, verify the telemetry, and test your KQL with the supplied trigger scripts. Document your findings in GitHub.

Test Azure access controls

Try calling an Azure API directly. Check whether the request gets through and use the result to explain what the access control protects.

Test a Foundry agent guardrail

Give two agents the same harmless test phrase. Check the trace and the saved guardrail assignment to explain why only one blocks it.

Read one of my playbooks before you join.

I use Entra audit logs to find who added a credential to a service principal, then check the service principal’s sign-in history. The playbook includes my KQL and shows what evidence would lead me to close the alert as routine rotation or escalate it.

Read the free playbook (32-page PDF) →

Choose the training that fits.

AdversaryLab membership

$99/month

Learn with other security practitioners. Bring a lab, a query, or a question to the weekly live workshop with Charles.

  • Weekly workshops, Q&A, and recordings
  • Detection Engineering course with 11 Microsoft Sentinel detections
  • Azure Cloud & AI Security Engineering course with 14 labs on access controls, AI guardrails, and monitoring

Course access and updates are included while subscribed. Cancel anytime. Azure usage is billed separately.

Join AdversaryLab →

In development

AI Security Engineering Accelerator

The Accelerator builds on the guided labs. Given an Azure AI application and a set of security requirements, you’ll choose and configure the controls, test what the application allows and blocks, and document the evidence behind your decisions.

I’ll review your portfolio and give you feedback on the controls you chose and what your tests show. My feedback draws on 13 years in security, including cloud cyber defense at Citi.

Join the interest list →
About Charles
Charles Garrett
Charles Garrett
Security Engineer · Founder, Purple Shell Security

I bring 13 years of security experience across MSSP and financial services environments, including cloud cyber defense at Citi. My work spans detection engineering, security automation, cloud security, and AI-enabled workflows.

Need security engineering support for your team?

Purple Shell Security helps teams tune detections, automate routine security tasks, and test whether their controls work. We also help analysts use AI to pull together evidence from across their systems and decide what to investigate next.

Book a 30-minute call →