Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Jenkinsfile Config Security Audit

    1

    This skill audits your Groovy-based pipeline configurations locally to identify critical vulnerabilities before they run on an agent.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Jenkinsfile Config Security Audit

    Jenkinsfile Config Security Audit

    Example session with this skill installed

    Audit the Jenkinsfiles in my current project directory. Use the project name "PaymentGateway-CI" and set the brand footer to "FinTech-Sec".

    • Read your context and instructions
    • Compiled the jenkinsfile config security
    • Generated the document

    I have audited the Jenkinsfiles in the specified directory for project **PaymentGateway-CI**. The scan identified 40 findings. The security grade is **F** with a CRITICAL risk level. ## Security Audit: PaymentGateway-CI | Category | Score | Findings | | :--- | :--- | :--- | | Script Injection | 0/15 | `${env.BRANCH_NAME}` interpolated in `sh` step at line 42 | | Secrets in Pipeline | 5/15 | Literal token found in `Authorization` header at line 12 | | Sandbox Escape | 10/10 | No issues found | | Library Pinning | 0/10 | Floating `@master` branch used for 'shared-ops-lib' | | Agent Security | 10/10 | No controller agents or privileged mounts detected | | Deploy Gating | 5/10 | `deploy` stage missing `when { branch }` gate | | PR Code Execution | 0/10 | `withCredentials` used inside `changeRequest` stage | | Artifact Exposure | 0/10 | `archiveArtifacts` includes `**/*.pem` | | Resource Bounds | 5/5 | Timeouts correctly implemented | | Pipeline Hygiene | 5/5 | Workspace cleanup and log rotation active | **Total Score: 17/100 (Grade: F - CRITICAL Risk)** ### Top 3 Fixes 1. **Prevent Script Injection:** Replace `${env.BRANCH_NAME}` interpolation in shell strings with environment variable lookups to prevent command injection from fork-controlled input. 2. **Mask Artifacts:** Update `archiveArtifacts` to explicitly exclude `.pem`, `.key`, and `.env` files. 3. **Pin Libraries:** Change `@master` to a specific tag or SHA (e.g., `@v2.1.0`) in your library declarations to prevent supply chain attacks. **Next steps** - Review the full finding details in `scan-report.md`. - View the visual score summary in `scan-2023-11-20.png`. - Apply the prioritized fixes and re-run the audit to improve your score. **Clean demo:** 100/100 (Grade: A), 0 findings.

    scan-2023-11-20.png

    PDF · document

    Generated

    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

    Pushing an insecure Jenkinsfile is a liability that leads to script injection, credential theft, and sandbox escapes. This skill audits your Groovy-based pipeline configurations locally to identify critical vulnerabilities before they run on an agent. ## What it does - **Detects script injection** by identifying untrusted fork-controlled variables or build parameters interpolated into shell commands. - **Scans for hardcoded secrets** in environment blocks, credentials bindings, and authorization headers. - **Identifies sandbox escapes** such as `@NonCPS` methods, `Jenkins.instance` calls, or direct `java.io` access. - **Validates agent security** by flagging stages running on the controller or Docker agents using privileged mode and socket mounts. - **Audits deployment gating** to ensure production stages require input approval and branch filters. - **Prevents artifact leaks** by checking `archiveArtifacts` and `stash` paths for sensitive files like `.pem` or `id_rsa`. ## How it works 1. **Target selection:** Provide the local directory containing the Jenkinsfiles you want to audit. 2. **Local scan:** The tool runs a local analysis script to evaluate 10 security categories, from library pinning to pipeline hygiene. 3. **Review results:** Examine the generated `scan-report.md` for a prioritized list of fixes and a 0-100 security score. 4. **Visual report:** Use the generated PNG score-card for a high-level overview of risk levels and top vulnerabilities. ## Frameworks & tools This skill analyzes Jenkins Pipeline DSL (Groovy) and interacts with local filesystems. It uses a specialized Python-based scanning engine to parse Jenkinsfiles without requiring a live Jenkins controller. ## Why this beats prompting it yourself Generic LLM prompts often miss the specific nuances of Jenkins security, such as the danger of `${env.CHANGE_BRANCH}` in a PR context or the subtle ways `@NonCPS` can bypass security restrictions. This skill follows a structured 10-point scoring system to ensure consistent, repeatable audits that prioritize the highest risks. ## Use cases - **Pre-commit checks** to ensure no secrets are accidentally committed to the pipeline code. - **Fork security** to prevent malicious pull requests from executing arbitrary code with your CI credentials. - **Infrastructure hardening** by moving stages off the controller and pinning shared libraries to specific versions. - **Compliance reporting** by generating a visual score-card for internal security audits. ## Known limitations Does not scan live Jenkins controller settings, API logs, or credentials stores. Skips files over 2 MB and directories like `node_modules` or `.git`.

    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.

    Scans local Jenkinsfiles only, not live controller settings or credentials stores. Skips files over 2 MB and directories like node_modules or .git.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill performs a local analysis of your Groovy-based pipeline files to detect vulnerabilities like script injection, secret leaks, and sandbox escapes before they ever reach your CI/CD environment.

    The audit is designed specifically for Jenkins Pipeline DSL (Groovy) files, including both Declarative and Scripted pipeline syntaxes.

    You receive the specialized Python-based scanning engine, the security scoring logic, and templates for the Markdown and PNG reports.

    This skill is highly effective at identifying dangerous patterns in PR-driven workflows, such as untrusted build parameters or unpinned shared libraries that could be exploited by malicious forks.

    No, the skill performs a local filesystem scan, meaning your sensitive pipeline code and credentials stay within your local environment during the entire audit process.

    The skill is built to be compatible with any AI agent or platform that supports local filesystem access and Python script execution.

    New in LLM Ops