본문으로 건너뛰기
Skillpedia
보안35k · #7597

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-api-gateway-access-logs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. BOLA/IDOR: sequential resource ID enumeration
  2. Rate limit bypass via header manipulation
  3. Credential scanning (401 surges from single source)
  4. SQL/NoSQL injection in query parameters
  5. 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. '

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7597
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬