-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1452 from m-1-k-3/cve_bin_tool_integration
CVE bin tool integration, VEX support -> F20 replacement
- Loading branch information
Showing
31 changed files
with
1,397 additions
and
1,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...eport_templates/F20_vul_aggregator-pre.sh → .../report_templates/F17_cve_bin_tool-pre.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
print_output "This module aggregates all found version numbers together from S06, S08, S09, S24, S25 and S115 and searches with cve-search for known vulnerabilities." | ||
print_output "Additionally, the identified CVE details are matched with public exploit databases." | ||
print_output "This module aggregates all found version numbers together from S06, S08, S09, S24, S25 and S115 and searches with cve-bin-tool for known vulnerabilities." | ||
print_output "Additionally, the identified CVE details are matched with EPSS, public exploit databases and a VEX json is generated." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
|
||
# EMBA - EMBEDDED LINUX ANALYZER | ||
# | ||
# Copyright 2025-2025 Siemens Energy AG | ||
# | ||
# EMBA comes with ABSOLUTELY NO WARRANTY. This is free software, and you are | ||
# welcome to redistribute it under the terms of the GNU General Public License. | ||
# See LICENSE file for usage of this software. | ||
# | ||
# EMBA is licensed under GPLv3 | ||
# | ||
# Author(s): Michael Messner | ||
|
||
# Description: Installs cve-bin-tool including database for offline work | ||
|
||
IF17_cve_bin_tool() { | ||
module_title "${FUNCNAME[0]}" | ||
|
||
if [[ "${LIST_DEP}" -eq 1 ]] || [[ "${IN_DOCKER}" -eq 1 ]] || [[ "${DOCKER_SETUP}" -eq 0 ]] || [[ "${FULL}" -eq 1 ]]; then | ||
|
||
INSTALL_APP_LIST=() | ||
|
||
if [[ "${LIST_DEP}" -eq 1 ]] || [[ "${IN_DOCKER}" -eq 1 ]] || [[ "${DOCKER_SETUP}" -eq 0 ]] ; then | ||
print_tool_info "gsutil" | ||
# print_pip_info "cve_bin_tool" | ||
print_git_info "cve-bin-tool" "https://github.com/EMBA-support-repos/cve-bin-tool.git" "cve-bin-tool" | ||
fi | ||
|
||
if [[ "${LIST_DEP}" -eq 1 ]] || [[ "${DOCKER_SETUP}" -eq 1 ]] ; then | ||
ANSWER=("n") | ||
else | ||
echo -e "\\n""${MAGENTA}""${BOLD}"" cve-bin-tool will be downloaded (if not already on the system)!""${NC}" | ||
fi | ||
|
||
case ${ANSWER:0:1} in | ||
y|Y ) | ||
apt-get install "${INSTALL_APP_LIST[@]}" -y --no-install-recommends | ||
|
||
# radare2 | ||
echo -e "${ORANGE}""${BOLD}""Install cve-bin-tool""${NC}" | ||
git clone https://github.com/EMBA-support-repos/cve-bin-tool.git external/cve-bin-tool | ||
cd external/cve-bin-tool || ( echo "Could not install EMBA component cve-bin-tool" && exit 1 ) | ||
pip install -U -r requirements.txt | ||
python3 -m pip install -e . | ||
cd "${HOME_PATH}" || ( echo "Could not install EMBA component cve-bin-tool" && exit 1 ) | ||
python3 external/cve-bin-tool/cve_bin_tool/cli.py --update now || true | ||
cp -pr "${HOME}"/.cache/cve-bin-tool ./external/cve-bin-tool/cache_cve-bin-tool | ||
;; | ||
esac | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.