getInputFileLog (File Filter)
    • PDF

    getInputFileLog (File Filter)

    • PDF

    Article Summary

    Overview

    • The getInputFileLog API is a feature provided by "File Filter" in "File Safer" and is an API that checks the analysis result of the file requested for analysis using the inputFile API.
    • You can use this API through IAM authentication and API Gateway used in NAVER Cloud Platform.

    Requests

    MethodRequest URI
    GEThttps://filesafer.apigw.ntruss.com/filefilter/v1/getInputFileLog

    Request headers

    Header nameDescription
    x-ncp-apigw-timestampTime elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid
    x-ncp-apigw-api-keyKey issued from API Gateway
    x-ncp-iam-access-keyAPI Key issued from NAVER Cloud Platform or AccessKey issued from IAM
    x-ncp-apigw-signature-v2A signature that encrypts the request path and header with a SecretKey mapped to an AccessKey
    HMAC encryption algorithm uses HmacSHA256

    See Call API that requires IAM authentication
    acceptIndicate json.
    application/json

    Request parameters

    Parameter nameRequirement statusTypeDescription
    hashYesstringHash value to view
    hashTypeYesstringAlgorithm type value with an extracted Hash to view and support md5, sha1
    sha1 or md5

    Responses

    Response bodies

    Field nameRequirement statusTypeDescription
    returnCodeYesstringProcessing result code for requests
    returnMessageYesstringProcessing result message for requests
    inputFileLogListYesstringList of analysis results, displayed as a list if a file with the same Hash was analyzed more than 2 times
    fileTypeNostringIncluded only when there are analyzed files
    Format notation of analyzed files
    fileSizeNointIncluded only when there are analyzed files
    Size of analyzed files
    md5NostringIncluded only when there are analyzed files
    MD5 Hash value of analyzed files
    sha1NostringIncluded only when there are analyzed files
    SHA1 Hash value of analyzed files
    sha256NostringIncluded only when there are analyzed files
    SHA256 Hash value of analyzed files
    analysisStatusCodeNostringIncluded only when there are analyzed files
    Analysis status code that has the following values

    [Code : Desc : Status]
    IPRG : Analyzing : Analyzing
    CMPL : Analysis completed : Analysis completed
    ERR : Analysis error : Error
    EXCN : Exclude analysis : Exception
    analysisResultCodeNostringIncluded only when there are analyzed files
    Analysis result code that has the following values

    [ Code : Desc : Status ]
    M : Malware detected : Malignant code (Update to Hash Filter)
    N : Malware not detected : Normal file
    E : Detection error : Error
    notifyYmdtNolongIncluded only when there are analyzed files
    Time the notification was sent, if you set one
    registrationYmdtNolongIncluded only when there are analyzed files
    Time the file came in
    serviceCodeNostring or nullIncluded only when there are analyzed files
    Appears only for specific analytic requests and most often has a null value
    applicationCodeNostring or nullIncluded only when there are analyzed files
    Appears only for specific analytic requests and most often has a null value

    Examples

    Request examples

    curl -X GET "https://filesafer.apigw.ntruss.com/filefilter/v1/getInputFileLog?hash=f093e7767bb63ac973b697d3fd1d40a78b87b8bf&hashType=sha1"
       -H "accept: application/json"
       -H "x-ncp-apigw-api-key: {x-ncp-apigw-api-key}"
       -H "x-ncp-iam-access-key: {x-ncp-iam-access-key}"
       -H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}"
       -H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
    

    Response examples (If an analyzed file exists)

    {
      "returnCode": "0",
      "returnMessage": "success",
      "inputFileLogList": [
        {
          "fileType": "application/x-msdownload; format=pe32",
          "fileSize": 740544,
          "md5": "a69acb01b99959efec7c0a2a8caa7545",
          "sha1": "f093e7767bb63ac973b697d3fd1d40a78b87b8bf",
          "sha256": "470a75fe3da2ddf9d27fb3f9c96e6c665506ea7ba26ab89f0c89606f678ae4a2",
          "analysisStatusCode": "CMPL",
          "analysisResultCode": "M",
          "notifyYmdt": 1544005507000,
          "registrationYmdt": 1544005472000,
          "serviceCode": null,
          "applicationCode": null
        },
        {
          "fileType": "application/x-msdownload; format=pe32",
          "fileSize": 740544,
          "md5": "a69acb01b99959efec7c0a2a8caa7545",
          "sha1": "f093e7767bb63ac973b697d3fd1d40a78b87b8bf",
          "sha256": "470a75fe3da2ddf9d27fb3f9c96e6c665506ea7ba26ab89f0c89606f678ae4a2",
          "analysisStatusCode": "CMPL",
          "analysisResultCode": "M",
          "notifyYmdt": 1544006407000,
          "registrationYmdt": 1544006150000,
          "serviceCode": null,
          "applicationCode": null
        },
      ]
    }
    

    Response examples (If an analyzed file does not exist)

    {
      "returnCode": "0",
      "returnMessage": "success",
      "inputFileLogList": [
      ]
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.