Works with the AI Agents you already use
Azure Pipelines Security Audit
CI/CD pipelines often run on agents with high-privilege service connections, making them a prime target for script injection and credential theft.
$7
Azure Pipelines Security Audit
Example session with this skill installed
Audit the Azure Pipelines config in ./deploy/ci-cd for the 'AcmePay' project. Use hex code #22c55e for the accent color.
- Read your context and instructions
- Compiled the azure pipelines security
- Generated the document
I have completed the security audit for the
AcmePay project. The scan analyzed the configuration files in the ./deploy/ci-cd directory.
The audit identifies several critical risks related to script injection and artifact exposure. A visual score-card has been generated at scan-2024-05-20.png.
Audit Results: AcmePay
Score: 24/100
Grade: F
Risk Level: CRITICAL
Total findings: 28
| Check | Score | Status |
|---|---|---|
| Script Injection | 0/15 | FAIL: Untrusted $(Build.SourceBranchName) used in bash step |
| Secrets in Config | 5/15 | WARN: Hardcoded secret found in variables block |
| Task Pinning | 5/10 | WARN: vmImage: ubuntu-latest is floating |
| Trigger Scope | 4/10 | WARN: Trigger is unscoped and runs on all branches |
| Checkout Hygiene | 0/10 | FAIL: persistCredentials: true set on checkout step |
| Deploy Gating | 0/10 | FAIL: Production job lacks environment or PR condition |
| Artifact Exposure | 0/10 | FAIL: PublishPipelineArtifact path includes .pem files |
| Pool Security | 5/10 | WARN: Self-hosted pool exposed to untrusted pull requests |
| Job Resilience | 5/5 | PASS |
| Template Pinning | 0/5 | FAIL: Template reference is unpinned |
Top 3 Prioritized Fixes
Sanitize Script Inputs: Move $(Build.SourceBranchName) from inline bash scripts to mapped environment variables to prevent injection.
2. Gate Deployments: Add an environment: production property to the 'Deploy' job to enforce manual approvals.
3.
Pin Virtual Machine Images: Replace ubuntu-latest with a specific version like ubuntu-22.04 to ensure build reproducibility.
The full detailed report is available at scan-report.md.
Clean demo project
Score: 100/100
Grade: A
Risk Level: NONE
Total findings: 0 — all 10 checks pass.
Next steps
- Review the
scan-report.mdfile for exact line numbers of the script injection vulnerabilities. - Map sensitive variables to the
env:block in your YAML rather than using macro interpolation. - Re-run the scan after applying fixes to update your security grade.
scan-2024-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
CI/CD pipelines often run on agents with high-privilege service connections, making them a prime target for script injection and credential theft. This skill audits your Azure Pipelines configuration to identify security gaps before they are exploited.
What it does
- Detects script injection by identifying untrusted fork-controlled variables like
$(Build.SourceBranch)used in shell steps. - Finds hardcoded secrets across variables blocks, task inputs, and environment variables.
- Enforces version pinning for tasks using
@majortags and container images to prevent supply chain attacks. - Audits deployment gates to ensure production jobs use environment-specific approvals or PR exclusions.
- Scans artifact exposure to prevent accidental publishing of
.env,.pem, or SSH keys. - Evaluates pool security to ensure self-hosted agents are not exposed to untrusted pull requests.
How it works
- Provide the local path to the project directory containing your
azure-pipelines.yml. - The scanner runs a local analysis of the configuration files without uploading data or calling external APIs.
- Review the generated visual score-card (PNG) and the detailed Markdown security report.
- Apply the prioritized fixes, starting with high-impact risks like secret leaks and gated deployments.
Frameworks & tools
This skill is built for Azure DevOps (Azure Pipelines) and analyzes YAML-based pipeline configurations. It uses a Python-based scanner to evaluate 10 specific security domains.
Why this beats prompting it yourself
Generic LLM prompts often miss the nuances of Azure-specific variables that allow for script injection from forks. This skill uses a structured 10-check scoring system (0-100) to provide a repeatable, objective audit rather than subjective advice.
Use cases
- Auditing a new pipeline configuration before pushing it to a production repository.
- Reviewing third-party or tutorial YAML files for hidden security risks.
- Generating a shareable security score-card for client reports or compliance checks.
- Continuous monitoring of CI/CD security posture during local development.
Known limitations
The skill audits local YAML files only and cannot scan live Azure DevOps organization settings, variable groups, or service connection permissions. Files over 2 MB are skipped.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Local YAML audit only. No access to live Azure DevOps API, variable groups, or environment approvals. Skips files over 2 MB and directories like node_modules.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3Pillow