Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for WASM modules #2195

Merged
merged 83 commits into from
Jun 15, 2022
Merged

feat: add support for WASM modules #2195

merged 83 commits into from
Jun 15, 2022

Conversation

knqyf263
Copy link
Collaborator

@knqyf263 knqyf263 commented May 29, 2022

Description

This PR adds WASM module support that allows custom processes during analysis and scanning. For example, Spring4Shell module can check if the Java version and Tomcat version satisfy the requirements of CVE-2022-22965. Then, it can change the severity or remove the detected vulnerability if any one of them is not satisfied.

It has many possibilities.

  • Evaluate complex conditions like Spring4Shell
  • Detect a shell script communicating with malicious domains
  • Detect malicious python install script (setup.py)
  • Even detect misconfigurations in WordPress setting
  • etc.

It supports only TinyGo for now, but plans to add support for more languages such as Rust.

Issues

Related PRs

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@knqyf263 knqyf263 added the kind/feature Categorizes issue or PR as related to a new feature. label May 29, 2022
@knqyf263 knqyf263 self-assigned this May 29, 2022
@knqyf263 knqyf263 changed the title Add support for WASM modules feat: add support for WASM modules May 29, 2022
@knqyf263 knqyf263 added kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and will be auto-closed. labels May 30, 2022
@knqyf263 knqyf263 removed kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and will be auto-closed. labels May 31, 2022
@knqyf263 knqyf263 merged commit 7cecade into main Jun 15, 2022
@knqyf263 knqyf263 deleted the wasm_modules branch June 15, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trivy extensibility model
5 participants