This section provides an example for configuring APT defense with local sandbox inspection enabled.
As shown in Figure 1, the enterprise intranet connects to the Internet through the FW and router and has a local sandbox deployed. The local sandbox has a reachable route to the FW. The FW interworks with the local sandbox to send risky traffic identified by the FW to the local sandbox for detection. The FW periodically obtains detection results from the local 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 |
|---|---|
Local sandbox |
Local sandbox information:
Profile size:
|
FW |
|
Set interface IP addresses and assign the interfaces to security zones.
Configure security policies so that the enterprise intranet users, local 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.
# Configure a security policy in the direction from intranet users to the local 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 dmz [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 intranet users to the Internet.
[sysname-policy-security] rule name policy_to_Internet [sysname-policy-security-rule-policy_to_Internet] source-zone trust [sysname-policy-security-rule-policy_to_Internet] destination-zone untrust [sysname-policy-security-rule-policy_to_Internet] action permit [sysname-policy-security-rule-policy_to_Internet] quit [sysname-policy-security] quit
[sysname] sandbox default [sysname-sandbox-default] ip 10.1.2.2 [sysname-sandbox-default] server-certificate huaweica.cer [sysname-sandbox-default] api-key Admin@1234 [sysname-sandbox-default] file-set exe max-size 1024 [sysname-sandbox-default] file-set gzip max-size 1024 [sysname-sandbox-default] file-set office max-size 1024 [sysname-sandbox-default] file-set pdf max-size 1024 [sysname-sandbox-default] file-set picture max-size 200 [sysname-sandbox-default] file-set web max-size 200 [sysname-sandbox-default] quit
[sysname] profile type aapt name sandbox_local [sysname-profile-aapt-sandbox_local] description AAPT profile of local sandbox
[sysname-profile-aapt-sandbox_local] malicious-url enable
[sysname-profile-aapt-sandbox_local] file-reputation enable
[sysname-profile-aapt-sandbox_local] file-type BAT CLASS PE32 MSI HLP HTML JAR DOC [sysname-profile-aapt-sandbox_local] sandbox-type local [sysname-profile-aapt-sandbox_local] quit
[sysname] security-policy [sysname-policy-security] rule name policy_to_Internet [sysname-policy-security-rule-policy_to_Internet] profile aapt sandbox_local [sysname-policy-security] quit [sysname] quit

<sysname> system-view [sysname] sandbox default [sysname-sandbox-default] linkage try Info: try link to sandbox success! [sysname-sandbox-default] quit
[sysname] display aapt file submit information Slot 11 Cpu 0: File Name: eicar.123.docx Hash: 225e966e4b109096e938e7136a558b83 Type: docx Size: 960 Bytes Submit Result: Success Sandbox Type: Local sandbox Submit Time: 2017-01-10 14:32:20
# interface GigabitEthernet0/0/1 undo shutdown ip address 10.3.0.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 10.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 trust set priority 85 add interface GigabitEthernet0/0/1 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/3 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # sandbox default type FireHunter ip 10.1.2.2 port 5002 server-certificate huaweica.cer api-key %^%#f=m6Gr>@I,'B\BIZ)9z%\Kq|Ly&^Y3Ewc#$&#\p1%^%# linkage enable file-set EXE max-size 1024 file-set GZIP max-size 1024 file-set OFFICE max-size 1024 file-set PDF max-size 1024 file-set PICTURE max-size 200 file-set WEB max-size 200 # profile type aapt name sandbox_local description AAPT profile of local sandbox file-reputation enable malicious-url enable file-type BAT CLASS PE32 MSI HLP HTML JAR DOC sandbox-type local # security-policy rule name policy_to_sandbox source-zone local destination-zone dmz action permit rule name policy_to_Internet source-zone trust destination-zone untrust profile aapt sandbox_local action permit # return