mirror of
https://github.com/e-m-b-a/emba.git
synced 2026-10-12 02:13:21 +00:00
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
# EMBA - EMBEDDED LINUX ANALYZER
|
|
#
|
|
# Copyright 2020-2026 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): Benedikt Kuehne
|
|
# Contributor(s): Michael Messner
|
|
#
|
|
# Description: Profile for AI usage
|
|
|
|
export FORMAT_LOG=1
|
|
export THREADED=1
|
|
export SHORT_PATH=1
|
|
export HTML=1
|
|
|
|
# QEMULATION - for user-mode emulation to generate an optimised SBOM
|
|
export QEMULATION=1
|
|
# 0 -> off, 1-> unpaid GPT plan, 2 -> no GPT rate-limit, 3 -> LocalAI Server
|
|
export AI_OPTION=3
|
|
|
|
# extended binary tests are now only testing non-linux binaries. With this mechanism we can enable
|
|
# it in the default profile.
|
|
export BINARY_EXTENDED=1
|
|
|
|
# VEX metrics (check for KEV, Exploits, EPSS)
|
|
export VEX_METRICS=1
|
|
|
|
# disable long running modules - enable them if needed
|
|
export MODULE_BLACKLIST+=( "S10_binaries_basic_check" "S15_radare_decompile_checks" "S26_kernel_vuln_verifier" "S99_grepit" "S110_yara_check" "F20_vul_aggregator" )
|
|
|
|
# enable silent mode and status bar
|
|
export DISABLE_STATUS_BAR=1
|
|
export SILENT=0
|
|
|
|
# enable EMBA binary map dependency generator
|
|
EMBA_MAP_GENERATOR=0
|
|
|
|
# we output the profile only at the beginning - outside the docker environment
|
|
if [[ $IN_DOCKER -ne 1 ]] ; then
|
|
print_output "$(indent "$(orange "Adds ANSI color codes to log")")" "no_log"
|
|
print_output "$(indent "$(orange "Activate multi threading")")" "no_log"
|
|
print_output "$(indent "$(orange "Prints only relative paths")")" "no_log"
|
|
print_output "$(indent "$(orange "Activates web report creation in log path")")" "no_log"
|
|
print_output "$(indent "$(orange "Activates AI checks via OpenAI-API")")" "no_log"
|
|
if [[ "$USE_DOCKER" -ne 1 ]]; then
|
|
print_output "$(indent "$(orange "Enables automated qemu emulation tests (WARNING this module could harm your host!)")")" "no_log"
|
|
else
|
|
print_output "$(indent "$(orange "Enables automated qemu emulation tests")")" "no_log"
|
|
fi
|
|
print_output "$(indent "$(orange "Runs EMBA in docker container")")" "no_log"
|
|
print_output "$(indent "$(orange "Disable EMBA module via profile")")" "no_log"
|
|
for MODULE_ in "${MODULE_BLACKLIST[@]}"; do
|
|
print_output "$(indent "$(orange "Blacklisted module: $MODULE_")")" "no_log"
|
|
done
|
|
export USE_DOCKER=1
|
|
fi
|