azure-activity-investigation
Skill0 starsChanged 15 days agoMITView on GitHub
Investigate Azure control-plane and resource activity — Activity Log (AzureActivity), resource diagnostic logs (Key Vault, Storage, VM run-command), Defender for Cloud alerts — for privilege escalation, persistence, data access and defense evasion in subscriptions. Use when an Azure subscription or resource may be compromised, or a Defender for Cloud alert needs investigation.
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-gateway-controlsSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- asset-inventory-reconciliationSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- image-scanningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- data-discoverySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Check data access: storage account keys listed → assume data access possible (storage logs only if diagnostics enabled), Key Vault secret …
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Activity Investigation
Key operations (AzureActivity.OperationNameValue)
| Tactic | Operation |
| Privilege escalation | MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE, Microsoft.Authorization/elevateAccess/action |
| Execution on VMs | MICROSOFT.COMPUTE/VIRTUALMACHINES/RUNCOMMAND/ACTION, .../EXTENSIONS/WRITE (CustomScriptExtension) |
| Credential access | MICROSOFT.KEYVAULT/VAULTS/WRITE (access policy changes), Key Vault data plane SecretGet (in AzureDiagnostics/KeyVault logs), MICROSOFT.STORAGE/STORAGEACCOUNTS/LISTKEYS/ACTION |
| Defense evasion | MICROSOFT.INSIGHTS/DIAGNOSTICSETTINGS/DELETE, MICROSOFT.SECURITY/PRICINGS/WRITE (Defender plan disabled), NSG rule changes |
| Exfiltration | MICROSOFT.COMPUTE/DISKS/BEGINGETACCESS/ACTION (disk SAS export), MICROSOFT.COMPUTE/SNAPSHOTS/WRITE, storage SAS generation |
| Impact | Mass DELETE operations, resource locks removed (MICROSOFT.AUTHORIZATION/LOCKS/DELETE) |
KQL
AzureActivity
| where TimeGenerated > ago(14d)
| where OperationNameValue has_any ("ROLEASSIGNMENTS/WRITE", "RUNCOMMAND/ACTION", "LISTKEYS/ACTION", "DIAGNOSTICSETTINGS/DELETE",
"BEGINGETACCESS/ACTION", "elevateAccess", "LOCKS/DELETE", "EXTENSIONS/WRITE")
| where ActivityStatusValue in ("Success", "Succeeded")
| project TimeGenerated, Caller, CallerIpAddress, OperationNameValue, ResourceGroup, _ResourceId, Properties_d
| order by TimeGenerated ascKey Vault data plane:
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.KEYVAULT" and OperationName in ("SecretGet", "KeyDecrypt", "SecretList")
| summarize count(), secrets=make_set(id_s, 50) by CallerIPAddress, identity_claim_upn_s, bin(TimeGenerated, 1h)(Column names depend on whether resource-specific tables are used — e.g. AZKVAuditLogs.)
Workflow
- Identify the caller (user, service principal, managed identity) and correlate with Entra sign-ins (
entra-signin-investigation,AADServicePrincipalSignInLogs). - Build the change list; check Run Command/extension contents (
az vm run-command list, extension settings) for executed scripts. - Check data access: storage account keys listed → assume data access possible (storage logs only if diagnostics enabled), Key Vault secret reads.
- Review Defender for Cloud alerts (
SecurityAlert | where ProductName has "Defender") for correlated detections.
Related skills
entra-audit-investigation, azure-rbac-review, cloud-incident-response, sentinel-kql-investigation
References
- Azure Activity Log schema: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log-schema
- Azure resource provider operations: https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
- Key Vault logging: https://learn.microsoft.com/en-us/azure/key-vault/general/logging
- Microsoft Azure Threat Research Matrix: https://microsoft.github.io/Azure-Threat-Research-Matrix/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

