Brief IA
›

AWS Maps AI Risks According to Use Cases

Business & Startups·Tom Levy·

AWS Maps AI Risks According to Use Cases

AWS Maps AI Risks According to Use Cases
Key Takeaways
1The AWS Generative AI Scoping Matrix helps connect AI use cases to corresponding threats.
2Attacks can target data, credentials, software components, or model weights.
3On a self-managed infrastructure, resource exhaustion can disrupt training or service.
Why it matters : the scope to protect expands when the company takes on the training and operation of its models.

The AWS Generative AI Scoping Matrix maps the uses of AI to help organizations identify potential attacks and appropriate protections. For information systems security managers, the scope to defend expands as the company takes on the training and operation of models.

Self-Managed Infrastructures Also Expose Hardware

On a private cloud or on-site graphics processors, an organization can handle the design, training, and operation of its model itself. Attacks exploiting hardware side channels can then allow the deduction of weights. These can also be stolen by a member of the organization or from a compromised node.

Threat assessments in this configuration should encompass the equipment, their firmware, the operating system, and orchestration tools. Among the possible protections is attestation by Trusted Platform Module, a mechanism designed to verify the trust state of computing machines. Encryption of checkpoints is recommended both during storage and during transfers.

The internal threat also concerns the malicious modification of training programs, hyperparameters, or data. Proposed measures include dual approval for changes affecting data or scripts, as well as immutable access logs. Immutable snapshots of the training state are also part of the recommended protections.

Exposed Training Data and Prompts

Adapting a base model with a company's proprietary data and then exposing it through internal programming interfaces constitutes another risk area. Fine-tuning data can be accidentally contaminated, altered by a malicious member of the organization, or poisoned from compromised credentials. Inventorying, indicating the source, and searching for personally identifiable information, duplicates, or toxic content are part of the recommended controls.

Prompt injections can lead to the disclosure of protected information. They can reveal prompts or internal data in a public service, or extract confidential information from a fine-tuned model. Hostile inputs can also lead to hallucinations or data extraction: lightweight detectors placed on the API gateway and input sanitization are proposed for fine-tuned models.

In applications using managed APIs, compromised credentials can be used for injections, while altered training data can poison the model. For public services, recommended precautions include a directory of authorized providers and prohibiting the transmission of personally identifiable information or confidential intellectual property. Reviewing suppliers' contractual clauses regarding data processing and responsibilities is also advised.

Protecting Credentials and Limiting Access Rights

Internet access to ChatGPT or Claude presents a risk of API key or OAuth token theft. For human accounts, proposed protections include multi-factor authentication, strong passwords, and hardware authentication devices. API keys should be regularly renewed and stored in a secrets manager.

La lettre du soirGratuit · 19 h

Le brief IA que les pros lisent chaque soir

Les 7 actus IA du jour, décryptées en 5 min. Gratuit.

Inclus dès l'inscription : notre sélection des meilleurs guides & comparatifs IA.

Choisissez votre rythme

Gratuit · Pas de spam · Désabonnement en 1 clic

Internal applications may call managed services such as Amazon Bedrock, Microsoft Azure, or OpenAI. Overly permissive technical accounts can access any model endpoint; a misconfigured gateway can also expose an interface without authentication. Recommended measures include limiting permissions to what is necessary, using SigV4 signing or JWT token authentication to control requests, and automatically renewing secrets stored in a vault.

Each application should be mapped to the interface it calls, with a threat assessment on the relevant flows. Authenticating access at the gateway and validating requests are also part of the proposed protections. For fine-tuned models, undeclared or malicious interfaces can allow for abuse: recommendations include minimal rights and logging every inference request for audit.

Access to checkpoints of pre-trained models should also adhere to the principle of least privilege. Downloading or updating operations should be subject to supervisory validation.

Verifying Models and Software Components

A company can build its application on a pre-trained model, such as Llama from Meta or an offering from Hugging Face. However, this model may contain a backdoor or a malicious mechanism triggered by an event; its older versions may retain unpatched vulnerabilities. Weights can also be altered in storage, and unintentional data disclosures remain possible.

Proposed verifications focus on source repositories, a signed digital fingerprint, and logging the exact version used. Before adoption, a formal procedure should review usage rights, privacy impacts, and known security alerts. Checkpoints should be encrypted, versioned, and protected by immutability rules; inference can be isolated in a virtual private network, with monitoring for abnormal results.

The supply chain is not limited to the model: development kits and libraries that communicate with APIs also pose a risk. On an infrastructure managed by the company, compromises can affect container images, operating system packages, or firmware. Signing images, verifying them at deployment, and maintaining a signed software bill of materials for each component are among the recommended protections.

Limiting Requests to Preserve Availability

Bots capable of multiplying requests can slow down a model or render its service unavailable. For public services, abuse of rate-limiting mechanisms and denial-of-service attacks can exhaust the organization’s quota. Proposed measures include client-specific caps and a circuit breaker mechanism in the code calling the service; managed APIs should also limit the rate.

For a fine-tuned model, recommended measures include client quotas, maximum request sizes, and monitoring for unusual results. On a self-managed infrastructure, resource exhaustion can halt both training and service. Distributed compute clusters across availability zones with automatic failover, as well as quotas against denial-of-service attacks targeting GPUs, are part of the proposed protections.

A breach of confidentiality, integrity, or availability can lead to regulatory penalties, loss of customer trust, or diminished competitive advantage.

Brief IA — L'actualité IA en français

L'essentiel de l'actualité de l'intelligence artificielle, décrypté et expliqué chaque jour.