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.
Files changed (117) hide show
  1. {boman_cli-2.6.6 → boman_cli-2.6.8}/PKG-INFO +20 -1
  2. {boman_cli-2.6.6 → boman_cli-2.6.8}/README.md +19 -0
  3. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/PKG-INFO +20 -1
  4. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/Config.py +8 -2
  5. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/main.py +57 -35
  6. {boman_cli-2.6.6 → boman_cli-2.6.8}/setup.cfg +1 -1
  7. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/SOURCES.txt +0 -0
  8. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/dependency_links.txt +0 -0
  9. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/entry_points.txt +0 -0
  10. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/requires.txt +0 -0
  11. {boman_cli-2.6.6 → boman_cli-2.6.8}/boman_cli.egg-info/top_level.txt +0 -0
  12. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/_init_.py +0 -0
  13. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/auth.py +0 -0
  14. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/base_logger.py +0 -0
  15. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/dev_attribution.py +0 -0
  16. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/loc_finder.py +0 -0
  17. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/01-obfuscated-dynamic-exec.yaml +0 -0
  18. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/02-reverse-shell.yaml +0 -0
  19. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/03-download-and-execute.yaml +0 -0
  20. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/04-credential-exfiltration.yaml +0 -0
  21. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/06-suspicious-c2-endpoints.yaml +0 -0
  22. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/07-cryptominer-indicators.yaml +0 -0
  23. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/08-persistence.yaml +0 -0
  24. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/09-anti-analysis-evasion.yaml +0 -0
  25. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/10-filesystem-tampering.yaml +0 -0
  26. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/01-obfuscated-dynamic-exec.yaml +0 -0
  27. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/02-reverse-shell.yaml +0 -0
  28. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/03-download-and-execute.yaml +0 -0
  29. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/04-credential-exfiltration.yaml +0 -0
  30. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/05-lifecycle-hook-abuse.yaml +0 -0
  31. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/06-suspicious-c2-endpoints.yaml +0 -0
  32. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/07-cryptominer-indicators.yaml +0 -0
  33. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/08-persistence.yaml +0 -0
  34. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/09-anti-analysis-evasion.yaml +0 -0
  35. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/10-filesystem-tampering.yaml +0 -0
  36. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/12-insecure-deserialization.yaml +0 -0
  37. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/01-obfuscated-dynamic-exec-confusable-unicode.yaml +0 -0
  38. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-composer.yaml +0 -0
  39. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-npm.yaml +0 -0
  40. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/boman-malware-detection.yml +0 -0
  41. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/01-obfuscated-dynamic-exec.yaml +0 -0
  42. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/02-reverse-shell.yaml +0 -0
  43. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/03-download-and-execute.yaml +0 -0
  44. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/04-credential-exfiltration.yaml +0 -0
  45. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/05-lifecycle-hook-abuse.yaml +0 -0
  46. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/06-suspicious-c2-endpoints.yaml +0 -0
  47. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/07-cryptominer-indicators.yaml +0 -0
  48. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/08-persistence.yaml +0 -0
  49. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/09-anti-analysis-evasion.yaml +0 -0
  50. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/10-filesystem-tampering.yaml +0 -0
  51. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/01-obfuscated-dynamic-exec.yaml +0 -0
  52. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/02-reverse-shell.yaml +0 -0
  53. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/03-download-and-execute.yaml +0 -0
  54. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/04-credential-exfiltration.yaml +0 -0
  55. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/05-lifecycle-hook-abuse.yaml +0 -0
  56. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/06-suspicious-c2-endpoints.yaml +0 -0
  57. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/07-cryptominer-indicators.yaml +0 -0
  58. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/08-persistence.yaml +0 -0
  59. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/09-anti-analysis-evasion.yaml +0 -0
  60. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/10-filesystem-tampering.yaml +0 -0
  61. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/12-insecure-deserialization.yaml +0 -0
  62. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/01-obfuscated-dynamic-exec.yaml +0 -0
  63. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/02-reverse-shell.yaml +0 -0
  64. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/03-download-and-execute.yaml +0 -0
  65. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/04-credential-exfiltration.yaml +0 -0
  66. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/06-suspicious-c2-endpoints.yaml +0 -0
  67. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/07-cryptominer-indicators.yaml +0 -0
  68. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/08-persistence.yaml +0 -0
  69. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/09-anti-analysis-evasion.yaml +0 -0
  70. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/10-filesystem-tampering.yaml +0 -0
  71. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/12-insecure-deserialization.yaml +0 -0
  72. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/01-obfuscated-dynamic-exec.yaml +0 -0
  73. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/02-reverse-shell.yaml +0 -0
  74. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/03-download-and-execute.yaml +0 -0
  75. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/04-credential-exfiltration.yaml +0 -0
  76. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/06-suspicious-c2-endpoints.yaml +0 -0
  77. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/07-cryptominer-indicators.yaml +0 -0
  78. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/08-persistence.yaml +0 -0
  79. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/09-anti-analysis-evasion.yaml +0 -0
  80. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/10-filesystem-tampering.yaml +0 -0
  81. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/12-insecure-deserialization.yaml +0 -0
  82. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/01-obfuscated-dynamic-exec.yaml +0 -0
  83. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/02-reverse-shell.yaml +0 -0
  84. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/03-download-and-execute.yaml +0 -0
  85. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/04-credential-exfiltration.yaml +0 -0
  86. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/05-lifecycle-hook-abuse.yaml +0 -0
  87. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/06-suspicious-c2-endpoints.yaml +0 -0
  88. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/07-cryptominer-indicators.yaml +0 -0
  89. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/08-persistence.yaml +0 -0
  90. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/09-anti-analysis-evasion.yaml +0 -0
  91. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/10-filesystem-tampering.yaml +0 -0
  92. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/12-insecure-deserialization.yaml +0 -0
  93. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/01-obfuscated-dynamic-exec.yaml +0 -0
  94. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/02-reverse-shell.yaml +0 -0
  95. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/03-download-and-execute.yaml +0 -0
  96. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/04-credential-exfiltration.yaml +0 -0
  97. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/05-lifecycle-hook-abuse.yaml +0 -0
  98. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/06-suspicious-c2-endpoints.yaml +0 -0
  99. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/07-cryptominer-indicators.yaml +0 -0
  100. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/08-persistence.yaml +0 -0
  101. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/09-anti-analysis-evasion.yaml +0 -0
  102. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/10-filesystem-tampering.yaml +0 -0
  103. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/12-insecure-deserialization.yaml +0 -0
  104. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/01-obfuscated-dynamic-exec.yaml +0 -0
  105. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/02-reverse-shell.yaml +0 -0
  106. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/03-download-and-execute.yaml +0 -0
  107. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/04-credential-exfiltration.yaml +0 -0
  108. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/06-suspicious-c2-endpoints.yaml +0 -0
  109. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/07-cryptominer-indicators.yaml +0 -0
  110. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/08-persistence.yaml +0 -0
  111. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/09-anti-analysis-evasion.yaml +0 -0
  112. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/10-filesystem-tampering.yaml +0 -0
  113. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/sbom_enricher.py +0 -0
  114. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/templates/template_plan.yaml +0 -0
  115. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/utils.py +0 -0
  116. {boman_cli-2.6.6 → boman_cli-2.6.8}/bomancli/validation.py +0 -0
  117. {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.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.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.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
- container_output = docker.containers.run(docker_image, command_line, volumes={Config.sast_build_dir: {
200
- 'bind': data['bind']}},user=userid,detach=detach,environment=env_var,remove=True)
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
- ##running reachability before sbom upload
615
+ ##running reachability before sbom upload
607
616
 
608
617
 
609
- #this part i removed since, reachabitlity bug has tobe solved later
618
+ #this part i removed since, reachabitlity bug has tobe solved later
610
619
 
611
- #### sbom entrich part starts here
620
+ #### sbom entrich part starts here
612
621
 
613
622
 
614
- # Load SBOM (generated by Trivy or Syft)
615
- # Load SBOM (generated by Trivy or Syft)
616
- enricher = SBOMEnricher(Config.sbom_output_file)
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
- # Enrich with additional fields
619
- enriched_data = enricher.enrich_components()
627
+ # Enrich with additional fields
628
+ enriched_data = enricher.enrich_components()
620
629
 
621
- # Save final SBOM
622
- enricher.save_sbom('sbom_enriched.json')
630
+ # Save final SBOM
631
+ enricher.save_sbom('sbom_enriched.json')
623
632
 
624
- #print(Config.sbom_output_file)
625
-
633
+ #print(Config.sbom_output_file)
634
+
626
635
 
627
- output_file = 'sbom_enriched.json'
636
+ output_file = 'sbom_enriched.json'
628
637
 
629
- logging.info('Enrichment done %s',output_file)
638
+ logging.info('Enrichment done %s',output_file)
630
639
 
631
640
 
632
-
633
- sbom_output_file = output_file
634
- csv_file = Config.hssc_output_file
635
- #generating sbom more data
641
+
642
+ sbom_output_file = output_file
643
+ csv_file = Config.hssc_output_file
644
+ #generating sbom more data
636
645
 
637
646
 
638
- #i should run the heisenger
639
-
640
- logging.info('Running SSC check on the repo')
647
+ #i should run the heisenger
648
+
649
+ logging.info('Running SSC check on the repo')
641
650
 
642
651
 
643
-
644
- try:
645
- Utils.runheisenberg(sbom_output_file) #docker of hsc
646
- except e:
647
- logging.info('Some error occured while Running HSC on the repo')
648
- exit(6)
649
-
650
- logging.info('Enrichment with more data is going to happen %s',Config.sbom_output_file)
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
- enricher.run_heisenberg(sbom_output_file, csv_file)
661
+ enricher.run_heisenberg(sbom_output_file, csv_file)
653
662
 
654
- logging.info('Enrichment done %s',Config.sbom_output_file)
655
- ##exit(-1)
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')
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  environment = prod
3
- version = 2.6.6
3
+ version = 2.6.8
4
4
  name = boman-cli
5
5
  saas_base_url =
6
6
  https = //dashboard.boman.ai/
File without changes
File without changes
File without changes
File without changes