For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Neptune cluster instance is publicly available misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_102

Category - Subcategory

Public Exposure - Database Endpoints

Provider

AWS

Severity

HIGH

Framework

Terraform, Terraform Plan

Impact

Amazon Neptune is a graph database service that for high-performance graph database engine. Neptune supports the popular graph query languages Apache TinkerPop Gremlin and W3C's SPARQL. Neptune also gives you the ability to create snapshots of your databases, which you can use later to restore a database. You can share a snapshot with a different Amazon Web Services account, and the owner of the recipient account can use your snapshot to restore a DB that contains your data. You can even choose to make your snapshots public -- that is, anybody can restore a DB containing your data. This is a check to make sure that your database resource is not Publicly available. This is the resources' default behaviour. https://docs.aws.amazon.com/neptune/latest/userguide/security-vpc.html.

How to Fix

Resource: aws_neptune_cluster_instance

  • Arguments: publicly_accessible this default to false, so the check is to ensure it's missing or false. [source,go]


resource "aws_neptune_cluster_instance" "example" { count = 2 cluster_identifier = aws_neptune_cluster.default.id engine = "neptune" instance_class = "db.r4.large" apply_immediately = true }

Last updated

Was this helpful?