Because the scanning process consists of building the code to be scanned, generating a dependency graph from the built code, and identifying libraries used with the dependency graph, SourceClear requires the source code of the repository you want to scan in order to function properly . Libraries are identified by sending information to SourceClear to match against our database. This page document provides details on what information is sent from the user environment to SourceClear.
What SourceClear Does Not Send
SourceClear never sends your source code off of your environment. The only information that leaves your environment is detailed below. Call chains built for vulnerable method calculation are also never sent from your environment, but are instead matched on your environment.
SourceClear requires that any repository being scanned contains Git metadata in a .git folder because SourceClear uses this information to identify the repository, and track commit, branch, and tag information. The Git metadata is sent to the SourceClear platform to evaluate and identify this information.
Before beginning a scan, SourceClear identifies the build and package managers used in your repository. SourceClear finds the configuration files for a given build or package manager in the root of the project, or in a location where a configuration file might be typically found. For example, a pom.xml in the root of a project indicates a Maven repository. This information is sent to the SourceClear platform to distinguish coordinates among the various build and package managers.
To identify the open source libraries used in your code, SourceClear uses a set of coordinates from the dependency graph generated during the build process in combination with the language type. The coordinates for each language are the following:
- Maven/Gradle: groupId, artifactId, version
- NPM/Bower/Yarn: library name, version
- Ruby Gems: library name, version
- Python: library name, version
- PHP: library name, version
- Golang: library name, commit hash/version
- .NET: library name, version
By sending these coordinates along with the language type, SourceClear is able to uniquely identify the libraries used in your project.