analyzing-api-gateway-access-logs
하는 일
이 도구는 API 게이트웨이의 접근 기록을 분석해 침입 시도와 공격 같은 의심스러운 활동을 찾습니다.
사용하는 경우
- ✓API에 대한 잠재적 공격을 조사해야 할 때.
- ✓API에 대한 위협을 탐지하는 규칙을 만들 때.
- ✓API 보안이 잘 작동하는지 확인하고 싶을 때.
스킬 링크
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-api-gateway-access-logs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“침입 시도를 찾기 위해 제 API 접근 기록을 분석해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 기록을 읽고, 한 사용자가 많은 다른 데이터에 접근하거나 같은 출처에서 로그인 실패가 많이 발생하는 것 같은 비정상적인 패턴을 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Analyzing API Gateway Access Logs
When to Use
- When investigating security incidents that require analyzing api gateway access logs
- 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
Parse API gateway access logs to identify attack patterns including broken object level authorization (BOLA), excessive data exposure, and injection attempts.
import pandas as pd
df = pd.read_json("api_gateway_logs.json", lines=True)
# Detect BOLA: same user accessing many different resource IDs
bola = df.groupby(["user_id", "endpoint"]).agg(
unique_ids=("resource_id", "nunique")).reset_index()
suspicious = bola[bola["unique_ids"] > 50]
Key detection patterns:
- BOLA/IDOR: sequential resource ID enumeration
- Rate limit bypass via header manipulation
- Credential scanning (401 surges from single source)
- SQL/NoSQL injection in query parameters
- Unusual HTTP methods (DELETE, PATCH) on read-only endpoints
Examples
# Detect 401 surges indicating credential scanning
auth_failures = df[df["status_code"] == 401]
scanner_ips = auth_failures.groupby("source_ip").size()
scanners = scanner_ips[scanner_ips > 100]
자주 묻는 질문
'접근 기록(access logs)'이란 무엇인가요?
API에 대해 이루어진 모든 요청의 기록입니다. 누가 접근했는지, 언제, 무엇을 요청했는지를 담고 있습니다.
BOLA/IDOR 공격이란 무엇인가요?
공격자가 접근해서는 안 되는 데이터에 접근하려고 시도하는 공격입니다. API가 누가 무엇을 볼 수 있는지 확인하는 방식의 결함을 악용합니다.
이 도구를 쓰려면 코딩을 알아야 하나요?
아니요, 기록에서 무엇을 찾고 싶은지 도구에 알려 주기만 하면 됩니다.
상세 정보
작성자의 원본 설명
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass, credential scanning, and injection attempts. Uses pandas for statistical analysis of request patterns and anomaly detection. Use when investigating API abuse or building API-specific threat detection rules. '
인기도
- GitHub 스타
- 35k
- 순위
- #7597
- 라이선스
- 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에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.