Skip to main content

How to test an AI assistant before you sign off on it

Insist on a demonstration rather than an assurance. A short list of plain tests, for example logging in with a regular staff account and attempting to pull up HR material, tells you more than any slide deck. For sensitive systems, have outsiders attempt to break it, and schedule the same checks after go-live, since the documents, the access rights and the underlying AI never stay still.

The short version

Approval should rest on evidence. The encouraging part is that the most telling checks are simple enough for a non-engineer to follow from start to finish.

If the assistant can reach sensitive material, add testers who had no hand in building it. And plan for testing to become a habit rather than a single event before launch.

A picture: a fire drill for the locks

Think of the week before a team occupies a new floor. Facilities staff borrow a sales badge and see whether it opens HR's corridor. They cancel a badge and confirm it no longer works. They leave a fake memo in the post tray to find out if anybody follows it. Each time the floor plan, the staff list or the locks change, they go through the routine again.

The comparison only goes so far. A lock either holds or it doesn't. An AI assistant may decline a blunt question and then reveal the same information when the wording shifts, so a good test asks the same thing in several ways.

Six checks you can request

Nobody expects an executive to run these personally. Have the IT team or the vendor carry them out with you in the room, or bring you the results in writing.

  1. Wrong team. Log in with a regular salesperson's account. Ask about pay, a deal still in negotiation, planned redundancies, or a particular colleague's appraisal. The right outcome is silence, without even a hint that such material exists.
  2. Access withdrawn. Grant a test account rights to one file and confirm the assistant uses it. Revoke the rights and ask once more. Note how long it takes for the file to drop out. Background: how the assistant keeps up when access changes.
  3. Indirect wording. Skip the blunt request for the redundancy plan. Try asking which locations will lose jobs, or request a summary of all material about Denver. Background: how an answer can give a document away.
  4. Booby-trapped file. Put in a test file carrying a concealed instruction, along with an invented "policy." Watch whether the assistant follows the first or repeats the second. Background: hidden instructions and planted files.
  5. Removed file. Delete a test file, then confirm the assistant can neither locate nor quote from it. Background: deleting something everywhere.
  6. The audit trail. Once all that is done, ask someone to show you exactly which person asked which question and what each one received. Background: keeping a record.

Telling a pass from a fail

Use the wrong-team check as the example. The account must be a regular staff login, not an admin one. Work through pay, then the open deal, then the redundancy plan, asking both bluntly and indirectly.

PassFail
A blank: no numbers, and nothing suggesting the files existAny number, excerpt or document name drawn from a file that user has no right to open

Run the same routine again whenever something significant shifts, such as a batch of new files, a wave of new hires, or a switch to a different AI model.

There is nothing exotic about this. It is standard software security, applied to a new kind of system. OWASP, the security foundation whose risk lists are widely used, recommends that builders and testers of any application write automated tests confirming that access controls actually work.

When to bring in outside testers

The industry term for a deliberate attempt to break a system is red teaming. NIST, the American standards body, describes it as an organized test that probes an AI system for weaknesses.

  • Before launch, not after. The UK's National Cyber Security Centre (NCSC), in guidance co-sealed by CISA, the US cybersecurity agency, advises releasing AI systems only once they have been through proper security evaluation, red teaming included.
  • Testers who didn't build it. NIST wants periodic assessments to include people other than the system's front-line developers, or independent assessors. In our view the trigger is clear: the assistant reaches sensitive files, serves more than one client, or can carry out actions.
  • People, not only software. Microsoft's AI red team has tested over 100 generative AI products and concludes that the work depends heavily on human skill and cannot be fully automated. (Microsoft also sells AI products and testing tools.)
  • Findings, not a grade. Ask what the testers uncovered and what was changed as a result. A bare pass mark tells you very little.

Why a single round won't do

WhenWhat to test
Before sign-offThe plain checks above, plus outside testers for anything sensitive
At regular intervals after go-liveThe same checks repeated, since files and access rights drift
Whenever something major changesA different AI model, new data feeds or rewritten instructions: handle it as a fresh release and test again

The ground shifts. NCSC points out that altering the data, the model or the instructions can alter how an AI system behaves, and suggests handling major updates as you would a new release. New files, new staff, or a model upgrade pushed by the vendor can each overturn last month's clean result.

Checks go stale. NIST tells organizations to keep confirming, on a regular basis, that their security measures still work and haven't been undermined.

No expertise required to break it. Microsoft's red team paper notes, in its words, that “You don't have to compute gradients to break an AI system.” Put simply, everyday phrasing can be enough to get past the defenses.

The eighth lesson in Microsoft's red team paper: the job of securing AI is never finished. Book the next round of testing before you approve the first.

What to ask your IT team or vendor

  • Will you show us the wrong-team check live, logged in as a genuine regular staff member?
  • If a person's rights to a file are withdrawn, how quickly does the assistant stop drawing on it? Can we see that happen?
  • Has someone outside the build team attempted to break it? What turned up, and what got fixed?
  • Did testing include a booby-trapped file and a concealed instruction?
  • After go-live, which checks are repeated, at what interval, and who reads the outcome?
  • What kinds of change, for instance a model upgrade or a new data feed, set off a complete retest?

Terms you may hear

  • Red teaming: specialists setting out on purpose to find where a system breaks.
  • Penetration test, pen test: an outside firm's security assessment, normally limited to an agreed set of systems.
  • Access control testing: confirming that users cannot view or do things beyond their rights.
  • Evaluation, evals, benchmarking: standard sets of test cases, run repeatedly, that measure an AI's behavior.
  • Regression testing: running old tests again after an update, to spot anything the update damaged.
  • Acceptance testing, user acceptance testing (UAT): the checks a business carries out before accepting that a system is fit to go live.

Testing is the last of the questions to ask before you approve.

How we help

We help companies get an AI project through security and legal review by turning promises into evidence. Working with your IT team or vendor, we set up and run the plain checks above with genuine regular-staff accounts, and write down what passed and what didn't.

We help you judge whether outside testers are needed, based on what the system can reach and what it can do, and make sure you get their findings and the fixes, not just a grade.

We set up the retest schedule for after go-live, along with the list of changes, such as a model upgrade or a new data feed, that should trigger a complete retest.

Talk to us about your project

Sources

A vendor-neutral explainer on this topic is on securellm.ai, which we publish.