mirror of
https://github.com/aquasecurity/trivy-action.git
synced 2026-05-14 03:02:40 +00:00
chore(deps): Update trivy to v0.69.1 (#506)
Co-authored-by: simar7 <simar7@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bc61dc5570
commit
c1824fd6ed
@@ -6,7 +6,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TRIVY_VERSION: 0.68.1
|
TRIVY_VERSION: 0.69.1
|
||||||
BATS_LIB_PATH: '/usr/lib/'
|
BATS_LIB_PATH: '/usr/lib/'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ jobs:
|
|||||||
uses: aquasecurity/setup-trivy@v0.2.0
|
uses: aquasecurity/setup-trivy@v0.2.0
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
version: v0.68.1
|
version: v0.69.1
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner in repo mode
|
- name: Run Trivy vulnerability scanner in repo mode
|
||||||
uses: aquasecurity/trivy-action@master
|
uses: aquasecurity/trivy-action@master
|
||||||
@@ -891,7 +891,7 @@ Following inputs can be used as `step.with` keys:
|
|||||||
| `github-pat` | String | | Authentication token to enable sending SBOM scan results to GitHub Dependency Graph. Can be either a GitHub Personal Access Token (PAT) or GITHUB_TOKEN |
|
| `github-pat` | String | | Authentication token to enable sending SBOM scan results to GitHub Dependency Graph. Can be either a GitHub Personal Access Token (PAT) or GITHUB_TOKEN |
|
||||||
| `limit-severities-for-sarif` | Boolean | false | By default *SARIF* format enforces output of all vulnerabilities regardless of configured severities. To override this behavior set this parameter to **true** |
|
| `limit-severities-for-sarif` | Boolean | false | By default *SARIF* format enforces output of all vulnerabilities regardless of configured severities. To override this behavior set this parameter to **true** |
|
||||||
| `docker-host` | String | | By default it is set to `unix://var/run/docker.sock`, but can be updated to help with containerized infrastructure values (`unix:/` or other prefix is required) |
|
| `docker-host` | String | | By default it is set to `unix://var/run/docker.sock`, but can be updated to help with containerized infrastructure values (`unix:/` or other prefix is required) |
|
||||||
| `version` | String | `v0.68.1` | Trivy version to use, e.g. `latest` or `v0.68.1` |
|
| `version` | String | `v0.69.1` | Trivy version to use, e.g. `latest` or `v0.69.1` |
|
||||||
| `skip-setup-trivy` | Boolean | false | Skip calling the `setup-trivy` action to install `trivy` |
|
| `skip-setup-trivy` | Boolean | false | Skip calling the `setup-trivy` action to install `trivy` |
|
||||||
| `token-setup-trivy` | Boolean | | Overwrite `github.token` used by `setup-trivy` to checkout the `trivy` repository |
|
| `token-setup-trivy` | Boolean | | Overwrite `github.token` used by `setup-trivy` to checkout the `trivy` repository |
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -98,7 +98,7 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: 'Trivy version to use'
|
description: 'Trivy version to use'
|
||||||
required: false
|
required: false
|
||||||
default: 'v0.68.1'
|
default: 'v0.69.1'
|
||||||
cache:
|
cache:
|
||||||
description: 'Used to specify whether caching is needed. Set to false, if you would like to disable caching.'
|
description: 'Used to specify whether caching is needed. Set to false, if you would like to disable caching.'
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"name": "Trivy",
|
"name": "Trivy",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0086",
|
"id": "AWS-0086",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Access block should block public ACL"
|
"text": "S3 Access block should block public ACL"
|
||||||
@@ -21,10 +21,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0086",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0086",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0086\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should block public ACL\nMessage: No public access block so not blocking public acls\nLink: [AVD-AWS-0086](https://avd.aquasec.com/misconfig/avd-aws-0086)\nS3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n",
|
"text": "Misconfiguration AWS-0086\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should block public ACL\nMessage: No public access block so not blocking public acls\nLink: [AWS-0086](https://avd.aquasec.com/misconfig/aws-0086)\nS3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0086**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should block public ACL|No public access block so not blocking public acls|[AVD-AWS-0086](https://avd.aquasec.com/misconfig/avd-aws-0086)|\n\nS3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n"
|
"markdown": "**Misconfiguration AWS-0086**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should block public ACL|No public access block so not blocking public acls|[AWS-0086](https://avd.aquasec.com/misconfig/aws-0086)|\n\nS3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0087",
|
"id": "AWS-0087",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Access block should block public policy"
|
"text": "S3 Access block should block public policy"
|
||||||
@@ -48,10 +48,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0087",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0087",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0087\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should block public policy\nMessage: No public access block so not blocking public policies\nLink: [AVD-AWS-0087](https://avd.aquasec.com/misconfig/avd-aws-0087)\nS3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n",
|
"text": "Misconfiguration AWS-0087\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should block public policy\nMessage: No public access block so not blocking public policies\nLink: [AWS-0087](https://avd.aquasec.com/misconfig/aws-0087)\nS3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0087**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should block public policy|No public access block so not blocking public policies|[AVD-AWS-0087](https://avd.aquasec.com/misconfig/avd-aws-0087)|\n\nS3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n"
|
"markdown": "**Misconfiguration AWS-0087**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should block public policy|No public access block so not blocking public policies|[AWS-0087](https://avd.aquasec.com/misconfig/aws-0087)|\n\nS3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -64,34 +64,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0088",
|
"id": "AWS-0089",
|
||||||
"name": "Misconfiguration",
|
|
||||||
"shortDescription": {
|
|
||||||
"text": "Unencrypted S3 bucket."
|
|
||||||
},
|
|
||||||
"fullDescription": {
|
|
||||||
"text": "S3 Buckets should be encrypted to protect the data that is stored within them if access is compromised.\n"
|
|
||||||
},
|
|
||||||
"defaultConfiguration": {
|
|
||||||
"level": "error"
|
|
||||||
},
|
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0088",
|
|
||||||
"help": {
|
|
||||||
"text": "Misconfiguration AVD-AWS-0088\nType: Terraform Security Check\nSeverity: HIGH\nCheck: Unencrypted S3 bucket.\nMessage: Bucket does not have encryption enabled\nLink: [AVD-AWS-0088](https://avd.aquasec.com/misconfig/avd-aws-0088)\nS3 Buckets should be encrypted to protect the data that is stored within them if access is compromised.\n",
|
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0088**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|Unencrypted S3 bucket.|Bucket does not have encryption enabled|[AVD-AWS-0088](https://avd.aquasec.com/misconfig/avd-aws-0088)|\n\nS3 Buckets should be encrypted to protect the data that is stored within them if access is compromised.\n"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"precision": "very-high",
|
|
||||||
"security-severity": "8.0",
|
|
||||||
"tags": [
|
|
||||||
"misconfiguration",
|
|
||||||
"security",
|
|
||||||
"HIGH"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "s3-bucket-logging",
|
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Bucket Logging"
|
"text": "S3 Bucket Logging"
|
||||||
@@ -102,10 +75,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "note"
|
"level": "note"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/s3-bucket-logging",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0089",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration s3-bucket-logging\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 Bucket Logging\nMessage: Bucket has logging disabled\nLink: [s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)\nEnsures S3 bucket logging is enabled for S3 buckets",
|
"text": "Misconfiguration AWS-0089\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 Bucket Logging\nMessage: Bucket has logging disabled\nLink: [AWS-0089](https://avd.aquasec.com/misconfig/aws-0089)\nEnsures S3 bucket logging is enabled for S3 buckets",
|
||||||
"markdown": "**Misconfiguration s3-bucket-logging**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 Bucket Logging|Bucket has logging disabled|[s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)|\n\nEnsures S3 bucket logging is enabled for S3 buckets"
|
"markdown": "**Misconfiguration AWS-0089**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 Bucket Logging|Bucket has logging disabled|[AWS-0089](https://avd.aquasec.com/misconfig/aws-0089)|\n\nEnsures S3 bucket logging is enabled for S3 buckets"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -118,7 +91,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0090",
|
"id": "AWS-0090",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Data should be versioned"
|
"text": "S3 Data should be versioned"
|
||||||
@@ -129,10 +102,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "warning"
|
"level": "warning"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0090",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0090",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0090\nType: Terraform Security Check\nSeverity: MEDIUM\nCheck: S3 Data should be versioned\nMessage: Bucket does not have versioning enabled\nLink: [AVD-AWS-0090](https://avd.aquasec.com/misconfig/avd-aws-0090)\nVersioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n",
|
"text": "Misconfiguration AWS-0090\nType: Terraform Security Check\nSeverity: MEDIUM\nCheck: S3 Data should be versioned\nMessage: Bucket does not have versioning enabled\nLink: [AWS-0090](https://avd.aquasec.com/misconfig/aws-0090)\nVersioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0090**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|MEDIUM|S3 Data should be versioned|Bucket does not have versioning enabled|[AVD-AWS-0090](https://avd.aquasec.com/misconfig/avd-aws-0090)|\n\nVersioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n"
|
"markdown": "**Misconfiguration AWS-0090**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|MEDIUM|S3 Data should be versioned|Bucket does not have versioning enabled|[AWS-0090](https://avd.aquasec.com/misconfig/aws-0090)|\n\nVersioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -145,7 +118,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0091",
|
"id": "AWS-0091",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Access Block should Ignore Public ACL"
|
"text": "S3 Access Block should Ignore Public ACL"
|
||||||
@@ -156,10 +129,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0091",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0091",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0091\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access Block should Ignore Public ACL\nMessage: No public access block so not blocking public acls\nLink: [AVD-AWS-0091](https://avd.aquasec.com/misconfig/avd-aws-0091)\nS3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n",
|
"text": "Misconfiguration AWS-0091\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access Block should Ignore Public ACL\nMessage: No public access block so not blocking public acls\nLink: [AWS-0091](https://avd.aquasec.com/misconfig/aws-0091)\nS3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0091**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access Block should Ignore Public ACL|No public access block so not blocking public acls|[AVD-AWS-0091](https://avd.aquasec.com/misconfig/avd-aws-0091)|\n\nS3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n"
|
"markdown": "**Misconfiguration AWS-0091**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access Block should Ignore Public ACL|No public access block so not blocking public acls|[AWS-0091](https://avd.aquasec.com/misconfig/aws-0091)|\n\nS3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -172,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0093",
|
"id": "AWS-0093",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 Access block should restrict public bucket to limit access"
|
"text": "S3 Access block should restrict public bucket to limit access"
|
||||||
@@ -183,10 +156,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0093",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0093",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0093\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should restrict public bucket to limit access\nMessage: No public access block so not restricting public buckets\nLink: [AVD-AWS-0093](https://avd.aquasec.com/misconfig/avd-aws-0093)\nS3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n",
|
"text": "Misconfiguration AWS-0093\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 Access block should restrict public bucket to limit access\nMessage: No public access block so not restricting public buckets\nLink: [AWS-0093](https://avd.aquasec.com/misconfig/aws-0093)\nS3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0093**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should restrict public bucket to limit access|No public access block so not restricting public buckets|[AVD-AWS-0093](https://avd.aquasec.com/misconfig/avd-aws-0093)|\n\nS3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n"
|
"markdown": "**Misconfiguration AWS-0093**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 Access block should restrict public bucket to limit access|No public access block so not restricting public buckets|[AWS-0093](https://avd.aquasec.com/misconfig/aws-0093)|\n\nS3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -199,7 +172,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0094",
|
"id": "AWS-0094",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 buckets should each define an aws_s3_bucket_public_access_block"
|
"text": "S3 buckets should each define an aws_s3_bucket_public_access_block"
|
||||||
@@ -210,10 +183,10 @@
|
|||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "note"
|
"level": "note"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0094",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0094",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0094\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 buckets should each define an aws_s3_bucket_public_access_block\nMessage: Bucket does not have a corresponding public access block.\nLink: [AVD-AWS-0094](https://avd.aquasec.com/misconfig/avd-aws-0094)\nThe \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n",
|
"text": "Misconfiguration AWS-0094\nType: Terraform Security Check\nSeverity: LOW\nCheck: S3 buckets should each define an aws_s3_bucket_public_access_block\nMessage: Bucket does not have a corresponding public access block.\nLink: [AWS-0094](https://avd.aquasec.com/misconfig/aws-0094)\nThe \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0094**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 buckets should each define an aws_s3_bucket_public_access_block|Bucket does not have a corresponding public access block.|[AVD-AWS-0094](https://avd.aquasec.com/misconfig/avd-aws-0094)|\n\nThe \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n"
|
"markdown": "**Misconfiguration AWS-0094**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|LOW|S3 buckets should each define an aws_s3_bucket_public_access_block|Bucket does not have a corresponding public access block.|[AWS-0094](https://avd.aquasec.com/misconfig/aws-0094)|\n\nThe \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -226,21 +199,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AVD-AWS-0132",
|
"id": "AWS-0132",
|
||||||
"name": "Misconfiguration",
|
"name": "Misconfiguration",
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"text": "S3 encryption should use Customer Managed Keys"
|
"text": "S3 encryption should use Customer Managed Keys"
|
||||||
},
|
},
|
||||||
"fullDescription": {
|
"fullDescription": {
|
||||||
"text": "Encryption using AWS keys provides protection for your S3 buckets. To increase control of the encryption and manage factors like rotation use customer managed keys.\n"
|
"text": "Encryption using AWS keys provides protection for your S3 buckets. To gain greater control over encryption, such as key rotation, access policies, and auditability, use customer managed keys (CMKs) with SSE-KMS.\nNote that SSE-KMS is not supported for S3 server access logging destination buckets; in such cases, use SSE-S3 instead.\n"
|
||||||
},
|
},
|
||||||
"defaultConfiguration": {
|
"defaultConfiguration": {
|
||||||
"level": "error"
|
"level": "error"
|
||||||
},
|
},
|
||||||
"helpUri": "https://avd.aquasec.com/misconfig/avd-aws-0132",
|
"helpUri": "https://avd.aquasec.com/misconfig/aws-0132",
|
||||||
"help": {
|
"help": {
|
||||||
"text": "Misconfiguration AVD-AWS-0132\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 encryption should use Customer Managed Keys\nMessage: Bucket does not encrypt data with a customer managed key.\nLink: [AVD-AWS-0132](https://avd.aquasec.com/misconfig/avd-aws-0132)\nEncryption using AWS keys provides protection for your S3 buckets. To increase control of the encryption and manage factors like rotation use customer managed keys.\n",
|
"text": "Misconfiguration AWS-0132\nType: Terraform Security Check\nSeverity: HIGH\nCheck: S3 encryption should use Customer Managed Keys\nMessage: Bucket does not encrypt data with a customer managed key.\nLink: [AWS-0132](https://avd.aquasec.com/misconfig/aws-0132)\nEncryption using AWS keys provides protection for your S3 buckets. To gain greater control over encryption, such as key rotation, access policies, and auditability, use customer managed keys (CMKs) with SSE-KMS.\nNote that SSE-KMS is not supported for S3 server access logging destination buckets; in such cases, use SSE-S3 instead.\n",
|
||||||
"markdown": "**Misconfiguration AVD-AWS-0132**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 encryption should use Customer Managed Keys|Bucket does not encrypt data with a customer managed key.|[AVD-AWS-0132](https://avd.aquasec.com/misconfig/avd-aws-0132)|\n\nEncryption using AWS keys provides protection for your S3 buckets. To increase control of the encryption and manage factors like rotation use customer managed keys.\n"
|
"markdown": "**Misconfiguration AWS-0132**\n| Type | Severity | Check | Message | Link |\n| --- | --- | --- | --- | --- |\n|Terraform Security Check|HIGH|S3 encryption should use Customer Managed Keys|Bucket does not encrypt data with a customer managed key.|[AWS-0132](https://avd.aquasec.com/misconfig/aws-0132)|\n\nEncryption using AWS keys provides protection for your S3 buckets. To gain greater control over encryption, such as key rotation, access policies, and auditability, use customer managed keys (CMKs) with SSE-KMS.\nNote that SSE-KMS is not supported for S3 server access logging destination buckets; in such cases, use SSE-S3 instead.\n"
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"precision": "very-high",
|
"precision": "very-high",
|
||||||
@@ -257,11 +230,11 @@
|
|||||||
},
|
},
|
||||||
"results": [
|
"results": [
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0086",
|
"ruleId": "AWS-0086",
|
||||||
"ruleIndex": 0,
|
"ruleIndex": 0,
|
||||||
"level": "error",
|
"level": "error",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0086\nSeverity: HIGH\nMessage: No public access block so not blocking public acls\nLink: [AVD-AWS-0086](https://avd.aquasec.com/misconfig/avd-aws-0086)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0086\nSeverity: HIGH\nMessage: No public access block so not blocking public acls\nLink: [AWS-0086](https://avd.aquasec.com/misconfig/aws-0086)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -284,11 +257,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0087",
|
"ruleId": "AWS-0087",
|
||||||
"ruleIndex": 1,
|
"ruleIndex": 1,
|
||||||
"level": "error",
|
"level": "error",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0087\nSeverity: HIGH\nMessage: No public access block so not blocking public policies\nLink: [AVD-AWS-0087](https://avd.aquasec.com/misconfig/avd-aws-0087)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0087\nSeverity: HIGH\nMessage: No public access block so not blocking public policies\nLink: [AWS-0087](https://avd.aquasec.com/misconfig/aws-0087)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -311,38 +284,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0088",
|
"ruleId": "AWS-0089",
|
||||||
"ruleIndex": 2,
|
"ruleIndex": 2,
|
||||||
"level": "error",
|
|
||||||
"message": {
|
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0088\nSeverity: HIGH\nMessage: Bucket does not have encryption enabled\nLink: [AVD-AWS-0088](https://avd.aquasec.com/misconfig/avd-aws-0088)"
|
|
||||||
},
|
|
||||||
"locations": [
|
|
||||||
{
|
|
||||||
"physicalLocation": {
|
|
||||||
"artifactLocation": {
|
|
||||||
"uri": "main.tf",
|
|
||||||
"uriBaseId": "ROOTPATH"
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"startLine": 8,
|
|
||||||
"startColumn": 1,
|
|
||||||
"endLine": 10,
|
|
||||||
"endColumn": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"text": "main.tf"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ruleId": "s3-bucket-logging",
|
|
||||||
"ruleIndex": 3,
|
|
||||||
"level": "note",
|
"level": "note",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability s3-bucket-logging\nSeverity: LOW\nMessage: Bucket has logging disabled\nLink: [s3-bucket-logging](https://avd.aquasec.com/misconfig/s3-bucket-logging)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0089\nSeverity: LOW\nMessage: Bucket has logging disabled\nLink: [AWS-0089](https://avd.aquasec.com/misconfig/aws-0089)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -365,11 +311,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0090",
|
"ruleId": "AWS-0090",
|
||||||
"ruleIndex": 4,
|
"ruleIndex": 3,
|
||||||
"level": "warning",
|
"level": "warning",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0090\nSeverity: MEDIUM\nMessage: Bucket does not have versioning enabled\nLink: [AVD-AWS-0090](https://avd.aquasec.com/misconfig/avd-aws-0090)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0090\nSeverity: MEDIUM\nMessage: Bucket does not have versioning enabled\nLink: [AWS-0090](https://avd.aquasec.com/misconfig/aws-0090)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -392,11 +338,38 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0091",
|
"ruleId": "AWS-0091",
|
||||||
|
"ruleIndex": 4,
|
||||||
|
"level": "error",
|
||||||
|
"message": {
|
||||||
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0091\nSeverity: HIGH\nMessage: No public access block so not blocking public acls\nLink: [AWS-0091](https://avd.aquasec.com/misconfig/aws-0091)"
|
||||||
|
},
|
||||||
|
"locations": [
|
||||||
|
{
|
||||||
|
"physicalLocation": {
|
||||||
|
"artifactLocation": {
|
||||||
|
"uri": "main.tf",
|
||||||
|
"uriBaseId": "ROOTPATH"
|
||||||
|
},
|
||||||
|
"region": {
|
||||||
|
"startLine": 8,
|
||||||
|
"startColumn": 1,
|
||||||
|
"endLine": 10,
|
||||||
|
"endColumn": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"text": "main.tf"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ruleId": "AWS-0093",
|
||||||
"ruleIndex": 5,
|
"ruleIndex": 5,
|
||||||
"level": "error",
|
"level": "error",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0091\nSeverity: HIGH\nMessage: No public access block so not blocking public acls\nLink: [AVD-AWS-0091](https://avd.aquasec.com/misconfig/avd-aws-0091)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0093\nSeverity: HIGH\nMessage: No public access block so not restricting public buckets\nLink: [AWS-0093](https://avd.aquasec.com/misconfig/aws-0093)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -419,38 +392,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0093",
|
"ruleId": "AWS-0094",
|
||||||
"ruleIndex": 6,
|
"ruleIndex": 6,
|
||||||
"level": "error",
|
|
||||||
"message": {
|
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0093\nSeverity: HIGH\nMessage: No public access block so not restricting public buckets\nLink: [AVD-AWS-0093](https://avd.aquasec.com/misconfig/avd-aws-0093)"
|
|
||||||
},
|
|
||||||
"locations": [
|
|
||||||
{
|
|
||||||
"physicalLocation": {
|
|
||||||
"artifactLocation": {
|
|
||||||
"uri": "main.tf",
|
|
||||||
"uriBaseId": "ROOTPATH"
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"startLine": 8,
|
|
||||||
"startColumn": 1,
|
|
||||||
"endLine": 10,
|
|
||||||
"endColumn": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"text": "main.tf"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ruleId": "AVD-AWS-0094",
|
|
||||||
"ruleIndex": 7,
|
|
||||||
"level": "note",
|
"level": "note",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0094\nSeverity: LOW\nMessage: Bucket does not have a corresponding public access block.\nLink: [AVD-AWS-0094](https://avd.aquasec.com/misconfig/avd-aws-0094)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0094\nSeverity: LOW\nMessage: Bucket does not have a corresponding public access block.\nLink: [AWS-0094](https://avd.aquasec.com/misconfig/aws-0094)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
@@ -473,11 +419,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruleId": "AVD-AWS-0132",
|
"ruleId": "AWS-0132",
|
||||||
"ruleIndex": 8,
|
"ruleIndex": 7,
|
||||||
"level": "error",
|
"level": "error",
|
||||||
"message": {
|
"message": {
|
||||||
"text": "Artifact: main.tf\nType: terraform\nVulnerability AVD-AWS-0132\nSeverity: HIGH\nMessage: Bucket does not encrypt data with a customer managed key.\nLink: [AVD-AWS-0132](https://avd.aquasec.com/misconfig/avd-aws-0132)"
|
"text": "Artifact: main.tf\nType: terraform\nVulnerability AWS-0132\nSeverity: HIGH\nMessage: Bucket does not encrypt data with a customer managed key.\nLink: [AWS-0132](https://avd.aquasec.com/misconfig/aws-0132)"
|
||||||
},
|
},
|
||||||
"locations": [
|
"locations": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"SchemaVersion": 2,
|
"SchemaVersion": 2,
|
||||||
|
"Trivy": {
|
||||||
|
"Version": "0.69.1"
|
||||||
|
},
|
||||||
"ArtifactName": "test/data/config-scan",
|
"ArtifactName": "test/data/config-scan",
|
||||||
"ArtifactType": "filesystem",
|
"ArtifactType": "filesystem",
|
||||||
"Results": [
|
"Results": [
|
||||||
@@ -8,7 +11,7 @@
|
|||||||
"Class": "config",
|
"Class": "config",
|
||||||
"Type": "terraform",
|
"Type": "terraform",
|
||||||
"MisconfSummary": {
|
"MisconfSummary": {
|
||||||
"Successes": 40,
|
"Successes": 53,
|
||||||
"Failures": 0
|
"Failures": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -18,13 +21,12 @@
|
|||||||
"Type": "terraform",
|
"Type": "terraform",
|
||||||
"MisconfSummary": {
|
"MisconfSummary": {
|
||||||
"Successes": 0,
|
"Successes": 0,
|
||||||
"Failures": 9
|
"Failures": 8
|
||||||
},
|
},
|
||||||
"Misconfigurations": [
|
"Misconfigurations": [
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0086",
|
"ID": "AWS-0086",
|
||||||
"AVDID": "AVD-AWS-0086",
|
|
||||||
"Title": "S3 Access block should block public ACL",
|
"Title": "S3 Access block should block public ACL",
|
||||||
"Description": "S3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n",
|
"Description": "S3 buckets should block public ACLs on buckets and any objects they contain. By blocking, PUTs with fail if the object has any public ACL a.\n",
|
||||||
"Message": "No public access block so not blocking public acls",
|
"Message": "No public access block so not blocking public acls",
|
||||||
@@ -32,10 +34,10 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0086.deny",
|
"Query": "data.builtin.aws.s3.aws0086.deny",
|
||||||
"Resolution": "Enable blocking any PUT calls with a public ACL specified",
|
"Resolution": "Enable blocking any PUT calls with a public ACL specified",
|
||||||
"Severity": "HIGH",
|
"Severity": "HIGH",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0086",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0086",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0086"
|
"https://avd.aquasec.com/misconfig/aws-0086"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -82,8 +84,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0087",
|
"ID": "AWS-0087",
|
||||||
"AVDID": "AVD-AWS-0087",
|
|
||||||
"Title": "S3 Access block should block public policy",
|
"Title": "S3 Access block should block public policy",
|
||||||
"Description": "S3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n",
|
"Description": "S3 bucket policy should have block public policy to prevent users from putting a policy that enable public access.\n",
|
||||||
"Message": "No public access block so not blocking public policies",
|
"Message": "No public access block so not blocking public policies",
|
||||||
@@ -91,10 +92,10 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0087.deny",
|
"Query": "data.builtin.aws.s3.aws0087.deny",
|
||||||
"Resolution": "Prevent policies that allow public access being PUT",
|
"Resolution": "Prevent policies that allow public access being PUT",
|
||||||
"Severity": "HIGH",
|
"Severity": "HIGH",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0087",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0087",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/dev-retired/access-control-block-public-access.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/dev-retired/access-control-block-public-access.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0087"
|
"https://avd.aquasec.com/misconfig/aws-0087"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -141,67 +142,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0088",
|
"ID": "AWS-0089",
|
||||||
"AVDID": "AVD-AWS-0088",
|
|
||||||
"Title": "Unencrypted S3 bucket.",
|
|
||||||
"Description": "S3 Buckets should be encrypted to protect the data that is stored within them if access is compromised.\n",
|
|
||||||
"Message": "Bucket does not have encryption enabled",
|
|
||||||
"Namespace": "builtin.aws.s3.aws0088",
|
|
||||||
"Query": "data.builtin.aws.s3.aws0088.deny",
|
|
||||||
"Resolution": "Configure bucket encryption",
|
|
||||||
"Severity": "HIGH",
|
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0088",
|
|
||||||
"References": [
|
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html",
|
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0088"
|
|
||||||
],
|
|
||||||
"Status": "FAIL",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type": "Terraform Security Check",
|
|
||||||
"ID": "s3-bucket-logging",
|
|
||||||
"AVDID": "AVD-AWS-0089",
|
|
||||||
"Title": "S3 Bucket Logging",
|
"Title": "S3 Bucket Logging",
|
||||||
"Description": "Ensures S3 bucket logging is enabled for S3 buckets",
|
"Description": "Ensures S3 bucket logging is enabled for S3 buckets",
|
||||||
"Message": "Bucket has logging disabled",
|
"Message": "Bucket has logging disabled",
|
||||||
@@ -209,11 +150,11 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0089.deny",
|
"Query": "data.builtin.aws.s3.aws0089.deny",
|
||||||
"Resolution": "Add a logging block to the resource to enable access logging",
|
"Resolution": "Add a logging block to the resource to enable access logging",
|
||||||
"Severity": "LOW",
|
"Severity": "LOW",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/s3-bucket-logging",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0089",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html",
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html",
|
||||||
"https://avd.aquasec.com/misconfig/s3-bucket-logging"
|
"https://avd.aquasec.com/misconfig/aws-0089"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -260,8 +201,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0090",
|
"ID": "AWS-0090",
|
||||||
"AVDID": "AVD-AWS-0090",
|
|
||||||
"Title": "S3 Data should be versioned",
|
"Title": "S3 Data should be versioned",
|
||||||
"Description": "Versioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n",
|
"Description": "Versioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.\n\nYou can use the S3 Versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets.\n\nWith versioning you can recover more easily from both unintended user actions and application failures.\n\nWhen you enable versioning, also keep in mind the potential costs of storing noncurrent versions of objects. To help manage those costs, consider setting up an S3 Lifecycle configuration.\n",
|
||||||
"Message": "Bucket does not have versioning enabled",
|
"Message": "Bucket does not have versioning enabled",
|
||||||
@@ -269,11 +209,11 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0090.deny",
|
"Query": "data.builtin.aws.s3.aws0090.deny",
|
||||||
"Resolution": "Enable versioning to protect against accidental/malicious removal or modification",
|
"Resolution": "Enable versioning to protect against accidental/malicious removal or modification",
|
||||||
"Severity": "MEDIUM",
|
"Severity": "MEDIUM",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0090",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0090",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html",
|
||||||
"https://aws.amazon.com/blogs/storage/reduce-storage-costs-with-fewer-noncurrent-versions-using-amazon-s3-lifecycle/",
|
"https://aws.amazon.com/blogs/storage/reduce-storage-costs-with-fewer-noncurrent-versions-using-amazon-s3-lifecycle/",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0090"
|
"https://avd.aquasec.com/misconfig/aws-0090"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -381,8 +321,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0091",
|
"ID": "AWS-0091",
|
||||||
"AVDID": "AVD-AWS-0091",
|
|
||||||
"Title": "S3 Access Block should Ignore Public ACL",
|
"Title": "S3 Access Block should Ignore Public ACL",
|
||||||
"Description": "S3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n",
|
"Description": "S3 buckets should ignore public ACLs on buckets and any objects they contain. By ignoring rather than blocking, PUT calls with public ACLs will still be applied but the ACL will be ignored.\n",
|
||||||
"Message": "No public access block so not blocking public acls",
|
"Message": "No public access block so not blocking public acls",
|
||||||
@@ -390,10 +329,10 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0091.deny",
|
"Query": "data.builtin.aws.s3.aws0091.deny",
|
||||||
"Resolution": "Enable ignoring the application of public ACLs in PUT calls",
|
"Resolution": "Enable ignoring the application of public ACLs in PUT calls",
|
||||||
"Severity": "HIGH",
|
"Severity": "HIGH",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0091",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0091",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0091"
|
"https://avd.aquasec.com/misconfig/aws-0091"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -440,8 +379,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0093",
|
"ID": "AWS-0093",
|
||||||
"AVDID": "AVD-AWS-0093",
|
|
||||||
"Title": "S3 Access block should restrict public bucket to limit access",
|
"Title": "S3 Access block should restrict public bucket to limit access",
|
||||||
"Description": "S3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n",
|
"Description": "S3 buckets should restrict public policies for the bucket. By enabling, the restrict_public_buckets, only the bucket owner and AWS Services can access if it has a public policy.\n",
|
||||||
"Message": "No public access block so not restricting public buckets",
|
"Message": "No public access block so not restricting public buckets",
|
||||||
@@ -449,10 +387,10 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0093.deny",
|
"Query": "data.builtin.aws.s3.aws0093.deny",
|
||||||
"Resolution": "Limit the access to public buckets to only the owner or AWS Services (eg; CloudFront)",
|
"Resolution": "Limit the access to public buckets to only the owner or AWS Services (eg; CloudFront)",
|
||||||
"Severity": "HIGH",
|
"Severity": "HIGH",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0093",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0093",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/dev-retired/access-control-block-public-access.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/dev-retired/access-control-block-public-access.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0093"
|
"https://avd.aquasec.com/misconfig/aws-0093"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -499,8 +437,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0094",
|
"ID": "AWS-0094",
|
||||||
"AVDID": "AVD-AWS-0094",
|
|
||||||
"Title": "S3 buckets should each define an aws_s3_bucket_public_access_block",
|
"Title": "S3 buckets should each define an aws_s3_bucket_public_access_block",
|
||||||
"Description": "The \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n",
|
"Description": "The \"block public access\" settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it.\n",
|
||||||
"Message": "Bucket does not have a corresponding public access block.",
|
"Message": "Bucket does not have a corresponding public access block.",
|
||||||
@@ -508,10 +445,10 @@
|
|||||||
"Query": "data.builtin.aws.s3.aws0094.deny",
|
"Query": "data.builtin.aws.s3.aws0094.deny",
|
||||||
"Resolution": "Define a aws_s3_bucket_public_access_block for the given bucket to control public access policies",
|
"Resolution": "Define a aws_s3_bucket_public_access_block for the given bucket to control public access policies",
|
||||||
"Severity": "LOW",
|
"Severity": "LOW",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0094",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0094",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0094"
|
"https://avd.aquasec.com/misconfig/aws-0094"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
@@ -558,19 +495,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "Terraform Security Check",
|
"Type": "Terraform Security Check",
|
||||||
"ID": "AVD-AWS-0132",
|
"ID": "AWS-0132",
|
||||||
"AVDID": "AVD-AWS-0132",
|
|
||||||
"Title": "S3 encryption should use Customer Managed Keys",
|
"Title": "S3 encryption should use Customer Managed Keys",
|
||||||
"Description": "Encryption using AWS keys provides protection for your S3 buckets. To increase control of the encryption and manage factors like rotation use customer managed keys.\n",
|
"Description": "Encryption using AWS keys provides protection for your S3 buckets. To gain greater control over encryption, such as key rotation, access policies, and auditability, use customer managed keys (CMKs) with SSE-KMS.\nNote that SSE-KMS is not supported for S3 server access logging destination buckets; in such cases, use SSE-S3 instead.\n",
|
||||||
"Message": "Bucket does not encrypt data with a customer managed key.",
|
"Message": "Bucket does not encrypt data with a customer managed key.",
|
||||||
"Namespace": "builtin.aws.s3.aws0132",
|
"Namespace": "builtin.aws.s3.aws0132",
|
||||||
"Query": "data.builtin.aws.s3.aws0132.deny",
|
"Query": "data.builtin.aws.s3.aws0132.deny",
|
||||||
"Resolution": "Enable encryption using customer managed keys",
|
"Resolution": "Use SSE-KMS with a customer managed key (CMK)",
|
||||||
"Severity": "HIGH",
|
"Severity": "HIGH",
|
||||||
"PrimaryURL": "https://avd.aquasec.com/misconfig/avd-aws-0132",
|
"PrimaryURL": "https://avd.aquasec.com/misconfig/aws-0132",
|
||||||
"References": [
|
"References": [
|
||||||
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html",
|
"https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html",
|
||||||
"https://avd.aquasec.com/misconfig/avd-aws-0132"
|
"https://avd.aquasec.com/misconfig/aws-0132"
|
||||||
],
|
],
|
||||||
"Status": "FAIL",
|
"Status": "FAIL",
|
||||||
"CauseMetadata": {
|
"CauseMetadata": {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"SchemaVersion": 2,
|
"SchemaVersion": 2,
|
||||||
|
"Trivy": {
|
||||||
|
"Version": "0.69.1"
|
||||||
|
},
|
||||||
"ArtifactID": "sha256:79ce4c2f8371bef1ce2a321518d3136bc1bd8f3c307ed679944a38e7cbd76c14",
|
"ArtifactID": "sha256:79ce4c2f8371bef1ce2a321518d3136bc1bd8f3c307ed679944a38e7cbd76c14",
|
||||||
"ArtifactName": "https://github.com/krol3/demo-trivy/",
|
"ArtifactName": "https://github.com/krol3/demo-trivy/",
|
||||||
"ArtifactType": "repository",
|
"ArtifactType": "repository",
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"SchemaVersion": 2,
|
"SchemaVersion": 2,
|
||||||
|
"Trivy": {
|
||||||
|
"Version": "0.69.1"
|
||||||
|
},
|
||||||
"ArtifactName": "test/data/with-tf-vars/main.tf",
|
"ArtifactName": "test/data/with-tf-vars/main.tf",
|
||||||
"ArtifactType": "filesystem",
|
"ArtifactType": "filesystem",
|
||||||
"Results": [
|
"Results": [
|
||||||
@@ -8,7 +11,7 @@
|
|||||||
"Class": "config",
|
"Class": "config",
|
||||||
"Type": "terraform",
|
"Type": "terraform",
|
||||||
"MisconfSummary": {
|
"MisconfSummary": {
|
||||||
"Successes": 19,
|
"Successes": 27,
|
||||||
"Failures": 0
|
"Failures": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"SchemaVersion": 2,
|
"SchemaVersion": 2,
|
||||||
|
"Trivy": {
|
||||||
|
"Version": "0.69.1"
|
||||||
|
},
|
||||||
"ArtifactID": "sha256:aab05ff324c90bb728aa5177b75d7e39d363be13323873de70959d2251edcebc",
|
"ArtifactID": "sha256:aab05ff324c90bb728aa5177b75d7e39d363be13323873de70959d2251edcebc",
|
||||||
"ArtifactName": "alpine:3.10",
|
"ArtifactName": "alpine:3.10",
|
||||||
"ArtifactType": "container_image",
|
"ArtifactType": "container_image",
|
||||||
@@ -74,7 +77,7 @@
|
|||||||
"PkgName": "apk-tools",
|
"PkgName": "apk-tools",
|
||||||
"PkgIdentifier": {
|
"PkgIdentifier": {
|
||||||
"PURL": "pkg:apk/alpine/apk-tools@2.10.6-r0?arch=x86_64&distro=3.10.9",
|
"PURL": "pkg:apk/alpine/apk-tools@2.10.6-r0?arch=x86_64&distro=3.10.9",
|
||||||
"UID": "b7a64ae671a99195"
|
"UID": "19136436b32ef499"
|
||||||
},
|
},
|
||||||
"InstalledVersion": "2.10.6-r0",
|
"InstalledVersion": "2.10.6-r0",
|
||||||
"FixedVersion": "2.10.7-r0",
|
"FixedVersion": "2.10.7-r0",
|
||||||
|
|||||||
Reference in New Issue
Block a user