The rapid adoption of AI across organizations creates a new, expanding attack surface. Viewed through the classic lens of confidentiality, integrity and availability, AI introduces a distinct set of threats, including prompt injection attacks that reveal protected data, data poisoning of training sets and automated bots flooding models with high-volume queries that degrade service or cause denial-of-service.
The compromise of any CIA pillar can trigger regulatory fines, erode customer trust and jeopardize competitive advantage — core concerns for any CISO.
The AWS Generative AI Scoping Matrix provides a comprehensive blueprint of AI use cases to help organizations understand specific AI attack vectors and mitigation strategies. Let's explore the top AI use cases, their specific attack surfaces and how to secure them.
Public-facing SaaS
This includes calling a third-party GenAI service, such as ChatGPT or Claude, over the public internet. The primary attack surfaces include the theft of credentials, such as API keys and OAuth tokens; prompt injections that reveal internal prompts or data; and rate limiting and denial-of-service (DoS) abuse that exhausts your organization's usage quota.
To mitigate these threats, the following strategies can be implemented:
- Enforce MFA and require strong passwords and hardware authenticators for all human accounts.
- Rotate API keys regularly and store them in a secrets manager.
- Apply per-client rate limits and circuit-breaker logic in client code.
- Maintain an approved provider list and an acceptable-use policy that prohibits sending personally identifiable information (PII) or confidential intellectual property to the service.
Managed enterprise APIs
This includes internal apps that use a managed AI service, such as Amazon Bedrock, Microsoft Azure and OpenAI. Primary attack surfaces include overprivileged service accounts that can call any model endpoint; supply chain risks from SDKs and libraries that interact with the API; prompt injection through compromised credentials or model poisoning through tampered training data; and misconfigured API gateways that expose unauthenticated endpoints.
The steps to mitigate these risks include:
- Use least-privilege IAM policies for each service account.
- Use mechanisms such as SigV4 request signing and JWT-based authentication to verify requests.
- Rotate secrets automatically and keep them in a vault.
- Map every internal application to the specific API it uses and run threat modeling on those data flows.
- Enforce API gateway authentication, request validation and rate limiting.
- Review vendor terms and conditions for data handling and liability clauses.
Pretrained model consumption
This involves an organization using a third-party model that's already trained on a large data set, such as Meta's Llama or offerings from Hugging Face, to build its own app. The primary attack surfaces for pretrained models include hidden backdoors or malicious triggers built into the model, unpatched vulnerabilities in older releases, tampering with model weights in storage and unintentional data leakage.
Security teams can protect apps built with pretrained models through the following steps:
- Verify the model's provenance, such as a signed hash and source repositories, and record the exact version used.
- Store checkpoints in encrypted, version-controlled storage with immutable bucket policies.
- Sandbox inference by using isolated VPC endpoints in a private virtual network and monitor output for anomalies.
- Require a formal vetting process before adopting any model that evaluates licensing, privacy impact and known security advisories.
- Enforce least-privilege IAM for any service that accesses the checkpoint and require supervisory approval for download or update operations.
Fine-tuned enterprise model
A fine-tuned enterprise AI model involves taking a base model, refining it with proprietary data and exposing it through internal APIs. The primary attack surfaces include training data poisoning by malicious insiders, compromised credentials or accidental contamination, prompt injection attacks that extract confidential information, API abuse through rogue or undisclosed endpoints, and malicious user inputs that trigger hallucinations or data exfiltration.
Mitigation strategies to protect enterprise models include the following:
- Catalog every data set used for fine-tuning. Tag provenance and run data quality scans for PII, duplicates or toxic content.
- Deploy lightweight prompt injection detectors at the API gateway and enforce input sanitization.
- Apply least-privilege IAM to the fine-tuned model's endpoints and log all inference requests for audit.
- Set per-client request quotas and payload size limits and enable model monitoring to flag abnormal output patterns.
Fully custom model and infrastructure
Here, organizations design, train and serve the model on a self-managed compute stack, such as a private cloud or on-premises GPUs. The primary attack surfaces to watch for include hardware side-channel attacks that can infer model weights; model weight theft by insiders or compromised nodes; insider manipulation of training scripts, hyperparameters, or data; supply chain compromises in container images, OS packages, or firmware; and resource exhaustion attacks that stop training or serving.
Strategies to mitigate these threats include the following:
- Perform end-to-end threat modeling that includes hardware, firmware, OS and orchestration layers.
- Encrypt checkpoints at rest and in transit.
- Use Trusted Platform Module-backed attestation to verify compute nodes are running in a trusted state.
- Sign all container images and enforce verification at deployment. Keep a signed software bill of materials for every component.
- Enforce dual-approval change management for any modification to training data or scripts and maintain immutable audit logs of access.
- Deploy multi-availability zone clusters with automated failover, create immutable snapshots of training state and establish resource-quota policies to prevent DoS on the GPU fleet.
The GenAI attack surface expands dramatically as organizations move from merely consuming SaaS models to owning the entire training and serving stack. Mapping each scope to its most likely threats and pairing those threats with concrete, targeted mitigations provides CISOs with a clear, actionable roadmap for securing AI initiatives today and in the future.
Ashwin Krishnan is the host and producer of StandOutIn90Sec, based in California, where he interviews tech leaders, employees and event speakers in short, high-impact conversations.