mobbdev 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Bugsy is a command-line interface (CLI) tool that provides automatic security vulnerability remediation for your code. It is the community edition version of [Mobb](https://www.mobb.ai), the first vendor-agnostic automated security vulnerability remediation tool. Bugsy is designed to help developers quickly identify and fix security vulnerabilities in their code.
|
|
4
4
|
|
|
5
|
-
<img width="1888" alt="Bugsy" src="./img/
|
|
5
|
+
<img width="1888" alt="Bugsy" src="./img/bugsy2.png">
|
|
6
6
|
|
|
7
7
|
## What is [Mobb](https://www.mobb.ai)?
|
|
8
8
|
|
|
@@ -10,35 +10,74 @@ Bugsy is a command-line interface (CLI) tool that provides automatic security vu
|
|
|
10
10
|
|
|
11
11
|
## What does Bugsy do?
|
|
12
12
|
|
|
13
|
-
Bugsy has two modes - Analyze (the user
|
|
13
|
+
Bugsy has two modes - Scan (no SAST report needed) & Analyze (the user needs to provide a pre-generated SAST report from one of the supported SAST tools).
|
|
14
14
|
|
|
15
15
|
Scan
|
|
16
16
|
|
|
17
|
-
- Uses Snyk CLI
|
|
17
|
+
- Uses Checkmarx or Snyk CLI tools to run a SAST scan on a given open-source GitHub/GitLab repo
|
|
18
18
|
- Analyzes the vulnerability report to identify issues that can be remediated automatically
|
|
19
19
|
- Produces the code fixes and redirects the user to the fix report page on the Mobb platform
|
|
20
20
|
|
|
21
21
|
Analyze
|
|
22
22
|
|
|
23
|
-
- Analyzes the vulnerability report to identify issues that can be remediated automatically
|
|
23
|
+
- Analyzes the a Checkmarx/CodeQL/Fortify/Snyk vulnerability report to identify issues that can be remediated automatically
|
|
24
24
|
- Produces the code fixes and redirects the user to the fix report page on the Mobb platform
|
|
25
25
|
|
|
26
26
|
## Disclaimer
|
|
27
27
|
|
|
28
28
|
This is a community edition version that only analyzes public GitHub repositories. Analyzing private repositories is allowed for a limited amount of time.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- Only Java and Node.js projects are supported at the moment.
|
|
29
|
+
Bugsy does not detect any vulnerabilities in your code, it uses findings detected by the SAST tools mentioned above.
|
|
32
30
|
|
|
33
31
|
## Usage
|
|
32
|
+
You can simply run Bugsy from the command line, using npx:
|
|
33
|
+
```shell
|
|
34
|
+
npx mobbdev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This will show you Bugsy's usage help:
|
|
38
|
+
```shell
|
|
39
|
+
Bugsy - Trusted, Automatic Vulnerability Fixer 🕵️♂️
|
|
40
|
+
|
|
41
|
+
Usage:
|
|
42
|
+
mobbdev <command> [options]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Commands:
|
|
46
|
+
mobbdev scan Scan your code for vulnerabilities, get automated fixes right away.
|
|
47
|
+
mobbdev analyze Provide a vulnerability report and relevant code repository, get automated fixes right away.
|
|
48
|
+
|
|
49
|
+
Options:
|
|
50
|
+
-h, --help Show help [boolean]
|
|
34
51
|
|
|
35
|
-
|
|
52
|
+
Examples:
|
|
53
|
+
mobbdev scan -r https://github.com/WebGoat/WebGoat Scan an existing repository
|
|
36
54
|
|
|
55
|
+
Made with ❤️ by Mobb
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
To run a new SAST scan on a repo and get fixes, run the **Bugsy Scan** command. Example:
|
|
59
|
+
```shell
|
|
60
|
+
npx mobbdev scan --repo https://github.com/mobb-dev/simple-vulnerable-java-project
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
To get fixes for a pre-generated SAST report, run the **Bugsy Analyze** command. Example:
|
|
64
|
+
npx mobbdev analyze --scan-file sast_results.json --repo https://github.com/mobb-dev/simple-vulnerable-java-project
|
|
65
|
+
|
|
66
|
+
Bugsy will automatically generate a fix for each supported vulnerability identified in the results, and refer the developer to review and commit the fixes to their code.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
To see all the options Bugsy allows, use the Scan or Analyze commands with the -h option:
|
|
37
70
|
```shell
|
|
38
|
-
npx mobbdev scan -
|
|
71
|
+
npx mobbdev scan -h
|
|
72
|
+
npx mobbdev analyze -h
|
|
39
73
|
```
|
|
40
74
|
|
|
41
|
-
Bugsy
|
|
75
|
+
## Using Bugsy as part of a CI/CD pipeline
|
|
76
|
+
If you utilize SAST scans as part of the CI/CD pipeline, Bugsy can be easiy added and provide immediate fix for every issue detected.
|
|
77
|
+
Here is a simple example of a command line that will run Bugsy in your pipeline:
|
|
78
|
+
```shell
|
|
79
|
+
npx mobbdev analyze --ci --scan-file $SAST_RESULTS_FILENAME --repo $CI_PROJECT_URL --ref $CI_COMMIT_REF_NAME --api-key $MOBB_API_KEY
|
|
80
|
+
```
|
|
42
81
|
|
|
43
82
|
## Contribution
|
|
44
83
|
|