1. OWASP API Top 10 Neutralization Matrix
Every API surface across admin.bentengsiber.com and the mobile technician API is hardened against the most critical carrier and SaaS threat vectors:
| OWASP Risk |
Attack Vector |
Benteng Siber Production Control |
API1: BOLA / IDOR |
Cross-tenant or cross-tech ticket access |
Prioritized TenantScope middleware + strict technician ownership check (HTTP 403) + tenant-scoped child queries. |
API2: Broken Auth |
Credential stuffing & token abuse |
Laravel Sanctum scoped bearer tokens, 5/min login throttling, and Root-only Master Console enforcement (tenant_id === 1). |
API4: Resource Abuse |
Free unlimited quota exploitation |
Public /register-isp caps self-service trials to Starter ($500/mo) & Growth ($1,000/mo); Full Setup $2,500 Projects require verification. |
API7: SSRF |
Router/OLT URL pointing to cloud metadata |
Outbound drivers strictly reject loopback (127.0.0.1, ::1), link-local, and cloud metadata IPs (169.254.169.254). |
A02: Crypto Failures |
Plaintext MikroTik/Midtrans secrets in DB |
Custom EncryptedArrayOrLegacyJson cast encrypts secrets at-rest with AES-256-CBC + HMAC-SHA256 MAC and hides them from JSON. |
2. Middleware-Prioritized Zero-Leak Multi-Tenant Isolation
To eliminate subtle Route Model Binding IDOR vulnerabilities where models hydrate before tenant resolution, Benteng Siber locks the HTTP Kernel middleware priority order:
Authenticate → IdentifyTenant → EnsureTenantActive → SubstituteBindings
- Child Table Scoping: All secondary records—
ProofOfWork, ProgressUpdate, TaskMaterial, and TechnicianLocation—are explicitly tenant-filtered on every query and analytics endpoint.
- Per-Tenant Config Partitioning: Tenant settings are isolated into dedicated files (
settings_tenant_{id}.json) preventing cross-ISP config drift.
3. AES-256-CBC At-Rest Credential Encryption
ISPs entrust Benteng Siber with MikroTik RouterOS API passwords, OLT/GenieACS credentials, Midtrans Server Keys, and WhatsApp Gateway tokens. Every sensitive column in tenants.network_settings and tenants.settings is transparently encrypted at rest in MySQL using AES-256-CBC + HMAC-SHA256 and excluded from serialized API payloads.
4. Immutable SHA-256 Hash-Chained Platform Audit Ledger
Every Master Console governance action—suspending a tenant, upgrading a plan, extending trials, or logging a $2,500 Dedicated Project activation request—is appended to platform_audit_logs. Model hooks throw an exception on any UPDATE or DELETE attempt, and every row links cryptographically to its predecessor:
BLOCK #001VERIFIED
tenant.plan.updated
prev: GENESIS
hash: a91f4c08d3...8b2e
BLOCK #002VERIFIED
tenant.status.suspended
prev: a91f4c08d3...8b2e
hash: 4e7b91f0c2...19d4
BLOCK #003VERIFIED
enterprise.project.inquiry
prev: 4e7b91f0c2...19d4
hash: f20c88a41e...63a7
5. Outbound SSRF Guardrails & Signed Webhook Integrity
- Exact Gross Amount Verification: Midtrans QRIS webhooks validate cryptographic signatures and exact invoice totals before dispatching
UnIsolateCustomerOnPaymentJob.
- Idempotent Mobile State Machines: Every technician write operation carries an idempotency key so unstable cellular retries never duplicate inventory deductions or status transitions.
6. Cloud SaaS ($500–$1,000/mo) & Full Setup ($2,500) Guardrails
Self-service registration at /register-isp automatically activates instant 14-day trials for Starter ISP Cloud ($500/mo) and Growth Regional Cloud ($1,000/mo). Unlimited Full Setup Dedicated Project ($2,500 one-time) deployments route through direct architect verification—recording every inquiry into the immutable platform audit ledger.
7. OWASP Edge Headers & RFC 9116 Vulnerability Disclosure
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff & X-Frame-Options: SAMEORIGIN
Referrer-Policy: strict-origin-when-cross-origin & strict Permissions-Policy
- Verified RFC 9116 disclosure policy published at /.well-known/security.txt