> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-sns-topic-policy-overly-permissive-for-publishing.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS SNS topic policy overly permissive for publishing

### Synopsis

| Field               | Value                                                 |
| ------------------- | ----------------------------------------------------- |
| Rule Type           | Detection                                             |
| Finding Type        | AWS SNS topic policy overly permissive for publishing |
| Finding ID          | 60000543                                              |
| Generates a Finding | This detection rule also generates a finding          |
| Severity            | High                                                  |
| Category            | CONFIGURATION                                         |
| Cloud Providers     | AWS                                                   |
| Platform Module     | CSPM                                                  |
| Asset Types         | SNS\_TOPIC\_ATTRIBUTES                                |

### Description

Overly permissive AWS Simple Notification Service (SNS) topic policies allow unauthorized entities to publish messages, potentially leading to data breaches or service disruptions. SNS topics relay messages to subscribers; a misconfigured policy granting 'Publish' access to the world allows any actor to inject malicious messages, impacting data integrity and potentially causing downstream system failures.

The 'Publish' permission on an SNS topic dictates who can send messages. A misconfigured policy granting this permission broadly, such as to the wildcard '\*', exposes the topic to untrusted publishers. Attackers could exploit this to inject harmful messages, causing denial-of-service, data corruption, or manipulation of subscribed systems.

The impact of this misconfiguration includes compromised data integrity and system availability. Attackers can publish false data, commands, or malware, leading to significant operational disruptions and security breaches. Following the principle of least privilege, granting 'Publish' access only to explicitly authorized users or services minimizes the attack surface and improves overall security posture.

To mitigate this risk, implement least privilege access control. Restrict the 'Publish' permission to only specific AWS accounts, IAM roles, or users with a demonstrated need to publish messages.

### Remediation

1. Log in to the AWS Console
2. In the console, select the specific region from the region drop-down on the top right corner, for which the alert is generated.
3. Navigate to the 'Simple Notification Service' dashboard
4. Go to 'Topics', from the left panel
5. Select the reported SNS topic
6. Click on the 'Edit' button from the top options bar
7. On the edit page go to the 'Access Policy - optional' section
8. Add the restrictive 'Condition' statement to the JSON editor to specify who can publish messages to the topic.
9. Click on 'Save changes'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-sns-topic-policy-overly-permissive-for-publishing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
