: Get a Malware Test File (WildFire API)
Focus
Focus

Get a Malware Test File (WildFire API)

Table of Contents

Get a Malware Test File (WildFire API)

Get a malware PE, MacOSX, or APK test file, which you can use to test end-to-end WildFire sample processing. For details on the sample file, see Test a Sample Malware File.
Unlike other WildFire API resources, the /testresources do not require an API key for authentication. It also is not available on the WildFire appliance.

Resource

/test

Request Parameters

Use the following form parameters when requesting a sample:
Parameters
Description
Example
pe
(Required) Test file type
Example:
https://wildfire.paloaltonetworks.com/publicapi/test/pe
macos
Example:
https://wildfire.paloaltonetworks.com/publicapi/test/macos
apk
Example:
https://wildfire.paloaltonetworks.com/publicapi/test/apk
elf
Example:
https://wildfire.paloaltonetworks.com/publicapi/test/elf

Example Request

Make a GET request to the /test resource with the file type you want to retrieve. Use the -JO option to retain the Content-Disposition filename, as shown in the following cURL command example:
curl -JO 'https://wildfire.paloaltonetworks.com/publicapi/test/pe'
The response saves the malware test file to your local system. Each time you download the test file, it has a different SHA-256 hash value.