Expand description
§MalwareDB API
This crate stores the API endpoints and data types expected for each endpoint. This could be used to build a custom client.
Modules§
- Wrapper for fixed-size hash digests from hex strings
Structs§
- User logs in with username and password
- Response includes the key, if the credentials were correct, and possibly show a message related to errors or warnings.
- User gets information about their account
- A label, used for sources and samples
- One or more labels
- New file sample being sent to MalwareDB
- All the data for a sample known to MalwareDB
- Information about the server
- Relation between a similar sample and the hashes by which the sample is similar
- Requesting a sample from MalwareDB by similarity hash
- Response indicating samples which are similar
- Source record
- Sources response for request for sources
- One record of supported file types
- Server’s supported types, the response
- VirusTotal hits summary
Enums§
- The hash by which a sample is identified
Constants§
- API endpoint for downloading a sample, GET. The hash value goes at the end of the URL. For example: /v1/samples/download/aabbccddeeff0011223344556677889900 Response is raw bytes of the file, or HTTP 404 if not found
- API endpoint for downloading a sample as a CaRT file, GET For example: /v1/samples/download/cart/aabbccddeeff0011223344556677889900 Response is the file encoded in a CaRT container file, or HTTP 404 if not found
- API endpoint for finding samples which are similar to specific file, POST
- Endpoint for the sources, per-user, GET, authenticated
- Header key used to present the API key to the server
- MDB version
- API endpoint to get a report for a given sample For example: /v1/samples/report/aabbccddeeff0011223344556677889900
- Server information, request is empty, GET, Unauthenticated.
- API endpoint for finding samples which are similar to specific file, POST, Authenticated.
- File types supported by MalwareDB, request is empty, GET, Unauthenticated.
- API endpoint for uploading a sample, POST, Authenticated
- User’s get self information API endpoint, GET, authenticated User
EmptyAuthenticatingPost
to authenticate - Login API endpoint, POST
- Logout API endpoint, GET, authenticated.