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

scanning pypi frictionless package with guarddog produces "potentially malicious indicators" error #1636

Open
samqi opened this issue Feb 5, 2024 · 0 comments

Comments

@samqi
Copy link

samqi commented Feb 5, 2024

Overview

After installing datadog's guarddog to scan pypi packages, guarddog finds 1 "potentially malicious indicators".

FYI, "GuardDog is a CLI tool to Identify malicious PyPI and npm packages" or

GuardDog is a CLI tool that allows to identify malicious PyPI and npm packages. It runs a set of heuristics on the package source code (through Semgrep rules) and on the package metadata.

GuardDog can be used to scan local or remote PyPI and npm packages using any of the available heuristics.

To reproduce the error message :

  1. In CLI or Jupyter notebook (With !)
pip install guarddog
guarddog pypi scan frictionless
  1. Running the above command, you will encounter an error:
Found 1 potentially malicious indicators in frictionless

exec-base64: found 1 source code matches
  * This package contains a call to the `eval` function with a `base64` encoded string as argument.
This is a common method used to hide a malicious payload in a module as static analysis will not decode the
string.
 at frictionless-5.16.1/frictionless/console/commands/explore.py:62
        os.system(f"vd {' '.join(paths)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant