⚡ A lightweight and fast Web API Request Security Scanner built in Go. It helps you quickly identify common API security misconfigurations and weaknesses such as missing HTTPS, missing security headers, server information leaks, and basic injection vulnerabilities.
Command-line tool in Go that accepts a URL (an API endpoint) and checks for basic security issues like:
-
Missing HTTPS
-
HTTP headers missing (like Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, etc.)
-
Insecure Server Banner leaks (like “Apache 2.2.3”)
-
Weak Authentication (e.g., WWW-Authenticate missing)
-
Basic SQLi test by injecting payloads into query parameters (like id=1' and see the response)
-
JSON Response Content-Type Check (application/json expected)
🔗 (It's like your tiny custom BurpSuite!)
✅ Uses Golang HTTP client (good practice)
✅ Practice secure programming (timeouts, retries, concurrency)
✅ Real-world security checks
✅ Can easily extend later (to add more pentest modules)
- 🔒 HTTPS Enforcement Check
- 🛡 Security Headers Validation
- 🕵️ Server Banner Information Leak Detection
- 💥 Basic SQL Injection Detection (coming soon)
- 📄 Save Scan Reports to JSON (optional)
Sentinel-Go/
├── cmd/
│ └── root.go # CLI flags, main app entry
├── internal/
│ ├── scanner/
│ │ ├── scanner.go # Core scanning functions (HTTPS check, headers check, etc.)
│ │ └── payloads.go # Payloads for SQLi and other tests
│ └── utils/
│ └── httpclient.go # Custom HTTP client (timeouts, retries, etc.)
├── reports/
│ └── (outputs JSON reports)
├── go.mod
├── go.sum
└── README.md
- Clone the repository:
git clone https://github.com/yourusername/Sentinel-Go.git
cd Sentinel-Go- Install dependencies and run:
go run root.go -url https://example.com/api/v1/users-
Connects to the target URL
-
Checks HTTPS enforcement
-
Analyzes important HTTP security headers
-
Detects server information disclosure
-
(Optionally) injects basic SQL payloads into parameters
$ Sentinel-Go -url https://target.com/api/user?id=1
[+] Checking HTTPS... OK
[+] Checking Security Headers... Missing: Content-Security-Policy
[+] Checking Server Info Leak... Detected: "Apache/2.4.41"
[+] Testing for SQL Injection... Possible anomaly detected!
[+] Validating Content-Type... OK (application/json)-
Threaded scanning for multiple endpoints
-
SQLi and XSS payload testing
-
Beautiful CLI output with color
-
Web UI for visual scan reports
Contributions, issues, and feature requests are welcome! Feel free to fork and submit pull requests.