pyrit-prompt-validation

Automate PyRIT-based prompt security validation against an 85/100 score.

3|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/lukemurraynz/AgentSkill-PyRIT --skill pyrit-prompt-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyrit-prompt-validation
Source: https://github.com/lukemurraynz/AgentSkill-PyRIT/tree/main/.github/skills/pyrit-prompt-validation
Command: npx skills add https://github.com/lukemurraynz/AgentSkill-PyRIT --skill pyrit-prompt-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that prompts controlling AI behavior—system prompts, agent instructions, and prompt templates—are validated by PyRIT to certify security compliance and minimize jailbreak, prompt-injection, and leakage risks.

Core Features & Use Cases

  • Automated PyRIT-driven scoring and remediation guidance for production prompts.
  • CI/CD integration to gate changes and PRs based on security scores.
  • Actionable recommendations to strengthen prompts and reach ≥85%.

Quick Start

  • Run the PyRIT validation script from the skill directory to score a given prompt.
  • Supply your prompt via TEST_PROMPT or the codebase, and review the automated recommendations.
  • Re-run validation after implementing suggested improvements and re-check scores.

Frequently Asked Questions about pyrit-prompt-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate prompts for security vulnerabilities in CI/CD pipelines?

Prompt validation automates security scoring using PyRIT to test prompts for injection and jailbreak risks before deployment. This Skill runs PyRIT-based validation in CI/CD workflows, scoring prompts against an 85/100 security threshold and blocking changes that fall below it, preventing prompt-injection and jailbreak attacks in production AI systems.

What security risks does prompt validation prevent?

Prompt validation detects jailbreak attempts, prompt-injection attacks, and information-leakage vulnerabilities in system prompts, agent instructions, and prompt templates. PyRIT-driven scoring identifies weaknesses before prompts control AI behavior in Copilot and Coding Agent workflows, reducing exposure to adversarial prompt manipulation.

Can I integrate prompt validation into my deployment workflow?

Yes, prompt validation integrates directly into CI/CD pipelines using the run-pyrit-validation.ps1 script and OpenAI endpoints. You supply test prompts via environment variables (OPENAI_CHAT_ENDPOINT, OPENAI_CHAT_KEY, OPENAI_CHAT_MODEL) and gate PR merges and deployments on security score compliance, automating security checks without manual review.

What should I do if a prompt fails the security validation?

Prompt validation provides actionable remediation guidance identifying specific vulnerabilities and suggesting improvements to strengthen prompts. Re-run validation after implementing recommendations and iterating on prompt design until the security score reaches or exceeds 85/100, then proceed with deployment.

Does prompt validation work with system prompts and agent instructions?

Yes, prompt validation applies to system prompts, agent instructions, prompt templates, and AI prompts across Copilot and Coding Agent workflows. PyRIT scores all prompt types controlling AI behavior using the same 85/100 security threshold, ensuring consistent devsecops compliance across your AI surface.

What's required to run prompt validation in my environment?

Prompt validation requires PyRIT tooling installed, Azure OpenAI endpoints configured via OPENAI_CHAT_ENDPOINT and OPENAI_CHAT_KEY, a specified OPENAI_CHAT_MODEL, and the run-pyrit-validation.ps1 script executable in your workflow. No additional components or dependencies are needed beyond these environment prerequisites.