Pull request 214 from a fork
Where the pull request code goes in acme/web, a public repository, and the rule at each step.
- Repository settings, VNX-GH-210 (Medium): Fork pull request workflows run without approval. A first-time contributor opens a pull request from a fork. Workflows start without a maintainer approving them.
Settings > Actions > Fork pull request workflows: no approval required
Fix: Require approval for first-time contributors, or for all outside collaborators. - Workflow, VNX-GH-003 (Critical): Privileged workflow runs code from an untrusted pull request. format.yml runs on pull_request_target and checks out the fork head, so the pull request code runs with a write token and the repository secrets.
format.yml:3 on: pull_request_target format.yml:18 ref: ${{ github.event.pull_request.head.sha }}Fix: Run the fork code under pull_request with no secrets, and move the write step to a workflow_run job that never checks it out. - Action reference, VNX-GH-105 (High): Action version has a published vulnerability. The same job runs an action version with a published compromise advisory. It prints secrets to the build log.
format.yml:24 uses: tj-actions/changed-files@v45 GHSA-mrrh-fwg8-r2c3Fix: Pin a fixed release by full SHA (VNX-GH-101) and rotate every secret the job could read. - Organisation, VNX-GH-307 (High): Self-hosted runners available to public repositories. The job runs on an org runner group that accepts public repositories, so the fork code lands on a persistent machine inside the network.
runs-on: [self-hosted, linux] runner group "default": public repositories allowed
Fix: Limit the group to private repositories, or send pull request jobs to GitHub-hosted runners.
vulnesis gha audit failed: 1 critical, 2 high, 1 medium. As a required status check, it blocks the merge until it passes.
Four layers, 63 rules
GitHub posture rules by layer
Each layer has its own command, and gha audit runs all of them. Without a GitHub token the workflow rules still run on the files in the checkout; rules that need the API report "not evaluated" instead of passing. Stacked as GitHub evaluates them: org policy bounds repository settings, which bound workflows, which pull actions.
Organisation: 9 rules
vulnesis gha org --org acme
Two-factor enforcement, the members' default repository permission, public repository creation, the Actions policy and default token, organisation secrets, runner groups and webhooks, read through the API.
Token: an organisation owner's token or a GitHub App with Organization administration: read. The workflow GITHUB_TOKEN cannot read these.
- VNX-GH-301 Organisation does not require two-factor authentication (High)
- VNX-GH-302 Broad default repository permission for members (Medium)
- VNX-GH-303 Members can create public repositories (Low)
- VNX-GH-304 Organisation allows any action (Medium)
- VNX-GH-305 Organisation workflow token defaults to write (Medium)
- VNX-GH-306 Organisation secret visible to every repository (Medium)
- VNX-GH-307 Self-hosted runners available to public repositories (High)
- VNX-GH-308 Organisation lets Actions approve pull requests (Medium)
- VNX-GH-309 Organisation webhook deliveries can be forged or intercepted (Medium)
Repository settings: 22 rules
vulnesis gha settings
Default branch protection merged from rulesets and classic rules, Actions token defaults, fork pull request approval, allowed actions, secret scanning, Dependabot, environments, deploy keys, webhooks, outside admins, policy files and secret age.
Token: Administration: read and Secrets: read. Secret values are never read, only names and dates.
- VNX-GH-201 Default branch is not protected (High)
- VNX-GH-202 Default branch merges without review (High)
- VNX-GH-203 Approvals survive new commits (Medium)
- VNX-GH-204 Workflow changes bypass code owners (Medium)
- VNX-GH-205 Force pushes or deletion allowed on the default branch (High)
- VNX-GH-206 Branch protection can be bypassed (Medium)
- VNX-GH-207 No required status checks (Low)
- VNX-GH-208 Workflow token defaults to write (Medium)
- VNX-GH-209 GitHub Actions can approve pull requests (Medium)
- VNX-GH-210 Fork pull request workflows run without approval (Medium)
- VNX-GH-211 Any action may run (Low)
- VNX-GH-212 Secret scanning or push protection disabled (Medium)
- VNX-GH-213 Dependabot alerts or security updates disabled (Low)
- VNX-GH-214 Environment secrets deployable without approval (High)
- VNX-GH-215 Deploy key with write access, or unused (Medium)
- VNX-GH-216 Webhook deliveries can be forged or intercepted (Medium)
- VNX-GH-217 Outside collaborator with admin access (Medium)
- VNX-GH-218 Signed commits not required (Low)
- VNX-GH-219 Repository secret used by an untrusted-trigger workflow (High)
- VNX-GH-220 Public repository has no private vulnerability reporting (Low)
- VNX-GH-221 Security policy files missing (Low)
- VNX-GH-222 Actions secret not rotated in a year (Low)
Workflows: 22 rules
vulnesis gha workflows
Every file in .github/workflows. Untrusted input is followed through env, GITHUB_ENV, step and job outputs and local composite actions. With a token, the repository's settings raise or lower each severity.
Token: optional. The rules run on the checkout without one; with one, a public repository raises severities and a protected environment lowers them.
- VNX-GH-001 Untrusted input expanded into an executed script (Critical)
- VNX-GH-002 Untrusted input written to GITHUB_ENV or GITHUB_PATH (High)
- VNX-GH-003 Privileged workflow runs code from an untrusted pull request (Critical)
- VNX-GH-004 Checkout credentials persisted into an uploaded workspace (High)
- VNX-GH-005 Privileged workflow consumes artifacts from an untrusted run (High)
- VNX-GH-006 Release workflow restores a cache writable by untrusted runs (High)
- VNX-GH-007 Workflow token permissions not declared (Medium)
- VNX-GH-008 Excessive token permissions (Medium)
- VNX-GH-009 OIDC token minted outside a protected environment (Medium)
- VNX-GH-010 All secrets passed to a reusable workflow (Medium)
- VNX-GH-011 Secrets context exposed in bulk (High)
- VNX-GH-012 Hard-coded container registry credentials (High)
- VNX-GH-013 Deprecated workflow commands re-enabled (High)
- VNX-GH-014 Authorisation by spoofable actor name (High)
- VNX-GH-015 Condition always evaluates to true (High)
- VNX-GH-016 Self-hosted runner reachable from pull requests (High)
- VNX-GH-017 Secret printed to the job log (Medium)
- VNX-GH-018 Comment-triggered workflow without an author check (High)
- VNX-GH-019 Obfuscated action reference or expression (Low)
- VNX-GH-020 Pull request head ref used as a branch or tag name without quoting (Medium)
- VNX-GH-021 Secrets sent to an external host (Critical)
- VNX-GH-022 Privileged job restores a cache keyed on contributor input (High)
Action references: 10 rules
vulnesis gha actions
Every uses: line, resolved against GitHub: the commit behind each tag, the repository that owns it, and any advisory published for that version.
Token: needed to resolve references. Advisory lookups answer on the community tier without a Vulnesis login.
- VNX-GH-101 Action or reusable workflow not pinned to a commit SHA (Medium)
- VNX-GH-102 SHA pin does not match its version comment (High)
- VNX-GH-103 Pinned commit is not in the action's repository (Critical)
- VNX-GH-104 Action repository archived, missing or hijackable (High)
- VNX-GH-105 Action version has a published vulnerability (High)
- VNX-GH-106 Container image not pinned to a digest (Low)
- VNX-GH-107 Action major version runs on a retired runtime (Low)
- VNX-GH-108 Action not permitted by the allowed-actions policy (Medium)
- VNX-GH-109 Action owner resembles a popular publisher (High)
- VNX-GH-111 Remote script piped into an interpreter (Medium)
Publishing and collecting results
gha publish code-scanning: Uploads SARIF to GitHub code scanning, one category per scanner, so a GitHub audit never closes an IaC alert.gha publish dependency-graph: Submits the SBOM as a dependency graph snapshot, which feeds Dependabot.gha publish advisories: Drafts private repository advisories from high severity SAST findings. Nothing is ever published.gha publish campaigns: Opens GitHub security campaigns from Vulnesis campaigns, for an organisation on GitHub Advanced Security.gha upload: Collects SARIF, CycloneDX and SPDX from every artifact in the run and credits each file to the tool that wrote it.gha status: Reports what the run published to Vulnesis, per tool, for a job summary or a check.
The IaC scanner also reads workflow files, as configuration: see infrastructure as code scanning. Every other scanner category is on the code scanner page.
Example run
Audit output for the fork pull request above
Severity follows context
VNX-GH-003 stays critical here because the repository is public and the job holds a write token. The same file in a private repository with a read-only default token is rated lower.
Missing permissions are reported
Run with only GITHUB_TOKEN and the settings and org rules say "not evaluated". The summary counts them separately, so a missing permission never looks like a clean result.
Exit code for the merge gate
With --fail-on high the command exits 1 on any high or critical finding. Make the job a required status check and the merge waits for it.
$ vulnesis gha audit --fail-on high
repo acme/web (public) token GitHub App
layers workflows actions settings org
CRITICAL VNX-GH-003 Privileged workflow runs code from an untrusted pull request
.github/workflows/format.yml:3
on: pull_request_target
ref: ${{ github.event.pull_request.head.sha }}
rated for a public repository with contents: write
HIGH VNX-GH-105 Action version has a published vulnerability
.github/workflows/format.yml:24
tj-actions/changed-files@v45 GHSA-mrrh-fwg8-r2c3
HIGH VNX-GH-307 Self-hosted runners available to public repositories
org acme, runner group "default"
MEDIUM VNX-GH-210 Fork pull request workflows run without approval
Settings > Actions > Fork pull request workflows
1 critical 2 high 1 medium
exit 1
A sample run against a sample repository.
GitHub Actions
Example workflows and the permissions they need
Every scanner in the CLI is also a GitHub Action under Vulnesis/cli. The first two gate a merge with no Vulnesis account. The next three upload results with an API key, and the last two need a GitHub App or a scoped token. Each lists every permission it asks for and why.
1. Gate a pull request, fork safe
No account .github/workflows/pr-gate.yml
Audit the workflows a pull request changes, then run secrets and dependency checks. Any high finding fails the job. Make the job a required status check and the merge waits for it.
name: pr-gate
on: pull_request
permissions:
contents: read
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: Vulnesis/cli/gha-audit@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
gha-fail-on: high
- uses: Vulnesis/cli/secrets@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
- uses: Vulnesis/cli/sca@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
args: --block-malware
| Scope | Why | Used by |
|---|---|---|
contents: read | Checkout reads the repository. The token stays read-only, so code from a fork cannot push, comment or tag. | checkout, every scanner |
Left out on purpose: Administration: read, which GITHUB_TOKEN cannot hold. The settings and org rules report "not evaluated" here and run in the nightly posture job instead.
Record it leaves: No file leaves the run. The pass or fail is a GitHub check on the commit, kept with the pull request.
gha-audit action · Granular actions
2. Gate and raise alerts in code scanning
No account .github/workflows/pr-gate.yml
The same gate, with findings shown as code scanning alerts on the pull request diff. Each scanner uploads under its own category, such as gha/audit, so a workflow audit never closes an IaC alert.
name: pr-gate
on: pull_request
permissions:
contents: read
security-events: write
actions: read
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: Vulnesis/cli/gha-audit@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
gha-fail-on: high
github-code-scanning: true
- uses: Vulnesis/cli/sast@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
github-code-scanning: true
| Scope | Why | Used by |
|---|---|---|
contents: read | Checkout reads the repository. | checkout |
security-events: write | Uploads SARIF to code scanning, one category per scanner. | github-code-scanning |
actions: read | Code scanning reads the run metadata on a private repository. Drop it on a public one. | github-code-scanning |
Left out on purpose: Write access to contents and pull requests. GitHub gives fork pull requests a read-only token regardless, and the upload is skipped without failing the gate.
Record it leaves: GitHub stores each SARIF upload against the commit and the workflow run that produced it.
github-publish action · gha publish
3. Upload results on every push to main
Vulnesis API key .github/workflows/vulnesis.yml
Run the full scan plus the GitHub audit on the default branch and keep the history in the Resolve Platform. gha-status writes what arrived, per tool, into the job summary.
name: vulnesis
on:
push:
branches: [main]
permissions:
contents: read
security-events: write
actions: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: Vulnesis/cli@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
task: scan
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
github-code-scanning: true
- uses: Vulnesis/cli/gha-audit@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
upload: true
- uses: Vulnesis/cli/gha-status@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
| Scope | Why | Used by |
|---|---|---|
contents: read | Checkout reads the repository. | checkout |
security-events: write | Mirrors the SARIF into GitHub code scanning. | scan |
actions: read | Lets gha-status and code scanning read this run on a private repository. | gha-status |
VULNESIS_ORG_ID, VULNESIS_API_KEY | Repository or organisation secrets. The action passes them to the CLI as environment variables, never on the command line. | scan, gha-audit, gha-status |
Left out on purpose: id-token: write. Uploading results needs no OIDC token; add it only when the job signs or attests.
Record it leaves: Each upload is a record tied to the repository, commit, workflow and run, so a finding traces back to the run that raised it.
gha-status action · GitHub Actions setup
4. Collect third-party scanner output
Vulnesis API key .github/workflows/third-party.yml
Keep the scanners you already run. gha-upload lists the artifacts of this run, sorts SARIF, CycloneDX and SPDX, validates them and credits each finding to the tool that wrote it.
name: third-party
on:
push:
branches: [main]
permissions:
contents: read
actions: read
jobs:
collect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: gosec -fmt sarif -out gosec.sarif ./...
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gosec
path: gosec.sarif
- uses: Vulnesis/cli/gha-upload@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
| Scope | Why | Used by |
|---|---|---|
contents: read | Checkout reads the repository. | checkout |
actions: read | Lists and downloads this run's artifacts. gha-upload reads nothing outside the run. | gha-upload |
Left out on purpose: security-events: write. Add it only if you also want the gosec SARIF in GitHub code scanning.
Record it leaves: Each file is recorded with the tool that produced it, the artifact name and the run it came from.
5. Release with full provenance
Vulnesis API key .github/workflows/release.yml
On a version tag: write the SBOM, sign it, attest it in GitHub, attach it to the release, then publish the release to the Transparency Exchange API so consumers can find it by package URL.
name: release
on:
push:
tags: ['v*']
permissions:
contents: write
id-token: write
attestations: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: Vulnesis/cli/sbom@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
id: sbom
with:
sign: true
attest: true
release-tag: ${{ github.ref_name }}
- uses: Vulnesis/cli@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
task: tea-release
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
tea-files: ${{ steps.sbom.outputs.sbom }}
tea-purl: pkg:github/acme/web
tea-version: ${{ github.ref_name }}
tea-visibility: shared
# verify, anywhere:
# gh attestation verify sbom.cdx.json --repo acme/web
# vulnesis attest verify sbom.cdx.json \
# --issuer https://token.actions.githubusercontent.com \
# --identity-regex '^https://github.com/acme/web/'
| Scope | Why | Used by |
|---|---|---|
contents: write | Attaches the SBOM, its signature and certificate to the GitHub release. | release-tag |
id-token: write | Mints the runner's OIDC token for keyless Sigstore signing. No signing key is stored anywhere. | sign, attest |
attestations: write | Stores the attestation in GitHub, where gh attestation verify finds it. | attest |
VULNESIS_ORG_ID, VULNESIS_API_KEY | Authorise the TEA publish for your organisation. | tea-release |
Left out on purpose: Any write scope on pull requests, issues or packages. Run this job only on tags, behind a protected environment if your releases need approval (VNX-GH-214).
Record it leaves: Two records of the same bytes: a Sigstore-backed GitHub attestation with a public Rekor entry, and a TEA release whose SHA-256 the server checks against the one computed on the runner.
attest action · attest verify · tea-release action
6. Nightly org and settings posture
GitHub App token .github/workflows/posture.yml
Settings and org policy change without a commit, so audit them on a schedule. A GitHub App token reads what GITHUB_TOKEN cannot, and the workflow token gets no permissions at all.
name: posture
on:
schedule:
- cron: '17 3 * * *'
permissions: {}
jobs:
posture:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
id: app
with:
app-id: ${{ vars.POSTURE_APP_ID }}
private-key: ${{ secrets.POSTURE_APP_KEY }}
owner: acme
- uses: Vulnesis/cli/gha-org@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
org: acme
github-token: ${{ steps.app.outputs.token }}
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
upload: true
- uses: Vulnesis/cli/gha-settings@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
repo: acme/web
github-token: ${{ steps.app.outputs.token }}
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
upload: true
| Scope | Why | Used by |
|---|---|---|
permissions: {} | The workflow token is unused. There is no checkout: both commands read the API. | workflow |
App: Organization administration: read | Two-factor policy, default permission, Actions policy and runner groups. | gha-org |
App: Administration: read | Branch protection, rulesets, Actions permissions and fork pull request approval. | gha-settings |
App: Secrets: read | Secret names, scopes and update dates for the rotation and exposure rules. GitHub never returns the values. | gha-settings, gha-org |
Left out on purpose: Every write permission. The App only reads; findings go to Vulnesis and the exit code.
Record it leaves: Each nightly upload is a dated snapshot, so a settings change shows as a difference between two runs.
gha-org action · gha-settings action
7. Draft private advisories and campaigns
Scoped token .github/workflows/advisories.yml
Turn high severity SAST findings into draft repository advisories for a maintainer to review, and open GitHub security campaigns from Vulnesis campaigns. Nothing is published without a person.
name: advisories
on:
push:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
advise:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: Vulnesis/cli/sast@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
github-code-scanning: true
- uses: Vulnesis/cli/github-advisories@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
github-token: ${{ secrets.ADVISORY_TOKEN }}
min-severity: high
max: 10
- uses: Vulnesis/cli/github-publish@a4b190489ba04523ff24f20078b116dcb6c5445c # v0.0.1
with:
campaigns: true
campaigns-org: acme
campaigns-github-token: ${{ secrets.CAMPAIGN_TOKEN }}
org-id: ${{ secrets.VULNESIS_ORG_ID }}
api-key: ${{ secrets.VULNESIS_API_KEY }}
| Scope | Why | Used by |
|---|---|---|
contents: read, security-events: write | Checkout and the SAST upload to code scanning. | checkout, sast |
ADVISORY_TOKEN | A fine-grained token or GitHub App with repository advisories write on this repository. GITHUB_TOKEN cannot create advisories. | github-advisories |
CAMPAIGN_TOKEN | An organisation owner or security manager's token, on an organisation with GitHub Advanced Security. | campaigns |
Left out on purpose: Publish rights on advisories. Each draft carries a marker, so a rerun updates the draft instead of opening another.
Record it leaves: Each draft links the SARIF result, rule and commit it came from.
github-advisories action · github-publish action
- Every uses: line is pinned to a full commit SHA with its version as a comment, which is what VNX-GH-101 and 102 check.
- Credentials reach the CLI as environment variables, never on the command line.
- verify-provenance is on by default: before the CLI runs, the action checks its signed SLSA provenance with cosign.
- Pull requests from forks get no secrets, so the gate runs without credentials and the upload cases run only on push.
More GitHub Actions setups are on the GitHub Actions integration page, and the gate policies on quality gate.
Provenance
GitHub attestations and TEA releases
GitHub attestations answer "was this built by that workflow". The Transparency Exchange API answers "what is in version 2.4.1 of this product" for anyone holding a package URL. The release workflow above writes both from the same bytes.
- Verify the scanner:
verify-provenance: true - Write the SBOM:
Vulnesis/cli/sbom - Sign it keyless:
sign: true - Attest in GitHub:
attest: true - Attach to the release:
release-tag - Publish to TEA:
task: tea-release
Attestations and Sigstore (GitHub native)
Signed with the runner's OIDC identity, so the certificate names the repository, workflow and ref that built the file.
- attest: true runs actions/attest-build-provenance; the SBOM action uses actions/attest with the SBOM as its subject.
- sign: true writes a DSSE envelope (.intoto.jsonl) with a .sig and .pem beside the SBOM, recorded in the public Rekor log.
- Before any of this, the action checks the CLI's own SLSA provenance with cosign against token.actions.githubusercontent.com.
gh attestation verify sbom.cdx.json --repo acme/web vulnesis attest verify sbom.cdx.json \ --issuer https://token.actions.githubusercontent.com \ --identity-regex '^https://github.com/acme/web/'
What does the CLI's own provenance cover?
An SLSA v1 statement over the checksums of each CLI release, signed keyless in the release workflow. It states SLSA Build L2, not L3, and the installer refuses a binary whose checksum is not in a verified statement.
Can I verify without GitHub?
Yes. vulnesis attest verify checks the envelope, signature and certificate against the Sigstore public-good root built into the CLI, or a trusted root you pass with --trusted-root.
attest action docs · attest verify docs
TEA releases (OWASP Transparency Exchange API)
A public, standard API where a consumer looks up a product by package URL and fetches the SBOM, VEX and attestations for one version.
- tea release publishes the product, release, collection and artifacts in that order. Every step is idempotent, so a rerun changes nothing.
- The SHA-256 of each file is computed on the runner and checked by the server before the artifact is accepted.
- Visibility is private, shared or public. Public cannot be undone, so the release example uses shared.
vulnesis tea release sbom.cdx.json \ --purl pkg:github/acme/web \ --version v2.4.1 --visibility shared vulnesis tea resolve pkg:github/acme/web
Who reads a TEA release?
Customers, auditors and other pipelines. Any TEA client resolves the package URL to your release and downloads the collection, so the SBOM reaches them without an email or a portal.
Can I attach checksums from an existing GitHub release?
Yes. --checksums-from-release reads the checksums file already on the release, so TEA and GitHub list the same digests.
Malware on GitHub
Known GitHub malware vectors and Vulnesis coverage
32 published vectors, each with a named incident or disclosure, the mechanism, the sources, and the rule, detector or API call that catches each step. Nine other tools are marked from their own rule lists and launch posts. Where nothing helps, the entry says so.
As of . Vulnesis ships new rules and detectors often, and the other tools and vendors change just as fast. Treat every mark as a snapshot on this date and check the linked docs for the current state.
Vulnesis columns: Rules (vulnesis gha rules, VNX-GH-001 to 309); Scan (malscan detectors, secrets and AI-BOM scanners); Gate (SCA --block-malware and the Package Firewall); Factory (Software Factory: the same rules and risk events from the GitHub App); VDB (Backend data through the API: advisories and malware verdicts). Other tools: zizmor, poutine, octoscan, CodeQL, Scorecard, StepSecurity, Socket, Wiz Code, GitHub.
Actions and CI
Tag repointing
A stolen maintainer token moves an action's version tags to a malicious commit. Seen in tj-actions 2025, Trivy 2026.
Every workflow that pins by tag runs the new commit on its next run. The payloads read Runner.Worker memory and print or post the secrets. A full SHA pin taken before the compromise does not move.
- tj-actions/changed-files, CVE-2025-30066, March 2025, about 23,000 repositories (cisa.gov)
- reviewdog/action-setup, CVE-2025-30154, March 2025, the upstream of tj-actions (wiz.io)
- aquasecurity/trivy-action, CVE-2026-33634, March 2026, 75 of 76 tags moved (aquasec.com)
- actions-cool/issues-helper, May 2026, every tag on an impostor commit (stepsecurity.io)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: Yes.
- Rules: VNX-GH-101 flags the tag pin. 102 flags a SHA whose version comment no longer matches. 103 flags a tag on a commit that exists only in a fork.
- VDB: VNX-GH-105 asks the API (POST /v2/cli.github.advisories) whether the pinned version has an advisory, so a SHA pinned during the window is still caught.
- Rules: VNX-GH-211 and 304 flag repositories and orgs that let any action run.
- Factory: Runs the same rules when a push changes a workflow.
- Factory: The GitHub App records a moved tag or a retagged release as a risk event and hands it to an investigation.
Not covered: A SHA pinned to the malicious commit before any advisory exists. The run still executes it.
Other tools: zizmor: Yes, poutine: Partly, octoscan: Partly, CodeQL: Partly, Scorecard: Partly, StepSecurity: Partly, Socket: Yes, Wiz Code: Partly, GitHub: Yes.
- zizmor: unpinned-uses, impostor-commit, ref-version-mismatch, known-vulnerable-actions
- poutine: known_vulnerability_in_build_component
- octoscan: known-vulnerability
- CodeQL: actions/unpinned-tag, actions/vulnerable-action
- Scorecard: Pinned-Dependencies
- StepSecurity: Harden-Runner caught the tj-actions outbound call at run time
- Socket: Scans the commit a tag resolves to and flags a later retag
- Wiz Code: Warns when an action can be redirected to other code
- GitHub: SHA pinning policy (August 2025), immutable releases (October 2025), workflow lockfiles (October 2026)
Pwn request
pull_request_target runs fork code with the base repository's secrets and write token. Seen in Ultralytics 2024, Nx 2025.
The trigger exists so maintainers can label and comment on fork PRs. Checking out or interpolating the fork's code inside it hands that code the privileged context.
- Ultralytics, December 2024, miner shipped in 8.3.41 and 8.3.42 on PyPI (blog.pypi.org)
- Nx, s1ngularity, August 2025, npm publish token stolen (nx.dev)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-003 flags a privileged trigger that runs PR code. 016 flags a self-hosted runner such a job can reach. 219 flags repository secrets used by an untrusted-trigger workflow.
- Rules: VNX-GH-210 flags fork PR workflows that run without approval.
- Factory: Same rules on every workflow change.
Not covered: A trigger the rules judge safe that later calls a script the PR also changed. Review still matters.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Yes, CodeQL: Yes, Scorecard: Yes, StepSecurity: No, Socket: No, Wiz Code: Partly, GitHub: Yes.
- zizmor: dangerous-triggers, dangerous-checkout
- poutine: untrusted_checkout_exec
- octoscan: dangerous-checkout, toctou
- CodeQL: actions/untrusted-checkout, untrusted-checkout-toctou
- Scorecard: Dangerous-Workflow
- Wiz Code: Flags pull_request_target and over-privileged permissions
- GitHub: checkout v7 refuses fork heads (June 2026). pull_request_target blocked by default in public repositories from December 2 2026
Script injection
A PR title, branch name or comment is pasted into a run: script before bash parses it. Seen in Ultralytics 2024, Nx 2025.
${{ github.head_ref }} and similar expressions are substituted as text. A branch named with a quote and a command runs that command. Passing the value through env: stops it.
- GitHub Security Lab guidance, January 2021 (securitylab.github.com)
- Ultralytics head_ref injection, December 2024 (blog.pypi.org)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-001 follows untrusted input through env, GITHUB_ENV, step and job outputs and composite actions into a script. 002 flags it written to GITHUB_ENV or GITHUB_PATH. 020 flags an unquoted head ref.
- Factory: Same rules on every workflow change.
Not covered: Injection inside a third-party action's own code, which the rules do not decompile.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Yes, CodeQL: Yes, Scorecard: Yes, StepSecurity: No, Socket: Partly, Wiz Code: No, GitHub: No.
- zizmor: template-injection, github-env
- poutine: injection
- octoscan: expression-injection, dangerous-write
- CodeQL: actions/code-injection, envvar-injection, envpath-injection
- Scorecard: Dangerous-Workflow
- Socket: Taint tracking inside action JavaScript, from context to sink
Cache poisoning
A low-privilege job writes a cache entry that the release job restores. Seen in Cacheract 2024, Cline 2026.
Any job on the default branch can write the Actions cache. Filling it past 10 GB evicts the real entries, and a release that restores the same key loads the attacker's files.
- Cacheract research, Adnan Khan, May and December 2024 (adnanthekhan.com)
- Clinejection, February 2026, release tokens reached via a shared node_modules cache (adnanthekhan.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-006 flags a release workflow that restores a cache untrusted runs can write. 022 flags a privileged job whose cache key takes contributor input.
- Factory: Same rules on every workflow change.
Not covered: Spotting a poisoned entry already in the cache. The rules find the path, not the entry.
Other tools: zizmor: Yes, poutine: No, octoscan: No, CodeQL: Yes, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: Partly.
- zizmor: cache-poisoning
- CodeQL: actions/cache-poisoning, three queries
- GitHub: Read-only cache for untrusted triggers (June 2026)
Self-hosted runner takeover
A fork PR runs on a persistent runner and installs its own runner agent. Seen in PyTorch 2024, Shai-Hulud 2.0.
Non-ephemeral runners keep state between jobs. Once code runs there it can register a second runner, wait for release jobs and read their credentials.
- PyTorch, Stawinski and Khan, January 2024 (johnstawinski.com)
- Shai-Hulud 2.0 SHA1HULUD runner, November 2025, commands taken from Discussions (unit42.paloaltonetworks.com)
Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: Partly, Factory: Yes, VDB: No.
- Rules: VNX-GH-016 flags a self-hosted runner reachable from pull requests. 307 flags org runner groups open to public repositories.
- Scan: malscan finds the npm preinstall payload that registers the runner on a developer machine.
- Gate: --block-malware and the Package Firewall stop that package from installing.
- Factory: The GitHub App records a fork pull request on a workflow that uses self-hosted runners as a risk event.
Not covered: A runner agent already registered on a host. That is an endpoint question.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Partly, CodeQL: No, Scorecard: No, StepSecurity: Partly, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: self-hosted-runner
- poutine: pr_runs_on_self_hosted
- octoscan: runner-label
- StepSecurity: Harden-Runner monitors self-hosted and ARC runners
Artifact token leaks
The whole workspace, .git/config and its token included, is uploaded as an artifact. Seen in ArtiPACKED 2024.
actions/checkout stores GITHUB_TOKEN in .git/config. Artifacts can be downloaded while the run is still going, so the token is live when an outsider reads it.
- ArtiPACKED, Unit 42, August 2024, 14 large open source projects (unit42.paloaltonetworks.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-004 flags persisted checkout credentials in an uploaded workspace. 005 flags a privileged job that runs an artifact an untrusted job built.
- Factory: Same rules on every workflow change.
Not covered: Tokens printed into a build log by a tool. VNX-GH-017 catches the workflow echoing a secret, not every tool.
Other tools: zizmor: Yes, poutine: No, octoscan: Yes, CodeQL: Yes, Scorecard: No, StepSecurity: Partly, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: artipacked
- octoscan: dangerous-artefact
- CodeQL: actions/secrets-in-artifacts
- StepSecurity: Leaked-secret detection in workflow artifacts
Injected exfiltration workflow
A hijacked account commits a workflow that posts named secrets to an outside host. Seen in GhostAction 2025, wfx-loot 2026.
The attacker reads secret names from existing workflows, hard-codes them into a new file and triggers it on push. In 2026 the same idea arrived as probe pull requests across tens of thousands of repositories.
- GhostAction, September 2025, 3,325 secrets from 817 repositories (blog.gitguardian.com)
- GhostAction resurgence, August to October 2026 (socket.dev)
- wfx-loot, November 2026, malicious commits in about 8,000 repositories (aikido.dev)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-021 flags secrets sent to an external host. 011 flags the secrets context exposed in bulk.
- Rules: VNX-GH-201, 202, 204 and 205 flag the settings that let a workflow reach the default branch without review or code owners.
- Factory: Runs the rules on the push event itself, and records a first workflow change off the default branch as a risk event.
Not covered: The first run, if the file lands on an unprotected branch and triggers at once. The settings rules close that path ahead of time.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: Partly, Scorecard: Partly, StepSecurity: Yes, Socket: No, Wiz Code: No, GitHub: Partly.
- CodeQL: actions/secret-exfiltration, experimental
- Scorecard: Branch-Protection
- StepSecurity: Secret Exfiltration Protection compares a changed workflow with the default branch
- GitHub: Workflow execution protections (September 2026)
Typosquatted action owners
A lookalike org such as actons answers a misspelled uses: line. Seen in Orca research 2024.
Publishing an action needs only an account. Orca registered 14 typo orgs and found 198 workflow files already pointing at them. No in-the-wild case has been confirmed.
- Typosquatting in GitHub Actions, Orca Security, September 2024 (orca.security)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-109 flags a typosquatted owner. 108 flags an action outside your allowed-actions policy.
- Factory: Same rules on every workflow change.
Not covered: None known for owner typos. A lookalike repository name under a real owner is a different case.
Other tools: zizmor: Yes, poutine: Partly, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: typosquat-uses
- poutine: github_action_from_unverified_creator_used
Artifact poisoning across workflow_run
A privileged workflow_run job downloads and runs an artifact that a fork run uploaded. Seen in rust-lang 2022.
The fork run has no secrets, but the artifact it uploads is read by a follow-up run that holds the write token. A crafted archive overwrites scripts or paths that the privileged job then executes.
- rust-lang/rust artifact poisoning, Legit Security, fixed September 2022 (legitsecurity.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-005 flags a workflow_run job that downloads artifacts from a fork-triggered run and extracts them into the workspace.
- Factory: Runs the rule when a push changes the workflow.
Not covered: An artifact consumed inside a third-party action, whose code the rules do not read.
Other tools: zizmor: No, poutine: No, octoscan: Yes, CodeQL: Yes, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
- octoscan: dangerous-action
- CodeQL: actions/artifact-poisoning, including path traversal
Transitive action references
A pinned action pulls its own actions or images by tag, so the top-level pin does not hold. Seen in reviewdog to tj-actions 2025.
tj-actions/changed-files called reviewdog/action-setup by tag. When reviewdog was compromised, workflows that ran tj-actions ran the payload too, including some that had pinned tj-actions itself.
- tj-actions and reviewdog joint alert, CISA, March 2025 (cisa.gov)
Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Partly, VDB: No.
- Rules: Local composite actions in the repository are read with the workflows, so the references inside them are checked too.
- Factory: Checks a composite action when a push changes it.
Not covered: References inside a third-party action repository. GitHub workflow lockfiles (actions.lock) record those.
Other tools: zizmor: No, poutine: Yes, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: Partly, Wiz Code: No, GitHub: Yes.
- poutine: unpinnable_action
- Socket: Follows transitive composite actions
- GitHub: Workflow lockfiles record transitive actions (October 2026)
Re-enabled compromised action
GitHub disables a malicious action repository, then it returns with the bad tags still in place. Seen in actions-cool 2026.
A takedown stops runs only while the repository is disabled. When it comes back, every workflow that pins by tag runs the same payload again, months after teams closed the incident.
- actions-cool/issues-helper and maintain-one-comment, Socket, compromised May 2026, active again from September 2026 (socket.dev)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: Yes.
- Rules: VNX-GH-101 flags the tag pin whether or not the repository is enabled today.
- VDB: VNX-GH-105 still matches the published advisory for the compromised versions.
- Factory: Reruns the action rules on each workflow change.
Not covered: A SHA pinned to the malicious commit before the advisory was published.
Other tools: zizmor: Partly, poutine: No, octoscan: No, CodeQL: Partly, Scorecard: Partly, StepSecurity: No, Socket: Partly, Wiz Code: No, GitHub: Partly.
- zizmor: unpinned-uses, known-vulnerable-actions
- CodeQL: actions/unpinned-tag
- Scorecard: Pinned-Dependencies
- Socket: Flags a retag on the next scan
- GitHub: Lockfiles and the SHA pinning policy
Bot-actor confused deputy
A workflow trusts github.actor == dependabot[bot], and an attacker makes Dependabot the last actor. Seen in Synacktiv 2024.
github.actor is whoever caused the latest event, not who wrote the code. An attacker gets Dependabot to update their fork branch, opens the PR, and the auto-merge workflow trusts it.
- Dependabot confused deputy, Synacktiv, August 2024, fixed in spring-security and trpc (synacktiv.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-014 flags an if: that trusts a bot actor name in a workflow outsiders can trigger. 209 and 308 flag settings that let Actions approve pull requests.
- Factory: The GitHub App runs VNX-GH-014 on every push that changes a workflow.
Not covered: Auto-merge run by a third-party app rather than a workflow.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Yes, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: bot-conditions
- poutine: confused_deputy_auto_merge
- octoscan: bot-check
Runtime exfiltration from the runner
A compromised step sends secrets to an attacker host while the job runs. Seen in tj-actions 2025, Trivy 2026.
Static rules see the workflow, not what an action does once it runs. Payloads read runner memory and post the result over HTTPS or DNS. Runtime agents watch the network and block hosts outside a baseline.
- tj-actions found through an unexpected outbound call, March 2025 (cisa.gov)
- Harden-Runner DNS over HTTPS bypass, GHSA-46g3-37rh-v698, March 2026 (github.com)
Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: No, VDB: No.
- Rules: VNX-GH-021 flags a step that sends the secrets context, the environment or an encoded secret over the network, or any secret to a request-capture host or raw IP.
- Rules: VNX-GH-010 and 011 flag jobs that load every secret, which is what memory scraping takes.
Not covered: Network egress at run time. Vulnesis has no runner agent, so pair it with an egress control.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: Partly, Scorecard: No, StepSecurity: Yes, Socket: No, Wiz Code: No, GitHub: Partly.
- CodeQL: actions/request-forgery, experimental
- StepSecurity: Harden-Runner egress block mode and process monitoring
- GitHub: Native egress firewall, technical preview, audit only
Worms and credentials
Self-replicating npm worms
An install script steals tokens, republishes the victim's packages and drops a workflow. Seen in Shai-Hulud 2025, 2026.
Each wave runs at install, harvests npm and GitHub tokens, pushes a workflow that exports repository secrets and posts stolen data to new public repositories. The 2026 wave carried valid SLSA provenance.
- Shai-Hulud, September 2025 (trendmicro.com)
- Shai-Hulud 2.0, November 2025, 600 to 800 packages (securitylabs.datadoghq.com)
- Mini Shai-Hulud, April to August 2026 (akamai.com)
Vulnesis coverage: Rules: Partly, Scan: Yes, Gate: Yes, Factory: Yes, VDB: Yes.
- Scan: malscan reads the installed bytes: install-script and bad-actor-behaviors detectors (credential-file exfiltration, decode then egress), the known-bad hash list and STIX indicators.
- Gate: The Package Firewall refuses the version at install. sca --block-malware fails the build on a backend malware verdict.
- VDB: Malware verdicts and community false-positive curation come from the API on every scan.
- Rules: VNX-GH-021 flags the dropped exfiltration workflow.
- Factory: The GitHub App flags a new repository named like a worm's dump and a first workflow change off the default branch.
Not covered: Nothing beyond the detectors above. The 2026 packages had valid provenance, so a provenance check alone would have let them through.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Yes, Socket: Yes, Wiz Code: No, GitHub: Partly.
- StepSecurity: Secure Registry cooldown and compromised-package blocking
- Socket: Socket Firewall blocks confirmed malware at install
- GitHub: Package firewall, public preview, npm only (October 2026)
Runner memory and OIDC theft
Code on a runner reads Runner.Worker memory and mints cloud tokens with OIDC. Seen in Mini Shai-Hulud, wfx-loot 2026.
Secrets masked in logs are plain text in the runner process. With id-token: write the same code can mint a cloud token and, as in wfx-loot, create keys and change trust policies.
- Mini Shai-Hulud token exchange, May 2026 (unit42.paloaltonetworks.com)
- wfx-loot cloud trust backdoors, November 2026 (stepsecurity.io)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-009 flags an OIDC token minted outside a protected environment. 008 flags excessive token permissions. 214 flags environment secrets deployable without approval.
- Factory: Same rules on every workflow change.
Not covered: Memory reads by code already running in the job. The defence is keeping that code out, which the other rows cover.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Yes, Socket: No, Wiz Code: No, GitHub: No.
- StepSecurity: Harden-Runner detects Runner.Worker memory dumps
Leaked tokens
A personal access token is committed, logged or stolen by an infostealer. Seen in Mercedes-Benz 2024.
One long-lived token can push, edit workflows and read every repository its owner can. Every worm and exfiltration campaign above starts with one.
- Mercedes-Benz GitHub Enterprise token, January 2024 (techcrunch.com)
Vulnesis coverage: Rules: Partly, Scan: Yes, Gate: No, Factory: Partly, VDB: No.
- Scan: vulnesis secrets finds GitHub and GitLab tokens, cloud keys and private keys in source before they are pushed.
- Rules: VNX-GH-212 flags secret scanning or push protection switched off. 215 flags write deploy keys. 222 flags secrets not rotated in a year.
- Factory: The org audit log is polled every 15 minutes. One account cloning more than 50 repositories is flagged.
Not covered: Tokens stolen from a laptop by an infostealer.
Other tools: zizmor: Partly, poutine: No, octoscan: No, CodeQL: Partly, Scorecard: No, StepSecurity: Partly, Socket: No, Wiz Code: No, GitHub: Yes.
- zizmor: unredacted-secrets
- CodeQL: actions/unmasked-secret-exposure
- StepSecurity: Secrets found in workflow artifacts
- GitHub: Secret scanning and push protection
OAuth app phishing
A fake security alert issue links to an OAuth app asking for repo and workflow scopes. Seen in gitsecurityapp 2025.
The issue makes GitHub send its own notification email, so the lure arrives from github.com. Approving the app gives the attacker the scopes it asked for.
- gitsecurityapp, March 2025, about 12,000 repositories (helpnetsecurity.com)
- Gitloker, June 2024 (bleepingcomputer.com)
Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Partly, VDB: No.
- Rules: VNX-GH-301 flags an org that does not require 2FA, which limits the account takeovers that follow.
- Factory: The GitHub App lists the other GitHub Apps installed on the org with their permissions, and records a broad token approval as a risk event.
Not covered: OAuth apps a user authorises on their own account. Those are not listed.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: Partly.
- GitHub: Credential revocation API covers OAuth and App tokens (March 2026)
Install hooks without a lifecycle script
A binding.gyp runs code during npm install with no preinstall or postinstall entry. Seen in Phantom Gyp 2026.
npm runs node-gyp when a package ships binding.gyp, so the payload runs with no script listed in package.json. The 2026 wave added workflow steps to the repositories it reached and asked for id-token: write.
- binding.gyp npm worm, StepSecurity, June 2026 (stepsecurity.io)
- Customer notice, Arnica, June 2026 (arnica.io)
Vulnesis coverage: Rules: Partly, Scan: No, Gate: Partly, Factory: Partly, VDB: Yes.
- VDB: Versions confirmed as malware carry a verdict that SCA reports.
- Gate: --block-malware and the Package Firewall refuse a version with a verdict, and the firewall cooldown holds back versions newer than its window.
- Rules: VNX-GH-009 flags id-token: write outside a protected environment. 021 flags the injected exfiltration step.
- Factory: Sees the injected workflow change when it is pushed.
Not covered: malscan reads lifecycle scripts and the files they run. binding.gyp actions are not one of them yet.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Yes, Socket: Partly, Wiz Code: No, GitHub: Partly.
- StepSecurity: Found the wave. Secure Registry blocks compromised packages
- Socket: Socket Firewall blocks confirmed malware
- GitHub: Package firewall, public preview, npm only
Fresh-release window
Update bots and CI installs adopt a malicious version within hours of publish. Seen in Shai-Hulud 2.0 2025.
Most worm versions are found within a day or two. Bots that open a PR the moment a version appears, and CI that resolves the newest version, are the first to run them.
- Shai-Hulud 2.0 aftermath, Wiz, from November 24 2025 (wiz.io)
Vulnesis coverage: Rules: No, Scan: No, Gate: Yes, Factory: No, VDB: No.
- Gate: The Package Firewall cooldown leaves versions published inside the window out of the metadata the client sees.
Not covered: Dependabot and Renovate cooldown settings in the repository. No rule checks them yet.
Other tools: zizmor: Yes, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Yes, Socket: No, Wiz Code: No, GitHub: Yes.
- zizmor: dependabot-cooldown
- StepSecurity: Secure Registry, two-day cooldown
- GitHub: Dependabot three-day default cooldown (July 2026)
Persistence after a compromise
Stolen tokens add runners, deploy keys, collaborators or workflows that outlast the first payload. Seen in Shai-Hulud 2.0 2025.
Shai-Hulud 2.0 registered a self-hosted runner named SHA1HULUD and committed a discussion workflow, so a comment on the repository ran commands on the victim machine.
- Shai-Hulud 2.0, Datadog Security Labs, November 2025 (datadoghq.com)
Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-018 flags the comment-triggered workflow with no author check. 016 and 307 flag self-hosted runners reachable from outside. 215 and 217 flag write deploy keys and outside admins.
- Factory: Reruns the workflow and settings rules on App events, so a new workflow or deploy key is checked when it lands.
- Factory: An admin added, a write deploy key and branch protection removed are each recorded as risk events.
Not covered: A runner registered to a single repository from a developer machine.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
None of the nine tools lists a check for this vector.
Repository and identity deception
Repo confusion clones
Real repositories are cloned, loaded with an obfuscated stealer and re-uploaded. Seen in Apiiro 2024.
Automated accounts fork and re-upload thousands of projects under the same or similar names, then fork and star them to rank in search.
- Repo confusion campaign, Apiiro, February 2024, over 100,000 repositories (apiiro.com)
Vulnesis coverage: Rules: No, Scan: Partly, Gate: Partly, Factory: No, VDB: No.
- Scan: If the clone arrives as a dependency, malscan's shell-obfuscation and IOC detectors read its installed files.
- Gate: The Package Firewall checks a package fetched from a git source like any other.
Not covered: A clone a developer finds by search and runs by hand.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
None of the nine tools lists a check for this vector.
Lure repositories and fake stars
Ghost accounts star and commit to repositories that ship stealers in their releases. Seen in Stargazers 2024, GitVenom 2025.
A network of accounts splits the work: some host, some rotate links in commits, some star. Password-protected archives in Releases slip past scanners.
- Stargazers Ghost Network, Check Point, July 2024, about 3,000 accounts (research.checkpoint.com)
- GitVenom, Kaspersky, February 2025, over 200 fake projects (kaspersky.com)
Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: Partly.
- VDB: Backend malware analysis weighs github-stars and metadata-reputation signals when a package points at such a repository.
- Scan: STIX indicators from published research match known download hosts in installed files.
Not covered: A release binary downloaded and run outside a package manager.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
None of the nine tools lists a check for this vector.
Repojacking
After a rename, the attacker registers the old name and serves code from it. Seen in Aqua research 2023.
GitHub redirects the old path until someone claims it. uses: lines, go get paths and install scripts that name the old owner then fetch the attacker's repository.
- Repojacking dataset, Aqua Security, June 2023 (aquasec.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-104 flags an action whose repository is archived, renamed, missing or claimable.
- Factory: Same rule on every workflow change.
Not covered: Renamed repositories named in shell scripts and READMEs rather than uses: lines.
Other tools: zizmor: Partly, poutine: No, octoscan: Yes, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: archived-uses
- octoscan: repo-jacking
Spoofed commits and fake bots
Unauthenticated git metadata makes a commit look like Dependabot or a maintainer. Seen in Checkmarx 2023, Top.gg 2024.
Author and committer fields are free text. With a stolen token the attacker pushes a commit signed as dependabot[bot] that adds a workflow or a dependency.
- Fake Dependabot commits, Checkmarx, July 2023 (checkmarx.com)
- Top.gg maintainer hijack, March 2024 (checkmarx.com)
Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-218 flags a branch that does not require signed commits. 014 flags workflows that trust an actor name a commit can spoof.
- Scan: The goodkeys allowlist separates GitHub web-flow and Dependabot signatures from lookalikes.
- Factory: Commit signing checks on pushes through the GitHub App.
Not covered: A commit signed by the real account after its keys were stolen.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Yes, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
- zizmor: bot-conditions
- poutine: confused_deputy_auto_merge
- octoscan: bot-check
Invisible Unicode in commits
Payloads hidden in variation selectors inside commits that look routine. Seen in GlassWorm 2025, 2026.
The code renders as blank in editors and diffs. Stolen credentials push it into real repositories with commit messages written to look ordinary.
- GlassWorm, October 2025 and March 2026 (paloaltonetworks.com)
Vulnesis coverage: Rules: No, Scan: No, Gate: No, Factory: No, VDB: No.
Not covered: Detection of invisible Unicode payloads in source.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
None of the nine tools lists a check for this vector.
GitHub as command and control
Implants read commands from repository files and post stolen data back through the API. Seen in Trellix 2025.
The traffic is TLS to github.com, which few networks block. Commands sit in private repositories or issues and stolen data goes up through the Contents API.
- DPRK-linked campaign, Trellix, August 2025 (trellix.com)
Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: No.
- Scan: STIX indicators match a known C2 repository URL in installed files.
Not covered: Implant traffic on a host. Network and endpoint tools own this.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: No, GitHub: No.
None of the nine tools lists a check for this vector.
Dependency confusion
An internal package name, leaked from a manifest, is published on the public registry. Seen in torchtriton 2022.
The resolver prefers the higher version on the public index. Manifests in public repositories are where the names leak.
- PyTorch torchtriton, December 2022 (pytorch.org)
Vulnesis coverage: Rules: No, Scan: Yes, Gate: Yes, Factory: No, VDB: Yes.
- Gate: The Package Firewall resolves through one proxy, so the public lookalike is checked before it installs.
- Scan: The name-typosquat and install-script detectors read the installed package.
- VDB: Known confusion packages carry a malware verdict in the database.
Not covered: A first-seen package with no install script and nothing on disk yet to flag.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: Partly, StepSecurity: Partly, Socket: Yes, Wiz Code: No, GitHub: Partly.
- Scorecard: Pinned-Dependencies, partly
- StepSecurity: Secure Registry
- Socket: Socket Firewall
- GitHub: Package firewall, public preview, npm only
Poisoned IDE extensions
A trojanized editor extension steals the GitHub tokens on a developer machine. Seen in Nx Console 2026, GlassWorm 2025.
Extensions run with the user permissions and can read the tokens that git, gh and the editor keep. In May 2026 a trojanized Nx Console release led to about 3,800 internal GitHub repositories being taken.
- GitHub internal repositories, TeamPCP, May 2026 (helpnetsecurity.com)
- GlassWorm on Open VSX, Koi Security, October 2025 (paloaltonetworks.com)
Vulnesis coverage: Rules: No, Scan: No, Gate: No, Factory: No, VDB: No.
Not covered: Editor extensions on developer machines. Vulnesis does not scan them today.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Partly, Socket: Partly, Wiz Code: No, GitHub: No.
- StepSecurity: Dev Machine Guard and Device Policy for VS Code extensions
- Socket: Extension coverage from the Secure Annex acquisition (April 2026)
AI agents
Prompt injection through issues
An agent reads a hostile issue and acts with its token. Seen in GitHub MCP 2025, Cline 2026.
An agent given a broad token and untrusted text will follow the text. In the Cline case an issue title reached a triage workflow that ran an agent, and the agent reached the release cache.
- GitHub MCP toxic agent flow, Invariant Labs, May 2025 (invariantlabs.ai)
- Clinejection, February 2026 (adnanthekhan.com)
Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-018 flags a comment or issue trigger with no author check. 008 flags the broad token the agent is handed. 006 and 022 flag the cache path the Cline attacker used.
- Scan: vulnesis aibom lists the agents and models configured in the repository, so you know which workflows run one.
- Factory: The GitHub App runs VNX-GH-018 and 008 on every push that changes a workflow, so a new agent workflow is checked when it lands.
Not covered: An agent on a developer machine using a personal token.
Other tools: zizmor: No, poutine: No, octoscan: Yes, CodeQL: No, Scorecard: No, StepSecurity: No, Socket: No, Wiz Code: Yes, GitHub: No.
- octoscan: prompt-injection
- Wiz Code: Flags AI agents with dangerous tools on external triggers
AI CLIs turned on the host
A malicious install script runs local coding agents with permission checks off to hunt for secrets. Seen in s1ngularity 2025.
The Nx packages asked installed AI CLIs to search the disk for wallets and tokens, then used the victim's gh token to publish the results to new public repositories.
- s1ngularity, Nx, August 2025 (nx.dev)
- Analysis, Snyk, August 2025 (snyk.io)
Vulnesis coverage: Rules: No, Scan: Yes, Gate: Yes, Factory: No, VDB: Yes.
- Scan: malscan's install-script and credential-file exfiltration detectors flag the postinstall.
- Gate: The Package Firewall and --block-malware stop the version at install.
- VDB: The malicious Nx versions carry a malware verdict.
Not covered: The agents themselves. AI-BOM inventories them; it does not police their flags.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Partly, Socket: Partly, Wiz Code: No, GitHub: No.
- StepSecurity: Egress block mode stops the upload
- Socket: Firewall blocks the malicious versions once confirmed
Agent config files committed to a repository
Hook and MCP files such as .claude/settings.json or .vscode/tasks.json run code when a project opens. Seen in JFrog 2026.
Coding agents and editors run the hooks, tasks and MCP servers a repository declares. Attackers committed these files to 42 repositories, padded so large that GitHub search and the contents API skipped them.
- 42 repositories with oversized agent files, JFrog, October 2026 (infoworld.com)
- claude-code-action loads a malicious .mcp.json, GHSA-8q5r-mmjf-575q, June 2026 (github.com)
Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: No.
- Scan: vulnesis aibom records agent hooks, MCP server configs and shared convention files as evidence, so a new hook shows in the AI-BOM diff.
Not covered: Judging whether a hook command is malicious. AI-BOM lists it and does not block it.
Other tools: zizmor: No, poutine: No, octoscan: No, CodeQL: No, Scorecard: No, StepSecurity: Partly, Socket: No, Wiz Code: No, GitHub: No.
- StepSecurity: Dev Machine Guard inventories AI agents and MCP servers on developer machines
Autonomous AI attack bots
An LLM-driven bot scans thousands of repositories and opens exploit PRs against pwn requests and injections. Seen in hackerbot-claw 2026.
The bot needs no new bug. It finds the same pull_request_target and injection patterns at machine speed, and the Trivy tag compromise followed one of its hits.
- hackerbot-claw, StepSecurity, February to March 2026 (stepsecurity.io)
- Trivy tag compromise, GHSA-69fq-xp46-6x23, March 2026 (github.com)
Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.
- Rules: VNX-GH-003, 001 and 018 flag the patterns the bot looks for. 210 flags fork PRs that run without approval.
- Factory: Checks a workflow change when it is pushed, before a bot finds it.
Not covered: Triage of the incoming pull requests themselves.
Other tools: zizmor: Yes, poutine: Yes, octoscan: Yes, CodeQL: Yes, Scorecard: Yes, StepSecurity: No, Socket: No, Wiz Code: Partly, GitHub: Yes.
- zizmor: dangerous-triggers, dangerous-checkout
- poutine: untrusted_checkout_exec
- octoscan: dangerous-checkout, toctou
- CodeQL: actions/untrusted-checkout, untrusted-checkout-toctou
- Scorecard: Dangerous-Workflow
- Wiz Code: Flags pull_request_target and over-privileged permissions
- GitHub: checkout v7 refuses fork heads (June 2026). pull_request_target blocked by default in public repositories from December 2 2026
Sources are the original research posts and advisories. Figures are as reported there; where reports disagree the page gives the range.
The detectors behind the Scan column are on the malware scanning page, the install-time block behind the Gate column on Package Firewall, and the GitHub App behind the Factory column on Software Factory.
Frequently asked questions
Does it need a GitHub token?
The workflow rules run on the files in the checkout without one. Resolving action references, reading settings and reading org policy need the API, and a rule that could not run says "not evaluated" rather than passing. Settings need Administration: read, and the org rules need an owner's token or a GitHub App.
How is this different from the IaC scanner?
The IaC scanner reads workflow files as configuration and checks pinning in the file. GitHub scanning resolves what each reference points at today and reads the live repository and org settings, which never appear in a file. Each uploads under its own code scanning category, so neither closes the other's alerts.
Does it work with GitHub Enterprise Server?
Yes. Pass --github-api-url with your server's API address, or let it read GITHUB_API_URL on a runner. The same 63 rules apply.
What runs offline?
With --offline the workflow rules run on the checkout and nothing calls the GitHub API. Rules that need the API, including the advisory lookup for action versions (VNX-GH-105), report "not evaluated".
What does the Software Factory add over the CLI?
The Software Factory runs the same rules on GitHub App events, so a workflow or settings change is checked when it happens, and it records risk events such as a moved tag or a new admin. When a workflow rule first fails it can open a draft pull request from the fix templates you install. A failing setting gets a ticket instead, because the App never changes settings.
Try GitHub scanning on one repository
The audit and the gate need no account. Add an API key when you want history, the Software Factory watching every push, and results in the Resolve Platform.
$ vulnesis gha init