| Where Can I Use
This? | What Do I Need? |
The following steps illustrate the process
for converting a Snort signature into a custom spyware signature
compatible with Palo Alto Networks firewalls. The use case below
uses a Snort rule for a North Korean Trojan malware variant as identified
by the Department of Homeland Security, the Federal Bureau of Investigation,
and other US government partners.
With Panorama version 10.0 or later or
Strata Cloud Manager, you can use
the IPS Signature Converter to automatically convert Snort and Suricata rules into
custom Palo Networks threat signatures instead of manually performing the following
procedure.
Snort
rule:
alert tcp any any -> any any (msg:"Malformed_UA"; content:"User-Agent: Mozillar/"; depth:500; sid:99999999;)
In
this example you can:
Use the IP addresses provided as
part of the IOC List to detect if a possible infection already exists
by searching the firewall logs.
The IP addresses provided can be part of an EDL or Address
group and added to a Policy to block traffic to and from the suspicious
list.
Use the provided Snort signature and convert it to a custom
spyware signature. This signature will become part of the spyware
profile added to the appropriate policy.
For
other use cases, see our companion
article.
NGFW
Create a Custom Spyware or Vulnerability Object. For this example, a
custom Spyware object will be created.
Navigate to .
Click Add and provide a
Threat ID, an optional comment,
and fill out the Properties section.
Under Signatures, press
Add.
Specify the following information:
Standard—Enter a name to
identify the signature in the field.
Comment—Enter an optional
description.
If the order in which the firewall attempts to match
the signature definitions is important, keep
Ordered Condition Match
selected.
Scope—Indicate whether this
signature applies to a full
Session or a single
Transaction.
Add a condition by clicking Add And
Condition or Add Or
Condition.
Select an Operator from the drop-down
menu to define the conditions that must be true for the
signature to match traffic.
Click OK to finish creating the
Spyware object.
Verify that the custom Spyware object is part of your Anti-Spyware
Profile.
Create an EDL object.
Navigate to . Click Add.
Add the suspicious IP address provided from the IOC list to a
previously created EDL or a new EDL as shown below.
Add the EDL and Anti-Spyware profiles to appropriate Policy
Objects.
Test policy is working as expected by looking at Threat logs.
Change the action for the spyware object from alert to drop/reset
after verification. Also, change the severity of the object created
as needed.
Commit your signature(s).
Strata Cloud Manager
Create a custom Anti-Spyware or Vulnerability Protection
signature.
Log in to the Strata Cloud Manager on the
hub.
Select and then select
Anti-Spyware or
Vulnerability Protection, depending on the
signature type.
From the Custom Signatures tab, select
Add Custom Signature and then
Import Signature.
Under Signatures, press
Add.
Specify the following information:
Standard—Enter a name to
identify the signature in the field.
Comment—Enter an optional
description.
If the order in which the firewall attempts to match
the signature definitions is important, keep
Ordered Condition Match
selected.
Scope—Indicate whether this
signature applies to a full
Session or a single
Transaction.
Add a condition by clicking Add And
Condition or Add Or
Condition.
Select an Operator from the drop-down
menu to define the conditions that must be true for the
signature to match traffic.
Click OK to finish creating the
Spyware object.
Verify that the custom Spyware object is part of your Anti-Spyware
Profile.
Create an EDL object.
Navigate to . Click Add.
Add the suspicious IP address provided from the IOC list to a
previously created EDL or a new EDL as shown below.
Add the EDL and Anti-Spyware profiles to appropriate Policy
Objects.
Test policy is working as expected by looking at Threat logs.
Change the action for the spyware object from alert to drop/reset
after verification. Also, change the severity of the object created
as needed.
Commit your signature(s).