Skip to content

Zimperium/zscan-plugin-harness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zscan-plugin-harness

Harness plugin for uploads to zScan

This plugin can be used to upload mobile applications to Zimperium (zScan) to be scanned for vulnerabilities. Using a plugin simplifies integrating mobile application security testing into CI/CD process and enables detection and remediation of vulnerabilities earlier in the application SDLC.

For more information on zScan, please see Continuous Mobile Application Security Scanning.

Prerequisites

  1. Zimperium MAPS license that includes zScan functionality.
  2. API credentials with permissions to upload binaries
  3. A valid application binary (.ipa, .apk, etc.), either built by the current pipeline or otherwise accessible by the plugin.

Parameters

Mandatory

These parameters are mandatory, unless a default value is available as described below.

  • server_url: console base URL, e.g., https://ziap.zimperium.com/
  • client_id and secret: API credentials that can be obtained from the console. We recommend using Harness Text Secrets, as this is sensitive information that enables access to vulnerability reports
  • input_file: the path to the binary relative to the current workspace
  • team_name: name of the team to which this application belongs. This is required only if submitting the application for the first time; values are ignored if the application already exists in the console and assigned to a team. If not supplied, the application will be assigned to the 'Default' team
  • report_format: the format of the scan report, either 'json' (default) or 'sarif'

Optional

These parameters are optional, but may be used to supply additional information about the build and/or control the plugin's output.

  • report_location: destination folder for the vulnerability report. If not provided, the report is stored in the current workspace.
  • report_file_name: filename of the report. If not provided, the filename will be patterned as follows: zscan-results-AssessmentID-report_format.json, e.g., zscan-results-123456789-sarif.json.
  • wait: wait time for polling the server in seconds. 30 seconds is the default.
  • branch: source code branch that the build is based on.
  • build_number: application build number.
  • environment: target environment, e.g., uat, dev, prod.

Usage

Please refer to Harness Drone Plugin Documentation for instructions on using plugins as steps in your Harness pipelines. You will need to provide the following information:

  • A Docker v2 compatible Container Registry. The registry URL is (TBD)
  • Image URL: (TBD)
  • "Optional Configuration" parameters, as described above. Please note, that even though the plugin configuration step calls these 'optional', some parameters are mandatory, as described above.

License

This plugin is licensed under the MIT License. By using this plugin, you agree to the following terms:

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Enhancements

Submitting improvements to the plugin is welcomed and all pull requests will be approved by Zimperium after review.

About

Harness plugin for uploads to zScan

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •