GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oracle/macaron: Macaron is an extensible supply-chain security analysis framework from Oracle Labs that supports a wide range of build systems and CI/CD services. It can be used to prevent supply chain attacks, detect malicious Python packages, or check conformance to frameworks, such as SLSA. Documentation:

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
BranchesTags
Open more actions menu

Latest commit

 

History

742 Commits
742 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docker
docker
 
 
docs
docs
 
 
golang
golang
 
 
scripts
scripts
 
 
src/macaron
src/macaron
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.flake8
.flake8
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.semgrepignore
.semgrepignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODEOWNERS
CODEOWNERS
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY_LICENSES.txt
THIRD_PARTY_LICENSES.txt
 
 
action.yaml
action.yaml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

pre-commit conventional-commits black mypy pylint pytest hypothesis OpenSSF Scorecard

Macaron

Macaron

Full Documentation | Tutorials | Videos | Papers | Presentations | Macaron GitHub Action

Macaron is a software supply chain security analysis tool from Oracle Labs focused on verifying the build integrity of artifacts and their dependencies. It helps developers, security teams, and researchers ensure that packages are built as expected and have not been tampered with.

Use Macaron as a GitHub Action

To use the Macaron GitHub Action, add the following step to your workflow (adjust the version as needed). In this example, we use an example policy. For detailed instructions and a comprehensive list of available options, please refer to the Macaron GitHub Action documentation.

- uses: oracle/macaron@5d8f162a5d33f91a7048e861f1ff946a9791fe64 # v0.26.0
  with:
    repo_path: ./
    policy_file: check-github-actions
    policy_purl: 'pkg:github.com/example/project@.*'
    output_dir: 'macaron-output'

For detailed instructions and a comprehensive list of available options, please refer to the Macaron GitHub Action documentation.

Key Capabilities

Macaron supports:

  • Attestation verification for third-party and internal artifacts across major ecosystems like PyPI, npm, and Go, enabling automated provenance validation (tutorial).
  • Detection of malicious or suspicious packages in popular ecosystems using customizable heuristics (tutorial, blog post).
  • Detection of vulnerable GitHub Actions, which is increasingly important due to recent real-world incidents like tj-actions/changed-files (tutorial).
  • Reproducible build through static analysis of build scripts. Macaron enables rebuilding packages from source and comparing to released artifacts to detect discrepancies, and therefore compromised workflows or artifacts (paper).
  • Accurate repository and commit detection for released artifacts, improving traceability and trust (tutorial).

Demo: Analyzing Django with Dependencies

This screencast shows how Macaron analyzes the [email protected] Python package and its dependencies. Macaron runs the same set of checks, including malware detection, on the dependencies as it does on the Django package. You can either generate a Software Bill of Materials (SBOM) manually or point Macaron to a virtual environment where Django is installed to automatically analyze the entire dependency tree. The policy engine ensures that the malware detection check passes for all packages in the dependency tree.

Demo

Based on SLSA

Macaron follows the recommendations of the SLSA (Supply chain Levels for Software Artifacts) framework. It offers a flexible, extensible policy engine for checking compliance with SLSA levels. Users can define and compose custom rules tailored to their CI/CD practices and security needs.

Supported Build Tools

Macaron currently supports the following build tools:

  • Java: Maven, Gradle
  • Python: pip, Poetry
  • JavaScript: npm, Yarn
  • Go
  • Docker

Adoption

Macaron is integrated into the Graal Development Kit (GDK), where it is used to generate Verification Summary Attestations for each artifact. This helps GDK users validate and trust the integrity of their dependencies (tutorial, blog post).

Learn More

For a complete list of supported technologies, CI providers, and provenance formats, see the documentation.

Macaron is actively evolving, with ongoing work to support more ecosystems and enhance supply chain security capabilities.

Table of Contents

  • Getting started
  • Contributing
  • Defining new checks
  • Publications
  • Security
  • License

Getting started

  • To learn how to download and run Macaron, see our documentation here.
  • Check out our tutorials to see how Macaron can detect software supply chain issues.
  • You can also watch this demo to learn more about Macaron.

Contributing

This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide.

Defining new checks

After cloning a repository, Macaron parses the CI configuration files and bash scripts that are triggered by the CI, creates call graphs and other intermediate representations as abstractions. Using such abstractions, Macaron implements concrete checks to gather facts and metadata based on a security specification.

To learn how to define your own checks, see the steps in the checks documentation.

Presentations

  • Securing the Software Supply Chain with Macaron: A Comprehensive Tool for Analysis and Protection, Supply Chain Security Summit 2025.

  • Towards safeguarding software components from supply chain attacks, Chalmers Security & Privacy Lab Seminars 2024.

Publications

  • Behnaz Hassanshahi, Trong Nhan Mai, Alistair Michael, Benjamin Selwyn-Smith, Sophie Bates, and Padmanabhan Krishnan: Macaron: A Logic-based Framework for Software Supply Chain Security Assurance, SCORED 2023. Best paper award 🏆

  • Behnaz Hassanshahi, Trong Nhan Mai, Benjamin Selwyn-Smith, and Nicholas Allen: Unlocking Reproducibility: Automating re-Build Process for Open-Source Software, ASE Industry Showcase 2025.

  • Ridwan Shariffdeen, Behnaz Hassanshahi, Martin Mirchev, Ali El Husseini, Abhik Roychoudhury Detecting Python Malware in the Software Supply Chain with Program Analysis, ICSE-SEIP 2025.

  • Jens Dietrich, Tim White, Behnaz Hassanshahi, Paddy Krishnan Levels of Binary Equivalence for the Comparison of Binaries from Alternative Builds, ICSME Industry Track 2025.

  • Jens Dietrich, Tim White, Valerio Terragni, Behnaz Hassanshahi Towards Cross-Build Differential Testing, ICST 2025.

  • Jens Dietrich, Tim White, Mohammad Mahdi Abdollahpour, Elliott Wen, Behnaz Hassanshahi BinEq-A Benchmark of Compiled Java Programs to Assess Alternative Builds, SCORED 2024.

  • Jens Dietrich and Behnaz Hassanshahi DALEQ--Explainable Equivalence for Java Bytecode, ASE Industry Showcase 2025.

Security

Please consult the security guide for our responsible security vulnerability disclosure process.

License

Copyright (c) 2022, 2024 Oracle and/or its affiliates. Macaron is licensed under the Universal Permissive License (UPL), Version 1.0.

About

Macaron is an extensible supply-chain security analysis framework from Oracle Labs that supports a wide range of build systems and CI/CD services. It can be used to prevent supply chain attacks, detect malicious Python packages, or check conformance to frameworks, such as SLSA. Documentation:

oracle.github.io/macaron/

Topics

build-systemcicddockergradleintegrity-protectionmalware-analysismalware-detectionmavennpmpythonsbomslsasupply-chain-security

Resources

Readme
UPL-1.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

212 stars

Watchers

6 watching

Forks

37 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

Generated from oracle/template-repo
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.