Supported engines-metadata header

Include more file info details

Beside the basic file type info such as true file type, file type group, etc... the File type engine is able to return more details about the file. To retrieve more file info please follow the steps

  1. Use MetaDefender Core API to process a file
  2. Send the engines-metadata header with this value
Json
Copy

A file_info_details attribute will be added to the output, e.g.:

Javascript
Copy

Note: Enabling this feature may impact the performance.

Overwrite file type detection

The File Type Verification Engine analyzes the file’s structure and content to verify the true file type for given files and minimize the risk of file type spoofing. However, in some specific cases, the File Type Verification Engine returns unexpected results from the client's perspective. For example, if a file contains "Hello, John", it can be either an HTML file, or a text file, or even a CSV file with a comma separator.

Therefore, to handle these similar cases, MetaDefender Core now supports users to overwrite the true file type with 2 simple steps:

  1. Use MetaDefender Core API to process a file
  2. Send the engines-metadata header with this value
Json
Copy

Other settings

  • Detect encrypted archive: Perform detection on encryption attribute of archive files.

  • Classify with Machine Learning: Classify text-based files with Machine learning engine. Module setting 'Enable Machine Learning module' needs to be turned on.

  • Detect Base64 encoded text: Returns Base64 if the file is TXT and Base64 encoded.

  • Detect file type mismatch: Detects when the extension of the file does not match with the allowed extensions.

    • Accepted extensions: Accepted extensions in addition to default extensions.
      • File type ID: File type to apply
      • Extensions: List of extensions separated by commas
  • Detect ASCII text: Enable ASCII detector to cover wide variety of ASCII text, e.g., non-printable or control characters.

  • Non-printable threshold: Percent of non-printable characters over total characters allowed in text.

Json
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard