Singapore government generative AI security template requires web content anti-injection and action protection
The Singapore government has issued security control requirements for generative AI systems, regulating the use of external AI APIs and self-hosted model deployments according to data classification levels. Confidential-level data may only use model services hosted in Singapore, must obtain a legally binding zero data retention (ZDR) commitment, and service providers must not retain input and output data for more than 24 hours or use it for model training. Self-hosted models must be deployed in environments that comply with the data classification level, use approved formats (Safetensors or GGUF), and have model files and loaders scanned for security vulnerabilities before and during use. Application protection requires treating web-scraped content as untrusted reference data, removing hidden prompts and prompt injections, and for actions with serious consequences, limiting the scope of permissions, providing action previews, log monitoring, and rollback mechanisms; tools such as Microsoft Defender Prompt Shield and AWS Bedrock Guardrails can be used to detect prompt injection. Solutions that deviate from L1 controls must be submitted to the AI Development Group (AIDG).