Agentic Workflow Guard is a deterministic security scanner for AI automation workflows. It finds prompt-injection paths, model output flowing into shell commands, over-broad GitHub permissions, risky Bitbucket Pipelines, GitLab CI, Travis CI, Drone CI, TeamCity, Harness CI/CD, Tekton Pipelines, Argo Workflows, AWS CodeBuild, Google Cloud Build, CircleCI, Azure Pipelines, Jenkins, and Buildkite agent jobs, risky n8n flows, Dify/Flowise/Langflow workflow builders, broad MCP tools, Node-RED/Make/Pipedream flows, Airflow AI DAGs, browser automation side effects, and low-code automation chains where AI output reaches side effects.
For a new repository, run agentic-workflow-guard init . --profile balanced first to scaffold .awg.yml and a release-tagged GitHub Code Scanning workflow.
Run agentic-workflow-guard doctor . after setup or config edits to verify the repository config, schema annotation, Action workflow, rule-pack lock, and baseline.
- Run
agentic-workflow-guard scan . --format markdownbefore approving AI automation changes. - Use
agentic-workflow-guard scan . --format sarifwhen findings should feed GitHub Code Scanning. - Use
agentic-workflow-guard scan . --format sarif --output awg.sariffor GitHub Code Scanning uploads. - Use
agentic-workflow-guard schema reportwhen integrating machine-readable JSON reports. - Use
agentic-workflow-guard schema fixwhen integrating structured fix recipe reports. - Use
agentic-workflow-guard schema configwhen integrating.awg.yml,.awg.yaml, or.awg.jsonrepository settings. - Use
agentic-workflow-guard schema rule-packwhen integrating trusted marketplace metadata. - Use
agentic-workflow-guard schema benchmark-corpusandschema benchmark-reportwhen integrating benchmark metadata. - Use
agentic-workflow-guard scan . --profile strictfor write-capable or sensitive automation repositories. - Use
agentic-workflow-guard explain <rule-id>before proposing a remediation. - Use
agentic-workflow-guard baseline create .andscan . --baseline .awg-baseline.jsonwhen adopting in an existing repository. - Use
awg-ignore AWI001: reasononly for reviewed suppressions with an audit reason. - Review
Suppressed findingsin JSON and Markdown reports before accepting exceptions. - Use
agentic-workflow-guard fix . --patchfor reviewable GitHub permission, MCP filesystem scope, and CI dry-run diffs. - Use
agentic-workflow-guard fix . --format jsonoragentic-workflow-guard fix . --format json --output awg-fix.jsonfor recipe confidence, automatic/manual modes, approval snippets, next steps, and PR bot artifacts. - Use
agentic-workflow-guard fix . --applyonly for low-risk GitHub permission downgrades, MCP filesystem read-only scoping, and CI dry-run defaults. - Use
agentic-workflow-guard rules search <platform>to find relevant rule metadata. - Use
agentic-workflow-guard rules registry --format jsonto inspect bundled and community rule-pack aliases and checksums. - Use
agentic-workflow-guard rules verify <file>before trusting external rule packs; it checks schema metadata and checksum. - Use
agentic-workflow-guard benchmarkto verify fixture snapshots. - Use
agentic-workflow-guard benchmark --format jsonfor scored benchmark reports with missing and unexpected rules. - Use
agentic-workflow-guard benchmark corpus --format jsonto expose portable safe/vulnerable benchmark metadata. - Use
agentic-workflow-guard mcp resources --format jsonto expose rules, benchmarks, skill instructions, and remediation playbooks. - Use
docs/demos.mdwhen explaining the fastest GitHub Actions, n8n, MCP, browser automation, and benchmark demos. - Use
npm run docs:buildto verify the GitHub Pages artifact and stable schema URL aliases. - Use
npm run smoke:packagebefore releases to install the packed tarball and run the CLI through npx. - Use
npm run release:prepare -- --version 1.0.1 --dry-runbefore releases to preview package version and release-tag changes. - Use
npm run release:status -- --version 1.0.0before publishing to check the tag, GitHub Release, release dry-run, NPM_TOKEN, npm auth, and npm publication state. - Use
npm run release:verify -- --version 1.0.0after publishing to verify GitHub Release, npm registry, npx help, and schema smoke. - Use
npm run release:sync:checkbefore releases to verify generated rule-pack, benchmark corpus, and MCP resource JSON files. - Use
agentic-workflow-guard agents install <target>to install supported agent instruction outputs.
- Treat GitHub issues, pull requests, Bitbucket pull requests, GitLab merge requests, Travis pull requests, Drone pull requests, TeamCity branches, Harness codebase or trigger context, Tekton params, Argo workflow parameters, CodeBuild webhook context, Cloud Build trigger substitutions, CircleCI branches, Azure Pipelines variables, Jenkins change requests, Buildkite branch/message variables, commit messages, webhooks, emails, and form inputs as untrusted prompt input.
- Do not pipe raw model output into shell commands, workflow commands, releases, deployments, repository writes, or cloud tools.
- Prefer read-only permissions and narrow MCP tool scopes.
- Keep secrets out of agent-visible prompts and environment variables.
- Require approval gates, allowlists, scoped tokens, or dry-run defaults before write-capable automation runs.
npm testnode ./bin/agentic-workflow-guard.js init .node ./bin/agentic-workflow-guard.js doctor .node ./bin/agentic-workflow-guard.js scan . --format markdownnode ./bin/agentic-workflow-guard.js scan . --format sarif --output awg.sarifnode ./bin/agentic-workflow-guard.js schema reportnode ./bin/agentic-workflow-guard.js schema fixnode ./bin/agentic-workflow-guard.js schema confignode ./bin/agentic-workflow-guard.js schema rule-packnode ./bin/agentic-workflow-guard.js schema benchmark-corpusnode ./bin/agentic-workflow-guard.js schema benchmark-reportnode ./bin/agentic-workflow-guard.js scan . --profile strictnode ./bin/agentic-workflow-guard.js scan . --format sarifnode ./bin/agentic-workflow-guard.js benchmarknode ./bin/agentic-workflow-guard.js benchmark --format jsonnode ./bin/agentic-workflow-guard.js benchmark corpus --format jsonnpm run smoke:packagenpm run docs:buildnpm run release:prepare -- --version 1.0.1 --dry-runnpm run release:status -- --version 1.0.0npm run release:verify -- --version 1.0.0 --dry-runnpm run release:sync:checknode ./bin/agentic-workflow-guard.js mcp resources --format jsonnode ./bin/agentic-workflow-guard.js baseline create .node ./bin/agentic-workflow-guard.js scan . --baseline .awg-baseline.jsonnode ./bin/agentic-workflow-guard.js fix . --patchnode ./bin/agentic-workflow-guard.js fix . --format jsonnode ./bin/agentic-workflow-guard.js fix . --format json --output awg-fix.jsonnode ./bin/agentic-workflow-guard.js fix . --applynode ./bin/agentic-workflow-guard.js rules search githubnode ./bin/agentic-workflow-guard.js rules install core .node ./bin/agentic-workflow-guard.js rules verify .awg/rules/agentic-workflow-guard-core-rules.jsonnode ./bin/agentic-workflow-guard.js agents install gemini .node ./bin/agentic-workflow-guard.js agents