analyzing-azure-activity-logs-for-threats

Query Azure Monitor activity and sign-in logs to surface suspicious operations.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill analyzing-azure-activity-logs-for-threats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-azure-activity-logs-for-threats
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/analyzing-azure-activity-logs-for-threats
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill analyzing-azure-activity-logs-for-threats

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-identity, azure-monitor-query, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps security teams identify threats by querying Azure Monitor activity logs and sign-in logs to surface suspicious administrative operations, impossible travel, privilege escalation, and resource modifications.

Core Features & Use Cases

  • Query Azure Monitor tables (AzureActivity, SigninLogs, AuditLogs, AzureDiagnostics) to surface indicators of compromise and operational anomalies.
  • Detect privilege escalations, unusual sign-ins, NSG rule changes, Key Vault access anomalies, and mass resource modifications.
  • Provide structured outputs for security operations workflows, supporting both human-readable reports and machine-readable payloads for automation.

Quick Start

Execute the agent against your Azure workspace to begin threat hunting across the monitored logs.

Frequently Asked Questions about analyzing-azure-activity-logs-for-threats

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Azure activity logs for threats like privilege escalation?

You can analyze Azure activity logs for threats by running KQL queries against Log Analytics workspaces to surface suspicious administrative operations and privilege escalation. The Skill queries AzureActivity and SigninLogs tables to identify these security anomalies.

What types of threats can I detect by querying Azure Monitor sign-in logs?

Querying Azure Monitor sign-in logs detects impossible travel, unusual sign-ins, and Key Vault access anomalies. It surfaces suspicious operations across AzureDiagnostics and AuditLogs to support security operations investigations.

Can I use the azure-monitor-query library to hunt for NSG rule changes in Azure?

Yes, you can use the azure-monitor-query library to hunt for NSG rule changes by executing KQL queries against Azure Monitor tables. The Skill requires this Python library to query Log Analytics workspaces and surface resource modifications.

Do I need Python 3.8 and a Log Analytics workspace to investigate Azure threats?

Yes, investigating Azure threats requires Python 3.8 or higher and a configured Log Analytics workspace. The Skill depends on the azure-monitor-query and azure-identity libraries to authenticate and execute KQL threat hunting queries.

How do I automate threat detection outputs from Azure activity log analysis?

You automate threat detection by generating structured outputs from Azure activity log analysis. The Skill provides both human-readable reports and machine-readable payloads to support security operations workflows and downstream automation.

What is the best way to surface mass resource modifications in Azure activity logs?

The best way to surface mass resource modifications in Azure activity logs is querying the AzureActivity table with KQL. This approach identifies bulk resource changes alongside other operational anomalies for comprehensive threat hunting.