AI, Software Development
AI and Your Customer Data: Security Basics

TL;DR: When AI touches your customer data, the risk is real but manageable. The basics come down to three things: knowing where your data goes, controlling who can access it, and building with encryption and logging from day one. Get these right and you have a solid foundation.
When AI starts touching your customer data, security has to be part of the plan from the start. Not bolted on later. Not handled by a policy document. Built into how the system works.
Most businesses aren't starting from zero. You already have customer records, transaction history, support tickets, maybe health or financial data. AI can do a lot with that. The question is whether you have the controls in place to do it safely.
Where does your customer data actually go?
This is the first question to answer before you add AI to anything.
When you use a third-party AI service, your data often leaves your infrastructure. It goes to the API provider's servers. Depending on your plan and their terms, that data may be used to train future models, stored temporarily, or logged for debugging.
That's not always a problem. But you need to know about it.
For most businesses, the right move is to:
- Read the data processing terms of any AI provider you're evaluating
- Check whether they offer a zero-data-retention option (many enterprise tiers do)
- Understand which regions your data is processed in, especially if you have GDPR or Australian Privacy Act obligations
- Ask your developer what data is actually being sent in each API call
If you're working with a sensitive category, like health records or financial data, you may need to use a self-hosted model rather than a third-party API. That's a bigger build, but it keeps everything inside your own environment.
For a deeper look at how AI integrates with your existing systems, see our guide on how to add AI to your existing app or software.
How do you control who sees what?
AI doesn't change the fundamentals of access control. What it does do is create new surfaces where controls can break.
Say you build an AI assistant that can answer customer questions by reading from your database. If the access controls on that assistant aren't right, a customer might be able to ask a question and get back data that belongs to someone else. That's a data breach, even if no one meant for it to happen.
Access control basics for AI systems:
- The AI should only be able to query data the current user is allowed to see
- Role-based permissions should apply at the data layer, not just the UI layer
- If your AI can write to the database (not just read), be especially careful about what actions it can take and under what conditions
- Service accounts used by AI components should have the minimum permissions needed, nothing more
This is where working with a team that understands both AI and software architecture matters. The AI piece is often straightforward. Getting the permission model right across the whole system is where things get complicated.
Our AI app development team handles this kind of architecture every day, across industries where data sensitivity is high.
What encryption do you actually need?
Encryption is non-negotiable, but the details matter.
There are two states where your data needs protection:
In transit: Data moving between your app, your database, and any AI service should use TLS (HTTPS). This is standard. If any part of your system is sending data unencrypted, fix it now.
At rest: Data sitting in your database or file storage should be encrypted. Most cloud providers (AWS, Azure, GCP) offer encryption at rest by default, but check that it's actually turned on for your specific storage services.
For businesses in regulated industries, you may also need:
- Field-level encryption for especially sensitive fields (Medicare numbers, credit card data, etc.)
- Key management processes that control who can decrypt data and when
- Audit trails that show when encrypted data was accessed
One thing worth knowing: if you're sending data to a third-party AI API and that data includes sensitive fields you don't actually need the AI to see, consider stripping or masking those fields before the API call. The AI usually doesn't need a customer's full date of birth to answer a support question.
How do you know if something goes wrong?
Logging and monitoring are the difference between finding a problem quickly and finding it six months later in a news article.
For AI systems that handle customer data, you want to be able to answer:
- What data was sent to the AI, and when?
- What did the AI return?
- Which user or service triggered the request?
- Did anything look unusual?
That means structured logging of AI interactions, not just general application logs. It also means setting up alerts for things like unusual query volumes, failed authentication attempts, or AI responses that contain data from outside the expected scope.
Many teams skip this in the early build phase because it feels like overhead. It isn't. Logging is much easier to add at the start than to retrofit later, especially when you're trying to answer security questions under pressure.
If your team is looking for frameworks to guide the overall security and governance of AI in your business, Njin at njin.co is worth a look.
What about the Australian Privacy Act?
If you operate in Australia and handle personal information, the Privacy Act applies to how you collect, store, and use that data. AI doesn't change your obligations, but it can create new ways to breach them if you're not careful.
Key things to consider:
- Are you collecting more data than you need because the AI can process it? Collection should still be proportionate to purpose.
- Have you updated your privacy policy to describe how AI is used in your systems?
- If the AI makes decisions that affect individuals (loan approvals, content moderation, hiring), do you have a way for people to understand and challenge those decisions?
- If you're using a third-party AI provider, check whether that constitutes disclosure to a third party under your privacy policy
Australia's Privacy Act is being updated. The changes have been in progress for a while, and some significant amendments are expected to come through. It's worth staying across that, particularly if you're in health, finance, or any sector that handles sensitive data.
For CTOs and technical leads who want to think through the full governance picture, our tech-for-CTOs page covers how we approach these decisions with clients.
Building AI that your customers can trust
Devwiz has been building software since 2015, over 200 products across a range of industries. We've worked with organisations including NSW Government, Briometrix, Vivid, and Huskee. In every case, the work that matters most is what happens before you write a line of AI code: understanding where data flows, who can access it, and what happens when something breaks.
AI data security isn't a separate project. It's part of building well.
If you're planning to add AI to an existing system, or building something new that will handle customer data, we can help you get the foundations right. Start at our AI app development page.
---
FAQ
Q: Does using a third-party AI API mean my customer data is at risk?
A: Not automatically, but you need to check the provider's data handling terms. Many enterprise tiers offer zero-data-retention, meaning your data isn't stored or used for training. Read the terms, pick the right plan, and only send data the AI actually needs for the task. If your data is sensitive enough, a self-hosted model may be the safer option.
Q: What is the minimum security setup for an AI feature that reads customer data?
A: At minimum: TLS for all data in transit, encryption at rest for your database, role-based access controls so the AI only sees data the current user is permitted to see, and structured logging of AI queries and responses. These four things won't cover every edge case, but they form a workable foundation to build on.
Q: How does the Australian Privacy Act apply to AI systems?
A: The Privacy Act applies to any handling of personal information, including when AI processes it. You still need to collect only what you need, keep data secure, and be transparent with users about how their data is used. If you're using a third-party AI API, passing personal data to that service may count as a disclosure under your privacy policy, so check your policy and update it if needed.
Q: Should AI be able to write to my database, or just read from it?
A: Read-only access is much safer to start with. If the AI writes to your database, you need strict controls on what it can change, under what conditions, and what happens if it gets it wrong. Build in human approval steps for high-stakes writes, and make sure every write action is logged with enough detail to reverse it if needed.
Q: How do I explain AI data security decisions to non-technical stakeholders?
A: Keep it simple: tell them where the data goes, who can see it, and what happens if something goes wrong. Most board members and senior managers care about three things: regulatory compliance, reputational risk, and whether you have a plan if there's a breach. Answer those three questions clearly, without jargon, and you'll have a productive conversation.
Frequently asked questions
Does using a third-party AI API mean my customer data is at risk?
Not automatically, but you need to check the provider's data handling terms. Many enterprise tiers offer zero-data-retention, meaning your data isn't stored or used for training. Read the terms, pick the right plan, and only send data the AI actually needs for the task. If your data is sensitive enough, a self-hosted model may be the safer option.
What is the minimum security setup for an AI feature that reads customer data?
At minimum: TLS for all data in transit, encryption at rest for your database, role-based access controls so the AI only sees data the current user is permitted to see, and structured logging of AI queries and responses. These four things won't cover every edge case, but they form a workable foundation to build on.
How does the Australian Privacy Act apply to AI systems?
The Privacy Act applies to any handling of personal information, including when AI processes it. You still need to collect only what you need, keep data secure, and be transparent with users about how their data is used. If you're using a third-party AI API, passing personal data to that service may count as a disclosure under your privacy policy, so check your policy and update it if needed.
Should AI be able to write to my database, or just read from it?
Read-only access is much safer to start with. If the AI writes to your database, you need strict controls on what it can change, under what conditions, and what happens if it gets it wrong. Build in human approval steps for high-stakes writes, and make sure every write action is logged with enough detail to reverse it if needed.
How do I explain AI data security decisions to non-technical stakeholders?
Keep it simple: tell them where the data goes, who can see it, and what happens if something goes wrong. Most board members and senior managers care about three things: regulatory compliance, reputational risk, and whether you have a plan if there's a breach. Answer those three questions clearly, without jargon, and you'll have a productive conversation.
About James Killick
James is a co-founder of Devwiz and an AI product specialist. Since 2015 he has helped ship 200+ apps for founders, businesses and government, including work for NSW Government, Briometrix and Huskee. He builds AI-first platforms and writes about turning a proven program into software. He also hosts the Up in the AI podcast.
Tags: AI Integration


