Cyber Tasks - sofwerx/mad-jack GitHub Wiki
Logon to bluerange0 Elasticsearch/Kibana
Test Json Script (for searches, etc.)
Execute a watcher automatically
Access Safehouse AP through Web Interface
Useful Linux Terminal Commands
-
Plug Internet cable into port A.
-
Plug Access Point or Switch cable into port B.
NOTE: Network Tap MUST be connected before the Access Point in order to intercept all incoming traffic.
-
Run an ethernet cable from port C directly to the laptop.
Logon to Elasticsearch/Kibana:
-
Open the Chrome browser (works best in this browser).
-
Type in the URL address for Elasticsearch.
For example: https://kibana.bluerange0.devwerx.org:20443/
-
Enter account name
-
Enter password
-
Click the Discover option (left side menu).
-
Select desired index from the drop-down menu.
-
Select the time-period:
a. Click the clock icon in the upper right-hand corner. Choose one of the following options:
-
Quick tab - Select one of the time ranges from the list.
-
Relative tab - input the desired time range.
-
Absolute tab - input the desired time range.
-
Test Json Script (for searches, etc.):
-
Click the Dev Tools option (left side menu).
-
Enter code into Console.
-
View results in right panel.
-
Click the Monitoring option (left side menu).
-
Click on Indices.
-
Scroll through list to see data on the indexes.
-
Click the Dashboard option (left side menu).
-
Navigate through the entries.
-
Click the Sentinl option (left side menu).
-
Click on the New tab (top row).
-
Click on + Watcher (upper left).
-
In the General tab:
a. Go to the Title box. Type in the name of the watcher.
b. Go to the Schedule box. Type in the schedule (e.g. every 5 seconds). This will tell the watcher how often to run.
- In the Input tab:
a. Go to the Title box. Type in the name of the input section of the script (or alternatively select one that was already created from the drop down menu).
b. Go to the Body box. If writing a new script, put the Input code here.
- In the Condition tab:
a. Go to the Title box. Type in the name of the condition section of the script (or alternatively select one that was already created from the drop-down menu).
b. Go to the Body box. If writing a new script, put the Condition code here.
- In the Transform tab:
a. Go to the Title box. Type in the name of the transform section of the script (or alternatively select one that was already created from the drop-down menu).
b. Go to the Body box. If writing a new script, put the Transform code here.
- In the Actions tab:
a. Click the > in the email_admin box (right side of the box). Scroll down and click the delete button. Click yes in the pop-up window.
b. Expand the Add action drop down menu. Select webhook.
c. Click the > in the New webhook action box (right side of the box).
d. Check the alarm box.
e. Check the save payload box ONLY if you want the watcher to save the payload (packet information such as IP addresses, etc.)
f. Customize the title.
g. Select POST from the Method drop down menu.
h. Input the Host's IP address.
i. Input the port number.
j. Input the path (/).
k. Input:
{
"message": "Found {{payload.hits.total}} Events", "payload": "{{payload.hits.total}}"
}
l. Input:
{
"Content-Type": "application/json"
}
m. Click Save in the upper right-hand corner of screen.
- Select the Raw tab to see the entire script at once.
a. The script can be viewed in its entirety from this tab. Although it is possible to edit the script from here, it is more preferable to use the tabs as described in steps 4 through 8.
Execute a watcher automatically:
-
Click the Sentinl option (left side menu).
-
Go to the Watchers tab.
- Enable the watcher by moving the slider button (under ACTIONS) to the right. The watcher will now automatically execute as scheduled in the script.
- Moving the slider to the left will disable the watcher.
-
Click the Sentinl option (left side menu).
-
Go to the Watchers tab.
- Click the circle (under ACTIONS).
- The watcher will execute immediately one time.
-
Click the Sentinl option (left side menu).
-
Go to the Watchers tab.
- Click the three dots (under ACTIONS).
- Edit the script (see Watcher Configuration Steps).
-
Click the Sentinl option (left side menu).
-
Go to the Watchers tab.
-
Click the trashcan (under ACTIONS). WARNING: This will permanently delete the watcher.
-
Click the Sentinl option (left side menu).
-
Go to the ALARMS tab.
a. Select an alarm from the list.
b. Click the three dots to view the information and/or payload.
c. Click the trashcan to delete the alarm.
NOTE: List will be empty if there are no alarms during the selected time-period.
-
Change the time-period:
a. Click the clock icon/time-period in the upper right-hand corner.
b. Choose one of the following options:-
Quick tab - Select one of the time ranges from the list.
-
Relative tab - input the desired time range.
-
Absolute tab - input the desired time range.
-
-
Open terminal window (keyboard shortcut: command t).
-
Enter "ssh" followed by the username@IPaddress (IP address of the Access Point)
For example:
-
Enter password.
-
Type the desired submenu (left column) to navigate through the options.
Access Safehouse AP through Web interface
-
Open a browser window.
-
Type the Safehouse AP's IP address into the address bar.
-
Enter username.
-
Enter password.
-
Navigate through the menus (left hand side).
Useful Linux terminal commands
-
Open a terminal window (keyboard shortcut: command t).
-
Type the following command to show all running docker processes:
-
Type the following to shut down the laptop: