Amazon GuardDuty 的操作、资源和条件键
Amazon GuardDuty(服务前缀:guardduty
)提供以下服务特定的资源、操作和条件上下文键以在 IAM 权限策略中使用。
参考:
Amazon GuardDuty 定义的操作
您可以在 IAM policy 语句的 Action
元素中指定以下操作。可以使用策略授予在 Amazon 中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。
操作表的资源类型列指示每项操作是否支持资源级权限。如果该列没有任何值,您必须在策略语句的 Resource
元素中指定策略应用的所有资源(“*”)。通过在 IAM policy 中使用条件来筛选访问权限,以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源,则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (*) 表示。如果您在 IAM policy 中使用 Resource
元素限制资源访问权限,则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的(未指示为必需),则可以选择使用一种可选资源类型。
操作表的条件键列包括可以在策略语句的 Condition
元素中指定的键。有关与服务资源关联的条件键的更多信息,请参阅资源类型表的条件键列。
有关下表中各列的详细信息,请参阅操作表。
操作 | 描述 | 访问级别 | 资源类型(* 为必需) | 条件键 | 相关操作 |
---|---|---|---|---|---|
AcceptAdministratorInvitation | 授予权限以接受成为 GuardDuty 成员账户的邀请 | Write | |||
AcceptInvitation | 授予权限以接受成为 GuardDuty 成员账户的邀请 | Write | |||
ArchiveFindings | 授予权限以存档 GuardDuty 结果 | Write | |||
CreateDetector | 授予权限以创建检测器 | Write | |||
CreateFilter | 授予权限以创建 GuardDuty 筛选器。筛选条件定义用于筛选结果的结果属性和条件 | Write | |||
CreateIPSet | 授予创建 IPSet 的权限 | Write |
iam:DeleteRolePolicy iam:PutRolePolicy |
||
CreateMembers | 授予创建 GuardDuty 成员账户的权限,其中用于创建成员的账户将成为 GuardDuty 管理员账户 | Write | |||
CreatePublishingDestination | 授予权限以创建发布目标 | Write |
s3:GetObject s3:ListBucket |
||
CreateSampleFindings | 授予权限以创建示例结果 | Write | |||
CreateThreatIntelSet | 授予创建 GuardDuty ThreatIntelSets 的权限,其中 ThreatIntelSet 由 GuardDuty 用来生成结果的已知恶意 IP 地址组成 | Write | |||
DeclineInvitations | 授予权限以拒绝成为 GuardDuty 成员账户的邀请 | Write | |||
DeleteDetector | 授予权限以删除 GuardDuty 检测器 | Write | |||
DeleteFilter | 授予权限以删除 GuardDuty 筛选条件 | Write | |||
DeleteIPSet | 授予权限以删除 GuardDuty IPSets | Write | |||
DeleteInvitations | 授予权限以删除成为 GuardDuty 成员账户的邀请 | Write | |||
DeleteMembers | 授予权限以删除 GuardDuty 成员账户 | Write | |||
DeletePublishingDestination | 授予权限以删除发布目标 | Write | |||
DeleteThreatIntelSet | 授予权限以删除 GuardDuty ThreatIntelSets | Write | |||
DescribeMalwareScans | 授予权限以检索有关恶意软件扫描的详细信息 | Read | |||
DescribeOrganizationConfiguration | 授予检索与 GuardDuty 检测器关联的委派管理员的详细信息的权限 | Read | |||
DescribePublishingDestination | 授予权限以检索有关发布目标的详细信息 | Read | |||
DisableOrganizationAdminAccount | 授予禁用 GuardDuty 的组织委派管理员的权限 | Write | |||
DisassociateFromAdministratorAccount | 授予权限以将 GuardDuty 成员账户与其 GuardDuty 管理员账户解除关联 | Write | |||
DisassociateFromMasterAccount | 授予权限以将 GuardDuty 成员账户与其 GuardDuty 管理员账户解除关联 | Write | |||
DisassociateMembers | 授予权限以将 GuardDuty 成员账户与其管理员 GuardDuty 账户解除关联 | Write | |||
EnableOrganizationAdminAccount | 授予启用 GuardDuty 的组织委派管理员的权限 | Write | |||
GetAdministratorAccount | 授予权限以检索与成员账户关联的 GuardDuty 管理员账户的详细信息 | Read | |||
GetCoverageStatistics | 授予权限以列出某个区域内指定 GuardDuty 账户的 Amazon GuardDuty 覆盖情况统计信息 | Read | |||
GetDetector | 授予权限以检索 GuardDuty 检测器 | Read | |||
GetFilter | 授予权限以检索 GuardDuty 筛选条件 | Read | |||
GetFindings | 授予权限以检索 GuardDuty 结果 | Read | |||
GetFindingsStatistics | 授予权限以检索 GuardDuty 结果统计信息的列表 | Read | |||
GetIPSet | 授予权限以检索 GuardDuty IPSets | Read | |||
GetInvitationsCount | 授予检索发送到指定账户的所有 GuardDuty 邀请的计数的权限,其中不包括已接受的邀请 | Read | |||
GetMalwareScanSettings | 授予权限以检索恶意软件扫描设置 | Read | |||
GetMasterAccount | 授予权限以检索与成员账户关联的 GuardDuty 管理员账户的详细信息 | Read | |||
GetMemberDetectors | 授予权限以描述为成员账户检测器启用的数据源 | Read | |||
GetMembers | 授予权限以检索与管理员账户关联的成员账户 | Read | |||
GetRemainingFreeTrialDays | 授予提供免费试用期内使用的每个数据来源的剩余天数的权限 | Read | |||
GetThreatIntelSet | 授予权限以检索 GuardDuty ThreatIntelSets | Read | |||
GetUsageStatistics | 授予权限以列出指定检测器 ID 最近 30 天内的 Amazon GuardDuty 使用情况统计信息 | Read | |||
InviteMembers | 授予权限以邀请其他Amazon账户启用 GuardDuty 并成为 GuardDuty 成员账户 | Write | |||
ListCoverage | 授予权限以列出某个区域内给定账户的所有资源详细信息 | List | |||
ListDetectors | 授予权限以检索 GuardDuty 检测器的列表 | List | |||
ListFilters | 授予权限以检索 GuardDuty 筛选条件的列表 | List | |||
ListFindings | 授予权限以检索 GuardDuty 结果的列表 | List | |||
ListIPSets | 授予权限以检索 GuardDuty IPSets 的列表 | List | |||
ListInvitations | 授予权限以检索发送到 Amazon Web Services 账户 的所有 GuardDuty 成员资格邀请的列表 | List | |||
ListMembers | 授予权限以检索与管理员账户关联的 GuardDuty 成员账户的列表 | List | |||
ListOrganizationAdminAccounts | 授予列出有关 GuardDuty 的组织委派管理员的详细信息的权限 | List | |||
ListPublishingDestinations | 授予权限以检索发布目标的列表 | List | |||
ListTagsForResource | 授予权限以检索与 GuardDuty 资源关联的标签的列表 | Read | |||
ListThreatIntelSets | 授予权限以检索 GuardDuty ThreatIntelSets 的列表 | List | |||
SendSecurityTelemetry | 授予权限以发送某个区域内特定 GuardDuty 账户的安全遥测数据 | Write | |||
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 | Write |
iam:DeleteRolePolicy iam:PutRolePolicy |
||
UpdateMalwareScanSettings | 授予权限以更新恶意软件扫描设置 | Write | |||
UpdateMemberDetectors | 授予权限以更新为成员账户检测器启用的数据源 | Write | |||
UpdateOrganizationConfiguration | 授予更新与 GuardDuty 检测器关联的委派管理员配置的权限 | Write | |||
UpdatePublishingDestination | 授予权限以更新发布目标 | Write |
s3:GetObject s3:ListBucket |
||
UpdateThreatIntelSet | 授予权限以更新 GuardDuty ThreatIntelSets | Write |
iam:DeleteRolePolicy iam:PutRolePolicy |
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}
|
|
publishingDestination |
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/publishingDestination/${PublishingDestinationId}
|
Amazon GuardDuty 的条件键
Amazon GuardDuty 定义以下可在 IAM policy 的 Condition
元素中使用的条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息,请参阅条件键表。
要查看适用于所有服务的全局条件键,请参阅可用的全局条件键。
条件键 | 描述 | 类型 |
---|---|---|
aws:RequestTag/${TagKey} | 按请求中的标签键值对筛选访问 | 字符串 |
aws:ResourceTag/${TagKey} | 按附加到资源的标签键值对筛选操作 | 字符串 |
aws:TagKeys | 按请求中的标签键筛选访问权限 | 字符串数组 |