YARA Playground
A small YARA utility API for iterating fast: validate/compile rules, test them against a file you upload, or run them against a built-in benign/malware sample set to see what they hit.
API BASE URL: https://ai.perkinsfund.org
Building Yara Rules Endpoint
Endpoint: /api/yara/build
Request type: POST
Data type: JSON
Headers (optional): X-Api-Key: API KEY
NOTE: Compiles the provided Yara rule and returns whether the rule is valid or not.
Example request
curl -X POST -H "Content-Type: application/json" \
-d '{"rule": "rule dummy { condition: true }"}' \
https://ai.perkinsfund.org/api/yara/buildExpected outputs
Success:
Unsuccessful:
Testing Yara Rules Endpoint
Endpoint: /api/yara/test
Request type: POST
Data type: multipart/form-data
Headers (optional): X-Api-Key: API KEY
NOTE: Tests a Yara rule against a provided uploaded file.
Example request
Expected outputs
Success:
Unsuccessful:
Scanning Yara Rules Endpoint
Endpoint: /api/yara/scan
Request type: POST
Data type: JSON
Headers (optional): X-Api-Key: API KEY
Headers (required): X-File-Type: benign or malware
NOTE: Runs the provided Yara rule against built-in files of the specific type specified in the X-File-Type header.
Example request
Expected outputs
Success:
Unsuccessful:
Last updated
Was this helpful?