analyzing-azure-activity-logs-for-threats
하는 일
이 도구는 Microsoft Azure 계정의 보안 로그에서 의심스러운 활동을 찾는 데 도움을 줍니다. 침입 시도, 허가되지 않은 변경, 기타 악의적인 행동을 식별할 수 있습니다.
사용하는 경우
- ✓Azure 계정이 침해되었다고 의심될 때.
- ✓비정상적인 관리자 활동을 조사할 때.
- ✓클라우드 위협 탐지 규칙을 만들 때.
스킬 링크
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-azure-activity-logs-for-threats/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Azure 활동 로그에서 의심스러운 변경을 검색해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 'azure-monitor-query'라는 프로그램을 사용해 Azure의 보안 로그에 구체적인 질문을 합니다. 이 질문은 위험한 활동의 패턴을 찾도록 설계되어 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Analyzing Azure Activity Logs for Threats
When to Use
- When investigating security incidents that require analyzing azure activity logs for threats
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Use azure-monitor-query to execute KQL queries against Azure Log Analytics workspaces, detecting suspicious admin operations and sign-in anomalies.
from azure.identity import DefaultAzureCredential
from azure.monitor.query import LogsQueryClient
from datetime import timedelta
credential = DefaultAzureCredential()
client = LogsQueryClient(credential)
response = client.query_workspace(
workspace_id="WORKSPACE_ID",
query="AzureActivity | where OperationNameValue has 'MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE' | take 10",
timespan=timedelta(hours=24),
)
Key detection queries:
- Role assignment changes (privilege escalation)
- Resource group and subscription modifications
- Key vault secret access from new IPs
- Network security group rule changes
- Conditional access policy modifications
Examples
# Detect new Global Admin role assignments
query = '''
AuditLogs
| where OperationName == "Add member to role"
| where TargetResources[0].modifiedProperties[0].newValue has "Global Administrator"
'''
자주 묻는 질문
'활동 로그(activity logs)'란 무엇인가요?
Azure 계정에서 일어나는 모든 일, 즉 누가 무엇을 언제 했는지 기록하는 일기장과 같습니다.
'KQL 쿼리'란 무엇인가요?
Azure의 데이터 로그에 특정 질문을 하기 위해 사용하는 프로그래밍 언어입니다.
이것을 쓰려면 보안 전문가여야 하나요?
보안에 어느 정도 익숙하면 도움이 되지만, 이 도구는 분석을 간단하게 하도록 설계되었습니다.
상세 정보
작성자의 원본 설명
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative operations, impossible travel, privilege escalation, and resource modifications. Builds KQL queries for threat hunting in Azure environments. Use when investigating suspicious Azure tenant activity or building cloud SIEM detections. '
인기도
- GitHub 스타
- 35k
- 순위
- #7599
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.