1. The CERT-In Safe-to-Host Audit Mandate
Government portals, banking systems, and critical national infrastructure in India must undergo mandatory Vulnerability Assessment and Penetration Testing (VAPT) conducted by auditing organizations empanelled by the Indian Computer Emergency Response Team (CERT-In) under MeitY.
A formal Safe-to-Host Certificate is issued only after all identified Critical, High, and Medium vulnerabilities are completely remediated and verified through exhaustive re-testing.
2. Top Vulnerability Remediation Playbooks
Playbook 1: Remediating Broken Access Control (A01)
Broken Access Control occurs when endpoints assume the client is authorized without performing server-side context validation. Common instances include Insecure Direct Object References (IDOR):
Playbook 2: Server Hardening & Information Disclosure Elimination
- Disable Directory Browsing: Prevent attackers from crawling file structures (
autoindex off;in Nginx). - Eliminate Verbose Errors: Disable
display_errorsin production and handle exceptions with generic user messages while logging full traces securely server-side. - Lock Down Sensitive Files: Block direct HTTP access to
.env,.git, backup archives (.zip,.sql), and composer configuration files.
3. Production Nginx Security Headers Template
Deploy the following battle-tested configuration in your Nginx server block to guarantee maximum HTTP response header marks during automated VAPT scans:
4. CERT-In VAPT Audit Execution Checklist
| Audit Scope | Verification Test | Passing Criteria |
|---|---|---|
| Authentication | Rate limiting on login, brute-force lockouts, secure salted password hashes (Bcrypt/Argon2id). | No account enumerations; session invalidated upon logout. |
| Session Security | Cookie flags: Secure, HttpOnly, SameSite=Lax/Strict. |
Zero session fixation or cross-user hijack vectors. |
| Input Sanitization | SQLi, Command Injection, Reflected & Stored XSS, CSRF token validation on POST/PUT requests. | Prepared queries; output escaped; CSRF tokens on all state-changing forms. |
| Crypto Transport | Qualys SSL Labs rating verification. | Grade A or A+ required; zero deprecated SSLv3/TLS 1.0 protocols. |
WebOTG Cyber Defense Lab
WebOTG provides benchmark reference documentation, automated matrix evaluators, and security test harnesses for government digital platforms, WQMS architectures, and STQC compliance frameworks.