Amazon GuardDuty 的操作、资源和条件键
Amazon GuardDuty(服务前缀:guardduty)提供以下服务特定的资源、操作和条件上下文键以在 IAM 权限策略中使用。
参考:
Amazon GuardDuty 定义的操作
您可以在 IAM 策略语句的 Action 元素中指定以下操作。可以使用策略授予在 AWS 中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。
操作表的访问级别列描述如何对操作进行分类(列出、读取、权限管理或标记)。此分类可以帮助您了解当您在策略中使用操作时,相应操作授予的访问级别。有关访问级别的更多信息,请参阅策略摘要中的访问级别。
操作表的资源类型列指示每项操作是否支持资源级权限。如果该列没有任何值,您必须在策略语句的 Resource 元素中指定策略应用的所有资源(“*”)。通过在 IAM policy 中使用条件来筛选访问权限,以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源,则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (*) 表示。如果您在 IAM policy 中使用 Resource 元素限制资源访问权限,则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的(未指示为必需),则可以选择使用一种可选资源类型。
操作表的条件键列包括可以在策略语句的 Condition 元素中指定的键。有关与服务资源关联的条件键的更多信息,请参阅资源类型表的条件键列。
操作表的依赖操作列显示成功调用操作可能需要的其他权限。除了操作本身的权限以外,可能还需要这些权限。若某个操作指定依赖操作,则这些依赖关系可能适用于为该操作定义的其他资源,而不仅仅是表中列出的第一个资源。
注意
资源条件键在资源类型表中列出。您可以在操作表的资源类型(* 为必需)列中找到应用于某项操作的资源类型的链接。资源类型表中的资源类型包括条件密钥列,这是应用于操作表中操作的资源条件键。
有关下表中各列的详细信息,请参阅操作表。
| 操作 | 描述 | 访问级别 | 资源类型(* 为必需) | 条件键 | 相关操作 |
|---|---|---|---|---|---|
| AcceptAdministratorInvitation | 授予权限以接受成为 GuardDuty 成员账户的邀请 | 写入 | |||
| AcceptInvitation | 授予权限以接受成为 GuardDuty 成员账户的邀请 | Write | |||
| ArchiveFindings | 授予权限以存档 GuardDuty 结果 | Write | |||
| CreateDetector | 授予权限以创建检测器 | Write | |||
| CreateFilter | 授予权限以创建 GuardDuty 筛选器。筛选条件定义用于筛选结果的结果属性和条件 | Write | |||
| CreateIPSet | 授予创建 IPSet 的权限 | 写入 |
iam:DeleteRolePolicy iam:PutRolePolicy |
||
| CreateMalwareProtectionPlan | 授予权限以创建新恶意软件防护计划 | 写入 | |||
| CreateMembers | 授予创建 GuardDuty 成员账户的权限,其中用于创建成员的账户将成为 GuardDuty 管理员账户 | Write | |||
| CreatePublishingDestination | 授予权限以创建发布目标 | Write |
s3:GetObject s3:ListBucket |
||
| CreateSampleFindings | 授予权限以创建示例结果 | 写入 | |||
| CreateThreatEntitySet | 授予权限以创建 GuardDuty ThreatEntitySets,其中 ThreatEntitySet 由 GuardDuty 用来生成调查发现的已知恶意 IP 地址和/或域组成 | 写入 |
s3:GetObject |
||
| CreateThreatIntelSet | 授予创建 GuardDuty ThreatIntelSets 的权限,其中 ThreatIntelSet 由 GuardDuty 用来生成结果的已知恶意 IP 地址组成 | 写入 | |||
| CreateTrustedEntitySet | 授予权限以创建 TrustedEntitySet | 写入 |
s3:GetObject |
||
| DeclineInvitations | 授予权限以拒绝成为 GuardDuty 成员账户的邀请 | Write | |||
| DeleteDetector | 授予权限以删除 GuardDuty 检测器 | Write | |||
| DeleteFilter | 授予权限以删除 GuardDuty 筛选条件 | Write | |||
| DeleteIPSet | 授予权限以删除 GuardDuty IPSets | Write | |||
| DeleteInvitations | 授予权限以删除成为 GuardDuty 成员账户的邀请 | 写入 | |||
| DeleteMalwareProtectionPlan | 授予权限以删除恶意软件防护计划 | 写入 | |||
| DeleteMembers | 授予权限以删除 GuardDuty 成员账户 | Write | |||
| DeletePublishingDestination | 授予权限以删除发布目标 | 写入 | |||
| DeleteThreatEntitySet | 授予权限以删除 GuardDuty ThreatEntitySets | 写入 | |||
| DeleteThreatIntelSet | 授予权限以删除 GuardDuty ThreatIntelSets | 写入 | |||
| DeleteTrustedEntitySet | 授予权限以删除 GuardDuty TrustedEntitySets | 写入 | |||
| DescribeMalwareScans | 授予权限以检索有关恶意软件扫描的详细信息 | 读取 | |||
| DescribeOrganizationConfiguration | 授予检索与 GuardDuty 检测器关联的委派管理员的详细信息的权限 | Read | |||
| DescribePublishingDestination | 授予权限以检索有关发布目标的详细信息 | Read | |||
| DisableOrganizationAdminAccount | 授予禁用 GuardDuty 的组织委派管理员的权限 | 写入 | |||
| DisassociateFromAdministratorAccount | 授予权限以将 GuardDuty 成员账户与其 GuardDuty 管理员账户解除关联 | 写入 | |||
| DisassociateFromMasterAccount | 授予权限以将 GuardDuty 成员账户与其 GuardDuty 管理员账户解除关联 | 写入 | |||
| DisassociateMembers | 授予权限以将 GuardDuty 成员账户与其管理员 GuardDuty 账户解除关联 | 写入 | |||
| EnableOrganizationAdminAccount | 授予启用 GuardDuty 的组织委派管理员的权限 | 写入 | |||
| GetAdministratorAccount | 授予权限以检索与成员账户关联的 GuardDuty 管理员账户的详细信息 | 读取 | |||
| GetCoverageStatistics | 授予权限以列出某个区域内指定 GuardDuty 账户的 Amazon GuardDuty 覆盖情况统计信息 | 读取 | |||
| GetDetector | 授予权限以检索 GuardDuty 检测器 | Read | |||
| GetFilter | 授予权限以检索 GuardDuty 筛选条件 | Read | |||
| GetFindings | 授予权限以检索 GuardDuty 结果 | Read | |||
| GetFindingsStatistics | 授予权限以检索 GuardDuty 结果统计信息的列表 | 读取 | |||
| GetIPSet | 授予权限以检索 GuardDuty IPSets | 读取 | |||
| GetInvitationsCount | 授予检索发送到指定账户的所有 GuardDuty 邀请的计数的权限,其中不包括已接受的邀请 | 读取 | |||
| GetMalwareProtectionPlan | 授予权限以检索恶意软件防护计划详细信息 | 读取 | |||
| GetMalwareScanSettings | 授予权限以检索恶意软件扫描设置 | 读取 | |||
| GetMasterAccount | 授予权限以检索与成员账户关联的 GuardDuty 管理员账户的详细信息 | 读取 | |||
| GetMemberDetectors | 授予权限以描述为成员账户检测器启用的数据源 | 读取 | |||
| GetMembers | 授予权限以检索与管理员账户关联的成员账户 | 读取 | |||
| GetOrganizationStatistics | 授予检索某个区域成员账户的 GuardDuty 防护计划覆盖范围统计数据的权限 | 读取 | |||
| GetRemainingFreeTrialDays | 授予提供免费试用期内使用的每个数据来源的剩余天数的权限 | 读取 | |||
| GetThreatEntitySet | 授予权限以检索 GuardDuty ThreatEntitySets | 读取 | |||
| GetThreatIntelSet | 授予权限以检索 GuardDuty ThreatIntelSets | 读取 | |||
| GetTrustedEntitySet | 授予权限以检索 GuardDuty TrustedEntitySets | 读取 | |||
| GetUsageStatistics | 授予权限以列出指定检测器 ID 最近 30 天内的 Amazon GuardDuty 使用情况统计信息 | Read | |||
| InviteMembers | 授予权限以邀请其他AWS账户启用 GuardDuty 并成为 GuardDuty 成员账户 | 写入 | |||
| ListCoverage | 授予权限以列出某个区域内给定账户的所有资源详细信息 | 列表 | |||
| ListDetectors | 授予权限以检索 GuardDuty 检测器的列表 | List | |||
| ListFilters | 授予权限以检索 GuardDuty 筛选条件的列表 | List | |||
| ListFindings | 授予权限以检索 GuardDuty 结果的列表 | List | |||
| ListIPSets | 授予权限以检索 GuardDuty IPSets 的列表 | 列表 | |||
| ListInvitations | 授予权限以检索发送到 AWS 账户 的所有 GuardDuty 成员资格邀请的列表 | 列表 | |||
| ListMalwareProtectionPlans | 授予权限以检索恶意软件防护计划列表 | 列表 | |||
| ListMembers | 授予权限以检索与管理员账户关联的 GuardDuty 成员账户的列表 | 列表 | |||
| ListOrganizationAdminAccounts | 授予列出有关 GuardDuty 的组织委派管理员的详细信息的权限 | List | |||
| ListPublishingDestinations | 授予权限以检索发布目标的列表 | List | |||
| ListTagsForResource | 授予权限以检索与 GuardDuty 资源关联的标签的列表 | 读取 | |||
| ListThreatEntitySets | 授予权限以检索 GuardDuty ThreatEntitySets 的列表 | 列表 | |||
| ListThreatIntelSets | 授予权限以检索 GuardDuty ThreatIntelSets 的列表 | 列表 | |||
| ListTrustedEntitySets | 授予权限以检索 GuardDuty TrustedEntitySets 的列表 | 列表 | |||
| SendSecurityTelemetry | 授予权限以发送某个区域内特定 GuardDuty 账户的安全遥测数据 | 写入 | |||
| StartMalwareScan | 授予权限以发起新的恶意软件扫描 | 写入 | |||
| StartMonitoringMembers | 向 GuardDuty 管理员账户授予权限以监控来自 GuardDuty 成员账户的结果 | Write | |||
| StopMonitoringMembers | 授予权限以禁用成员账户的监控结果 | Write | |||
| TagResource | 授予权限以将标签添加到 GuardDuty 资源 | Tagging | |||
| UnarchiveFindings | 授予权限以取消 GuardDuty 结果存档 | Write | |||
| UntagResource | 授予权限以从 GuardDuty 资源中删除标签 | Tagging | |||
| UpdateDetector | 授予权限以更新 GuardDuty 检测器 | Write | |||
| UpdateFilter | 授予权限以更新 GuardDuty 筛选条件 | Write | |||
| UpdateFindingsFeedback | 授予权限以更新结果反馈,以将 GuardDuty 结果标记为有用或无用 | Write | |||
| UpdateIPSet | 授予权限以更新 GuardDuty IPSets | 写入 |
iam:DeleteRolePolicy iam:PutRolePolicy |
||
| UpdateMalwareProtectionPlan | 授予权限以更新恶意软件防护计划 | 写入 | |||
| UpdateMalwareScanSettings | 授予权限以更新恶意软件扫描设置 | 写入 | |||
| UpdateMemberDetectors | 授予权限以更新为成员账户检测器启用的数据源 | Write | |||
| UpdateOrganizationConfiguration | 授予更新与 GuardDuty 检测器关联的委派管理员配置的权限 | Write | |||
| UpdatePublishingDestination | 授予权限以更新发布目标 | 写入 |
s3:GetObject s3:ListBucket |
||
| UpdateThreatEntitySet | 授予权限以更新 GuardDuty ThreatEntitySets | 写入 |
s3:GetObject |
||
| UpdateThreatIntelSet | 授予权限以更新 GuardDuty ThreatIntelSets | 写入 |
iam:DeleteRolePolicy iam:PutRolePolicy |
||
| UpdateTrustedEntitySet | 授予权限以更新 GuardDuty TrustedEntitySets | 写入 |
s3:GetObject |
Amazon GuardDuty 定义的资源类型
以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。操作表中的每个操作指定了可以使用该操作指定的资源类型。您也可以在策略中包含条件键,从而定义资源类型。这些键显示在资源类型表的最后一列。有关下表中各列的详细信息,请参阅资源类型表。
| 资源类型 | ARN | 条件键 |
|---|---|---|
| detector |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}
|
|
| filter |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/filter/${FilterName}
|
|
| ipset |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/ipset/${IPSetId}
|
|
| threatintelset |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatintelset/${ThreatIntelSetId}
|
|
| trustedentityset |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/trustedentityset/${TrustedEntitySetId}
|
|
| threatentityset |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatentityset/${ThreatEntitySetId}
|
|
| publishingDestination |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/publishingDestination/${PublishingDestinationId}
|
|
| malwareprotectionplan |
arn:${Partition}:guardduty:${Region}:${Account}:malware-protection-plan/${MalwareProtectionPlanId}
|
Amazon GuardDuty 的条件键
Amazon GuardDuty 定义以下可在 IAM policy 的 Condition 元素中使用的条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息,请参阅条件键表。
要查看适用于所有服务的全局条件键,请参阅 AWS 全局条件上下文键。
| 条件键 | 描述 | 类型 |
|---|---|---|
| aws:RequestTag/${TagKey} | 按请求中的标签键值对筛选访问 | 字符串 |
| aws:ResourceTag/${TagKey} | 按附加到资源的标签键值对筛选操作 | 字符串 |
| aws:TagKeys | 按请求中的标签键筛选访问权限 | 字符串数组 |