WASA Certificate: How to Get One and What It Covers (2026)

Technical Reviewer
Updated: December 2nd, 2026
13 mins read
WASA Certificate

The full Web Application Security Assessment for ABDM generally covers:

  • Web UI, Admin Console 
  • Microservices & APIs 
  • Authentication/SSO 
  • Database access controls 
  • Encryption effectiveness tests 
  • Transport layer security evaluation 

Thus, simply reading the NHA documentation and clearing your functional milestones won’t get you your WASA certificate. It can still turn out to be a pain in the…ahmm. 

That is why we won’t rehash the onboarding steps; you can find those in detail here. 

We’ll rather cover what a WASA certificate actually is, who needs one, how the process and cost break down, and then go deep on the code-level patterns and the regulatory snags that stall your certificate even on a clean codebase.

What is a WASA Certificate?

A WASA certificate, short for Web Application Security Audit certificate, is the sign-off issued by a CERT-In empanelled auditor once your application has been tested and every critical or high-severity finding has been closed. 

In ABDM contexts, this sign-off is almost always called a “Safe-to-Host” certificate, which is what you submit to the National Health Authority (NHA) to move from sandbox to production.

Three terms get used interchangeably on this topic when they shouldn’t be, so clarifying them first:

TermWhat it actually is
WASA auditThe testing engagement itself
WASA reportThe detailed findings document the audit produces
Safe-to-Host certificateThe approval issued once findings are closed, submitted to NHA

Who Needs a WASA Certificate?

Anyone building a HIP, HIU, PHR app, Consent Manager, or any hospital, lab, pharmacy, or teleconsultation platform that touches ABHA-linked data needs a WASA certificate before they go into production.

What’s less talked about is that the “Safe-to-Host” requirement isn’t unique to ABDM. Under MeitY’s GIGW guidelines, any Indian government-hosted website, portal, or app needs the same kind of audit clearance before going live, issued by a CERT-In, STQC, or NIC empanelled auditor. If you’re building for any Indian state or even a government-adjacent platform, this requirement will most likely apply.

How You Actually Get a WASA Certificate

In simple terms, this includes: 

  • Register in the ABDM sandbox
  • Clear functional milestones M1 through M3
  • Undergo the WASA audit with a CERT-In empanelled firm
  • Remediate and revalidate
  • Submit the certificate to NHA

That’s the sequence, with the devil lurking in the details. For the full step-by-step breakdown of each stage, so you can capture and remediate your devils,  check out How to Get Your ABHA Web Application Security Certificate.

Timeline and Cost

Budget ₹80,000 to ₹2,50,000 for the WASA certificate audit itself, subject to the app’ s complexity and scope. The full sandbox-to-certificate timeline typically takes about 10 to 15 business days; that is, if nothing’s blocking it. 

Larger APIs or multiple HIP/HIU roles drive both time and cost up, and regulatory snags—covered later in this guide—are one of the most common reasons your WASA certification timeline may be pushed back.

What Actually Fails the Audit at the Code Level

This guide includes 11 issues, split into two tracks requiring two different teams. 

Engineering handles the first six; legal and compliance the last five. Both need to be tracked from day one when the certification timeline begins. 

Astra’s own study on Vibe coding via 4 platforms that were given an identical security-explicit prompt found 137 confirmed, exploitable vulnerabilities across the four apps they gave out. 

CORS misconfiguration, missing or bypassed authentication, and missing or insufficient rate limiting were among the 3 major failure patterns that showed up in every single app tested. This is the default output of most build workflows today, and it’s exactly what a WASA certificate audit is scoped to find in an ABHA-integrated app.

vibe-coding-study-astra findings

1. CORS that reflects any origin while allowing credentials

If your backend echoes whatever Origin header a request sends back in Access-Control-Allow-Origin, while also setting Access-Control-Allow-Credentials: true, any site can make authenticated requests on a logged-in user’s behalf. With respect to ABHA, that means reading a patient’s health records cross-origin.

The fix here is an explicit allowlist, never a wildcard or reflected origin, especially not paired with credentials:

from fastapi.middleware.cors import CORSMiddleware
 
ALLOWED_ORIGINS = [
    "https://app.yourhealthplatform.in",
    "https://staging.yourhealthplatform.in",
]
 
app.add_middleware(
    CORSMiddleware,
    allow_origins=ALLOWED_ORIGINS,
    allow_credentials=True,
    allow_methods=["GET", "POST", "PUT", "DELETE"],
    allow_headers=["Authorization", "Content-Type"],
)

Auditors test this by sending a credentialed request from an unlisted origin. Any CORS headers coming back on that request are an automatic fail.

2. Default-allow authentication instead of default-deny

ABHA integration surfaces, consent callbacks, webhook receivers, HIP/HIU exchange endpoints, etc., tend to get added incrementally during sandbox work. 

This makes it easier for a new route to get shipped without being wired into the auth layer and mostly nobody notices it until an auditor discovers an unauthenticated path to a password reset or a consent action.

The fix is a global dependency with an explicit public allowlist, built in from the start:

PUBLIC_ROUTES = {"/auth/register", "/auth/login", "/health"}
 
@app.middleware("http")
async def enforce_auth(request: Request, call_next):
	if request.url.path not in PUBLIC_ROUTES:
    	if not await is_authenticated(request):
            return JSONResponse(status_code=401, content={"detail": "Unauthorized"})
    return await call_next(request)

Write a test that iterates every registered route and asserts a 401 unless it’s explicitly named public— default-deny is the first thing WASA certification reviewers check when a new route appears mid-engagement.

3. Long-lived tokens sitting in localStorage

Long TTLs and client-readable storage can turn a single XSS bug into full record exposure. 

A stolen token is always bad, but in an ABHA app it carries consent artefacts and live access to medical histories, so the blast radius expands manyfold. 

Insecure token and cookie storage showed up as a confirmed finding in three of the four apps in Astra’s vibe-coding study, which puts it well inside the range of things a WASA auditor will most likely check.

response.set_cookie(
    key="access_token",
    value=access_token,
    httponly=True,
	secure=True,
    samesite="strict",
    max_age=900,  # 15 minutes
)

Pair this with refresh token rotation that invalidates the previous token on every use, and revoke the token server-side on logout. 

4. Object-level access gaps on record endpoints (IDOR/BOLA)

This is the highest-impact class in ABDM apps specifically, because the under-protected object is a patient’s actual medical history. 

An endpoint that checks whether a user is authenticated, but not whether they own or have consent for this specific record, is an important pattern auditors look for, and it’s worse in multi-tenant HIP systems where one database holds records for many unrelated patients behind a single API.

@app.get("/records/{record_id}")
async def get_record(record_id: str, user: User = Depends(get_current_user)):
	record = await db.records.get(record_id)
	if record.owner_id != user.id and not user.has_consent_for(record.owner_id):
    	raise HTTPException(status_code=404)  # 404, not 403, avoids confirming the record exists
    return record

The ownership or consent check happens after fetching the record and before returning it, every time, including the endpoints that don’t look sensitive at first glance.
5. No rate limiting on OTP and login endpoints

ABHA creation and login run on mobile or Aadhaar-linked OTP verification, and missing or insufficient rate limiting is one of the frequent coding patterns discovered in our studies. A six-digit OTP with no attempt cap and a generous validity window becomes brute-forceable well within its lifetime.

from slowapi import Limiter
from slowapi.util import get_remote_address
 
limiter = Limiter(key_func=lambda r: r.path_params.get("mobile_number", get_remote_address(r)))
 
@app.post("/auth/verify-otp")
@limiter.limit("5/minute")
async def verify_otp(mobile_number: str, otp: str):
    ...

Make sure you key the limiter on the identifier being verified, since an attacker rotating IPs against one phone number is exactly the case a limiter keyed only on IP misses. Skipping this is a common reason OTP-heavy ABHA apps fail WASA certification on the first pass.

6. Unverified consent and data-flow callbacks

ABDM’s gateway pushes consent artefacts and HIP/HIU data-flow notifications to a callback URL your application registers. 

Acting on an inbound callback without verifying it actually originated from the gateway lets anyone who finds that URL POST a fabricated “consent granted” notification and trigger a data exchange the patient never authorized.

import jwt
 
def verify_gateway_callback(token: str, gateway_public_key: str) -> dict:
	try:
    	payload = jwt.decode(token, gateway_public_key, algorithms=["RS256"])
    	return payload
	except jwt.InvalidSignatureError:
    	raise HTTPException(
            status_code=401,
            detail="Callback signature verification failed",
    	)

Validate the signature against the gateway’s published certificate on every callback, the same way you’d treat a webhook from any third party. 

Part 2: Where Code Fixes and Compliance Hit a Wall Together

Fixing all six of the above gets an engineering team through the doors but the WASA certificate still sits at least five more issues away. This requires support from legal, compliance, or whoever owns the NHA relationship.

7. Role classification disputes (HIP vs. HIU vs. Consent Manager)

Your audit scope, your milestone track, and which NHA team reviews your submission all depend on how your product is classified. 

A platform that stores records (HIP) and also lets patients retrieve them (HIU) usually needs both roles tested. Teams that registered for a single milestone track often find out mid-review that their consent-fetch flow actually requires HIU-level testing too, which reopens the review and resets the certification timeline.

8. Build integrity after sign-off

A WASA certificate attaches to a specific audited build, a snapshot of your code at a point in time. 

A hotfix shipped during the NHA submission window, even something trivial like a dependency bump, creates a gap between the deployed artifact and the one that was reviewed. Freezing the build during this window helps avoid re-audits or even a full retest if the change touches anything in scope.

9. Empanelment status changing mid-engagement

This is different from the more commonly flagged mistake of picking a vendor who was never CERT-In empanelled in the first place. CERT-In’s empanelment list is refreshed periodically, and a firm that was valid when you engaged them can lose status before NHA completes its review, for reasons that have nothing to do with the quality of your audit. That alone can get the report rejected. 

10. Data localisation conflicts with default cloud setup

ABDM expects health data to stay within Indian jurisdiction. Teams that provisioned infra early, often in whatever region was the default before ABDM was on the roadmap, usually discover this during audit scoping, when an auditor asks for an infrastructure diagram. 

Moving a production database and its backups to an India region takes weeks, and without it the NHA won’t move your WASA certificate forward.

11. DPDP Act overlap that isn’t automatic coverage

ABDM’s consent artefact framework and India’s Digital Personal Data Protection Act, 2023 run alongside each other. Breach notification timelines and data principal rights under DPDP are a separate compliance surface from ABDM consent flows. Legal teams that assume ABDM compliance covers DPDP tend to find that gap during a WASA certificate review, or worse, after an incident.

Validity, Renewal, and What Happens If It Lapses

A WASA certificate, often called a Safe-to-Host certificate in ABDM contexts, is valid for one year from issue, or until the audited build changes, whichever comes first and without a valid certificate, you don’t get production API keys. 

A team shipping monthly releases should treat WASA certification as something their release process accounts for continuously, since any change touching a tested surface, a new feature, an infra migration, a dependency upgrade, etc., can reset the clock on that part of the application.

If a certificate lapses after a major release and the team doesn’t re-audit, NHA can suspend existing production access rather than just block new onboarding. 

Beyond the hard gate, the certificate is one of the few signals patients, partner hospitals, and your own leadership can point to as proof your app handles health data responsibly, and unfortunately, that’s usually how teams find out it matters.

How Can Astra Security Help With Your WASA Certificate

Astra’s WASA engagements follow the same cycle every serious audit does: an initial assessment mapped to OWASP ASVS and the WSTG, a findings report ranked by severity and real-world exploitability, a remediation window, and a retest before certification is issued. 

Scanning client-side bundles and build artifacts for hardcoded secrets is part of that initial pass by default, since exposed keys in compiled JavaScript remain one of the more common high-severity findings in healthcare applications.

For ABDM-integrated products specifically, Astra maps the same evidence to the frameworks that tend to come up alongside WASA: ISO 27001, NABH’s HIS/EMR clauses, HIPAA where applicable, and DPDPA.

Astra Security's automated DAST tool + VAPT platform dashboard

Moreover, risk mitigation strategies require multiple technical safeguards, most of which Astra implements or supports, such as:

  • Web Application Firewall (WAF) guarding all internet-facing endpoints 
  • Periodic scanning of SSL configurations 
  • Strict Content Security Policy (CSP) 
  • Regular VAPT & WASA cycles with retesting 
  • SOC2-style logging and monitoring 
  • Automated log monitoring for unusual access patterns 
  • Reports map directly to ABDM’s security requirements, which is what gets a WASA certification submission through NHA review on the first pass.

Talk to a CERT-In empanelled auditor right away about scoping your WASA certification well before your next sandbox milestone.

FAQs

What is WASA certification?

WASA certification confirms that your web application and its APIs have been tested against common vulnerabilities and data breaches, clearing your ABDM integration to move from sandbox to live production.

How to get a WASA Certificate?

Register in the ABDM sandbox, clear functional milestones M1–M3, undergo a WASA audit with a CERT-In empanelled firm, remediate findings, revalidate, then submit the issued certificate to NHA to move from sandbox to production. 

What all the WASA Audit Covers?

Authentication and session handling, access control and business logic, data protection (encryption, PII/PHI leaks), and infrastructure configuration, CORS, headers, exposed endpoints, etc., each mapped to ABDM’s security requirements. 

What happens if I patch a vulnerability after the WASA report is signed but before NHA review?

Since the deployed build no longer matches the audited one, depending on what changed, you can expect either a delta re-test or a full retest before NHA accepts the submission.

Can ABHA-linked data sit in a cloud region outside India during development?

Keep anything that touches real or production-adjacent ABHA data within an Indian region from the start, to avoid stalling your WASA certificate. 

Can a pentest we already ran for SOC 2 or ISO 27001 satisfy WASA certification instead?

No. NHA requires the audit to be performed by a CERT-In-empanelled agency, scoped specifically to ABDM’s requirements.