boman-cli 2.6.6__tar.gz → 2.6.8__tar.gz
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.
- {boman_cli-2.6.6 → boman_cli-2.6.8}/PKG-INFO +20 -1
- {boman_cli-2.6.6 → boman_cli-2.6.8}/README.md +19 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/PKG-INFO +20 -1
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/Config.py +8 -2
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/main.py +57 -35
- {boman_cli-2.6.6 → boman_cli-2.6.8}/setup.cfg +1 -1
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/SOURCES.txt +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/dependency_links.txt +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/entry_points.txt +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/requires.txt +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/top_level.txt +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/_init_.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/auth.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/base_logger.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/dev_attribution.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/loc_finder.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/05-lifecycle-hook-abuse.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/01-obfuscated-dynamic-exec-confusable-unicode.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-composer.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-npm.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/boman-malware-detection.yml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/05-lifecycle-hook-abuse.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/05-lifecycle-hook-abuse.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/05-lifecycle-hook-abuse.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/05-lifecycle-hook-abuse.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/12-insecure-deserialization.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/01-obfuscated-dynamic-exec.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/02-reverse-shell.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/03-download-and-execute.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/04-credential-exfiltration.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/06-suspicious-c2-endpoints.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/07-cryptominer-indicators.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/08-persistence.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/09-anti-analysis-evasion.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/10-filesystem-tampering.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/sbom_enricher.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/templates/template_plan.yaml +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/utils.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/validation.py +0 -0
- {boman_cli-2.6.6 → boman_cli-2.6.8}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: boman-cli
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.8
|
|
4
4
|
Summary: CLI tool of boman.ai
|
|
5
5
|
Home-page: https://boman.ai
|
|
6
6
|
Author: Sumeru Software Solutions Pvt. Ltd.
|
|
@@ -86,6 +86,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
86
86
|
|
|
87
87
|
`boman-cli -a run -semgrep_token <value>`
|
|
88
88
|
|
|
89
|
+
### Set cache when SBOM is failing due to cache error
|
|
90
|
+
|
|
91
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
92
|
+
|
|
93
|
+
### Set non root mode when SAST is failing due to cache error
|
|
94
|
+
|
|
95
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
|
|
96
|
+
|
|
97
|
+
### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
|
|
98
|
+
|
|
99
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
100
|
+
|
|
101
|
+
|
|
89
102
|
|
|
90
103
|
|
|
91
104
|
|
|
@@ -103,6 +116,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
103
116
|
|
|
104
117
|
# Release Notes:
|
|
105
118
|
|
|
119
|
+
### 2.6.8
|
|
120
|
+
- **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
|
|
121
|
+
|
|
122
|
+
### 2.6.7
|
|
123
|
+
- **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
|
|
124
|
+
|
|
106
125
|
### 2.6.6
|
|
107
126
|
- **Rule Deprication** - Depricating generic rule (Trojan Horse)
|
|
108
127
|
|
|
@@ -64,6 +64,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
64
64
|
|
|
65
65
|
`boman-cli -a run -semgrep_token <value>`
|
|
66
66
|
|
|
67
|
+
### Set cache when SBOM is failing due to cache error
|
|
68
|
+
|
|
69
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
70
|
+
|
|
71
|
+
### Set non root mode when SAST is failing due to cache error
|
|
72
|
+
|
|
73
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
|
|
74
|
+
|
|
75
|
+
### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
|
|
76
|
+
|
|
77
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
78
|
+
|
|
79
|
+
|
|
67
80
|
|
|
68
81
|
|
|
69
82
|
|
|
@@ -81,6 +94,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
81
94
|
|
|
82
95
|
# Release Notes:
|
|
83
96
|
|
|
97
|
+
### 2.6.8
|
|
98
|
+
- **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
|
|
99
|
+
|
|
100
|
+
### 2.6.7
|
|
101
|
+
- **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
|
|
102
|
+
|
|
84
103
|
### 2.6.6
|
|
85
104
|
- **Rule Deprication** - Depricating generic rule (Trojan Horse)
|
|
86
105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: boman-cli
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.8
|
|
4
4
|
Summary: CLI tool of boman.ai
|
|
5
5
|
Home-page: https://boman.ai
|
|
6
6
|
Author: Sumeru Software Solutions Pvt. Ltd.
|
|
@@ -86,6 +86,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
86
86
|
|
|
87
87
|
`boman-cli -a run -semgrep_token <value>`
|
|
88
88
|
|
|
89
|
+
### Set cache when SBOM is failing due to cache error
|
|
90
|
+
|
|
91
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
92
|
+
|
|
93
|
+
### Set non root mode when SAST is failing due to cache error
|
|
94
|
+
|
|
95
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
|
|
96
|
+
|
|
97
|
+
### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
|
|
98
|
+
|
|
99
|
+
usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
|
|
100
|
+
|
|
101
|
+
|
|
89
102
|
|
|
90
103
|
|
|
91
104
|
|
|
@@ -103,6 +116,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
|
|
|
103
116
|
|
|
104
117
|
# Release Notes:
|
|
105
118
|
|
|
119
|
+
### 2.6.8
|
|
120
|
+
- **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
|
|
121
|
+
|
|
122
|
+
### 2.6.7
|
|
123
|
+
- **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
|
|
124
|
+
|
|
106
125
|
### 2.6.6
|
|
107
126
|
- **Rule Deprication** - Depricating generic rule (Trojan Horse)
|
|
108
127
|
|
|
@@ -121,7 +121,7 @@ class Config:
|
|
|
121
121
|
|
|
122
122
|
log_level = "INFO"
|
|
123
123
|
|
|
124
|
-
version = 'v2.6.
|
|
124
|
+
version = 'v2.6.8'
|
|
125
125
|
|
|
126
126
|
boman_config_file = 'boman.yaml'
|
|
127
127
|
|
|
@@ -240,4 +240,10 @@ class Config:
|
|
|
240
240
|
|
|
241
241
|
# common for trivy container and sbom scan
|
|
242
242
|
set_cache_dir = False
|
|
243
|
-
cache_dir = " --cache-dir /tmp/.trivycache"
|
|
243
|
+
cache_dir = " --cache-dir /tmp/.trivycache"
|
|
244
|
+
|
|
245
|
+
non_root_mode = False
|
|
246
|
+
home="HOME=/tmp"
|
|
247
|
+
xdg_cache_home="XDG_CACHE_HOME=/tmp/.cache"
|
|
248
|
+
|
|
249
|
+
no_enrichment_sbom = False
|
|
@@ -196,8 +196,15 @@ def runImage(data=None,type=None):
|
|
|
196
196
|
|
|
197
197
|
logging.info('SAST Docker: Preparing %s scan for non jenkins env with %s user ', tool_name ,userid)
|
|
198
198
|
Config.build_dir = Config.sast_build_dir
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
if Config.non_root_mode:
|
|
200
|
+
env_var.append(Config.home)
|
|
201
|
+
env_var.append(Config.xdg_cache_home)
|
|
202
|
+
logging.info('SAST Docker: Non-root mode is enabled for the scans')
|
|
203
|
+
container_output = docker.containers.run(docker_image,command_line,volumes={Config.sast_build_dir: {'bind': data['bind']}},user=userid,
|
|
204
|
+
working_dir="/tmp",detach=detach,environment=env_var,remove=True)
|
|
205
|
+
else:
|
|
206
|
+
container_output = docker.containers.run(docker_image, command_line, volumes={Config.sast_build_dir: {
|
|
207
|
+
'bind': data['bind']}},user=userid,detach=detach,environment=env_var,remove=True)
|
|
201
208
|
logging.info('SAST Docker: SUCCESS !!!. Message: %s Scan Completed',tool_name)
|
|
202
209
|
logging.info('SAST Docker: Deleting custom opengrep rules from the build directory')
|
|
203
210
|
shutil.rmtree('malware_rules')
|
|
@@ -602,58 +609,63 @@ def runImage(data=None,type=None):
|
|
|
602
609
|
logging.info('SBOM Docker: SUCCESS!!! Message: %s Scan Completed',tool_name)
|
|
603
610
|
Config.sbom_message ='SBOM scan completed'
|
|
604
611
|
Config.sbom_scan_status ='Completed'
|
|
612
|
+
|
|
613
|
+
if not Config.no_enrichment_sbom:
|
|
605
614
|
|
|
606
|
-
|
|
615
|
+
##running reachability before sbom upload
|
|
607
616
|
|
|
608
617
|
|
|
609
|
-
|
|
618
|
+
#this part i removed since, reachabitlity bug has tobe solved later
|
|
610
619
|
|
|
611
|
-
|
|
620
|
+
#### sbom entrich part starts here
|
|
612
621
|
|
|
613
622
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
623
|
+
# Load SBOM (generated by Trivy or Syft)
|
|
624
|
+
# Load SBOM (generated by Trivy or Syft)
|
|
625
|
+
enricher = SBOMEnricher(Config.sbom_output_file)
|
|
617
626
|
|
|
618
|
-
|
|
619
|
-
|
|
627
|
+
# Enrich with additional fields
|
|
628
|
+
enriched_data = enricher.enrich_components()
|
|
620
629
|
|
|
621
|
-
|
|
622
|
-
|
|
630
|
+
# Save final SBOM
|
|
631
|
+
enricher.save_sbom('sbom_enriched.json')
|
|
623
632
|
|
|
624
|
-
|
|
625
|
-
|
|
633
|
+
#print(Config.sbom_output_file)
|
|
634
|
+
|
|
626
635
|
|
|
627
|
-
|
|
636
|
+
output_file = 'sbom_enriched.json'
|
|
628
637
|
|
|
629
|
-
|
|
638
|
+
logging.info('Enrichment done %s',output_file)
|
|
630
639
|
|
|
631
640
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
641
|
+
|
|
642
|
+
sbom_output_file = output_file
|
|
643
|
+
csv_file = Config.hssc_output_file
|
|
644
|
+
#generating sbom more data
|
|
636
645
|
|
|
637
646
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
647
|
+
#i should run the heisenger
|
|
648
|
+
|
|
649
|
+
logging.info('Running SSC check on the repo')
|
|
641
650
|
|
|
642
651
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
652
|
+
|
|
653
|
+
try:
|
|
654
|
+
Utils.runheisenberg(sbom_output_file) #docker of hsc
|
|
655
|
+
except e:
|
|
656
|
+
logging.info('Some error occured while Running HSC on the repo')
|
|
657
|
+
exit(6)
|
|
658
|
+
|
|
659
|
+
logging.info('Enrichment with more data is going to happen %s',Config.sbom_output_file)
|
|
651
660
|
|
|
652
|
-
|
|
661
|
+
enricher.run_heisenberg(sbom_output_file, csv_file)
|
|
653
662
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
663
|
+
logging.info('Enrichment done %s',Config.sbom_output_file)
|
|
664
|
+
##exit(-1)
|
|
665
|
+
else:
|
|
666
|
+
logging.info('SBOM Docker: Enrichment is disabled for SBOM, skipping enrichment step')
|
|
667
|
+
logging.info('SBOM Docker: SBOM scan completed without enrichment %s',output_file)
|
|
668
|
+
|
|
657
669
|
except errors.ContainerError as exc:
|
|
658
670
|
logging.error('SBOM Docker: Failed!!! Message: Some Error recorded while scanning %s',str(exc))
|
|
659
671
|
msg='\n The following error has been recorded while scanning sca'
|
|
@@ -1301,6 +1313,8 @@ def default():
|
|
|
1301
1313
|
parser.add_argument('-pot','--pollTime',default=100,help="Polling Time. Min : 30s, Max: 5min, Default : 1min. Format: input the time in seconds eg: 1min => 60 ")
|
|
1302
1314
|
parser.add_argument('-pof','--pollFrequency',default=10,help="Polling Frequency. Min : 5s, Max: 1min, Default : 10s. Format: input the time in seconds eg: 1min => 60 ")
|
|
1303
1315
|
parser.add_argument('-std','--setCacheDir',default=False,help="Set the cache directory for the scan. Set true if you use jenkins cicd")
|
|
1316
|
+
parser.add_argument('-nrm','--nonRootMode',default=False,help="Set the non-root mode for the scan. Set true if you use jenkins cicd")
|
|
1317
|
+
parser.add_argument('-nes','--noEnrichmentSBOM',default=False,help="Set the no enrichment for SBOM scan. Set true if you want to skip the enrichment of SBOM scan")
|
|
1304
1318
|
args = parser.parse_args()
|
|
1305
1319
|
|
|
1306
1320
|
# if len(sys.args) == 1:
|
|
@@ -1328,6 +1342,14 @@ def default():
|
|
|
1328
1342
|
else:
|
|
1329
1343
|
Config.set_cache_dir = False
|
|
1330
1344
|
|
|
1345
|
+
if args.nonRootMode:
|
|
1346
|
+
Config.non_root_mode = True
|
|
1347
|
+
else:
|
|
1348
|
+
Config.non_root_mode = False
|
|
1349
|
+
|
|
1350
|
+
if args.noEnrichmentSBOM:
|
|
1351
|
+
Config.no_enrichment_sbom = True
|
|
1352
|
+
|
|
1331
1353
|
# lingu user id set
|
|
1332
1354
|
if args.semgrepToken == 'No':
|
|
1333
1355
|
##logging.info('jenkins is choosen')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/02-reverse-shell.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/05-lifecycle-hook-abuse.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/boman-malware-detection.yml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/01-obfuscated-dynamic-exec.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/03-download-and-execute.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/04-credential-exfiltration.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/05-lifecycle-hook-abuse.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/06-suspicious-c2-endpoints.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/05-lifecycle-hook-abuse.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/02-reverse-shell.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/08-persistence.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/01-obfuscated-dynamic-exec.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/03-download-and-execute.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/04-credential-exfiltration.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/06-suspicious-c2-endpoints.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/02-reverse-shell.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/05-lifecycle-hook-abuse.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/05-lifecycle-hook-abuse.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/03-download-and-execute.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/07-cryptominer-indicators.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/09-anti-analysis-evasion.yaml
RENAMED
|
File without changes
|
{boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/10-filesystem-tampering.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|