Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 7, 2022 10:12 pm GMT

About Java Bytecode, native binaries & security (short Grype benchmark)

Intro

We are currently working on the following topics :

  • Native Docker images delivery through Github Actions, on various registries (mainly GHCR.io and Docker Hub)
  • Java native experience : migration to Spring Boot Native & Quarkus experimentations
  • Security for our Images Continuous Deployment pipeline

Security

For our source code & dependencies, we are applying security strategy thanks to Dependabot :

...and GitHub Advanced Security for some repositories.

Controlling Docker images releases

More and more we release and rely on an ever growing set of Docker images.
To make short, as Software Developers and DEVOPS engineers, the ones that interest us currently are :

  • The images we rely on
  • The image we build ourselves (on top of previous ones)

What we want need to be able to do is : to be able to control the security level of the images we are building...

And not release them if they do not reach the expected level of security, depending of the target service.

As all services do not have the same criticity, vulnerabilities level may have different impacts on runtime security governance.

Experimentation and solutions

Fortunately anchore provides a set of ready to use tools that helps... a lot :

  • grype (vulnerability scanner for container images and filesystems)
  • syft (CLI tool and library for generating a Software Bill of Materials from container images and filesystems)
  • grype as a Anchore GitHub Action :

Image description

So you can easily protect your Continuous Delivery pipeline thanks to the severity-cutoff :

Image description

Bytecode vs. native impact on security

We wanted to give a quick look at if - and so how - native strategy impacts security, discover the grype output below:

Resources

GitHub logo anchore / grype

A vulnerability scanner for container images and filesystems

Grype logo

Static Analysis + Unit + IntegrationAcceptanceGo Report CardGitHub releaseGitHub go.mod Go versionLicense: Apache-2.0Slack Invite

A vulnerability scanner for container images and filesystems. Easily install the binary to try it out. Works with Syft, the powerful SBOM (software bill of materials) tool for container images and filesystems.

Join our community meetings!

grype-demo

Features

  • Scan the contents of a container image or filesystem to find known vulnerabilities.
  • Find vulnerabilities for major operating system packages
    • Alpine
    • Amazon Linux
    • BusyBox
    • CentOS
    • Debian
    • Distroless
    • Oracle Linux
    • Red Hat (RHEL)
    • Ubuntu
  • Find vulnerabilities for language-specific packages
    • Ruby (Gems)
    • Java (JAR, WAR, EAR, JPI, HPI)
    • JavaScript (NPM, Yarn)
    • Python (Egg, Wheel, Poetry, requirements.txt/setup.py files)
  • Supports Docker and OCI image formats

If you encounter an issue, please let us know using the issue tracker.

Installation

Recommended

curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin

You can also choose another destination directory and release version for the installation


Original Link: https://dev.to/optnc/about-java-bytecode-native-binaries-security-short-grype-benchmark-4ng9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To