This section provides an example for configuring APT defense with cloud sandbox inspection enabled.
As shown in Figure 1, the enterprise intranet is connected to the Internet through a FW and a router, and a cloud sandbox is deployed. The FW interworks with the cloud sandbox to send risky traffic identified by the FW to the cloud sandbox for detection. The FW periodically obtains detection results from the cloud sandbox and updates the list of malicious files or URLs in the cache based on the detection results. When subsequent traffic with the same features matches the malicious file or URL list, the specified action, such as block, is performed to protect users on the intranet from APT attacks.
Item |
Data |
Description |
|---|---|---|
Cloud sandbox |
Cloud sandbox information:
Size limits on files sent to the sandbox for detection:
|
Before configuring the cloud sandbox, apply for a cloud account on isecurity.huawei.com. |
FW |
|
- |
Obtain and activate the license of the cloud sandbox and load the cloud sandbox component.
Set interface IP addresses and assign the interfaces to security zones.
Configure the DNS server and ensure that the FW can correctly resolve domain name sec.huawei.com.
Configure security policies so that the enterprise intranet users, cloud sandbox, and FW can properly communicate.
Configure malicious URL detection.
When this function is enabled, the device matches traffic against cached malicious URLs. If the traffic matches a malicious URL, the device blocks the URL, and the traffic does not need to be sent to the sandbox for inspection. If the traffic does not match a malicious URL, the traffic is sent to the sandbox for inspection.
Configure file reputation detection.
When this function is enabled, the device matches traffic against cached malicious files. If the traffic matches a malicious file, the device performs the specified action, and the traffic does not need to be sent to the sandbox for inspection. If the traffic does not match a malicious file, the traffic is sent to the sandbox for inspection.
Configure the protocol type, transfer direction, and type of files sent to the sandbox for inspection.
# Set the IP address of interface GigabitEthernet0/0/1 and add it to the Trust zone.
<sysname> system-view [sysname] interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet0/0/1] ip address 10.3.0.1 24 [sysname-GigabitEthernet0/0/1] quit [sysname] firewall zone trust [sysname-zone-trust] add interface GigabitEthernet 0/0/1 [sysname-zone-trust] quit
# Set the IP address of interface GigabitEthernet0/0/2 and add it to the Untrust zone.
[sysname] interface GigabitEthernet 0/0/2 [sysname-GigabitEthernet0/0/2] ip address 1.1.2.1 24 [sysname-GigabitEthernet0/0/2] quit [sysname] firewall zone untrust [sysname-zone-untrust] add interface GigabitEthernet 0/0/2 [sysname-zone-untrust] quit
# Set the IP address of interface GigabitEthernet0/0/3 and add it to the Untrust zone.
[sysname] interface GigabitEthernet 0/0/3 [sysname-GigabitEthernet0/0/3] ip address 1.1.1.1 24 [sysname-GigabitEthernet0/0/3] quit [sysname] firewall zone untrust [sysname-zone-untrust] add interface GigabitEthernet 0/0/3 [sysname-zone-untrust] quit
[sysname] dns resolve [sysname] dns server 10.2.0.70
# Configure a security policy in the direction from the FW to the cloud sandbox.
[sysname] security-policy [sysname-policy-security] rule name policy_to_sandbox [sysname-policy-security-rule-policy_to_sandbox] source-zone local [sysname-policy-security-rule-policy_to_sandbox] destination-zone untrust [sysname-policy-security-rule-policy_to_sandbox] action permit [sysname-policy-security-rule-policy_to_sandbox] quit
# Configure a security policy in the direction from the Internet to the enterprise intranet.
[sysname-policy-security] rule name policy_to_Enterprise [sysname-policy-security-rule-policy_to_Enterprise] source-zone untrust [sysname-policy-security-rule-policy_to_Enterprise] destination-zone trust [sysname-policy-security-rule-policy_to_Enterprise] action permit [sysname-policy-security-rule-policy_to_Enterprise] quit [sysname-policy-security] quit
[sysname] country CN
[sysname] sandbox cloud [sysname-sandbox-cloud] linkage enable [sysname-sandbox-cloud] file-set exe max-size 1024 [sysname-sandbox-cloud] file-set gzip max-size 1024 [sysname-sandbox-cloud] file-set office max-size 1024 [sysname-sandbox-cloud] file-set pdf max-size 1024 [sysname-sandbox-cloud] quit [sysname] cloud account-name huawei
[sysname] profile type aapt name sandbox_cloud [sysname-profile-aapt-sandbox_cloud] description AAPT profile of cloud sandbox
[sysname-profile-aapt-sandbox_cloud] malicious-url enable
[sysname-profile-aapt-sandbox_cloud] file-reputation enable
[sysname-profile-aapt-sandbox_cloud] file-type DOC DOCX PDF PPT PPTX RAR [sysname-profile-aapt-sandbox_cloud] sandbox-type cloud [sysname-profile-aapt-sandbox_cloud] quit
[sysname] security-policy [sysname-policy-security] rule name policy_to_Enterprise [sysname-policy-security-rule-policy_to_Enterprise] profile aapt sandbox_cloud [sysname-policy-security-rule-policy_to_Enterprise] quit [sysname-policy-security] quit [sysname] quit
<sysname> system-view [sysname] sandbox cloud [sysname-sandbox-cloud] linkage try Info: Try link to cloud sandbox success! [sysname-sandbox-cloud] quit
[sysname] display aapt file submit information Slot 11 Cpu 0: File Name: eicar.123.docx Hash: 355r966e4b109096e938e7136a887b83 Type: docx Size: 160 Bytes Submit Result: Success Sandbox Type: Cloud sandbox Submit Time: 2017-01-09 12:02:20
# dns resolve dns server 10.2.0.70 # interface GigabitEthernet0/0/1 undo shutdown ip address 10.3.0.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 1.1.2.1 255.255.255.0 # interface GigabitEthernet0/0/3 undo shutdown ip address 1.1.1.1 255.255.255.0 # firewall zone local set priority 100 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/2 add interface GigabitEthernet0/0/3 # profile type aapt name sandbox_cloud description AAPT profile of cloud sandbox file-reputation enable malicious-url enable file-type DOC DOCX PDF PPT PPTX RAR sandbox-type cloud # country CN # sandbox cloud linkage enable cloud account-name huawei file-set EXE max-size 1024 file-set GZIP max-size 1024 file-set OFFICE max-size 1024 file-set PDF max-size 1024 # security-policy rule name policy_to_sandbox source-zone local destination-zone untrust action permit rule name policy_to_Enterprise source-zone untrust destination-zone trust profile aapt sandbox_cloud action permit # return