How to defend against Account Takeovers
Learn about account takeover threats, protection strategies, and detection methods to secure your digital accounts and prevent unauthorised access.
Support FAQ
Training is the process of building or adapting an AI model from data. Inference is the process of using a trained model to produce an output for a new input. In simple terms, training is how the model learns patterns; inference is how an application uses those patterns to answer a prompt, classify a request, generate an image, recommend an action, or score a risk.
The distinction matters because training and inference have different data flows, costs, performance requirements, and security risks. Training often involves large datasets, long-running compute jobs, model artifacts, and data governance. Inference often involves live users, public APIs, latency targets, logging, abuse controls, and operational reliability.
For site owners and security teams, knowing which stage they are dealing with helps identify the right controls. A training pipeline needs dataset protection and provenance. An inference endpoint needs application security, rate limits, monitoring, and safeguards around prompts, tools, and outputs.
During training, a model processes many examples and adjusts internal parameters so it can recognise patterns. The examples might be text, images, code, events, transactions, product data, or labelled security signals. Large foundation models are trained on broad datasets. Smaller models may be trained or fine-tuned for a narrower task, such as classifying support tickets, detecting fraud, ranking search results, or summarising internal documents.
Training requires careful preparation. Data must be collected, cleaned, labelled, transformed, split into training and evaluation sets, and stored securely. The team should know where the data came from, whether it is allowed to be used, what sensitive fields it contains, and how long it should be retained.
Training output includes more than the model itself. It may also produce checkpoints, embeddings, evaluation reports, data snapshots, feature definitions, prompt examples, and logs. These artifacts can reveal sensitive data or business logic if they are not protected.
Inference starts after a model is available for use. An application sends an input to the model, the model processes it, and the application receives an output. In a chatbot, the input is a user prompt and the output is a response. In a bot detection system, the input might include request features and the output might be a risk score. In an image system, the input might be a prompt and the output might be generated media.
Modern inference systems often include more than a single model call. A request may pass through authentication, prompt assembly, retrieval, tool selection, safety filters, model routing, caching, and logging. If the model can call tools or APIs, inference may also trigger actions such as searching documents, creating tickets, sending messages, or updating records.
Because inference is usually connected to live applications, latency and availability matter. A slow or unavailable model can degrade user experience. An expensive inference endpoint can also become a cost target if attackers send large prompts, automate requests, or force repeated retries.
Training risks centre on data and model artifacts. Sensitive information can enter a dataset accidentally, training files can be stored in the wrong place, or a model can be trained on material the organisation is not permitted to use. Model artifacts and evaluation sets may expose private examples. If a training pipeline uses third-party services, the organisation must understand how data is retained and whether it may be used for other purposes.
Inference risks centre on interaction. Users or untrusted documents may try to manipulate the model through prompt injection. Attackers may abuse an inference endpoint for spam, phishing, scraping, credential attacks, or denial of wallet. A model may generate unsafe output, reveal private data from retrieval sources, or call tools with excessive permission.
Some risks overlap. For example, prompts and responses collected during inference may later become training data. If those logs contain secrets or customer information, the training pipeline inherits the exposure. Conversely, a poorly governed training set can create inference-time leakage if the model memorises sensitive examples.
Training is usually planned work. It can be scheduled, isolated, reviewed, and repeated. Inference is usually live work. It happens when users, agents, applications, or automated clients send requests. That means inference controls must handle unpredictable traffic and abuse.
Public inference endpoints should be treated like other high-value APIs. They need authentication where appropriate, authorisation for sensitive actions, request size limits, rate limits, schema validation, monitoring, and abuse response. The guides on what is API security and REST API security explain the underlying API controls.
Websites that expose valuable content should also consider how AI crawlers affect both training and inference ecosystems. A crawler may collect pages for model training, or an agent may fetch pages during inference to answer a user's request. These patterns can look similar in logs, so teams should evaluate user agents, route coverage, request cadence, IP and ASN patterns, and browser signals. See LLM web scrapers and how to detect AI crawlers for more detail.
Training is compute-intensive and often expensive in batches. Costs are influenced by dataset size, model size, training duration, hardware, storage, and experimentation. Teams can manage training costs through smaller experiments, dataset sampling, efficient model choices, checkpoint policies, and clear success criteria.
Inference cost scales with use. A popular feature, a badly designed retry loop, or an automated attack can increase costs quickly. Long prompts, large retrieved contexts, high-output limits, and tool calls can all increase per-request cost. Caching, routing to smaller models, limiting prompt size, and enforcing rate limits can reduce pressure.
Performance targets differ too. Training jobs may run for hours or days if they are isolated from customer workflows. Inference usually needs predictable response times. If inference supports checkout, login, support, or security decisions, it should have fallbacks for model errors and timeouts.
When evaluating a training workflow, ask: what data is used, who approved it, where is it stored, which sensitive fields are removed, who can access the artifacts, how is provenance recorded, and how can data be deleted or excluded later? Also ask whether the model provider can use submitted material for its own training.
When evaluating an inference workflow, ask: who can call it, what inputs are accepted, which tools it can use, what data it can retrieve, how outputs are validated, how abuse is rate-limited, what gets logged, and what happens when the model is wrong or unavailable?
For both stages, define ownership and incident response. A training data leak and an abused inference endpoint require different evidence, but both need clear escalation paths. Teams should know who can disable a model, rotate credentials, remove a data source, block abusive traffic, or roll back a deployment.
Training and inference are connected parts of the same AI lifecycle, but they should not be secured with one generic policy. Protect training as a sensitive data pipeline. Protect inference as a live application and API surface. Connecting those controls gives teams a clearer view of where AI risk enters and how it can be contained.
Learn about account takeover threats, protection strategies, and detection methods to secure your digital accounts and prevent unauthorised access.
An overview of Account Takeover Attacks
A practical reference for common AI crawler user agents, operators, purposes, and recommended Peakhour bot-management actions.
AI For Cybersecurity explains the concept in the context of AI security, with practical checks and mitigation considerations for site operators.
AI Image Generation explains the concept in the context of AI security, with practical checks and mitigation considerations for site operators.
AI Misuse explains the concept in the context of AI security, with practical checks and mitigation considerations for site operators.
© PEAKHOUR.IO PTY LTD 2025 ABN 76 619 930 826 All rights reserved.