# Ensure there are no SSM Documents set as public

- Source: https://support.icompaas.com/support/solutions/articles/62000223476-ensure-there-are-no-ssm-documents-set-as-public
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Security Controls](https://support.icompaas.com/support/solutions/62000065178) › [AWS Services](https://support.icompaas.com/support/solutions/folders/62000097507)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

### Description:  
**An AWS Systems Manager document (SSM Document) defines the actions that Systems Manager performs on your managed instances. Systems Manager includes more than 100 pre-configured documents that you can use by specifying parameters at runtime**

### **Rationale:**

AWS Systems Manager automates operational tasks across AWS resources by creating SSM documents. The SSM documents, created in JSON or YAML, contain the operations that an AWS Systems Manager will perform on the cloud assets.

### **Impact:**

A misconfigured public SSM document can give an attacker valuable information about the account’s internal resources and operations and can lead to the exposure of additional resources.

### **Default Value**

By default, the documents are set as private.

### **Prerequisites**

-   We already have Documents we can set the public.
    
-   if you want to you can create a new Document.
    

### **Remediation**

### **Test Plan:**

1.  Open the AWS Systems Manager console at [https://console.aws.amazon.com/systems-manager/](https://console.aws.amazon.com/systems-manager/ "https://console.aws.amazon.com/systems-manager/").
    
2.  In the navigation pane, choose **Documents**
    
3.  Choose **Preferences**, check for block public sharing setting - on/off.![](https://support.icompaas.com/assets/kb/d4c4080e192d12c4.png)
    

  

**Using AWS CLI:**

1.  List documents
    
    aws ssm list-documents
    
2.  To know the permissions in the Documents
    
    aws ssm \\  
    get-service-setting \\  
    \--setting-id /ssm/documents/console/public-sharing-permission \\  
    \--region <region>
    

#### **Implementation Steps:**

To block public sharing of your SSM documents

1.  Open the AWS Systems Manager console at [https://console.aws.amazon.com/systems-manager/](https://console.aws.amazon.com/systems-manager/ "https://console.aws.amazon.com/systems-manager/").
    
2.  In the navigation pane, choose **Documents.**
    
3.  Choose **Preferences**, 
    
4.  Click on  **Edit** in the **Block public sharing** section.  
    ![](https://support.icompaas.com/assets/kb/a2e52580622d66b5.png) 
    
5.  Select the **Block public sharing** check box![](https://support.icompaas.com/assets/kb/5d27a11dc6ba6612.png)
    
6.  Click on  **Save**. ![](https://support.icompaas.com/assets/kb/434d162c44473965.png) 
    

  

  

  

**Using AWS CLI:**

**To make the document Public**

aws ssm \\  
update-service-setting \\  
\--setting-id /ssm/documents/console/public-sharing-permission \\  
\--setting-value Disable \\  
\--region <region>

  
**Backout Plan:**

1.  Open the AWS Systems Manager console at [https://console.aws.amazon.com/systems-manager/](https://console.aws.amazon.com/systems-manager/ "https://console.aws.amazon.com/systems-manager/").
    
2.  In the navigation pane, choose **Documents**.
    
3.  Choose **Preferences**
    
4.  Click **Edit** in the **Block public sharing** section.
    
5.  Uncheck the **Block public sharing** check box![](https://support.icompaas.com/assets/kb/af192f3a6dd3f30a.png)
    
6.  Then choose **Save**.
    

  

**Using AWS CLI:**

**To start sharing to public**

aws ssm \\  
update-service-setting \\  
\--setting-id /ssm/documents/console/public-sharing-permission \\  
\--setting-value Enable \\  
\--region <region>

  

**References**:

[Block public sharing for SSM Document](https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-share-block.html "https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-share-block.html")

[Best practices for SSM Document](https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-before-you-share.html "https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-before-you-share.html")

[AWS SSM Documents Guide](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-ssm-docs.html "https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-ssm-docs.html")

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
