Skill 4.1.4
Implement shift-left security principles, including the AI Red Teaming Agent in Foundry
Key Concepts
Shift-left practices include threat modelling the agent system (prompt injection, tool misuse, data exfiltration, excessive agency), secure defaults in templates, secret and dependency scanning in pull requests, and security evaluations as pipeline gates.
The AI Red Teaming Agent in Foundry automates adversarial testing: it generates attack prompts across risk categories, applies attack strategies from the PyRIT framework (such as encoding, character manipulation and multi-turn escalation, grouped by complexity) and reports the attack success rate (ASR). Scans run locally with the Azure AI Evaluation SDK during development or in the cloud against agents and model deployments, and results appear in the Foundry portal for comparison across versions.