Skip to main content

Automated OSS curation scanner

Project description

Summary

XMonkey Curator is a tool that performs DESCAM (Decompose, Enumerate, Scanning, Catalog, Analysis, Merge) review to software for Open Source License Compliance.

The tool can extract (DECOMPOSE) archive files like Jar, ZIP, Tarballs, RPM, Debian, etc., to recursively obtain the list of assets (Enumerate) contained.

XMonkey Curator also performs a basic review (Scanning) of the assets to extract information as “features” for OSLC assessments. Scan types supported:

Alpha Version: * Literal Strings * Symbols Matching using predefined signatures. * License detection (using OSLiLi) * Regex Patterns

Beta Version: * FuzzyHashing (using LSH or SSDeep) * Generate OSS Notices * Improve external rules for automatic classification

The results of the review can be automatically processed (Catalog) using predefined rules and workflows (Analysis).

The software currently supports the format listed below: * ELF * Mach-OS * Objective-C * Python * PHP * Java * Ruby * Rust * Perl * C++

Usage

$ pip install xmonkey-curator
$ xmonkey-curator scan --help
Usage: xmonkey-curator scan [OPTIONS] PATH

  Scan target files using selected options

Options:
  -t, --force-text      Force using StringExtract for all files.
  -u, --unpack          Unpack archives files.
  -s, --export-symbols  Include words in the final report.
  -m, --match-symbols   Match symbols against signatures.
  -r, --rule TEXT       Add optional rules to execute.
  -n, --notes TEXT      Add optional notes to the report.
  -o, --output TEXT     Export results to filename with specific name.
  -l, --licenses        Identify SPDX licenses.
  -p, --print-report    Print the report to screen.
  --help                Show this message and exit.

Scanning to identify files

In order to perform a full scan, you must select the option “unpack” that will export the content of any archive file.

$ xmonkey-curator scan ffmpeg-6.0.tar.xz -u -s -o ffmpeg-source.json

Scanning to export symbols and match with signatures

Using the option “match”, will attempt to identify packages by matching symbols with signatures.

$ xmonkey-curator scan ffmpeg-6.0.tar.xz -u -s -m -p

Generating signatures

You can create signatures by performing scans to source code and binary of a package, looking for signifcative symbols.

Then you can use the included script to check what symbols from the source code has survived the compilation.

$ xmonkey-curator scan ffmpeg-6.0.tar.xz -u -s -o ffmpeg-source.json
$ xmonkey-curator scan ffmpeg-4.4.1-linux-64.zip -u -s -o ffmpeg-binary.json
$ ./scripts/signature_generator.py ffmpeg-source.json ffmpeg-binary.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xmonkey_curator-0.1.12.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

xmonkey_curator-0.1.12-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

File details

Details for the file xmonkey_curator-0.1.12.tar.gz.

File metadata

  • Download URL: xmonkey_curator-0.1.12.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for xmonkey_curator-0.1.12.tar.gz
Algorithm Hash digest
SHA256 36e427ecf84d2e66b10df02dfe5f1b5fc7eb0e9e9675af13c154e259ebfbb61d
MD5 6ba2ede8e3e7aa35a559be2038df667b
BLAKE2b-256 2a1489479343e0679c7d64b9fc9a4c730246657fb8002d6c3eb24da66564a3b0

See more details on using hashes here.

File details

Details for the file xmonkey_curator-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for xmonkey_curator-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d608f91d7fd46e7117cfa7a941f461aa2bb3a786b22dc563f940c18895a1de8e
MD5 eadf159fa2dcffb7e2fd7f9bd55265c0
BLAKE2b-256 dd84ee7987072fdcd79a88b9e2dce63b7ca3ad391af0fa4353fa20644ab7721d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page