AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
Retrieves the detailed information for a specific malware scan. Each member account can view the malware scan details for their own account. An administrator can view malware scan details for all accounts in the organization.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints .
See also: AWS API Documentation
get-malware-scan
--scan-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
--scan-id (string)
A unique identifier that gets generated when you invoke the API without any error. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan.
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
ScanId -> (string)
A unique identifier associated with the malware scan. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan.
DetectorId -> (string)
The unique ID of the detector that is associated with the request, if it belongs to an account which is a GuardDuty customer.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
AdminDetectorId -> (string)
The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the
AdminDetectorIdwill be the same as the one used forDetectorId. If the customer is not a GuardDuty customer, this field will not be present..To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
ResourceArn -> (string)
Amazon Resource Name (ARN) of the resource on which a malware scan was invoked.
ResourceType -> (string)
The type of resource that was scanned for malware.
ScannedResourcesCount -> (integer)
The total number of resources that were successfully scanned. This is dependent on the resource type.
SkippedResourcesCount -> (integer)
The total number of resources that were skipped during the scan.
FailedResourcesCount -> (integer)
The total number of resources that failed to be scanned.
ScannedResources -> (list)
A list of resources along with their metadata that were scanned as part of the malware scan operation.
(structure)
Contains information about a resource that was scanned as part of the malware scan operation.
ScannedResourceArn -> (string)
Amazon Resource Name (ARN) of the scanned resource.ScannedResourceType -> (string)
The resource type of the scanned resource.ScannedResourceStatus -> (string)
The status of the scanned resource.ScanStatusReason -> (string)
The reason for the scan status of this particular resource, if applicable.ResourceDetails -> (structure)
Information about the scanned resource.
EbsVolume -> (structure)
Contains information about the EBS volume that was scanned.
VolumeArn -> (string)
EBS volume ARN information.VolumeType -> (string)
The EBS volume type.DeviceName -> (string)
The device name for the EBS volume.VolumeSizeInGB -> (integer)
EBS volume size in GB.EncryptionType -> (string)
EBS volume encryption type.SnapshotArn -> (string)
Snapshot ARN of the EBS volume.KmsKeyArn -> (string)
KMS key ARN used to encrypt the EBS volume.EbsSnapshot -> (structure)
Contains information about the EBS snapshot that was scanned.
DeviceName -> (string)
The device name of the EBS snapshot that was scanned.
ScanConfiguration -> (structure)
Information about the scan configuration used for the malware scan.
Role -> (string)
Amazon Resource Name (ARN) of the IAM role that should contain the required permissions for the scan.TriggerDetails -> (structure)
Information about the entity that triggered the malware scan.
GuardDutyFindingId -> (string)
The ID of the GuardDuty finding that triggered the malware scan.Description -> (string)
The description of the scan trigger.TriggerType -> (string)
Specifies the trigger type that started the malware scan.IncrementalScanDetails -> (structure)
Information about the incremental scan configuration, if applicable.
BaselineResourceArn -> (string)
Amazon Resource Name (ARN) of the baseline resource used for incremental scanning. The scan will only process changes since this baseline resource was created.RecoveryPoint -> (structure)
Information about the recovery point configuration used for the scan, if applicable.
BackupVaultName -> (string)
The name of the Amazon Web Services Backup vault that contains the recovery point for the scanned.
ScanCategory -> (string)
The category of the malware scan, indicating the type of scan performed.
ScanStatus -> (string)
A value representing the current status of the malware scan.
ScanStatusReason -> (string)
Represents the reason for the current scan status, if applicable.
ScanType -> (string)
A value representing the initiator of the scan.
ScanStartedAt -> (timestamp)
The timestamp representing when the malware scan was started.
ScanCompletedAt -> (timestamp)
The timestamp representing when the malware scan was completed.
ScanResultDetails -> (structure)
Detailed information about the results of the malware scan, if the scan completed.
ScanResultStatus -> (string)
Status indicating whether threats were found for a completed scan.SkippedFileCount -> (long)
The total number of files that were skipped during the scan.FailedFileCount -> (long)
The total number of files that failed to be scanned.ThreatFoundFileCount -> (long)
The total number of files in which threats were detected.TotalFileCount -> (long)
The total number of files that were processed during the scan.TotalBytes -> (long)
The total number of bytes that were scanned.UniqueThreatCount -> (long)
The total number of unique threats that were detected during the scan.Threats -> (list)
The threats that were detected during the malware scan.
(structure)
Contains information about a specific threat that was detected during the malware scan.
Name -> (string)
The name of the detected threat.Source -> (string)
The source that detected this threat.Count -> (long)
The number of instances of this threat that were detected.Hash -> (string)
The hash value associated with the detected threat.ItemDetails -> (list)
Additional information about where this threat was detected.
(structure)
Contains detailed information about where a threat was detected.
ResourceArn -> (string)
Amazon Resource Name (ARN) of the resource where the threat was detected.ItemPath -> (string)
The path where the threat was detected.Hash -> (string)
The hash value of the infected item.AdditionalInfo -> (structure)
Additional information about the detected threat item.
VersionId -> (string)
The version ID of the S3 object, if applicable.DeviceName -> (string)
The device name of the EBS volume, if applicable.