AI-Generated Code, Real Data Risks: What PDPC's New Advisory Means for Organisations

Article Banner

by DPEX Editorial Team


On 30 September 2026, Singapore’s Personal Data Protection Commission (PDPC) issued an advisory on the risks of using unauthorised AI tools to develop software or scripts. It outlines safeguards to help organisations meet their existing obligation under Section 24 of the Personal Data Protection Act (PDPA) to make reasonable security arrangements to protect personal data.

The central message is that while AI can generate code, it cannot take responsibility for its consequences.

Prompted by Real Case Studies

The advisory follows an incident involving Bee Cheng Hiang, where an employee used generative AI to create a bulk marketing-email script. An incomplete prompt and coding error placed recipients’ addresses together in the “To” field, exposing close to 100,000 members’ email addresses to other recipients.

The mistake was missed because testing checked activity logs rather than the emails themselves. There was also no supervisory review or formal policy for using generative AI at work. The PDPC attributed the incident to human error and inadequate safeguards rather than AI malfunction. 

The Three Main Risks

PDPC identified three main risks when organisations use AI, and how to mitigate them. 

1. Shadow AI: Tools Used Without Approval

Employees may independently adopt public AI tools without their organisation’s knowledge. Such “Shadow AI” can create uncontrolled data flows, particularly if staff enter personal information into unvetted platforms.

PDPC’s advice: Maintain an updated inventory of AI tools and their purposes, users and data flows. Assess security risks before adoption, set clear policies on permissible inputs and outputs, and restrict access to development environments according to job requirements.

2. No Human in the Loop: Trusting AI-Generated Code

Code that appears functional may still contain errors or vulnerabilities. Without a technically competent reviewer, employees may deploy unsafe scripts into live systems.

PDPC’s advice: Require appropriate human review before deployment. Train employees on responsible AI use, secure coding and data protection. Monitor AI inputs and outputs, including suspicious prompts or attempts to access confidential information.

3. Inadequate Software Testing

Even a small coding mistake can have serious consequences when an automated workflow handles thousands of records. Checking whether a script runs is not the same as checking what it actually does.

PDPC’s advice: Conduct code reviews, functional and acceptance testing, and security assessments appropriate to the risks. Document configurations and use synthetic rather than actual personal data in test environments where appropriate.

Who Is Impacted by this Advisory?

Organisations and SMEs. Any business using AI-generated scripts or automated processes involving personal data should review its safeguards. Smaller firms without dedicated development teams may be particularly exposed when employees build their own solutions. The advisory is not a ban on AI coding, nor does it create a new standalone legal obligation: existing PDPA duties still apply.

Data Protection Officers (DPOs) and Executive Management. DPOs should work with leadership, IT and business teams to identify unapproved AI usage, assess risks and update governance policies. Management must ensure employees have clear approval processes and access to technical oversight.

Developers and IT teams. Those building or deploying AI-assisted code need to apply established development controls, including independent reviews, testing and appropriate access restrictions. Outsourced technology providers should also consider these safeguards when handling clients’ personal data.

Non-technical employees. Marketing, HR, finance and operations staff can now create scripts without being programmers. A marketing executive automating customer emails or an HR officer processing applicant records may introduce data protection risks without realising it.

Individuals whose data is handled. Customers, employees and applicants ultimately bear the consequences when AI-assisted workflows inadvertently disclose or mishandle their information.

What Should Organisations Do Now?

A practical starting point is to map existing AI use, including tools adopted informally by staff. Next, establish an approval process for AI-assisted scripts that handle personal data, assess their risks, and require competent review and realistic testing before deployment.

Training should reach non-technical teams, not just developers. Crucially, organisations should test the actual outcome of automated processes rather than relying only on logs.

AI has lowered the barrier to creating software, but not the standard of care required to protect personal data. Responsible adoption means pairing faster development with stronger governance, human accountability and verification.


Sources: PDPC Advisory for Data Protection Risks When Using Unauthorised AI Tools For the Development of Software or Scripts, CNA


Share this article


Unlock these benefits
globe

Get access to news, enforcement cases, events, and actionable tips and guides

email

Get regular email updates and offers

job

Job opportunities, mentorship and career guidance

discuss

Exclusive access to Data Protection community - ask questions, network and share knowledge with peers and experts via WhatsApp and Linkedin