Submit a Local File to WildFire (API)
Table of Contents
Expand all | Collapse all
-
- Get a WildFire Verdict (WildFire API)
- Get Multiple WildFire Verdicts (WildFire API)
- Get a List of Samples with Changed WildFire Appliance Verdicts (WildFire API)
- Get a Sample (WildFire API)
- Get a Packet Capture (WildFire API)
- Get a WildFire Analysis Report (WildFire API)
- Get a Malware Test File (WildFire API)
- Get URL Web Artifacts
- WildFire API Error Codes
Submit a Local File to WildFire (API)
The WildFire API lets you submit a local supported file type for WildFire analysis. Use
this resource automate the submission of new files, such as when using a VPN
service.
Ensure
that you submit a valid file type when you submit a local file because
uploads are limited by WildFire
API Access Control.
Resource
/submit/file/
Request Parameters
Use the following form
parameters when you submit a local file for WildFire analysis:
Parameters | Description | Example |
|---|---|---|
| (Required for API key authentication) API key | Example:
|
| (Required for token-based authentication) HTTP request header for token-based authentication. To obtain an access token, create a WildFire API token in Strata Cloud Manager, then generate an access token from the authentication service. | Example:
|
| (Required for Prisma Access and Prisma Cloud
Compute-based WildFire public API keys) Designates the API
key type | Example:
Options
include:
|
| (Required) Local path to file | Example:
|
| (Optional) Password that decrypts the submitted file. Advanced
WildFire attempts decryption with the password you provide before trying the passwords it
maintains internally. If you don't provide a password, Advanced WildFire analyzes the file
using the standard analysis process. The password can be up to 256 characters and can
contain printable ASCII and Unicode (UTF-8) characters. Advanced WildFire rejects a password
that contains null bytes, and treats an empty password field the same
as a request that omits the field. | Example:
|
Keep the following in mind when you submit password-protected files:
- The password parameter is supported only on the /submit/file resource. The /submit/url, /submit/link, and /submit/links resources don't accept a password.
- Existing time-based analysis restrictions still apply. If you submit a sample with an incorrect password and then resubmit the same sample with the correct password within the same analysis window, Advanced WildFire might not analyze the second submission.
- The /submit/file resource performs offline analysis, so the submission response doesn't indicate whether decryption succeeded. Advanced WildFire determines the decryption status after analysis completes, and reports it in the MAEC-format analysis report.
Example Request
Make a POST request to the /submit/file resource and include the local file. Authenticate using one of the following methods:
- API key authentication—Pass the API key as a form field:curl -F 'apikey=<API KEY>' -F 'file=@c:\pdf.pdf' 'https://wildfire.paloaltonetworks.com/publicapi/submit/file'Token-based authentication—Pass a Bearer token in the Authorization header:curl -F 'file=@c:\pdf.pdf' -H 'Authorization: Bearer <ACCESS_TOKEN>' 'https://wildfire.paloaltonetworks.com/publicapi/submit/file'Password-protected file—Pass the password as a form field alongside the file:curl -F 'apikey=<API KEY>' -F 'file=@c:\samples\archive.zip' -F 'password=<FILE PASSWORD>' 'https://wildfire.paloaltonetworks.com/publicapi/submit/file'The XML response contains the original filename along with the SHA256 and MD5 hash:<wildfire> <upload-file-info> <url></url> <filetype>Adobe PDF document</filetype> <filename>pdf.pdf</filename> <sha256>ebb031c3945e884e695dbc63c52a5efcd075375046c49729980073585ee13c52</sha256> <md5>8bd6509aba6eafe623392995b08c7047</md5> <size>433994</size> </upload-file-info> </wildfire>