中文 | EN
MurphySec CLI is used for detecting vulnerable dependencies from the command-line, and also can be integrated into your CI/CD pipeline.
CLI scan result
scan result page
Currently supports Java, JavaScript, Golang. Other development languages will be gradually supported in the future.
Want to learn more about language support? check out our documentation
MurphySec CLI obtains the dependency information of your project mainly by building the project or parsing the package manifest files.
The dependency information of the project will be uploaded to the server, and the dependencies with security issues in the project will be identified through the vulnerability knowledge base maintained by MurphySec.
Note: MurphySec CLI will only send the dependencies and basic information of your project to server for identifying the dependencies with security issues, and will not upload any code snippets.
Learn how to integrate MurphySec CLI in Jenkins
Visit the GitHub Releases page to download the latest version of MurphySec CLI, or install it by running:
wget -q https://s.murphysec.com/install.sh -O - | /bin/bash
curl -fsSL https://s.murphysec.com/install.sh | /bin/bash
powershell -Command "iwr -useb https://s.murphysec.com/install.ps1 | iex"
MurphySec CLI requires an access token from your MurphySec account for authentication to work properly. What is an access token?
Go to MurphySec platform - Access Token, click the copy button after the Token, then the access token is copied to the clipboard.
There are two authentication methods available: Interactive authentication
and Parameter authentication
Execute murphysec auth login
command and paste the access token.
If you need to change the access token, you can repeat this command to overwrite the old one.
Specify the access token for authentication by adding the --token
parameter
To perform detection using the murphysec scan
command, you can execute the following command.
murphysec scan [your-project-path]
Available parameters
--token
: Specify the access token--log-level
: Specify the log level to be printed on the command line output stream, no log will be printed by default, optional parameters are silent
, error
, warn
, info
, debug
--json
: Specify the output of the result as json format, not showing the result details by defaultMurphySec CLI does not show the result details by default, you can view the results in MurphySec platform.
Mainly used for the management of certification
Usage:
murphysec auth [command]
Available Commands:
login
logout
Mainly used to run detections
Usage:
murphysec scan DIR [flags]
Flags:
-h, --help help for scan
--json json output
Global Flags:
--log-level string specify log level, must be silent|error|warn|info|debug
--no-log-file do not write log file
--server string specify server address
--token string specify API token
-v, --version show version and exit
--write-log-to string specify log file path
Contact our official WeChat account, and we'll add you into the group for communication.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.