airbnb / binaryalert

BinaryAlert: Serverless, Real-time & Retroactive Malware Detection.
https://binaryalert.io
Apache License 2.0
1.41k stars 187 forks source link

Improves error handling to correctly retry downloading md5s #146

Closed Ryxias closed 5 years ago

Ryxias commented 5 years ago

to: @airbnb/binaryalert-maintainers cc: size: small

Background

A recent change in our Binary exfill service is causing a race condition where the triggering event is firing before the resource is actually available through the API. This causes the URL to 404. Currently, BinaryAlert WILL NOT RETRY downloading, thus dropping the analysis of that file.

The issue is that the binary will eventually show up, typically within a few minutes. Changing the handling to 404 will cause the binary to

Changes

Testing

CI?

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.9%) to 91.254% when pulling 6663d8645e0a15ee048da6082f19d1ad7e87ba0b on dw--errors into 3ad4d89b7bd7978d74e25a28e6c4c833f324d752 on master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.9%) to 91.254% when pulling 6663d8645e0a15ee048da6082f19d1ad7e87ba0b on dw--errors into 3ad4d89b7bd7978d74e25a28e6c4c833f324d752 on master.