Join our Newsletter — 33% off our NHI Course

Generative pre-trained transformer

A generative pre-trained transformer is a transformer-based language model pre-trained on large text corpora to predict and generate natural language. Security teams should treat its outputs as untrusted, because prompt injection, data leakage and hallucinated content can expose secrets or drive unsafe automation unless access, logging and retrieval controls are enforced.

What a generative pre-trained transformer does

A generative pre-trained transformer is built to learn statistical patterns from large text corpora, then generate likely next tokens in response to prompts. That makes it powerful for drafting, summarisation, classification and reasoning-like workflows, but also means it can confidently produce plausible but false outputs.

Its pre-training phase gives it broad language competence, while any later instruction tuning or retrieval layer shapes how it behaves in a specific application. Security and governance concerns arise because the model itself is not a trust boundary, so organisations must assume its outputs can be wrong, incomplete or manipulated.

Why this model class creates security exposure

The main security issue is not the transformer architecture itself, but the way it can be steered into revealing sensitive information, following malicious instructions or propagating unsafe actions. Prompt injection, indirect prompt injection and data leakage become more serious when the model is connected to internal documents, tools or automated workflows.

When a GPT-style system is allowed to summarise, search, answer or act across business data, it can blend untrusted input with trusted context. That creates exposure if the application treats output as authoritative, or if the model is given access to credentials, secrets, tickets or admin functions that it should not be able to influence directly.

How organisations should understand its failure modes

Two failure modes matter most: hallucination and instruction conflict. Hallucination can produce fabricated facts, invented citations or incorrect operational advice, while instruction conflict can cause the model to follow an attacker’s embedded prompt instead of the user’s intended task.

The practical consequence is that a generative pre-trained transformer should be treated as an untrusted reasoning component, not a source of truth. If you connect it to retrieval systems or enterprise tools, the risk shifts from bad text generation to bad decisions, bad automations and unintended disclosure.

Because the model may echo sensitive context from prompts, retrieved documents or conversations, logging and retention need careful handling. In regulated or high-trust environments, output review, provenance tracking and content filtering become part of the control surface, not optional extras.

Where it fits in modern AI security architecture

Most real-world deployments add retrieval, tool use, guardrails or policy layers around the base model. A useful way to think about the architecture is that the model generates language, while surrounding controls decide what it may see, say and trigger.

That is why organisations often pair model governance with retrieval controls, output filtering and least-privilege access to downstream systems. For a broader governance view of generative AI risk and control design, see NIST AI 600-1 GenAI Profile, which addresses content provenance, testing and incident handling for GenAI systems.

Threat modelling also matters because adversarial behaviour against language models is now a recognised security problem. The MITRE ATLAS adversarial AI threat matrix and the CSA MAESTRO agentic AI threat modeling framework help practitioners reason about prompt injection, tool misuse and emergent multi-step abuse.

Risk and Threat Considerations

Generative pre-trained transformers become risky when organisations forget that fluent output is not the same as reliable output. Attackers can use crafted prompts, poisoned context or maliciously retrieved content to influence responses, disclose data or drive unsafe downstream action.

Failure mechanism: The model can be induced to follow injected instructions, surface sensitive context, or produce convincing but false content that an application or operator trusts.

Impact: This can lead to secret exposure, bad automated decisions, fraud enablement, policy bypass or compromise of connected systems when model output is acted on without verification.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATLAS and CSA MAESTRO address the attack and risk surface, while NIST AI 600-1, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST AI 600-1 Generative Artificial Intelligence Profile Defines governance and risk handling for GenAI systems like GPT models
Recommendation — Apply GenAI profile controls to manage provenance, testing and incident handling around model output.
MITRE ATLAS Adversarial AI Techniques Catalogs prompt injection and other adversarial techniques against AI systems
Recommendation — Map observed abuse patterns to ATLAS and test prompts, retrieval and tool paths for exploitation.
CSA MAESTRO Agentic AI Threat Modeling Structures threat modeling for AI systems with tool use and orchestration risks
Recommendation — Model agentic workflows to identify misuse, escalation and emergent failure paths.
NIST CSF 2.0 PR.AA-05 — Protective Technology Supports limiting model and tool access so untrusted output cannot trigger broad system actions
Recommendation — Restrict model-connected actions to the minimum necessary privileges and trust boundaries.
NIST SP 800-53 Rev 5 AU-2 — Event Logging Logging is material for tracing prompts, outputs and model-driven actions
Recommendation — Log model interactions and downstream actions so suspicious prompt or output behavior can be reviewed.

Practitioner Guidance

Why practitioners should care: The key design choice is to keep the model on a short leash. Treat prompts, retrieved documents and outputs as untrusted data, and limit what the model can reach through tools, memory and connected services.

What to watch for: Watch for prompts that ask the model to ignore instructions, reveal hidden context, or take actions beyond the intended task. Also watch for outputs that contain credentials, private data, fabricated references or unusually confident operational advice.

Practitioner takeaway: Secure the application around the model, not the model alone, because most serious failures happen at the boundary between generated text and real-world authority.