
Das TaSK Framework wurde am 13.06.2023 vom Bundesamt für Sicherheit in der Informationstechnik (BSI) veröffentlicht. Das Framework macht es sich zur Aufgabe TLS-Verbindungen, also Transport Layer Security, auf ihre Sicherheit zu prüfen. TLS kommt an vielerlei Stellen zum Einsatz. Sei es Webzugriffe, die über https
erfolgen, E-Mail, oder weitere Web Services. Genau diese Konfigurationen, ob selbst vorgenommen oder durch Dritte bestimmt, kannst du mit dem Framework nun auf ihre Sicherheit überprüfen lassen. In dem heutigen Artikel zeige ich dir, wie du unter Ubuntu, FreeBSD und Windows
Attention: For the english version, click here!
Hier noch eine kleine Besonderheit zu diesem Artikel. Die zweireihige Serie erscheint in Kooperation mit Cyber Security Intelligence. Part 2 werde ich unten jeweils verlinken. Dort erfährst du wie man die TLS-Verbindungen letztendlich prüfen kann.
- Linux
- Linux + Docker
- FreeBSD
- FBSD + Jail
- Windows
Vorbereitungen
Zuerst solltest du dir eine Ubuntu-VM erstellen und die Netzwerkeinstellungen auf Netzwerkbrücke setzen.
Ist die Installation abgeschlossen oder nutzt eine bereits existierende Linux-Installation, solltest du, wie immer, vorher dein Repository aktualisieren.
sudo apt update && sudo apt upgrade -y
Ist alles sauber vorbereitet, kannst du loslegen. Zum Erstellen des Builds kannst du Apache Maven nutzen, zu installieren geht es mit folgendem Befehl:
sudo apt install maven
Bei der Installation wird automatisch Java mitinstalliert. Für das TaSK Framework wird Java 17+ vorausgesetzt. Bevor du jetzt einen Fehler provozierst, tippe
java --version
ein, um deine aktuelle Version von Java auszulesen:
dennis@byte-sized.de:/home/dennis# java --version openjdk 11.0.20.1 2023-08-24 OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04) OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
Bei mir war Java 11 installiert, doch benötigt wird Java 17+. Also, solltest du, falls es bei dir ähnlich aussieht eine neuere Version installieren.
sudo apt install openjdk-19-jdk
Mit java --version
kannst du erneut überprüfen, ob die frisch installierte Version von Java nun verwendet wird.
TaSK herunterladen und Build erstellen
Als Nächstes brauchst du natürlich das TaSK-Framework. Entweder clonst du dir das Repo von Github oder lädst es dir als ZIP-Datei herunter.
Für das Clonen solltest du vorher git installiert haben:
sudo apt install git
Im Anschluss kannst du das Repository clonen:
git clone https://github.com/BSI-Bund/TaSK.git
Wechsel danach entsprechend in das Verzeichnis:
cd ~/task/
Nun kannst du das Build mit Maven erstellen:
sudo mvn clean install
Das kann jetzt ein bisschen Zeit in Anspruch nehmen. Nach einer Weile wirst du feststellen, dass verschiedene CVE’s von der National Vulnerability Database der jeweiligen Jahre heruntergeladen werden. Gegen diese CVE’s werden später bei der Anwendung des TaSK-Frameworks deine Konfigurationsdateien und Zertifikate getestet.
Ist das Build erfolgreich erstellt worden, solltest du diesen Output erhalten:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for com.achelos.task 1.0.1:
[INFO]
[INFO] com.achelos.task …………………………….. SUCCESS [ 57.448 s]
[INFO] com.achelos.task.utilities ……………………. SUCCESS [ 10.249 s]
[INFO] com.achelos.task.logging ……………………… SUCCESS [ 7.691 s]
[INFO] com.achelos.task.commons ……………………… SUCCESS [ 15.628 s]
[INFO] com.achelos.task.xmlparser ……………………. SUCCESS [ 23.191 s]
[INFO] com.achelos.task.configuration ………………… SUCCESS [ 10.762 s]
[INFO] com.achelos.task.testsuitesetup ……………….. SUCCESS [ 7.484 s]
[INFO] com.achelos.task.abstracttestsuite …………….. SUCCESS [ 8.058 s]
[INFO] com.achelos.task.micsverifier …………………. SUCCESS [ 16.708 s]
[INFO] com.achelos.task.commandlineexecution ………….. SUCCESS [ 11.704 s]
[INFO] com.achelos.task.tr03116ts ……………………. SUCCESS [ 21.358 s]
[INFO] com.achelos.task.testcaseexecutionengine ……….. SUCCESS [ 7.168 s]
[INFO] com.achelos.task.abstractinterface …………….. SUCCESS [ 7.703 s]
[INFO] com.achelos.task.reporting ……………………. SUCCESS [ 10.129 s]
[INFO] com.achelos.task.rest-impl ……………………. SUCCESS [ 14.961 s]
[INFO] com.achelos.task.commandlineinterface ………….. SUCCESS [ 15.720 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:06 min
[INFO] Finished at: 2023-11-12T19:50:15+01:00
[INFO] ------------------------------------------------------------------------
Mit Part 2 zur Anwendung des TaSK Frameworks geht es weiter auf dem Blog von Cyber Security Intelligence.
Install TaSK Framework of the BSI – Part 1
The TaSK Framework was released on June 13, 2023, by the Federal Office for Information Security (BSI). The framework’s purpose is to assess the security of Transport Layer Security (TLS) connections. TLS is utilized in various contexts, including web access through HTTPS, email, and other web services. Whether these configurations are self-made or determined by third parties, the framework allows you to examine their security. In today’s article, I’ll show you how to do this on Ubuntu, FreeBSD, and Windows.
Here’s a special note about this article: This two-part series is presented in collaboration with Cyber Security Intelligence. I will provide the link to Part 2 below, where you can learn how to ultimately assess TLS connections.
- Linux
- Linux + Docker
- FreeBSD
- FBSD + Jail
- Windows
Preparations
First, you should create an Ubuntu VM and set the network settings to a network bridge.
Once the installation is complete or if you are using an existing Linux installation, as always, update your repository first:
sudo apt update && sudo apt upgrade -y
Once everything is set up, you can get started. To build the TaSK Framework, you can use Apache Maven. Install it with the following command:
sudo apt install maven
During the installation, Java will be automatically installed. TaSK Framework requires Java 17+. Before potentially causing an error, type the following command to check your current Java version:
java --version
In my case, Java 11 was installed, but Java 17+ is required. So, if your situation is similar, install a newer version:
sudo apt install openjdk-19-jdk
Use java --version
to verify that the newly installed version of Java is now in use.
Download TaSK and Build
Next, you need the TaSK Framework. Either clone the repository from Github or download it as a ZIP file.
If you choose to clone, make sure you have Git installed:
sudo apt install git
Then, clone the repository:
git clone https://github.com/BSI-Bund/TaSK.git
After that, navigate to the directory:
cd ~/task/
Now you can build it with Maven:
sudo mvn clean install
This may take some time. After a while, you will notice that various CVEs from the National Vulnerability Database of the respective years are being downloaded. These CVEs will later be tested against your configuration files and certificates when applying the TaSK Framework.
If the build is successful, you should see the following output:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for com.achelos.task 1.0.1:
[INFO]
[INFO] com.achelos.task …………………………….. SUCCESS [ 57.448 s]
[INFO] com.achelos.task.utilities ……………………. SUCCESS [ 10.249 s]
...
[INFO] com.achelos.task.commandlineinterface ………….. SUCCESS [ 15.720 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:06 min
[INFO] Finished at: 2023-11-12T19:50:15+01:00
[INFO] ------------------------------------------------------------------------
Continue with Part 2 for the application of the TaSK Framework on the Cyber Security Intelligence blog.
Join the discussion
2 replies to “TaSK Framework des BSI installieren – Part 1”
I just like the valuable info you provide to your articles. I will bookmark your weblog and take a look at once more right here frequently. I am moderately certain I’ll be informed lots of new stuff right here! Best of luck for the next!
I simply couldn’t go away your website prior to suggesting that I extremely enjoyed the standard info a person provide on your visitors? Is going to be back often to check out new posts