analyzing-api-gateway-access-logs

Detects BOLA, credential scanning, injection, and rate limit bypass in API gateway access logs.

4|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/braydos-h/BreachPilot --skill analyzing-api-gateway-access-logs-braydos-h
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: analyzing-api-gateway-access-logs
Source: https://github.com/braydos-h/BreachPilot/tree/main/skills/analyzing-api-gateway-access-logs
Command: npx skills add https://github.com/braydos-h/BreachPilot --skill analyzing-api-gateway-access-logs-braydos-h

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve? Security teams investigating API abuse must manually sift through large volumes of API gateway access logs to spot attacks like BOLA/IDOR enumeration, credential scanning, and injection attempts, which is slow and error-prone. ## Core Features & Use Cases - BOLA/IDOR Detection: Identifies users or IPs accessing an abnormal number of unique resource IDs, flagging object-level authorization abuse. - Credential Scanning & Rate Limit Analysis: Detects 401/403 surges from single sources and request bursts exceeding per-minute thresholds. - Injection & Unusual Method Detection: Matches SQL, NoSQL, XSS, and path traversal patterns in query strings and flags DELETE/PUT/PATCH on read-only endpoints. - Use Case: A SOC analyst exports AWS API Gateway logs as JSON lines and runs the agent script to produce a JSON report of prioritized findings mapped to OWASP API Top 10 risks. ## Quick Start Analyze the attached API gateway access log file for BOLA attacks, credential scanning, injection attempts, and rate limit bypass, then summarize the findings.

Frequently Asked Questions about analyzing-api-gateway-access-logs

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

FAQPage Schema
How do I detect BOLA/IDOR attacks in API gateway logs?▼

Group log entries by user ID or source IP and count the number of unique resource IDs each one accesses. Users accessing more than 50 unique resources are flagged as BOLA suspects with CRITICAL severity in the generated report.

How to detect credential scanning from access logs with pandas?▼

Filter log entries with 401 or 403 status codes and group them by source IP. Any IP generating more than 100 authentication failures is flagged as a credential scanner, along with the number of distinct endpoints it probed.

What log formats does API gateway log analysis support?▼

The analysis script accepts JSON lines files and CSV files containing fields such as timestamp, source_ip, status_code, request_path, and resource_id. It covers AWS API Gateway, Kong, and Nginx access log structures.

Can pandas detect SQL injection attempts in request logs?▼

Yes, the script applies regex patterns to query strings and request bodies to match SQL injection, NoSQL operators like $ne and $where, XSS payloads, and path traversal sequences. Matching requests are reported as HIGH severity injection attempts.

What are the limitations of threshold-based log anomaly detection?▼

Fixed thresholds such as 50 unique resources or 100 requests per minute can miss low-and-slow attacks and may false-positive on legitimate high-volume clients. Thresholds should be tuned to the baseline traffic of the specific API.