security_jenkinsfile_check
Jenkinsfile security audit — Offline static security audit of a Jenkins pipeline (text= Jenkinsfile, declarative or scripted, or url=). Finds credentials interpolated by Groovy into double-quoted sh/bat/powershell strings, build-parameter and PR-field (CHANGE_TITLE, BRANCH_NAME) command injection, hardcoded secrets and token formats (never echoed), curl|bash, privileged containers and Docker socket mounts, unpinned images and shared libraries (@Library without a tag or on master/main), builds on the controller (agent any, label master/built-in), Jenkins.instance / evaluate / GroovyShell, set -x and echo leaking secrets, docker login -p, StrictHostKeyChecking=no, curl -k, env dumps, secret-looking archiveArtifacts, http:// SCM, deploy stages without when { branch } or input submitter, pipeline-wide credentials, missing timeout and buildDiscarder. Returns PASS/REVIEW/FAIL, score, grade, stages, credential variable names and line-numbered findings with fixes. Price: $0.006 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "security_jenkinsfile_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | pipeline { agent any stages { stage("Deploy") { steps { withCredentials([string(credentialsId: "api", variable: "TOKEN")]) { sh "curl -fsS -u deploy:${TOKEN} https://api.example.com/deploy" } } } } } |