AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3
В сценарии автоматизации AWS Systems Manager AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 обнаружена некорректная проверка входных данных. Удалённый аутентифицированный пользователь, которому разрешено выполнять этот сценарий, может обратиться к нему, сформировав специальное входное значение и запустив сценарий. Злоумышленник может задать произвольные команды в настройках Session Manager учётной записи, и эти команды будут выполняться на управляемых инстансах при каждом запуске сеансов Session Manager другими пользователями.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Злоумышленник может задать непредусмотренные настройки в региональных параметрах Session Manager учётной записи, включая произвольные команды, выполняемые на управляемых инстансах при запуске сеансов Session Manager другими пользователями.
Исправлено в версиях: 2026-10-22
Обходной путь: Запретите недоверенным пользователям запускать предыдущие версии сценария или обеспечьте наличие доверенного документа SSM-SessionManagerRunShell в каждом регионе.
| AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 | → исправлено в 2026-10-22 |
Команды, использующие сценарий автоматизации AWS Systems Manager AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3, включая пользователей AWS Config remediation и State Manager.
Некорректная проверка ввода позволяет пользователю, которому разрешено запускать этот runbook, задать непредусмотренную конфигурацию в настройках Regional Session Manager аккаунта. Эта конфигурация может включать произвольные команды, которые затем выполняются на управляемых инстансах при запуске сеансов Session Manager другими пользователями.
Затронуты более ранние версии runbook, созданные до 22 октября 2026 года (UTC), и только в регионах, где документ SSM-SessionManagerRunShell ещё не существует. Для проверки посмотрите дату редакции runbook в Systems Manager и наличие этого документа в каждом регионе.
Используйте исправленную редакцию runbook от 2026-10-22 или более позднюю. Исправление представляет собой обновлённую версию runbook, а не отдельный патч.
Оригинальный заголовок: AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 remote code execution in Systems Manager Automation
Improper input validation in the AWS-managed AWS Systems Manager Automation runbook AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 might allow an authenticated remote user who is permitted to run the runbook to set unintended configuration in the account's Regional Session Manager preferences document (SSM-SessionManagerRunShell) via a crafted S3KeyPrefix parameter value. This applies only when that document does not already exist in the Region. The unintended configuration can include arbitrary commands, which then run on managed instances when other users start Session Manager sessions. Because any user permitted to run the runbook selects which revision to run, this issue remains reachable in an affected Region until earlier revisions can no longer be run there. AWS is deprecating all revisions created before 2026-10-22 (UTC) in every Region and partition beginning January 15, 2027; until deprecation, earlier revisions remain runnable, so upgrading alone is not sufficient. To remediate this issue: 1. Run the latest revision of the runbook. The latest revision is the fixed revision in every Region where the runbook is available, and its revision number varies by Region. To find it, run aws ssm describe-document --name AWSConfigRemediation-EnableSystemsManagerSessionManagerAuditLogsToS3 --region <region> --query "Document.LatestVersion". Update any Automation executions, State Manager associations, AWS Config remediation configurations, or other automations pinned to an earlier revision to use the latest revision. 2. Until earlier revisions are removed in your Region, either keep untrusted users from running earlier revisions of the runbook, or keep a trusted Session Manager preferences document (SSM-SessionManagerRunShell) in every Region. Earlier revisions inject only when they create this document, so while a trusted one exists, this path is closed in that Region. 3. Review your Session Manager preferences document (SSM-SessionManagerRunShell) in any Region where it was first created by an earlier revision of this runbook, not by you. To check, look for any run of this runbook that failed with "DOCUMENT CREATE OR UPDATE FAILED." An injected run always fails with this error. You can also compare the creation date of the document's first version with the start times of runs of this runbook in that Region. Check the document for settings you did not configure, especially shellProfile, Run As (runAsEnabled, runAsDefaultUser), maxSessionDuration, idleSessionTimeout, and the logging destination fields. The fixed runbook updates only the S3 bucket and prefix fields of an existing preferences document, so settings injected earlier remain until you remove them. If you find unexpected settings, restore your trusted preferences and review instances on which Session Manager sessions were started while those settings were active. The AWS Security Bulletin includes commands for this review.