Skip to main content
Skip table of contents

Example of a Unified Agent JSON Report

A summary report in JSON format can be automatically generated locally, in the 'mend' folder (created in the directory where the Unified Agent ran), at the end of each scan, using the 'generateScanReport' configuration parameter when running the Unified Agent.
This report includes information on vulnerabilities, policy violations, top fixes and inventory details.

  • A JSON scan report which is controlled by the generateScanReport parameter.

  • Policy violations reports (JSON and HTML), which are generated when a policy check is performed by the UA (via the checkPolicies parameter).

The default filename format of the JSON report is '<project_name>-<yyyy-mm-dd>T<HHmmss>+<UTC offset>-scan_report.json'. 
For example: 'Demo App-2019-06-04T181226+0300-scan_report.json'

The following configuration parameters are available to control timeouts and file name format for the report:
scanReportTimeoutMinutes: Time-out (in minutes) for the process of generating the scan report. If the timeout interval has passed then the report will not be generated, but the scan will continue.
scanReportFilenameFormat: Controls filename format of a generated scan report.

NOTES:

  • Only Organization and Product Administrators can generate this report. The 'userKey' configuration parameter is mandatory for this option.

  • In order to generate this report, the configuration parameter 'updateInventory' must be set to true.

  • If 'checkPolicies' is set to true then 'forceUpdate' should also be set to true.

  • If 'checkPolicies' is set to false then no policy related data will be generated in the report.

The following is an example of a scan report with custom attributes available on the project:

CODE
{
  "projectVitals": {
    "productName": "NuspecTest",
    "name": "NuspecTest_4",
    "token": "d38f6222562b403jiiojioc4e4cd19c7d54d6206b8bb5",
    "creationDate": "2019-02-27 13:52:46",
    "lastUpdatedDate": "2019-03-20 07:32:48"
  },
  "libraries": [
    {
      "keyUuid": "86d115e2-99ab-4jd-8092-f510b14fe949",
      "keyId": 35111144,
      "name": "microsoft.aspnetcore.server.kestrel.transport.abstractions.2.1.3.nupkg",
      "groupId": "",
      "artifactId": "microsoft.aspnetcore.server.kestrel.transport.abstractions.2.1.3.nupkg",
      "version": "",
      "sha1": "b1ef47c06e9e884doijooeafafafs0dfc83f3",
      "type": "UNKNOWN_ARTIFACT",
      "licenses": [],
      "vulnerabilities": [],
      "matchType": "SHA1",
      "customAttributeValues": [
        {
          "contextName": "eRez-wss",
          "context": "Organizational",
          "contextId": "18945",
          "attr1": "rfv",
          "contextToken": "88cd28476aec411bjojojojojoi0283068a4632a4eae439bf70e691"
        }
      ],
      "policyDetails": {
        "policyName": "",
        "status": "no policy applied"
      }
    },
    {
      "keyUuid": "018fijo9-aa6c-4118-bl[[l-b0b918b64311",
      "keyId": 35109719,
      "name": "microsoft.aspnetcore.2.1.4.nupkg",
      "groupId": "",
      "artifactId": "microsoft.aspnetcore.2.1.4.nupkg",
      "version": "",
      "sha1": "0706d598c463aede3fjojoioiioj5810q3tq3t4371a935e9df92a5",
      "type": "UNKNOWN_ARTIFACT",
      "licenses": [],
      "vulnerabilities": [],
      "matchType": "SHA1",
      "customAttributeValues": [
        {
          "contextName": "eRez-wss",
          "context": "Organizational",
          "contextId": "18945",
          "attr1": "edc",
          "contextToken": "88cd28476aec4d68e411b02808a4632a4eae439bf70e691"
        }
      ],
      "policyDetails": {
        "policyName": "",
        "status": "no policy applied"
      }
    },
    {
      "keyUuid": "b3c82c1a-8864-4842-bqwer-193df8683f04",
      "keyId": 35111034,
      "name": "system.memory.4.5.0.nupkg",
      "groupId": "System.Memory",
      "artifactId": "system.memory.4.5.0.nupkg",
      "version": "4.5.0",
      "sha1": "5835a676479b3e6a32167606f6",
      "type": "NUGET_PACKAGE_MODULE",
      "languages": "Nuget",
      "references": {
        "url": "https://api.nuget.org/packages/system.memory.4.5.0.nupkg",
        "homePage": "https://dot.net/",
        "genericPackageIndex": "https://api.nuget.org/packages/System.Memory/4.5.0"
      },
      "licenses": [
        {
          "name": "MIT",
          "url": "http://www.opensource.org/licenses/MIT",
          "profileInfo": {
            "copyrightRiskScore": "THREE",
            "patentRiskScore": "ONE",
            "copyleft": "NO",
            "royaltyFree": "YES"
          },
          "referenceType": "NuGet package (details available in nuget gallery)",
          "reference": "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT"
        }
      ],
      "vulnerabilities": [],
      "matchType": "SHA1",
      "customAttributeValues": [],
      "policyDetails": {
        "policyName": "mit",
        "status": "reject"
      }
    },
    {
      "keyUuid": "5d63e066-b54f-43c3-b254",
      "keyId": 22769402,
      "name": "microsoft.aspnet.razor.3.2.3.nupkg",
      "groupId": "Microsoft.AspNet.Razor",
      "artifactId": "microsoft.aspnet.razor.3.2.3.nupkg",
      "version": "3.2.3",
      "sha1": "2cfd6d2ea3eb89362fa21a9b47",
      "type": "NUGET_PACKAGE_MODULE",
      "languages": "Nuget",
      "references": {
        "url": "https://api.nuget.org/packages/microsoft.aspnet.razor.3.2.3.nupkg",
        "genericPackageIndex": "https://api.nuget.org/packages/Microsoft.AspNet.Razor/3.2.3"
      },
      "licenses": [
        {
          "name": "Microsoft .NET Library",
          "url": "http://microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm",
          "riskLevel": "unknown",
          "referenceType": "NuGet package (details available in nuget gallery)",
          "reference": "http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm"
        }
      ],
      "vulnerabilities": [],
      "matchType": "FILENAME",
      "customAttributeValues": [
        {
          "contextName": "eRez-wss",
          "context": "Organizational",
          "contextId": "18945",
          "attr1": "1qa",
          "contextToken": "88cd28476aec4d68e429c181kjv3068a4632a4eae439bf70e691"
        },
        {
          "contextName": "NuspecTest_4",
          "context": "Project",
          "contextId": "479597",
          "attr2": "2ws",
          "contextToken": "d38f6222562b46c2a8popb7f7c4e4cd19c7d54d6206b8bb5"
        },
        {
          "contextName": "NuspecTest",
          "context": "Product",
          "contextId": "78835",
          "attr3": "3ed",
          "contextToken": "822ec9add1c84ebmomo20711cd41cmomo7a80de57c035a43"
        }
      ],
      "policyDetails": {
        "policyName": "policy1",
        "status": "reject"
      }
    },
    {
      "keyUuid": "e178fa80-3196-49e8-8753emomoec8f",
      "keyId": 22769401,
      "name": "jquery.validation.1.11.1.nupkg",
      "groupId": "jQuery.Validation",
      "artifactId": "jquery.validation.1.11.1.nupkg",
      "version": "1.11.1",
      "sha1": "d6a4e4a2ccb2eaa203c0a99fb5168585d",
      "type": "NUGET_PACKAGE_MODULE",
      "languages": "Nuget",
      "references": {
        "url": "https://api.nuget.org/packages/jquery.validation.1.11.1.nupkg",
        "homePage": "http://bassistance.de/jquery-plugins/jquery-plugin-validation/",
        "genericPackageIndex": "https://api.nuget.org/packages/jQuery.Validation/1.11.1"
      },
      "licenses": [
        {
          "name": "MIT",
          "url": "http://www.opensource.org/licenses/MIT",
          "profileInfo": {
            "copyrightRiskScore": "THREE",
            "patentRiskScore": "ONE",
            "copyleft": "NO",
            "royaltyFree": "YES"
          },
          "referenceType": "NuGet package (details available in nuget gallery)"
        }
      ],
      "vulnerabilities": [],
      "outdated": true,
      "matchType": "FILENAME",
      "outdatedModel": {
        "outdatedLibraryDate": "2013-03-25",
        "newestVersion": "1.17.0",
        "newestLibraryDate": "2018-01-25",
        "versionsInBetween": 6
      },
      "customAttributeValues": [],
      "policyDetails": {
        "policyName": "mit",
        "status": "reject"
      }
    },
    {
      "keyUuid": "9abmo4d7-6112-47cd-98f26momo9264",
      "keyId": 22756758,
      "name": "entityframework.6.1.3.nupkg",
      "groupId": "EntityFramework",
      "artifactId": "entityframework.6.1.3.nupkg",
      "version": "6.1.3",
      "sha1": "b6e3e77f9b84b21b42cbdomo975ca81a",
      "type": "NUGET_PACKAGE_MODULE",
      "languages": "Nuget",
      "references": {
        "url": "https://api.nuget.org/packages/entityframework.6.1.3.nupkg",
        "genericPackageIndex": "https://api.nuget.org/packages/EntityFramework/6.1.3"
      },
      "licenses": [
        {
          "name": "Microsoft .NET Library",
          "url": "http://microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm",
          "riskLevel": "unknown",
          "referenceType": "Project home page",
          "reference": "https://www.microsoft.com"
        }
      ],
      "vulnerabilities": [],
      "outdated": true,
      "matchType": "FILENAME",
      "outdatedModel": {
        "outdatedLibraryDate": "2015-03-10",
        "newestVersion": "6.2.0",
        "newestLibraryDate": "2017-10-26",
        "versionsInBetween": 0
      },
      "customAttributeValues": [],
      "policyDetails": {
        "policyName": "policy1",
        "status": "reject"
      }
    }
  ],
  "policyStatistics": {
    "totalApproved": 0,
    "totalRejected": 4,
    "totalReassigned": 0,
    "totalConditions": 0,
    "totalIssues": 0,
    "totalLibrariesAffected": 2
  },
  "vulnerabilityStatistics": {
    "low": 0,
    "medium": 0,
    "high": 0,
    "newVulnerabilities": 0,
    "oldVulnerabilities": 0,
    "ancientVulnerabilities": 0,
    "totalOutdated": 0,
    "totalVulnerableOutdated": 0,
    "totalLowVulnerabilities": 0,
    "totalMediumVulnerabilities": 0,
    "totalHighVulnerabilities": 0,
    "totalVulnerable": 0
  }
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.