Code scanning / GitHub scanning

GitHub scanning for workflows, actions, settings and org policy

Workflows, the actions they pull, repository settings and org policy decide who can run code next to your secrets. One command reads all four layers and writes SARIF that a merge gate can fail on.

$ vulnesis gha audit --fail-on high

63 rules · 4 layers · SARIF 2.1.0 · no Vulnesis account needed to gate

Browse the 63 rules

See the malware vectors · gha-audit action docs

Pull request 214 from a fork

Where the pull request code goes in acme/web, a public repository, and the rule at each step.

  1. 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.
  2. 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.
  3. 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-r2c3
    Fix: Pin a fixed release by full SHA (VNX-GH-101) and rotate every secret the job could read.
  4. 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.

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.

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.

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.

Publishing and collecting results

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
ScopeWhyUsed by
contents: readCheckout 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
ScopeWhyUsed by
contents: readCheckout reads the repository.checkout
security-events: writeUploads SARIF to code scanning, one category per scanner.github-code-scanning
actions: readCode 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 }}
ScopeWhyUsed by
contents: readCheckout reads the repository.checkout
security-events: writeMirrors the SARIF into GitHub code scanning.scan
actions: readLets gha-status and code scanning read this run on a private repository.gha-status
VULNESIS_ORG_ID, VULNESIS_API_KEYRepository 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 }}
ScopeWhyUsed by
contents: readCheckout reads the repository.checkout
actions: readLists 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.

gha-upload action

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/'
ScopeWhyUsed by
contents: writeAttaches the SBOM, its signature and certificate to the GitHub release.release-tag
id-token: writeMints the runner's OIDC token for keyless Sigstore signing. No signing key is stored anywhere.sign, attest
attestations: writeStores the attestation in GitHub, where gh attestation verify finds it.attest
VULNESIS_ORG_ID, VULNESIS_API_KEYAuthorise 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
ScopeWhyUsed by
permissions: {}The workflow token is unused. There is no checkout: both commands read the API.workflow
App: Organization administration: readTwo-factor policy, default permission, Actions policy and runner groups.gha-org
App: Administration: readBranch protection, rulesets, Actions permissions and fork pull request approval.gha-settings
App: Secrets: readSecret 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 }}
ScopeWhyUsed by
contents: read, security-events: writeCheckout and the SAST upload to code scanning.checkout, sast
ADVISORY_TOKENA fine-grained token or GitHub App with repository advisories write on this repository. GITHUB_TOKEN cannot create advisories.github-advisories
CAMPAIGN_TOKENAn 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

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.

  1. Verify the scanner: verify-provenance: true
  2. Write the SBOM: Vulnesis/cli/sbom
  3. Sign it keyless: sign: true
  4. Attest in GitHub: attest: true
  5. Attach to the release: release-tag
  6. 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.

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.

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.

Transparency Exchange · tea-release action docs

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: Yes.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: Partly, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Partly, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: Yes.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: No, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: Yes, Gate: Yes, Factory: Yes, VDB: Yes.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: Yes, Gate: No, Factory: Partly, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Partly, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: No, Gate: Partly, Factory: Partly, VDB: Yes.

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.

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.

Vulnesis coverage: Rules: No, Scan: No, Gate: Yes, Factory: No, VDB: No.

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.

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.

Vulnesis coverage: Rules: Partly, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

Vulnesis coverage: Rules: No, Scan: Partly, Gate: Partly, Factory: No, VDB: No.

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.

Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: Partly.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: No, Factory: Yes, VDB: No.

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.

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.

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.

Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: No.

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.

Vulnesis coverage: Rules: No, Scan: Yes, Gate: Yes, Factory: No, VDB: Yes.

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.

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.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: Partly, Gate: No, Factory: Yes, VDB: No.

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.

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.

Vulnesis coverage: Rules: No, Scan: Yes, Gate: Yes, Factory: No, VDB: Yes.

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.

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.

Vulnesis coverage: Rules: No, Scan: Partly, Gate: No, Factory: No, VDB: No.

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.

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.

Vulnesis coverage: Rules: Yes, Scan: No, Gate: No, Factory: Yes, VDB: No.

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.

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

Get a free API key · Request a demo · GitHub Actions docs