Amazon Inspector · JSON Structure

Inspector Code Vulnerability Details Structure

Contains information on the code vulnerability identified in your Lambda function.

Type: object Properties: 8 Required: 4
ComplianceContainer SecurityEC2LambdaSecurityVulnerability Scanning

CodeVulnerabilityDetails is a JSON Structure definition published by Amazon Inspector, describing 8 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

cwes detectorId detectorName detectorTags filePath referenceUrls ruleId sourceLambdaLayerArn

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-structure/inspector-code-vulnerability-details-structure.json",
  "name": "CodeVulnerabilityDetails",
  "description": "Contains information on the code vulnerability identified in your Lambda function.",
  "type": "object",
  "properties": {
    "cwes": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CweList"
        },
        {
          "description": "The Common Weakness Enumeration (CWE) item associated with the detected vulnerability."
        }
      ]
    },
    "detectorId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library\">Amazon CodeGuru Detector Library</a>."
        }
      ]
    },
    "detectorName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The name of the detector used to identify the code vulnerability. For more information on detectors see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library\">CodeGuru Detector Library</a>."
        }
      ]
    },
    "detectorTags": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DetectorTagList"
        },
        {
          "description": "The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library/java/tags/\">Java tags</a>, or <a href=\"https://docs.aws.amazon.com/codeguru/detector-library/python/tags/\">Python tags</a>. "
        }
      ]
    },
    "filePath": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeFilePath"
        },
        {
          "description": "Contains information on where the code vulnerability is located in your code."
        }
      ]
    },
    "referenceUrls": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ReferenceUrls"
        },
        {
          "description": "A URL containing supporting documentation about the code vulnerability detected."
        }
      ]
    },
    "ruleId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The identifier for a rule that was used to detect the code vulnerability."
        }
      ]
    },
    "sourceLambdaLayerArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LambdaLayerArn"
        },
        {
          "description": "The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in."
        }
      ]
    }
  },
  "required": [
    "cwes",
    "detectorId",
    "detectorName",
    "filePath"
  ]
}