India’s Leading Domain & Web Hosting Provider
State welfare-scheme helpdesk blocks injection and PII leaks before public launch
State department's citizen helpdesk for welfare-scheme eligibility and application status · Western India · 6 weeks
As-is situation
A state department planned to launch a WhatsApp and web assistant answering questions on eligibility, documents required and application status for several welfare schemes, built by its system integrator on Google Cloud. Status lookups required an application number and mobile OTP. Pre-launch reviews had covered functionality and load, but not AI-specific risks. In a demonstration, an officer typed a request to ignore instructions and list recent applicants, and the assistant produced fragments of retrieved status records. Launch was paused, and the department asked for an independent security review within six weeks.
- Demonstrated leak of applicant status fragments through a simple injection prompt
- Scheme circulars and citizen-uploaded documents feeding retrieval without screening
- Six-week deadline before a public launch announced by the department
Approach, tools and architecture
NTSPL separated the assistant into two paths: scheme information answered from circulars only, and status lookups as a fixed flow returning one record after OTP verification, with no model access to the status database. Model Armor screens all citizen input and retrieved circular text for injection and sensitive data, and responses are screened before sending. Sensitive Data Protection masks Aadhaar and bank details in conversation logs. VPC Service Controls placed the AI and data services inside one perimeter in asia-south1. A five-day red-team in Hindi, Marathi and English retested every prior attack and 1,800 automated prompts.
Implementation approach
Measured results
Operational improvements
- The department's security cell receives weekly reports on blocked prompts by type and language
- Every new scheme circular is screened for embedded instructions before being added to the index
Cost considerations
Model Armor and Sensitive Data Protection add around ₹40,000 a month at about 6 lakh conversations. The redesign reduced model usage because status lookups no longer call the model at all, partly offsetting the cost of the new controls.
Return on investment
The value lies in launching a public service without a data breach. Separating status lookups from the model also made answers faster and cheaper, and the department plans to reuse the control pattern for two further citizen assistants.