API Pentest

Alur pengujian keamanan REST & GraphQL API per fase — dari discovery, enumeration, scanning, sampai exploitation yang dikelompokkan per teknik (BOLA/BFLA, mass assignment, injection, SSRF, dan lainnya).

20 kategori · 37 command
·
Fase 01

Information Gathering

Documentation Endpoints
Cek path umum yang menyimpan schema/spec API.
bash
for p in swagger.json openapi.json api-docs swagger-ui.html graphql v2/api-docs; do curl -s -o /dev/null -w "$p %{http_code}\n" https://target.com/$p; done
Import Spec ke Proxy
Generate seluruh request dari spec untuk diuji.
bash
Import openapi.json ke Burp/Postman → semua endpoint & schema terbentuk otomatis
Spec OpenAPI adalah peta lengkap attack surface — prioritas nomor satu jika ditemukan.
Mobile App Endpoint Extraction
Decompile APK untuk temukan base URL & rute API.
bash
apktool d app.apk -o out && grep -rhoE "https?://[a-zA-Z0-9./?=_-]+" out/ | sort -u
Secret Leak di JS / Repo
Temukan API key/token yang bocor di client.
bash
trufflehog github --org=target-org --only-verified
Fingerprint Gateway
Deteksi API gateway & header khas.
bash
httpx -u https://api.target.com -td -title -sc -server; curl -sI https://api.target.com | grep -iE "x-ratelimit|x-api|via|server"
Fase 02

Enumeration

Fase 03

Vulnerability Scanning

Fase 04

Exploitation