Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing Id field for GCP policies #870

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort61621ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort61621ExposedToPrivateGCP",
"portNumber": 61621,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure Cassandra OpsCenter agent (TCP:61621) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0042",
"id": "AC_GCP_0042",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort61621ExposedToPublicGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort61621ExposedToPublicGCP",
"portNumber": 61621,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure Cassandra OpsCenter agent (TCP:61621) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0043",
"id": "AC_GCP_0043",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort61621ExposedToInternetGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort61621ExposedToInternetGCP",
"portNumber": 61621,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure Cassandra OpsCenter agent (TCP:61621) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0044",
"id": "AC_GCP_0044",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort27018ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort27018ExposedToPrivateGCP",
"portNumber": 27018,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure Mongo Web Portal (TCP:27018) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0045",
"id": "AC_GCP_0045",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort27018ExposedToPublicGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort27018ExposedToPublicGCP",
"portNumber": 27018,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure Mongo Web Portal (TCP:27018) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0046",
"id": "AC_GCP_0046",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort27018ExposedToInternetGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort27018ExposedToInternetGCP",
"portNumber": 27018,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure Mongo Web Portal (TCP:27018) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0047",
"id": "AC_GCP_0047",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort8140ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort8140ExposedToPrivateGCP",
"portNumber": 8140,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure Puppet Master (TCP:8140) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0048",
"id": "AC_GCP_0048",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort8140ExposedToPublicGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort8140ExposedToPublicGCP",
"portNumber": 8140,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure Puppet Master (TCP:8140) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0049",
"id": "AC_GCP_0049",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort8140ExposedToInternetGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort8140ExposedToInternetGCP",
"portNumber": 8140,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure Puppet Master (TCP:8140) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0050",
"id": "AC_GCP_0050",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort2382ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort2382ExposedToPrivateGCP",
"portNumber": 2382,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure SQL Server Analysis Service browser (TCP:2382) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0051",
"id": "AC_GCP_0051",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort2382ExposedToPublicGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort2382ExposedToPublicGCP",
"portNumber": 2382,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure SQL Server Analysis Service browser (TCP:2382) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0052",
"id": "AC_GCP_0052",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort2382ExposedToInternetGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort2382ExposedToInternetGCP",
"portNumber": 2382,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure SQL Server Analysis Service browser (TCP:2382) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0053",
"id": "AC_GCP_0053",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToPrivateUGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToPrivateUGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "udp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure MSSQL Browser Service (UDP:1434) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0054",
"id": "AC_GCP_0054",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToPublicUGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToPublicUGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "udp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure MSSQL Browser Service (UDP:1434) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0055",
"id": "AC_GCP_0055",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToInternetUGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToInternetUGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "udp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure MSSQL Browser Service (UDP:1434) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0056",
"id": "AC_GCP_0056",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToPrivateGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure MSSQL Admin (TCP:1434) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0057",
"id": "AC_GCP_0057",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToPublicGCP",
"file": "networkPortExposedToPublicGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToPublicGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "MEDIUM",
"description": "Ensure MSSQL Admin (TCP:1434) is not exposed to public for Google Compute Firewall",
"reference_id": "AC_GCP_0058",
"id": "AC_GCP_0058",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort1434ExposedToInternetGCP",
"file": "networkPortExposedToInternetGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort1434ExposedToInternetGCP",
"portNumber": 1434,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "HIGH",
"description": "Ensure MSSQL Admin (TCP:1434) is not exposed to entire internet for Google Compute Firewall",
"reference_id": "AC_GCP_0059",
"id": "AC_GCP_0059",
"category": "Infrastructure Security",
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "networkPort5900ExposedToPrivateGCP",
"file": "networkPortExposedToPrivateGCP.rego",
"policy_type": "gcp",
"resource_type": "google_compute_firewall",
"template_args": {
"name": "networkPort5900ExposedToPrivateGCP",
"portNumber": 5900,
"prefix": "",
"protocol": "tcp",
"suffix": ""
},
"severity": "LOW",
"description": "Ensure VNC Server (TCP:5900) is not exposed to private hosts more than 32 for Google Compute Firewall",
"reference_id": "AC_GCP_0060",
"id": "AC_GCP_0060",
"category": "Infrastructure Security",
"version": 2
}
Loading