Skip to content

test#1

Open
elit-cx wants to merge 10 commits intomasterfrom
test-pr-comment
Open

test#1
elit-cx wants to merge 10 commits intomasterfrom
test-pr-comment

Conversation

@elit-cx
Copy link
Owner

@elit-cx elit-cx commented Mar 17, 2021

No description provided.

Repository owner deleted a comment from github-actions bot Mar 18, 2021
@github-actions
Copy link

Rules

c5b31ab9-0f26-4a49-b8aa-4cc064392f4d (severity: ****)

S3 Bucket Without Enabled MFA Delete,568a4d22-3517-44a6-a7ad-6a7eed88722c (severity: ****)

S3 Bucket Without Versioning,575a2155-6af1-4026-b1af-d5bc8fe2a904 (severity: ****)

IAM Policy Allows All ('*') In Policy Statement,1dc73fb4-5b51-430c-8c5f-25dcf9090b02 (severity: ****)

RDS Without Backup,88fd05e0-ac0e-43d2-ba6d-fc0ba60ae1a6 (severity: ****)

IAM Database Auth Not Enabled,ad03cb46-f174-4674-bf8e-2880a7000edd (severity: ****)

S3 Bucket Rules With Master Key Id Null,fd54f200-402c-4333-a5a4-36ef6709af2f (severity: ****)

Missing User Instruction,08bd0760-8752-44e1-9779-7bb369b2b4e4 (severity: ****)

DB Instance Storage Not Encrypted,35113e6f-2c6b-414d-beec-7a9482d3b2d1 (severity: ****)

DB Instance Publicly Accessible,6726dcc0-5ff5-459d-b473-a780bef7665c (severity: ****)

S3 Bucket Without Encryption,f861041c-8c9f-4156-acfc-5e6e524f5884 (severity: ****)

S3 Bucket Without Logging,b03a748a-542d-44f4-bb86-9199ab4fd2d5 (severity: ****)

Healthcheck Instruction Missing,38c5ee0d-7f22-4260-ab72-5073048df100 (severity: ****)

S3 Bucket With Public RW Access

Details
{
    "driver": {
        "name": "KICS",
        "version": "nightly-",
        "fullName": "Keeping Infrastructure as Code Secure",
        "informationUri": "https://www.kics.io/",
        "rules": [
            {
                "id": "c5b31ab9-0f26-4a49-b8aa-4cc064392f4d",
                "name": "S3 Bucket Without Enabled MFA Delete",
                "shortDescription": {
                    "text": "S3 Bucket Without Enabled MFA Delete"
                },
                "fullDescription": {
                    "text": "S3 bucket without enabled MFA Delete"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#mfa_delete",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT007",
                            "index": 5,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "568a4d22-3517-44a6-a7ad-6a7eed88722c",
                "name": "S3 Bucket Without Versioning",
                "shortDescription": {
                    "text": "S3 Bucket Without Versioning"
                },
                "fullDescription": {
                    "text": "S3 bucket without versioning"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#versioning",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT007",
                            "index": 5,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "575a2155-6af1-4026-b1af-d5bc8fe2a904",
                "name": "IAM Policy Allows All ('*') In Policy Statement",
                "shortDescription": {
                    "text": "IAM Policy Allows All ('*') In Policy Statement"
                },
                "fullDescription": {
                    "text": "IAM policies allow all ('*') in a statement action"
                },
                "defaultConfiguration": {
                    "level": "warning"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT001",
                            "index": 3,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "1dc73fb4-5b51-430c-8c5f-25dcf9090b02",
                "name": "RDS Without Backup",
                "shortDescription": {
                    "text": "RDS Without Backup"
                },
                "fullDescription": {
                    "text": "RDS configured without backup"
                },
                "defaultConfiguration": {
                    "level": "warning"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT003",
                            "index": 10,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "88fd05e0-ac0e-43d2-ba6d-fc0ba60ae1a6",
                "name": "IAM Database Auth Not Enabled",
                "shortDescription": {
                    "text": "IAM Database Auth Not Enabled"
                },
                "fullDescription": {
                    "text": "IAM Database Auth Enabled must be configured to true"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#iam_database_authentication_enabled",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT006",
                            "index": 13,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "ad03cb46-f174-4674-bf8e-2880a7000edd",
                "name": "S3 Bucket Rules With Master Key Id Null",
                "shortDescription": {
                    "text": "S3 Bucket Rules With Master Key Id Null"
                },
                "fullDescription": {
                    "text": "If algorithm is AES256 then the master key is null, empty or undefined, otherwise the master key is required"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#sse_algorithm",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT012",
                            "index": 8,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "fd54f200-402c-4333-a5a4-36ef6709af2f",
                "name": "Missing User Instruction",
                "shortDescription": {
                    "text": "Missing User Instruction"
                },
                "fullDescription": {
                    "text": "A user should be specified in the dockerfile, otherwise the image will run as root"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://docs.docker.com/engine/reference/builder/#user",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT005",
                            "index": 12,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "08bd0760-8752-44e1-9779-7bb369b2b4e4",
                "name": "DB Instance Storage Not Encrypted",
                "shortDescription": {
                    "text": "DB Instance Storage Not Encrypted"
                },
                "fullDescription": {
                    "text": "The parameter storage_encrypted in aws_db_instance must be true (the default is false)"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#storage_encrypted",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT006",
                            "index": 13,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "35113e6f-2c6b-414d-beec-7a9482d3b2d1",
                "name": "DB Instance Publicly Accessible",
                "shortDescription": {
                    "text": "DB Instance Publicly Accessible"
                },
                "fullDescription": {
                    "text": "The feature Publicly Accessible must be false"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#publicly_accessible",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT007",
                            "index": 5,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "6726dcc0-5ff5-459d-b473-a780bef7665c",
                "name": "S3 Bucket Without Encryption",
                "shortDescription": {
                    "text": "S3 Bucket Without Encryption"
                },
                "fullDescription": {
                    "text": "S3 bucket should have encryption defined"
                },
                "defaultConfiguration": {
                    "level": "error"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT007",
                            "index": 5,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "f861041c-8c9f-4156-acfc-5e6e524f5884",
                "name": "S3 Bucket Without Logging",
                "shortDescription": {
                    "text": "S3 Bucket Without Logging"
                },
                "fullDescription": {
                    "text": "S3 bucket without logging"
                },
                "defaultConfiguration": {
                    "level": "note"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT010",
                            "index": 1,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "b03a748a-542d-44f4-bb86-9199ab4fd2d5",
                "name": "Healthcheck Instruction Missing",
                "shortDescription": {
                    "text": "Healthcheck Instruction Missing"
                },
                "fullDescription": {
                    "text": "Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working"
                },
                "defaultConfiguration": {
                    "level": "note"
                },
                "helpUri": "https://docs.docker.com/engine/reference/builder/#healthcheck",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT007",
                            "index": 5,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            },
            {
                "id": "38c5ee0d-7f22-4260-ab72-5073048df100",
                "name": "S3 Bucket With Public RW Access",
                "shortDescription": {
                    "text": "S3 Bucket With Public RW Access"
                },
                "fullDescription": {
                    "text": "S3 bucket with public READ/WRITE access"
                },
                "defaultConfiguration": {
                    "level": "none"
                },
                "helpUri": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#mfa_delete",
                "relationships": [
                    {
                        "target": {
                            "id": "CAT001",
                            "index": 3,
                            "toolComponent": {
                                "name": "Categories",
                                "guid": "58cdcc6f-fe41-4724-bfb3-131a93df4c3f",
                                "index": 0
                            }
                        }
                    }
                ]
            }
        ]
    }
}

Results

  • c5b31ab9-0f26-4a49-b8aa-4cc064392f4d: 'mfa_delete' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L44

  • c5b31ab9-0f26-4a49-b8aa-4cc064392f4d: 'mfa_delete' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L59

  • c5b31ab9-0f26-4a49-b8aa-4cc064392f4d: 'mfa_delete' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L72

  • 568a4d22-3517-44a6-a7ad-6a7eed88722c: 'versioning' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L1

  • 568a4d22-3517-44a6-a7ad-6a7eed88722c: 'versioning' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L25

  • 575a2155-6af1-4026-b1af-d5bc8fe2a904: 'policy.Statement.Resource' equal '*'

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/db-app.tf#L156

  • 1dc73fb4-5b51-430c-8c5f-25dcf9090b02: 'backup_retention_period' is equal '0'

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/db-app.tf#L17

  • 88fd05e0-ac0e-43d2-ba6d-fc0ba60ae1a6: 'aws_db_instance.iam_database_authentication_enabled' is undefined

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/db-app.tf#L1

  • ad03cb46-f174-4674-bf8e-2880a7000edd: server_side_encryption_configuration.rule.apply_server_side_encryption_by_default.kms_master_key_id is defined

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L79

  • fd54f200-402c-4333-a5a4-36ef6709af2f: The 'Dockerfile' does not contain any 'USER' instruction

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/resources/Dockerfile#L1

  • 08bd0760-8752-44e1-9779-7bb369b2b4e4: 'aws_db_instance.storage_encrypted' is false

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/db-app.tf#L18

  • 35113e6f-2c6b-414d-beec-7a9482d3b2d1: 'aws_db_instance[default].publicly_accessible' is true

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/db-app.tf#L21

  • 6726dcc0-5ff5-459d-b473-a780bef7665c: 'aws_s3_bucket.server_side_encryption_configuration' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L55

  • 6726dcc0-5ff5-459d-b473-a780bef7665c: 'aws_s3_bucket.server_side_encryption_configuration' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L1

  • 6726dcc0-5ff5-459d-b473-a780bef7665c: 'aws_s3_bucket.server_side_encryption_configuration' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L25

  • 6726dcc0-5ff5-459d-b473-a780bef7665c: 'aws_s3_bucket.server_side_encryption_configuration' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L39

  • f861041c-8c9f-4156-acfc-5e6e524f5884: 'logging' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L62

  • f861041c-8c9f-4156-acfc-5e6e524f5884: 'logging' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L62

  • f861041c-8c9f-4156-acfc-5e6e524f5884: 'logging' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L69

  • f861041c-8c9f-4156-acfc-5e6e524f5884: 'logging' is missing

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L62

  • b03a748a-542d-44f4-bb86-9199ab4fd2d5: Dockerfile doesn't contain instruction 'HEALTHCHECK'

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/resources/Dockerfile#L1

  • 38c5ee0d-7f22-4260-ab72-5073048df100: 'acl' is equal 'public-read'

https://github.com/elit-cx/test-kics-action/blob/test-pr-comment/terraform/aws/s3.tf#L7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant