Skip to content

Commit aa9ca92

Browse files
committed
Fix MalwareBazaar downloader: use correct Auth-Key header instead of API-KEY
1 parent 5222726 commit aa9ca92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/downloaders/malwarebazaar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def download(hash: str, apikey: str = "") -> bytes:
5454
data = requests.post(
5555
"https://mb-api.abuse.ch/api/v1/",
5656
data={"query": "get_file", _bazaar_map[len(hash)]: hash},
57-
headers={"API-KEY": integrations_cfg.abusech.apikey or apikey, "User-Agent": "CAPE Sandbox"},
57+
headers={"Auth-Key": integrations_cfg.abusech.apikey or apikey, "User-Agent": "CAPE Sandbox"},
5858
)
5959
if data.ok:
6060
try:

0 commit comments

Comments
 (0)