Skip to main content

ActionSieve

Note: ActionSieve is under active development and testing. APIs, output formats, and detection behavior are subject to change.

Multi-platform CI/CD pipeline security scanner. Finds injection vulnerabilities, supply chain risks, and misconfigurations across 10 CI/CD platforms using a pattern-driven detection engine.

What it finds

  • Expression injection — untrusted PR/issue data interpolated into shell commands via ${{ }}, $CI_*, or platform equivalents
  • Supply chain risks — unpinned action/orb/pipe/plugin refs, mutable tags, known-compromised components (advisory database)
  • Dangerous triggers — pull_request_target with head checkout, issue_comment with fork access, and platform equivalents
  • Secret exposure — static cloud credentials where OIDC is available, secrets logged or leaked through env vars
  • Privilege escalation — Docker-in-Docker on shared runners, socket mounts, privileged containers
  • Cross-step data flow — taint propagation through GITHUB_OUTPUT, matrix injection, composite action output laundering
  • Cache poisoning — cache writes reachable from fork PRs
  • Hardening gaps — missing permissions: blocks, checkout with persisted credentials, unpinned container images

Supported platforms

Platform Provider Detection
GitHub Actions github Workflows, composite actions, reusable workflows
GitLab CI gitlab .gitlab-ci.yml, includes, CI variables
Azure Pipelines azure YAML pipelines, template expressions
Jenkins jenkins Declarative + scripted pipelines (tree-sitter Groovy AST)
CircleCI circleci Config, orbs, dynamic config
Bitbucket Pipelines bitbucket Pipelines, pipes, deployment variables
Buildkite buildkite Pipeline YAML, plugins, dynamic upload
Drone CI drone Pipeline YAML, plugins
AWS CodeBuild codebuild buildspec.yml, IAM/secret misconfig
Google Cloud Build cloudbuild cloudbuild.yaml, service account config

Platform is auto-detected from repository structure. Use --platform to force a specific one.

Install

pip install actionsieve

Or for development:

git clone https://github.com/OpenSecBench/ActionSieve.git
cd ActionSieve
uv sync --dev
pre-commit install

Requires Python 3.12+.

Patterns

ActionSieve requires a pattern catalog — YAML files that define what to detect. Patterns are maintained separately from the scanner so teams can use community patterns, private patterns, or both.

Community patterns: ActionSieve-corpus

# Point to your patterns directory
actionsieve scan --patterns path/to/patterns .

# Or set the environment variable
export ACTIONSIEVE_PATTERNS=path/to/patterns
actionsieve scan .

Quick start

# Scan a repository
actionsieve scan --patterns patterns/ .

# Output as SARIF for GitHub Code Scanning
actionsieve scan --patterns patterns/ --format sarif --output results.sarif .

# Generate a component inventory (bill of materials)
actionsieve inventory .

# Check components against the advisory database
actionsieve inventory --check .

Scanning modes

Static mode (default)

Scans all pipeline files at a point in time. Every pattern fires based on what's in the definitions. This is the default when running locally.

actionsieve scan --patterns patterns/ .

PR mode (diff-aware)

Scans in the context of a specific change. Findings are filtered or elevated based on which files changed in the PR. Auto-activates in CI environments where trigger and base ref can be detected.

# Explicit changed files
actionsieve scan --patterns patterns/ --changed-files "Dockerfile,src/app.py" .

# From git diff output
git diff --name-only origin/main | actionsieve scan --patterns patterns/ --changed-files - .

# Context file (for scripted/corpus use)
actionsieve scan --patterns patterns/ --context context.yaml .

# Force mode
actionsieve scan --patterns patterns/ --mode pr --changed-files "Dockerfile" .
actionsieve scan --patterns patterns/ --mode static .    # disable auto-detection in CI

In PR mode, patterns declare how they interact with the changeset:

  • Suppress — finding hidden when no relevant file is in the changeset
  • Elevate — severity bumped when a relevant file IS in the changeset
  • Always — fires identically regardless of changeset (default)

CI auto-detection works for GitHub Actions, GitLab CI, Azure Pipelines, Jenkins, CircleCI, Bitbucket Pipelines, Buildkite, and Drone.

Incremental scanning

Scan only pipeline files changed since a git ref:

actionsieve scan --patterns patterns/ --changed-since main .

This is orthogonal to PR mode — it controls which pipeline files enter the scanner, not how findings are filtered.

Output formats

Format Flag Use case
JSON --format json Default, machine-readable
YAML --format yaml Human-readable
SARIF --format sarif GitHub/Azure Code Scanning integration
Markdown --format markdown Reports, PR comments
OCSF --format ocsf GRC platform integration (Detection Finding 2004)
CycloneDX inventory only SBOM for dependency tracking

Environment profiles

Profiles adjust severity based on deployment context. A finding on a public repo with self-hosted runners is more severe than the same finding on a private repo with ephemeral runners.

# Built-in presets
actionsieve scan --patterns patterns/ --profile hosted-public .
actionsieve scan --patterns patterns/ --profile self-hosted .
actionsieve scan --patterns patterns/ --profile hardened .

# Custom profile file
actionsieve scan --patterns patterns/ --profile my-profile.yml .

# See effective profile after resolution
actionsieve profile resolve --profile hosted-public

Profiles can suppress categories, elevate patterns, and extend presets.

Online checks

Verify that SHA-pinned actions actually point to the claimed repository:

actionsieve scan --patterns patterns/ --online .
actionsieve inventory --online --check .

Reads GITHUB_TOKEN from the environment, or pass --token.

Forge search

Search an organization's repositories for vulnerable CI/CD patterns:

# Scan all repos in an org
actionsieve search my-org --patterns patterns/ --forge github

# Targeted pattern search
actionsieve search --pattern expr-injection-run --patterns patterns/ --forge github

# GitLab group
actionsieve search my-group --patterns patterns/ --forge gitlab --token $GITLAB_TOKEN

CI integration

  • GitHub Actions — ActionSieve-action (composite action with SARIF upload to Code Scanning)
  • GitLab CI / Azure Pipelines — template examples in the action repo

PR mode auto-activates in CI — no configuration needed.

Pattern details

Inspect any pattern's full description, attack scenario, mitigations, and references:

actionsieve explain --patterns patterns/ expr-injection-run
actionsieve explain --patterns patterns/ mutable-action-ref

Corpus testing

Run detection patterns against a test corpus to validate accuracy:

# Run all corpus cases
actionsieve corpus run corpus/ --verbose

# Generate a coverage report
actionsieve corpus table corpus/

Exit codes

Code Meaning
0 No findings (or all suppressed)
1 Findings at medium severity or above (or above --fail-on threshold)
2 Critical findings

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

Metadata

Release files for actionsieve 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for actionsieve 0.1.1
File Size Uploaded Provenance
actionsieve-0.1.1.tar.gz 193.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for actionsieve 0.1.1
File Interpreter ABI Platform
actionsieve-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 286.1 kB

Release files / actionsieve-0.1.1.tar.gz

Download URL actionsieve-0.1.1.tar.gz
Size 193.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84f73508fc43d940b20d0a57ddf67b9db30dcf91b72e80c874fc473f1a492191
BLAKE2b-256 checksum
How to use checksums
7fbcbb216492613f500e35e4dbb7200b9e539ce337d49b222c7562f60c971e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release files / actionsieve-0.1.1-py3-none-any.whl

Download URL actionsieve-0.1.1-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
874874eebdfd77807473d1ee19e371da115bbaf59485da05dac9c35abd1d7022
BLAKE2b-256 checksum
How to use checksums
1bfe801e27f1a88a32293e68e28e020718a91ffb9407adef44c978bd96d0d58b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Security for actionsieve 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for actionsieve-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page