Privacy Act · NDB
AI API incidents: when is a data breach notifiable?
· 8 min read
A Perth accounting practice finds its AI provider key in a public repository. We follow its assessment step by step under the Notifiable Data Breaches scheme.
The Nonimo teamData protection and AI integration, for engineering teams and privacy officers.
In this article
- A worked example: an accounting practice in Perth
- What kinds of AI incidents come up?
- Is it an eligible data breach?
- Does remedial action change the answer?
- How does the assessment weigh data that left as labels?
- What is the timeline?
- What should your logs be able to show?
- What else belongs in the assessment file?
- Where Nonimo fits
- Checklist
Quick answer
It can be. An incident involving prompts sent to an AI provider faces the same Notifiable Data Breaches test as any other: unauthorised access or disclosure, likely serious harm, and the effect of remedial action. The outcome turns on what was in those prompts, and your logs let you show it within the 30-day assessment window.
AI features add new places where personal information can travel. The provider's API, a tracing tool, a test account somebody forgot about: each is a new route for an incident.
The Privacy Act 1988 did not grow a special rule for AI. The Notifiable Data Breaches scheme applies as it always has, so the useful work is understanding how its tests play out when the data in question is a stream of prompts.
A worked example: an accounting practice in Perth
Calder & Rowe is a fictional accounting practice in Perth with around forty staff. Last year it built an internal tool that drafts client letters and summarises correspondence using a large language model, called from a small web app the practice hosts itself.
On a Monday morning, a secret-scanning alert lands in the IT manager's inbox. The AI provider's API key had been committed to a public code repository on Friday afternoon, in a config file pushed by a contractor.
The same week, while reviewing the incident, the team notices something else. Their application monitoring service has been capturing full request bodies, prompts included, since a library upgrade in March.
What kinds of AI incidents come up?
Most incidents involving AI APIs fall into a handful of shapes. Each one raises a different question about what someone could have seen.
| Incident | What might have been exposed | Evidence you will want |
|---|---|---|
| Leaked API key | Anything the key can reach at the provider: usage, and any stored conversations or files the account keeps | Time of exposure and revocation, provider usage logs, what the account retains |
| Incident at the AI provider | Prompts and responses held under the provider's retention settings | Provider notice, your retention configuration, what your prompts contained |
| Prompts captured by a logging or tracing tool | Full prompt text, stored by a third party for its retention period | Which fields were captured, from when, who can access the tool |
| Wrong tenant or account | Requests sent to, or responses shown in, an account that is not yours | Configuration history, request counts per destination, time window |
Calder & Rowe has two of these at once. That is common, because an incident review tends to turn up the second problem.
Is it an eligible data breach?
Under s 26WE(2), an eligible data breach happens when there is unauthorised access to, or unauthorised disclosure of, personal information, or a loss that is likely to lead to that. A reasonable person would also need to conclude that it would be likely to result in serious harm to any of the individuals it relates to.
A leaked key is not automatically a breach. If nobody used it, and nothing personal could be reached through it, there may be no access at all. If the provider's logs show calls from an unknown address over the weekend, the picture changes.
The monitoring tool is a different question. The prompts were disclosed to a service provider the practice chose, so the issue is whether that disclosure and storage were authorised and protected, and who else had access.
Does remedial action change the answer?
Section 26WF matters a great deal in AI incidents. If the entity takes action before the access or disclosure results in serious harm, and as a result a reasonable person would conclude serious harm is no longer likely, the event is not an eligible data breach, and is treated as never having been one.
For Calder & Rowe that means revoking the key within the hour, checking provider usage, asking the monitoring vendor to purge captured bodies and confirming it in writing. Fast, documented action is what gives s 26WF something to work with.
How does the assessment weigh data that left as labels?
Section 26WG lists the matters relevant to whether serious harm is likely. Several of them speak directly to how prompts were prepared before they left your environment.
- (c) and (d): the kind of information and how sensitive it is.
- (e) and (f): whether it was protected by one or more security measures, and how likely those measures are to be overcome.
- (g): who has obtained it, or could.
- (h): whether a technology or method was used that was designed to make the information unintelligible or meaningless to unauthorised people, and how likely it is that someone who holds it, and intends harm, could get what they need to reverse that. The note to the section gives an encryption key as an example.
Suppose the prompts in the monitoring tool read "[PERSON_1] has asked whether the rental property loss can be carried forward", with names, TFNs and ABNs replaced by labels before the request left. The table that maps each label back to the real value never left the practice's environment.
That is a factor the assessment weighs under (e), (f) and (h). The assessment still looks at the content as a whole, because the context of a sentence can point to a person. Labels give it a much stronger factual starting point.
What is the timeline?
Once you have reasonable grounds to suspect an eligible data breach, s 26WH requires a reasonable and expeditious assessment, with all reasonable steps taken to complete it within 30 days of becoming aware. If you then have reasonable grounds to believe it is an eligible data breach, the notification duties apply.
Under s 26WK, the statement to the Commissioner covers your identity and contact details, a description of the breach, the kinds of information involved and the steps you recommend individuals take. Under s 26WL you notify the individuals affected, or those at risk; where that is not practicable, you publish the statement on your website.
The Act asks for an expeditious assessment, so aim to finish well inside the 30 days. Most of the time goes into working out what was in the data, which is where good logs pay off.
What should your logs be able to show?
During an assessment you need to answer factual questions quickly. How many requests went out in the window, to which provider and model, and what kinds of personal information did they carry?
A log that records counts by type, and never content, answers those questions without becoming a second copy of the data. The script below summarises such a log for the exposure window. The field names (time, provider, model, counts) are a made-up example: adapt them to whatever your own logging writes.
import json
from collections import Counter
from datetime import datetime
def summarise(path: str, start: datetime, end: datetime) -> dict:
requests, models, redacted = 0, Counter(), Counter()
with open(path, encoding="utf-8") as f:
for line in f:
rec = json.loads(line)
ts = datetime.fromisoformat(rec["time"])
if not (start <= ts < end):
continue
requests += 1
models[f'{rec["provider"]}/{rec["model"]}'] += 1
redacted.update(rec["counts"])
return {"requests": requests, "models": dict(models),
"redacted_by_type": dict(redacted)}
window = (datetime.fromisoformat("2026-11-06T15:40:00+08:00"),
datetime.fromisoformat("2026-11-09T08:55:00+08:00"))
print(json.dumps(summarise("requests.jsonl", *window), indent=2))
For Calder & Rowe the output for the weekend is short: a few hundred requests from staff on Friday afternoon, none after 5 pm, and, in the version where prompts were redacted, counts of names and TFNs replaced before leaving. Combined with the provider's usage records, that is the core of the assessment file.
Keep the same discipline elsewhere. If your monitoring tool captures request bodies, turn that off for AI calls, or point it at the redacted request rather than the original.
What else belongs in the assessment file?
An assessment is easier to defend when the record is built as you go. A short, dated log of decisions is worth more than a polished report written a month later.
- When you became aware, and of what.
- Containment steps, with times: key revoked, vendor purge requested, purge confirmed.
- The data map: which systems held prompts, for how long, and in what form.
- The s 26WG analysis, factor by factor, with the evidence for each.
- The conclusion, who made it, and whether notification under s 26WK and s 26WL followed.
APP 11.1 and APP 11.3 frame the background question: were reasonable steps, including technical and organisational measures, in place before the incident? Redaction before requests leave, secret scanning and content-free logs are all measures you can point to.
If you carry cyber cover, your insurer will want the same file. Our guide on what cyber insurance in Australia covers explains what policies usually ask for.
Where Nonimo fits
The Nonimo Gateway sits between your applications and the AI provider. It replaces names, TFNs, ABNs, Medicare numbers and other personal information with labels before each request leaves, and puts the real values back in the response. It does not keep the text between requests.
It runs in its own isolated environment in Microsoft Azure's Australia East region (Sydney), and keeps a per-request log with the time, provider, model and counts by type of data, exportable as CSV or JSONL.
That log never contains the data itself, which makes it a good fit for the kind of summary above. The security page explains the set-up, and pricing lists the plans.
For the text that passes through it, Nonimo acts as a service provider handling personal information on your behalf. For checking a TFN by hand, there is a TFN checker.
Checklist
For the wider picture, see which AI tools you can use under the Privacy Act and our guide to de-identified versus pseudonymised data.
Health teams should also read IHIs and AI APIs under the Healthcare Identifiers Act, and product teams the privacy tort and AI features. If you want to see the per-request log for yourself, the home page has a ten-day trial.
Common questions
Is a leaked AI API key a notifiable data breach?
Not automatically. The test is whether personal information was accessed or disclosed, whether a reasonable person would conclude serious harm is likely, and whether remedial action under s 26WF made that harm unlikely. Provider usage logs usually settle the first question.
How long do we have to assess a suspected breach?
Section 26WH asks for a reasonable and expeditious assessment, taking all reasonable steps to complete it within 30 days of becoming aware of the grounds for suspicion. Aim to finish well inside that period, and keep a dated record as you go.
What happens if we contain the incident quickly?
Containment can change the outcome. Under s 26WF, if you act before serious harm results and a reasonable person would then conclude it is no longer likely, the event is not an eligible data breach. Record each step with its time.
Does redacting prompts before they leave affect the assessment?
It is a factor the assessment weighs. Section 26WG looks at security measures, how likely they are to be overcome, and methods designed to make information unintelligible. The context of each prompt still needs a look, because a sentence can point to a person.
Are prompts stored by a monitoring tool a data breach?
It depends on the facts. If the tool belongs to a service provider you chose, the questions are whether that storage was authorised, how it was secured and who else could reach it. Turning off body capture for AI calls avoids the question.
Who do we notify if it is an eligible data breach?
The Commissioner, with a statement under s 26WK, and the individuals affected or at risk under s 26WL, both as soon as practicable. Where notifying individuals directly is not practicable, s 26WL allows publishing the statement on your website.
What goes in the statement to the Commissioner?
Four things: who you are and how to contact you, what happened, which kinds of information were involved, and what you recommend affected people do. Section 26WK sets those contents, and the statement goes in as soon as practicable.
What should an AI request log contain?
Time, provider, model and counts by type of personal information, without the content. The Nonimo Gateway's per-request log records those details and exports as CSV or JSONL, so it can be summarised by time window during an assessment.