Asiri only reads. This guide lists every permission it asks for in AWS, Google Cloud and Azure. It is written from the setup files you create the access with, so it says what those files say.
AWS
The stack creates one role, AsiriAuditor. It has two kinds of permission.
- Managed by AWS.
arn:aws:iam::aws:policy/SecurityAudit. - Added by Asiri. A policy named
AsiriReadAdditionswith the reads below, and a Deny list.
The role trusts one thing only: Asiri's connector role, and only when it presents the external id of this connection. A session lasts at most 1 hour.
What the role is allowed to read, beyond SecurityAudit
account:GetAlternateContactaccount:ListRegionsacm:DescribeCertificateacm:ListCertificatesbackup:GetBackupPlanbackup:GetBackupSelectionbackup:ListBackupPlansbackup:ListBackupSelectionsbackup:ListBackupVaultsbackup:ListProtectedResourcescloudfront:ListDistributionsec2:DescribeVolumesecr:DescribeImageScanFindingsecr:GetRegistryScanningConfigurationelasticloadbalancing:DescribeLoadBalancerAttributesidentitystore:ListUsersinspector2:ListCoverageinspector2:ListFindingAggregationsinspector2:ListFindingslambda:GetFunctionUrlConfiglambda:ListFunctionUrlConfigsmacie2:GetMacieSessionmacie2:ListClassificationJobss3:GetBucketObjectLockConfigurationsecretsmanager:ListSecretssecurityhub:DescribeHubsecurityhub:GetEnabledStandardssns:GetTopicAttributessns:ListTopicssqs:GetQueueAttributessqs:ListQueuessso:DescribePermissionSetsso:ListInstancessso:ListManagedPoliciesInPermissionSetsso:ListPermissionSetstag:GetResourcestag:GetTagKeyswafv2:GetLoggingConfigurationwafv2:GetWebACLForResourcewafv2:ListWebACLs
Added in the management account of an organisation
organizations:DescribeAccountorganizations:DescribeOrganizationorganizations:ListAccountsorganizations:ListAccountsForParentorganizations:ListOrganizationalUnitsForParentorganizations:ListPoliciesorganizations:ListPoliciesForTargetorganizations:ListRootsorganizations:ListTagsForResource
The Deny list
These actions are refused by name in every role, whatever else the role is given. They are the ones that would read what is stored in your account.
athena:GetQueryResultsdatapipeline:EvaluateExpressiondatapipeline:QueryObjectsdynamodb:BatchGetItemdynamodb:GetItemdynamodb:Querydynamodb:Scanglue:GetTable*kms:Decryptlambda:GetFunctionlogs:FilterLogEventslogs:GetLogEventslogs:StartQueryrds:DownloadDBLogFilePortions3:GetObject*secretsmanager:GetSecretValuessm:GetParameter*
Asiri also checks the role before it reads anything. If the role holds any permission that can change something in your account, Asiri refuses the connection and lists the permissions.
Google Cloud
Asiri makes no key and no service account key. The setup gives a workload identity pool that trusts Asiri's connector role these roles:
roles/iam.securityReviewerroles/cloudasset.viewerroles/browser
and a custom role, AsiriReadAdditions, with these permissions:
cloudkms.cryptoKeys.listcloudsql.instances.listcompute.firewalls.listiam.serviceAccountKeys.listlogging.sinks.listorgpolicy.policies.getstorage.buckets.getIamPolicy
Azure
Asiri makes no secret, key or certificate. After your administrator approves Asiri's application, the setup gives it these read roles:
ReaderSecurity Reader
and, only if you ask for it:
Key Vault Reader