Skip to main content

File Intel | Node.js SDK

The File Intel service enables you to submit a file's hash and get the file's attributes back - giving you insight into the disposition of the file.

Reputation, from file path

filepathReputation(filepath: string, options: ReputationOptions): Promise<PangeaResponse<ReputationResult>>

Retrieve file reputation from a provider, using the file's hash.

required parameters

string

An object of optional parameters. Parameters supported:

  • provider {String} - Use reputation data from this provider: "reversinglabs". Default provider defined by the configuration.
  • verbose {Boolean} - Echo the API parameters in the response. Default: verbose=false.
  • raw {Boolean} - Include raw data from this provider. Default: raw=false.

Response Object

const options = { provider: "reversinglabs" };
const response = await fileIntel.filepathReputation("./myfile.exe", options);

Reputation, from file hash

hashReputation(fileHash: string, hashType: string, options: ReputationOptions): Promise<PangeaResponse<ReputationResult>>

Retrieve hash-based file reputation from a provider, including an optional detailed report.

required parameters

string

Hash of the file to be looked up

string

Type of hash, can be "sha256", "sha" or "md5"

An object of optional parameters

Response Object

const options = { provider: "reversinglabs" };
const response = await fileIntel.hashReputation("142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", options);