{ "SchemaVersion": 2, "ArtifactName": "test/data/config-scan", "ArtifactType": "filesystem", "Metadata": { "ImageConfig": { "architecture": "", "created": "0001-01-01T00:00:00Z", "os": "", "rootfs": { "type": "", "diff_ids": null }, "config": {} } }, "Results": [ { "Target": ".", "Class": "config", "Type": "terraform", "MisconfSummary": { "Successes": 2, "Failures": 0, "Exceptions": 0 } }, { "Target": "main.tf", "Class": "config", "Type": "terraform", "MisconfSummary": { "Successes": 0, "Failures": 1, "Exceptions": 0 }, "Misconfigurations": [ { "Type": "Terraform Security Check", "ID": "AVD-AWS-0089", "AVDID": "AVD-AWS-0089", "Title": "S3 Bucket Logging", "Description": "Ensures S3 bucket logging is enabled for S3 buckets", "Message": "Bucket has logging disabled", "Namespace": "builtin.aws.s3.aws0089", "Query": "data.builtin.aws.s3.aws0089.deny", "Resolution": "Add a logging block to the resource to enable access logging", "Severity": "LOW", "PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0089", "References": [ "https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html", "https://avd.aquasec.com/misconfig/avd-aws-0089" ], "Status": "FAIL", "Layer": {}, "CauseMetadata": { "Resource": "aws_s3_bucket.bucket", "Provider": "AWS", "Service": "s3", "StartLine": 8, "EndLine": 10, "Code": { "Lines": [ { "Number": 8, "Content": "resource \"aws_s3_bucket\" \"bucket\" {", "IsCause": true, "Annotation": "", "Truncated": false, "Highlighted": "\u001b[38;5;33mresource\u001b[0m \u001b[38;5;37m\"aws_s3_bucket\"\u001b[0m \u001b[38;5;37m\"bucket\"\u001b[0m {", "FirstCause": true, "LastCause": false }, { "Number": 9, "Content": " bucket = \"trivy-action-bucket\"", "IsCause": true, "Annotation": "", "Truncated": false, "Highlighted": " \u001b[38;5;245mbucket\u001b[0m = \u001b[38;5;37m\"trivy-action-bucket\"", "FirstCause": false, "LastCause": false }, { "Number": 10, "Content": "}", "IsCause": true, "Annotation": "", "Truncated": false, "Highlighted": "\u001b[0m}", "FirstCause": false, "LastCause": true } ] } } } ] } ] }