A technical map of where AI risk concentrates

    An AI deployment is not one asset. It is a chain of stores and processing stages, each with a different failure mode and a different containment job.

    By Piotr Zenon Żabrowski · Published · Updated

    The eight risk locations

    Treat each row as a separate asset and trust boundary.
    LocationWhat can go wrongPrimary control
    Training corpusPoisoned or sensitive material shapes later behaviour; rare sequences may be reproduced.Provenance, quality gates and restricted corpus access.
    Model weightsMemorised material is distributed across parameters, making targeted removal and incident recovery difficult.Model provenance, extraction testing, version control and replacement plans.
    Prompts and input filesSecrets enter logs or history; hostile instructions compete with trusted instructions.Classification, redaction, retention limits and instruction/data separation.
    RAG databaseOver-broad retrieval leaks documents; poisoned chunks steer answers; embeddings expose information about source text.Query-time authorisation, ingestion provenance, tenant isolation and retrieval tests.
    Model outputConfident errors, reproduced secrets or unsafe code reach downstream systems.Grounding checks, sink-aware encoding and human review for consequential use.
    Service-side cachePrompt representations, responses or agent state persist unexpectedly or cross a tenant boundary.Cache isolation, expiry, encryption and documented invalidation behaviour.
    Audit logsDetailed prompts, tool parameters and outputs create a second high-value dataset.Minimise fields, restrict access, define retention and test deletion.
    Fine-tuning dataBad examples or hidden secrets become durable behaviour in weights or adapters.Dataset review, lineage, isolated training and rollback to a known model version.

    Due diligence that exposes the gaps

    Ask the vendor or deployment team

    • Which model and version run each task, where are they hosted, and which subcontractors receive data?
    • What enters the system prompt, user prompt, conversation history and provider-controlled instruction layer?
    • How is the context window assembled, truncated and protected from untrusted instructions?
    • Does retrieval enforce the requesting user's permissions at query time, not only during ingestion?
    • Where are prompts, files, embeddings, outputs, tool results and agent state stored, and for how long?
    • Are any customer inputs used for training, fine-tuning, evaluation or human review?
    • Which tools can read, write, send, delete or execute, and which effects require confirmation?
    • Can the system loop across multiple steps, retain memory or transfer data between services?
    • How are extraction, retrieval poisoning, prompt injection, cross-tenant access and unsafe actions tested?
    • What happens if the model provider fails, changes behaviour or must be replaced?

    The practical pattern is defence in depth: reduce exposed interfaces, isolate stores, constrain every action and keep an exit path from any single AI or ICT supplier. A current architecture diagram and evidence matter more than a generic security statement.

    Frequently asked questions

    Which location deserves review first?

    Start where external input meets authority: prompts, retrieval and tool calls. Then trace every copy into caches, logs, memory and training pipelines.

    Does self-hosting remove these risks?

    No. It changes who operates the model boundary, but the corpus, weights, retrieval store, caches, logs and application permissions still require separate controls.