Amazon Web Services has released two new APIs for identity and access management that simulate IAM policies. How...
do these AWS APIs work? And how often should IAM policies and permissions for cloud access be tested to ensure they are working properly?
These AWS APIs allow users to test a set of actions -- such as changing a password on a user account -- against a set of policies before they are pushed into production through the use of an IAM policy simulator. The AWS APIs show what would happen if someone actually tried to execute an action with a particular set of credentials. The simulator does not make any changes to the AWS environment or to its configuration.
The IAM policy simulator's two APIs are iam:SimulatePrinciplePolicy and iam:SimulateCustomPolicy. The first is used to evaluate existing policies on users and resources, while the second is designed for use on policies not yet attached to a user, group or role.
When making a simulation call, a user, group or role Amazon Resource Name (ARN) and a set of IAM policies are tested in the simulator. The call must also include API action names to be called during the simulation. Optionally, a list of ARNs can be specified, listing the objects to test the actions against. If a list of ARNs to test is not specified, all existing resources will be tested. Some policies contain checks on particular conditions. For these policies, a list of context keys and values can be provided to use as evaluation criteria during the simulation.
As with other AWS APIs, these functions can be called from the command line. The usual AWS command-line configuration is required (e.g., specifying AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY). The API functions generate as output the result of the simulation. These include details such as the evaluation decision (i.e., allowed or denied), action name, matched statements in the IAM policy and the evaluated resource name.
Testing frequency will depend on security requirements and risk tolerance. It is good practice to run simulations after a large number of changes, and then at regular intervals to test additional changes. Users concerned about specific events, such as changes to an account with administrator privileges, should consider setting up a CloudTrail alert.
Read about using AWS to meet compliance standards.
Learn more about the Amazon Web Services platform for the cloud.
Find out more about AWS IAM.
Which AWS Command Line tool is the right one?
Dig Deeper on Cloud Provisioning and Cloud Identity Management Issues
Related Q&A from Dan Sullivan
Docker's recent upgrade introduced support for hardware signing and in the future, automated security analysis on Docker images. Expert Dan Sullivan ... Continue Reading
Cisco's new project Contiv automates operational policies for containerized applications in the cloud. Expert Dan Sullivan explains the benefits of ... Continue Reading
Dropbox API abused by attackers posing as legitimate users in a huge spear phishing campaign. Expert Dan Sullivan explains how to mitigate the risks ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.