Skip to content

SSM Package Update#

When you select a task (one server × one vulnerability) in the FutureVuls console, you can update the packages related to that task on the target EC2 instance via SSM (AWS Systems Manager).

To log in to the server and run the commands yourself, see "Update Command".

Applicable Environments

This feature is only available for servers registered in FutureVuls through "Server OS Scan" (a scan performed by installing a scanner).

For supported operating systems, please refer to "Supported Environments".

Update Configuration#

Complete the "AWS Authentication Settings" in advance.

The configuration is divided into the following three tasks.

Task Work location Unit of work Completion check
1. Configure the EC2 instances AWS Per EC2 instance The instance appears under Systems Manager > Fleet Manager > Managed nodes in AWS
2. Configure the AWS account An environment where you can run the AWS CLI, and Group Settings in FutureVuls Once per combination of AWS account and region Package updates with SSM shows "Configured" in Group Settings in FutureVuls
3. Confirm the server integration FutureVuls Per server (reflected automatically when you check the settings or when a scan runs) The SSM Integration column in the server list shows ✓

Configuration for AWS EC2 Instances#

Prepare each target EC2 instance by following Preparing EC2 Instances for SSM Integration, then continue with the AWS account configuration below.

Configuration for the AWS Account#

Perform this configuration once per combination of AWS account and region containing the EC2 instances to be integrated with SSM. In that region of the AWS account, create the SSM document (the definition of the processing that SSM runs) that FutureVuls uses to update OS packages on EC2 instances through SSM.

  1. In FutureVuls, open Group Settings > Advanced Settings > External Integration > External Integration and click the "Configure" button for Package updates with SSM under AWS.

    image

  2. If the SSM document has already been created in the same region of the same AWS account, for example for another group's SSM integration, click the "Check" button without running the command shown. If Package updates with SSM shows "Configured", this configuration is complete. Proceed to "Automatic Integration with SSM". If an error appears, go on to the next step.

  3. Prepare an environment to create the SSM document.
  4. Run the command shown on the screen from step 1 in the environment you prepared.

    image

  5. After execution, click the "Check" button. If Package updates with SSM shows "Configured", the setup is complete.

    image

Automatic Integration with SSM#

When you click "Check" in the AWS integration settings for Scanning with SSM or Package updates with SSM, FutureVuls matches the instance IDs of registered servers against managed nodes that are online in SSM and marks matching servers as integrated. If a ✓ is not displayed, run the scanner on the target server. During the scan, information about whether the server can integrate with SSM is imported into FutureVuls. The configuration is complete when the SSM Integration column in the server list shows a ✓ as follows.

image

Performing Updates#

To update, you first check the results with a test update (Dry Run) and then run the actual update.

SSM package update flow

  1. From the Task tab or the Server / Product > CVE × Task tab, select the task whose packages are to be updated and click the "SSM Update" button.

    image

  2. Confirm the target server, packages, and the command that will be executed, and click the "OK" button with Dry Run left on. A test update is executed. In a test update, the packages are not actually updated.

    image

  3. Check the execution results in the AWS tab > SSM Command History. If the status is READY, the test update command has completed.

    image

  4. Open the history entry whose status is READY, confirm that the log of the test execution results contains no dependency errors or similar problems, and click the "Perform actual update" button, then click "OK" in the confirmation dialog. A new SSM command is issued, and if the update succeeds, the status changes to SUCCESS.

    image

  5. Import the changed software inventory with a scan ("Scanning After the Update"). The status of tasks whose vulnerabilities are no longer detected automatically changes to PATCH_APPLIED. A SUCCESS status of the SSM update alone does not change the task status.

If you turn Dry Run off, click the "OK" button, and then click "OK" in the confirmation dialog, the actual update is executed without performing a test update.

The statuses displayed in the SSM Command History are as follows.

Status Meaning Next action
RUNNING The command is running, or the results have not been retrieved yet After a while, reload the history list or click the refresh button in the history details to check the status (the screen is not updated automatically while it is open)
READY The test update command has completed Open the history entry and check the log of the execution results, and if there are no problems, click "Perform actual update"
SUCCESS The actual update has completed Import the changed software inventory with a scan, and confirm that the task has become PATCH_APPLIED
ERROR The test update or the update has failed See "If an Update Fails"

On operating systems that use yum or dnf (such as Amazon Linux and Red Hat Enterprise Linux), a test update checks the contents of the update and then cancels the operation, so Operation aborted. is displayed in the log of the execution results even when the test update is successful. On these operating systems, the status becomes READY even if the package management command fails, so check the contents of the log.

If an Update Fails#

If an ERROR MESSAGE like the following appears in the SSM command history details, follow the steps below to check the results.

failed-ssm

  1. Check the "Command ID" displayed in the details of the SSM Command History.
  2. Log in to the target AWS account and navigate to AWS Systems Manager > Run Command > Command history.
  3. Search for the Command ID on the command history screen and check the cause of the error.