ai-ml-pipeline
Pass
Audited by Gen Agent Trust Hub on Jul 28, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The Retrieval-Augmented Generation (RAG) implementation provided in
SKILL.mdidentifies a standard surface for indirect prompt injection. - Ingestion points: The
ragQueryfunction retrieves metadata from a vector database and interpolates it directly into the language model's system prompt. - Boundary markers: The code snippet does not implement boundary markers or delimiters to isolate the ingested context from the model's primary instructions.
- Capability inventory: The orchestration patterns describe the use of the
generateTextfunction and tool-calling capabilities (e.g.,getWeather), which could potentially be manipulated by instructions embedded in external data. - Sanitization: The template does not demonstrate sanitization or validation of the content retrieved from the vector database before it is processed by the model.
- [SAFE]: The model serving implementation uses standard PyTorch functionality for model deployment.
- Evidence: The FastAPI startup routine uses
torch.load("model.pt")to initialize model weights. - Context: This is a routine operation for serving local models in production environments.
Audit Metadata