forked from NextronSystems/asgard-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
013fed1
commit 4855243
Showing
10 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Playbooks for ASGARD to find Spring's CVE-2022-22965 vulnerability | ||
These playbooks make use of hillu's vulnerability scanner. The binaries can be downloaded from the github page: https://github.com/hillu/local-spring-vuln-scanner/releases | ||
|
||
## Playbook Creation | ||
For the playbooks to work some files need to be put into the `/var/lib/nextron/asgard2/playbook-files` directory of ASGARD: | ||
|
||
1. The scanner binaries from hillu's github https://github.com/hillu/local-spring-vuln-scanner/releases | ||
|
||
You can use the file upload feature during playbook creation to achieve that: | ||
|
||
![01.png](img/01.png) | ||
|
||
If you need to edit or update the files, you can do that using scp, rsync, WinSCP or whatever tool you use for Linux file transfer. Do not forget to change the file ownership to **asgard2:asgard2** | ||
(e.g. `chown asgard2: /var/lib/nextron/asgard2/playbook-files/check4logFOURj*`), if it was changed by uploading. | ||
|
||
|
||
### How to Create a Playbook | ||
*This section explains how to create a playbook in detail. If you are familiar with ASGARD's playbook creation, see the overview of the next 2 sections.* | ||
|
||
Go to **Response Control > Playbooks > Add Playbook**, enter | ||
* Name: Run local-spring-vuln-scanner (Linux) | ||
* Description: Runs local-spring-vuln-scanner on Linux asset(s). | ||
|
||
and click **Add Playbook**. | ||
|
||
![02.png](img/02.png) | ||
|
||
Next add the single playbook steps. Therefore click anywhere on the newly created playbook to open its drop-down menu and then choose **Add Step** for each of the following Steps: | ||
|
||
![03.png](img/03.png) | ||
|
||
1. Download local-spring-vuln-scanner | ||
|
||
![04.png](img/04.png) | ||
|
||
- Choose the already uploaded script or select **Upload New File** if you want to upload it from the browser. | ||
|
||
2. Execute check script | ||
|
||
![05.png](img/05.png) | ||
|
||
- Commands 1: `chmod u+x local-spring-vuln-scanner` | ||
- Commands 2: `./local-spring-vuln-scanner --exclude /run --exclude /proc --quiet /` | ||
|
||
### Overview - Run local-spring-vuln-scanner (Linux) Playbook | ||
|
||
![06.png](img/06.png) | ||
|
||
Text transcription of the screenshot: | ||
* Name: Run local-spring-vuln-scanner (Linux) | ||
* Description: Runs local-spring-vuln-scanner on Linux asset(s). | ||
* Step 1: | ||
* Name: Download local-spring-vuln-scanner | ||
* Type: Download File from ASGARD MC | ||
* Step 2: | ||
* Name: Run local-spring-vuln-scanner | ||
* Type: Run Command Line on Endsystem | ||
* Commands: | ||
- `chmod u+x local-spring-vuln-scanner` | ||
- `./local-spring-vuln-scanner --exclude /run --exclude /proc --quiet /` | ||
|
||
### Overview - Run local-spring-vuln-scanner.exe (Windows) Playbook | ||
|
||
![07.png](img/07.png) | ||
|
||
Text transcription of the screenshot: | ||
* Name: Run local-spring-vuln-scanner.exe (Windows) | ||
* Description: Runs local-spring-vuln-scanner.exe on Windows asset(s). | ||
* Step 1: | ||
* Name: Download local-spring-vuln-scanner.exe | ||
* Type: Download File from ASGARD MC | ||
* Step 2: | ||
* Name: Run local-spring-vuln-scanner.exe | ||
* Type: Run Command Line on Endsystem | ||
* Commands: | ||
- `local-spring-vuln-scanner.exe --quiet C:\` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.