Today's cyber threat landscape is constantly evolving, requiring organizations to continually assess their cybersecurity posture to ensure it remains effective. FortiTester runs a robust set of security tests, such as agent-based MITRE ATT&CK simulations, DDoS and fuzzing attacks, CVE-based intrusions including SCADA targets, malware strike packs, and much more. These are regularly refreshed to reflect the latest cyber campaigns seen by Fortinet’s FortiGuard Labs. Being able to simulate attacks is crucial to identify gaps in security controls and to validate the people and processes on which the enterprise depends.
Whether assessing your next-generation firewall (NGFW), load balancers, or web infrastructure to identify pressure points and bottlenecks, FortiTester offers a variety of tests including RFC2544/3511, iMIX, HTTP/HTTPS/HTTP2, as well as SSL VPN for FortiGate devices. Network performance tests can also be used for the public cloud to validate cloud architecture and performance.
In this workshop, participants will start by configuring the network template. The template settings are used to populate the network settings for the test case configuration to use in your testing. You will also learn how to perform security testing including Malware, IPS, DDoS, and Web attacks against your environment that is deployed with FortiWeb, FortiGate, and FortiClient. Furthermore, you will learn how to perform MITRE ATT&CK post-exploitation, against an endpoint using FortiTester.
Topology
The network configuration template specifies the IP address type, DUT (Device Under Test) working mode, client/server port settings, subnet settings, port binding, and VLAN settings, etc. You can only import template settings if the IP address type and DUT working mode you select in the new test case popup dialog box match the settings in the network configuration template. In this section you will be configuring FortiTester network template.
In this lab you will be configuring the FortiTester network template specifically NAT mode, you will be using this template for security testing use cases, the template is built based on the FortiTester virtual appliance network adapter settings configured in the lab.
Tasks
Â
- From the Lab Activity main menu, click FortiTester then click HTTPS to access and use the following credentials.
- Username:Â
admin Â
  password:ÂFortinet1!
- Username:Â
- Click Security.
- Click Objects > Networks.
- Click Create New.
- Set DUT Working Mode to Network Address Translation (NAT).
- Click Ok.
- Set Name toÂ
NAT
- Under Network Settings CLIENT, set port1 IP Address or Range toÂ
172.16.99.152
. - Set Netmask to
 24
. - Set Gateway toÂ
172.16.99.254
. - Set Peer Network toÂ
10.10.30.8/29
. - Remove the second subnet settings by clicking on the X icon.
- Set Server port2 IP Address or Range toÂ
10.10.30.13
. - Set Netmask toÂ
29
. - Set Gateway toÂ
10.10.30.14
. - Set Peer Network toÂ
172.16.99.0/24
. - Double-check your network template and make sure it looks exactly like the screenshot below otherwise none of the security testing use cases will work.
- Click Save.
Â
Security Testing
Malware Attack
FortiTester can perform malware attacks for security testing purposes, malware cases can send files with HTTP/FTP/SMTP/IMAP/POP3/SMB protocols. Malware strike packs which are provided and refreshed regularly by FortiGuard updates or user malware groups can be used in security testing. In this lab you will be uploading a custom malware file using the user malware group, to use it for malware security testing against the FortiGate, test FortiClient Malware Prevention by trying to download malware from the FortiTester strike pack and finally view the malware strike packs.
Tasks
Upload User Malware Group
Â
- From the Lab Activity main menu, click Jumpbox then click RDP to access, open Firefox or Chrome, and access FortiTester using the bookmarked page.
- On FortiTester. Click on Security.
- Click Objects > User Malware Group.
- Click Create New.
- Set Name toÂ
UserMalwareGroup1
. - Click Add.
- Under Files, click Browse.
- On the Downloads folder, click on the eicar_com.zip file, and click open.
- Upload the file by clicking on the up arrow key as shown.
- Close the browser
Â
Perform Malware Attack
Â
- Go back to the FortiTester browser tab opened from the lab activity menu. Click Malware > Malware.
- Click Create New.
- Set DUT Working Mode to Network Address Translation (NAT).Â
- Set Network Config to NAT which was created in the Network Template previously.
- Set Protocol to FTP.
- Click OK.
- Under Specifics, click Action, set User Malware Group toÂ
UserMalwareGroup1
 and leave the rest of the settings to default. - Click Start.
Note: Please wait a few minutes for the attack to start if it takes longer than 5 minutes, click stop to stop the attack then click Return to re-start the attack. - You will notice that the Running Result is Success with a green circle next to it, and the status of the attack is Block and it has been blocked by the FortiGate Edge device.
- Click the home icon on the top right corner.
- From the Lab Activity main menu, click FGT-EDGE, click HTTPS to access, and log in using the following credentials:
Username:Âadmin Â
 password:ÂFortinet1!
- Click Log & Report > Security Events.
- Double-click Antivirus to view the logs.
Â
FortiClient Protection
Â
- From the Lab Activity main menu, click Alice, and click RDP to access.
- Open Chrome and browse to following link by copying it and pasting into the browserÂ
http://web.archive.org/web/20020106023748if_/www.0190-dialer.com/dialers/5-4-40-117.exe
- FortiClient will deny access to this executable file.
Note: The link you browsed to was from the Malware Strike Pack available on FortiTester, the pack is updated often so you might not find this link on the search menu. - Close the browser
Â
View FortiGuard Malware Strike Packs
Â
- On FortiTester Security Testing, click Objects > FGD Malware Group.
- Click Available Malware.
- You can view FortiGuard Malware Definitions.Â
IPS AttackSecurity Testing
FortiTester can perform IPS attacks to test your environment intrusion prevention system, you can test security systems by replaying a predefined FortiGuard security signature or a customized set of attack traffic that you can upload. The predefined FortiGuard intrusion definitions cover 100s of types of attacks. In this lab you will be performing an IPS attack against FortiGate, using a predefined FortiGuard intrusion group list.
Tasks
Create FortiGuard Intrusion Group
Â
- On FortiTester Security Testing.
- Click Objects > FGD Intrusion Group.
- Click Create New.
- Set Name toÂ
FGDIntrusionGroup1
. - Click ADD.
- Click CreateNew.
- Click Type search and select Buffer Error.
- Click Search
- Select ALLMediaServer_Mediaserver_SEH_Buffer_Overflow.
Note: Please make sure you select the IPS attack mentioned above if you select a different one it might pass as it depends on FortiGate IPS configuration and it’s set to block ALLMediaServer_Mediaserver_SEH_Buffer_Overflow. - Click Save.
Â
Perform IPS Attack
Â
- Click IPS > Attack.
- Click Create New.
- Set DUT Working Mode to Network Address Translation (NAT).
- Set Network Config to NAT.
- Click OK.
- Under Specifics, click Action.Â
- Set FGD Intrusion Group to FGDIntrusionGroup1.
- Disable FGD Free Package
- Click Start
- Wait until you see Running Result is Success with a green circle next to it, you will notice ALLMediaServer_Mediaserver_SEH_Buffer_Overflow status is PacketLost as it has been dropped by FortiGate.
- Click the home icon on the top right corner.
- On FGT-EDGE, click Log & Report > Security Events.
- Double-click Intrusion Prevention to view the log.
Â
DDOS AttackSecurity Testing
FortiTester can test the devices under test (DUT) ability to handle different types of DDOS attack tests (single packet flood, TCP session flood, HTTP session flood, DDoS concurrent session flood, and UDP packet). In this lab, you will perform a single packet flood DDoS test against the FortiGate.
Tasks
Modify Network Template
Â
- On FortiTester Security Testing, click Objects > Networks.
 - Double Click NAT.
- Set IP Address or Range for Client port1 toÂ
172.16.99.152-172.16.99.160
. - Click Save.
Â
DDOS Attack
Â
- On FortiTester Security Testing, click DDOS > Singe Packet Flood.
- Click Create New.
- Set DUT Working Mode to Network Address Translation (NAT).
- Set Network Config to NAT.
- Click OK.
- Set Steady Duration to
 2Â
Minutes. - Set the Number of Samples toÂ
20
. - Click Start.Â
- Wait for two minutes, you will see Running Result is Success with a green circle next to it, you can view statistics of the DDos attack after it finishes.
- Click the home icon on the top right corner.
- On FGT-EDGE, click Log & Report > Security Events.
- Double-click Anomaly to view cleared DDoS sessions.
Â
Web AttackSecurity Testing
The Web Protection security test simulates sending web application attacks expected to be detected by the security DUT. In this lab you will view SQL injection and XSS attacks that have been performed on the FortiWeb appliance, using web protection signatures available from FortiGuard. Also, you will view FortiWeb logs blocking those attacks.Â
Note: Please note due to having FortiTester VM adapter settings fixed in the lab you will not be doing live testing against FortiWeb.Â
Tasks
View Web Protection Group
Â
- On FortiTester Security Testing, click Objects > Web Protection Group.
 - Double-click WebProtectionGroup1. The group contains SQL injection and XSS signatures.
 Attack
View Web Attack
Â
- Click Web Protection > Web Protection.
- Click Result in the existing attack performed.Â
- In the results, you will see attacks blocked by FortiWeb
- Click Close.
- From the Lab Activity main menu, click FortiWeb then HTTPS to access it using the following credentials:
Username:Âadmin
   Password:ÂFortinet1!
- Click Log&Report > Log Access > Attack to view FortiWeb logs.
How to use FortiTester MITRE ATT&CKSMITRE ATT&CK
Background
Â
FortiAgent is a Windows service that facilitates communication between the FortiTester and the RATs. The FortiAgent program should be installed on every target host that is taking part in the adversary emulation operation. Remote Access Tool (RAT) performs adversary actions on infected hosts and copies itself over the whole network to increase its foothold. RAT in real-world scenarios is malware designed to allow an attacker to remotely control an infected computer. Once the RAT is running on a compromised system, the attacker can send commands to it and receive data back in response. In this lab, you will be downloading FortiAgent & RAT on Bob's user machine which is part of the Acmecorp domain, and run a MITRE attack against the user machine specifically dumping credentials, and viewing the attack results.
Note: In this lab exercise you will be working on FortiTester from Bob's machine.
Tasks
Download FortiAgent & RAT from FortiTester
Â
- From the Lab Activity main menu, click Bob, and click RDP to access.
- Open Chrome and browse to FortiTester using the browser bookmarked page.
- Log in using the following credentials:
Username:Âadmin
    Password:ÂFortinet1!
- Click ATT&CK.
- Click Maintenance > Resources.
- Download fortiagent.exe and conf.yml files for Windows by clicking on the download icons under FortiAgent and confg.yml columns.
- Download CraterMain.exe for Wind/8/Win8.1/Win10 by clicking on the download icon under the RAT column.
- Launch CraterMain.exe from the browser download tab at the bottom or the download folder.
- Right-click Command Prompt on the desktop and click Run as administrator.
Note: Please open the Command Prompt only using the icon on the desktop. - TypeÂ
fortiagent.exe --startup auto install
. - TypeÂ
fortiagent.exe start
. - On the FortiTester opened from Bob machine, click ATT&CK Cases > Domains.
- Click Create New.
- Set Domain toÂ
acmecorp
. - Click Ok.
- Click Hosts.
- Click Create New
- Set Name toÂ
Bob
 and Domain toÂacmecorp
. - Click Ok.
- Click Create New and select Host win2016-bob.
- Click OK.
Â
Launch MITRE ATT&CK
Â
- Click ATT&CK Cases > Abilities.
- Double click Credential_Dumping.Â
- You will see two abilities being used get_computer and get_creds.
-  Click Adversaries
- Click Create New
- Set Name toÂ
Credential_Dumping
. - Set Ability Group to Credential_Dumping.
- Click Save.
- Click ATT&CK Cases.
- Click Create New.Â
- Set Adversary to Credential_Dumping.
- Set Hosts to Bob.Â
- Set Start Host to win2016-bob.
- Set Start Method to Bootstrap RAT.
- Set Starting User to System.
- Disable Enable Windows Defender.
- Disable Enable Windows Firewall.
- Click Start.
- Upon having a successful attack, FortiTester will be Enumerating all computers in domain and Running mimikatz to dump credentials on win2016-bob.acmecorp.net.Â
- Click Enumerating all computers in domain to view results.
- Click Running mimikatz to dump credentials on win2016-bob.acmecorp.net to view results.
Â
Â
No comments:
Post a Comment