---
title: "What is an adversarial example? Definition and examples"
description: "An adversarial example is an input changed on purpose, often in small ways, so a machine learning model makes a wrong decision that a person would not."
canonical: "https://finic.ai/glossary/adversarial-example"
last-updated: "2026-12-03"
---

# What is an adversarial example?

An adversarial example is an input changed on purpose, often in small ways, so a machine learning model makes a wrong decision that a person would not.

Also called: adversarial attack, adversarial input, evasion attack

## How it works

Models draw decision boundaries from the data they learned. An attacker who can test inputs can search for small changes that push an input across a boundary. In images, that can be a pattern of pixels people cannot see. In text, it can be a few swapped characters or words.

Attacks with full access to the model can compute the best change directly. Attacks without access rely on repeated queries, or on a copy of the model built through [AI model theft](https://finic.ai/glossary/ai-model-theft).

## Why it matters for fraud and trust

In fraud, the adversarial idea is everyday work. Fraudsters change one input at a time, such as the amount, the email domain or the device setup, until a transaction or sign-up passes. A content filter can be fooled by odd spellings, and an image check can be fooled by edited documents. Any model that faces real attackers will face adversarial inputs.

## Example

A hypothetical fraud ring notices that orders under a certain amount get fewer reviews. They split each purchase into several smaller ones from fresh accounts, and change one detail at a time until the [risk score](https://finic.ai/glossary/risk-score) stays low.

## How teams defend against it

Teams use many signals that are hard to fake together, so a change to one input does not flip the result. Adversarial training adds attack examples to the training data. Limiting how much detail a model shows, [rate limiting](https://finic.ai/glossary/rate-limiting) repeated probes, and AI red teaming all make the search for a working input harder.

## Related terms

- [Data poisoning](https://finic.ai/glossary/data-poisoning.md): Data poisoning is an attack that corrupts the data a model learns from, so the model makes wrong or attacker-chosen decisions after training.
- [AI model theft](https://finic.ai/glossary/ai-model-theft.md): AI model theft is the copying of a model's weights or behavior without permission, by stealing the files directly or by querying the model to build a copy.
- [Risk score](https://finic.ai/glossary/risk-score.md): A risk score is a number that sums up how likely an event, such as a login, payment or application, is to be fraudulent or risky, so a system can decide how to handle it.
- [Machine learning for fraud detection](https://finic.ai/glossary/machine-learning-fraud-detection.md): Machine learning for fraud detection uses models trained on past data to estimate how likely a transaction, account or event is to be fraudulent.
- [AI red teaming](https://finic.ai/glossary/ai-red-teaming.md): AI red teaming is structured testing where people or tools act as attackers to find ways an AI system can be misused, fooled or made to cause harm before release.
