Server.Enrichment.HybridAnalysis
Type: Server · Author: Wes Lambert – @therealwlambert
Submits a file hash to the Hybrid Analysis threat intelligence service for a verdict.
This artifact can be called from within another artifact (such as one looking for files) to enrich the data made available by that artifact.
Default free API restriction apply: 200 requests/min or 2000 requests/hour at the time of writing.
Example
SELECT * from Artifact.Server.Enrichment.HybridAnalysis(Hash=$YOURHASH)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Hash |
string | The file hash to submit to Hybrid Analysis (MD5, SHA1, SHA256). | |
HybridAnalysisKey |
string | API key for Hybrid Analysis. Leave blank here if using server metadata store. | |
UserAgent |
string | Velociraptor |
Name of the user agent used for submitting hashes. |
Source
Defined in artifacts/definitions/Server/Enrichment/HybridAnalysis.yaml.
name: Server.Enrichment.HybridAnalysis
author: Wes Lambert -- @therealwlambert
description: |
Submits a file hash to the Hybrid Analysis threat intelligence
service for a verdict.
This artifact can be called from within another artifact (such as
one looking for files) to enrich the data made available by that
artifact.
Default free API restriction apply: 200 requests/min or 2000
requests/hour at the time of writing.
#### Example
`SELECT * from Artifact.Server.Enrichment.HybridAnalysis(Hash=$YOURHASH)`
type: SERVER
parameters:
- name: Hash
type: string
description: The file hash to submit to Hybrid Analysis (MD5, SHA1, SHA256).
default:
- name: HybridAnalysisKey
type: string
description: API key for Hybrid Analysis. Leave blank here if using server metadata store.
default:
- name: UserAgent
type: string
description: Name of the user agent used for submitting hashes.
default: Velociraptor
sources:
- query: |
LET Creds = if(
condition=HybridAnalysisKey,
then=HybridAnalysisKey,
else=server_metadata().HybridAnalysisKey)
LET URL <= 'https://hybrid-analysis.com/api/v2/search/hash'
LET Data = SELECT parse_json_array(data=Content) as Content
FROM http_client(
url=URL,
headers=dict(`api-key`=Creds,
`user-agent`=UserAgent,
`Content-Type`="application/x-www-form-urlencoded"),
params=dict(hash=Hash),
method='POST')
SELECT * from foreach (
row=Data,
query={
SELECT Content as _Content,
Content.verdict[0] as Verdict
FROM scope()
})