Files
Anthropic-Cybersecurity-Skills/skills/implementing-api-gateway-security-controls/references/api-reference.md
T
mukul975 27c6414ca5 Add folder anatomy (scripts/agent.py + references/api-reference.md) for 648 cybersecurity skills
Complete skill folder anatomy across all cybersecurity skills:
- scripts/agent.py: 80-150 line Python agents using real libraries (impacket,
  boto3, azure-mgmt-*, kubernetes, pefile, yara, scapy, shodan, stix2, etc.)
- references/api-reference.md: real API documentation with method signatures
- LICENSE: MIT license for all skill folders
2026-03-10 21:02:12 +01:00

1.6 KiB

API Reference: Implementing API Gateway Security Controls

AWS API Gateway (boto3)

import boto3
client = boto3.client("apigateway")
apis = client.get_rest_apis()["items"]
method = client.get_method(restApiId=api_id, resourceId=res_id, httpMethod="GET")
# Check: authorizationType, apiKeyRequired, requestValidatorId
stages = client.get_stages(restApiId=api_id)["item"]
# Check: accessLogSettings, methodSettings throttling

Kong Admin API

# List services and their plugins
curl http://localhost:8001/services
curl http://localhost:8001/services/{id}/plugins

# Enable rate limiting
curl -X POST http://localhost:8001/services/{id}/plugins \
  -d "name=rate-limiting" -d "config.minute=100"

# Enable JWT auth
curl -X POST http://localhost:8001/services/{id}/plugins \
  -d "name=jwt"

Security Controls Checklist

Control Gateway Severity if Missing
Authentication (JWT/OAuth) All CRITICAL
Rate Limiting All HIGH
Request Validation All MEDIUM
Access Logging All HIGH
TLS/mTLS All CRITICAL
CORS Policy All MEDIUM
IP Restriction All LOW

NGINX Gateway Security

location /api/ {
    limit_req zone=api burst=20 nodelay;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://backend;
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options DENY;
}

References