By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: PenteraPublished June 3, 2026

TL;DR: AWS Systems Manager shared documents, automations, and packages can appear execution-ready inside another account without an explicit approval workflow, creating a trust-confusion path that attackers can exploit, according to Pentera. The security problem is not the feature itself but the assumption that anything visible in a console is already trusted and governed.


At a glance

What this is: AWS Systems Manager cross-account sharing can surface execution-ready documents, automations, and packages inside your account without a formal accept step, creating a hidden trust gap.

Why it matters: This matters because identity and access controls do not fully protect against trusted-content abuse unless teams also govern who can publish, share, and execute operational artefacts in AWS.

👉 Read Pentera's analysis of AWS SSM shared documents and trust confusion


Context

AWS Systems Manager is widely used to run operational tasks, but shared content changes the trust boundary because execution-ready artefacts can arrive from outside the account. In practice, that means the security question is not only whether a role can run SSM, but whether the organisation can trust the publisher behind the shared document. For IAM and cloud security teams, this is a governance problem as much as an access-control problem.

The article is best read as a warning about implicit trust in cloud operations. Cross-account sharing can be legitimate, but it creates a control gap when teams do not inventory shared artefacts, validate publishers, or monitor for new externally shared content. That same pattern appears in NHI governance when service identities, API-driven workflows, or automation artefacts are allowed to act without explicit lifecycle oversight.


Key questions

Q: How should security teams handle externally shared SSM documents in AWS?

A: Treat them as untrusted until the publisher is validated and explicitly allowlisted. The right control is not just IAM permission to view or run the document, but provenance governance that decides whether the shared artefact should exist in the environment at all. Continuous monitoring matters because new shared content can appear after a manual review.

Q: Why do shared cloud artefacts create governance risk even when access is authorised?

A: Because authorization to access a tool does not prove the content inside it is safe to execute. Shared operational artefacts can carry attacker-influenced logic, and if teams rely on console visibility as a trust signal, they miss the need to validate publisher identity, ownership, and intended scope before execution.

Q: What breaks when cloud automation content is trusted by default?

A: The trust boundary collapses between internal operations and external publishers. That can let a malicious or compromised account deliver execution-ready logic into your environment, where normal operators or workflows may run it under legitimate permissions. The failure is governance, not only technical access control.

Q: How can organisations reduce the risk of shared SSM content being misused?

A: Use a combination of trusted-publisher allowlists, continuous detection, and approval logging for every external artefact that can execute. This makes the publisher identity visible, gives operations a repeatable review process, and reduces the chance that a shared document becomes an unnoticed execution path.


Technical breakdown

How cross-account SSM sharing turns into execution-ready trust

AWS SSM Documents, Automations, and Packages are not passive configuration records. They can drive Run Command, State Manager, and automation workflows, which means a shared artefact is effectively executable content once a user or system invokes it. When another AWS account shares that content privately, it may appear under a shared list in the console with an owner account ID and name, but not with the same friction as a formal onboarding or approval workflow. The architectural risk is trust transference: visibility in the console is mistaken for governance approval.

Practical implication: treat externally shared SSM artefacts as untrusted inputs until the publisher is explicitly allowlisted.

Why name confusion and social engineering matter in AWS operations

The abuse pattern depends on human trust as much as technical permissions. An attacker can choose names that resemble common maintenance or vendor artefacts, then rely on operators assuming the item is legitimate because it appears in the environment. This is a classic trust-confusion problem, where the interface makes a shared object look native even though the publisher is external. The issue is amplified in environments where operators routinely execute automation under time pressure and where SSM is already a normal part of patching and fleet operations.

Practical implication: validate publisher identity and naming conventions before any shared document is executed.

Continuous detection is stronger than occasional console review

Point-in-time checks catch what is already present, but they do not address newly shared artefacts appearing after the review. A scheduled scanner or Lambda-based watcher closes that gap by comparing current shared items against a trusted publisher list and surfacing unexpected changes. This is a governance pattern, not just a detection pattern, because it establishes who is allowed to publish operational logic into the account and what happens when a new publisher appears. In identity terms, it is lifecycle control for executable trust relationships.

Practical implication: pair allowlists with continuous monitoring so new shared content is detected before it is used.


Threat narrative

Attacker objective: The attacker wants trusted execution inside the victim AWS account by turning a shared operational artefact into a delivery mechanism for malicious logic.

  1. Entry occurs when an external AWS account shares an SSM document, automation, or package into the target environment and the object appears execution-ready.
  2. Escalation happens when an operator or workflow runs the shared artefact without sufficient publisher validation, allowing attacker-influenced logic to execute under permitted IAM rights.
  3. Impact is achieved when the executed document performs malicious or unreviewed actions inside the account, creating execution, persistence, or lateral movement opportunities.

NHI Mgmt Group analysis

Implicit publisher trust is the failure mode here, not SSM sharing itself. The problem is that execution-ready artefacts can arrive inside an account without a separate governance decision about whether the publisher should be trusted. That turns a cloud convenience feature into an identity and authorization blind spot. In NHI terms, the shared document behaves like an externally sourced machine identity candidate until it is explicitly governed. Practitioners should treat publisher trust as a lifecycle decision, not a console assumption.

Shared operational artefacts create a form of trust confusion that modern IAM rarely models well. IAM is strong at deciding who can invoke SSM, but weaker at deciding whether the content being invoked should exist in the environment at all. That is a distinct control problem, especially where service accounts, automation roles, or pipeline identities can execute shared documents at scale. The right governance model must bind publisher identity, content provenance, and execution rights together. Practitioners should close the gap between access approval and artefact approval.

Continuous monitoring of shared content is the named concept this article exposes: shared execution drift. Once an external artefact enters the account, its trust status can drift as publishers change, artifacts multiply, or operators forget what was previously reviewed. That drift is especially dangerous in environments with high automation density, because the absence of a dramatic alert can create false confidence. This is where NHI lifecycle discipline intersects cloud operations: if a shared artefact can run, it needs the same ongoing scrutiny as any privileged non-human identity. Practitioners should assume review by exception is not enough.

The control gap is governance over execution, not just access to the console. A user can be perfectly authorized to view or invoke SSM and still make a bad trust decision if the environment does not separate internal from externally published operational logic. That is why detection must be paired with allowlisting, ownership checks, and clear offboarding of publishers no longer trusted. The discipline required here is closer to NHI and PAM governance than to simple configuration hygiene. Practitioners should make publisher provenance auditable.

This pattern signals a broader shift toward provenance-aware cloud control. As cloud platforms increasingly distribute executable content across accounts and projects, security programmes will need controls that answer who published this, who approved it, and whether it should still be executable today. That is a governance requirement, not an optional hardening layer. Practitioners should expect provenance checks to become part of routine cloud and NHI control design.

What this signals

Cloud teams should expect provenance to become a first-class control requirement, especially where automation artefacts can execute across accounts. Shared execution drift: the trust status of an externally shared artefact changes over time as publishers, approvals, and operational usage diverge. That means allowlists alone are not enough unless they are paired with continuous review and offboarding. For identity and cloud governance teams, the practical question is whether shared content is still authorised today, not whether it was once reviewed.

This pattern also reinforces a broader NHI lesson: execution rights and trust rights are not the same thing. An account may be permitted to invoke SSM, but that does not mean every shared document is safe to run. Teams that already govern service accounts, automation roles, and secret usage should extend the same discipline to externally published operational content. The control objective is simple, but the implementation is often missing: prove provenance before execution.


For practitioners

  • Inventory externally shared SSM artefacts regularly Scan for privately shared documents, automations, and packages across all enabled regions, then compare the publisher against a short trusted-account allowlist before any execution occurs.
  • Require publisher allowlisting for execution-ready content Define which 12-digit AWS account IDs are allowed to publish into your environment, and treat everything else as untrusted until reviewed and approved.
  • Add continuous detection for new shared objects Use a scheduled Lambda or equivalent watcher to detect newly shared SSM content and alert when unexpected publishers appear in the environment.
  • Tie execution rights to provenance checks Before Run Command, Automation, or State Manager workflows execute shared content, verify the owner account and record the approval decision in operational logs.

Key takeaways

  • Externally shared SSM artefacts create a governance problem because execution-ready content can enter an account without a formal trust decision.
  • The risk is not theoretical, because attackers can exploit naming, familiarity, and operator assumptions to turn legitimate cloud sharing into an execution path.
  • The most effective control pattern combines publisher allowlisting, continuous detection, and lifecycle governance for anything that can run inside the account.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Externally shared executable artefacts create NHI provenance and lifecycle risk.
NIST CSF 2.0PR.AC-4Cross-account artefact trust depends on access and approval controls.
NIST SP 800-53 Rev 5AC-6Least privilege is needed where shared artefacts can execute under operator rights.
MITRE ATT&CKTA0006 , Credential Access; TA0004 , Privilege EscalationAbused shared artefacts can support credential abuse and elevated execution paths.
NIST AI RMFGOVERNGovernance is required when automation artefacts carry execution authority.

Map shared-content approval and allowlisting to PR.AC-4 so only approved publishers can execute into the environment.


Key terms

  • SSM Document: An SSM Document is a JSON or YAML definition that tells AWS Systems Manager what action to perform and how to perform it. Because it can drive commands, automation, and maintenance workflows, it should be treated as executable operational content rather than passive configuration.
  • Shared Execution Drift: Shared execution drift is the gradual loss of trust clarity around externally shared operational artefacts. It happens when publishers change, approvals are informal, or shared content remains executable long after the original trust decision has been forgotten or was never made explicitly.
  • Publisher Allowlisting: Publisher allowlisting is the practice of restricting execution to known, approved account IDs or content sources. It reduces trust confusion by making the source of shared artefacts part of the control decision instead of assuming anything visible in a console is safe to run.

What's in the full article

Pentera's full article covers the operational detail this post intentionally leaves for the source:

  • A step-by-step walk-through of how shared SSM documents appear and can be executed inside an AWS account.
  • The lightweight scanner workflow for listing externally shared artefacts and flagging unknown publishers.
  • The Lambda-based continuous detection design for spotting new shared content over time.
  • Deployment guidance for allowlisting trusted publisher account IDs and integrating alerts.

👉 Pentera's full post covers the scanner workflow, continuous monitoring design, and allowlist configuration details.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, identity lifecycle, secrets management, and workload identity. It helps practitioners translate identity controls into operational governance across cloud and automation environments.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org