AWS iotanalytics high security documentation change
Summary
Refined IAM policy examples with region/account wildcards, updated example ARNs, and added explicit source account/ARN conditions.
Security assessment
Directly addresses confused deputy prevention by enforcing aws:SourceAccount/aws:SourceArn conditions. Specific ARN pattern changes (e.g., arn:aws:s3:*:*:amzn-s3-demo-bucket) limit cross-account access risks.
Diff
diff --git a/iotanalytics/latest/userguide/cross-service-confused-deputy-prevention.md b/iotanalytics/latest/userguide/cross-service-confused-deputy-prevention.md index f2fd3b832..4fd5eafc6 100644 --- a//iotanalytics/latest/userguide/cross-service-confused-deputy-prevention.md +++ b//iotanalytics/latest/userguide/cross-service-confused-deputy-prevention.md @@ -37,0 +38,6 @@ To prevent this, Nikki can specify the `aws:SourceAccount` condition or the `aws +JSON + + +**** + + @@ -60,2 +66,2 @@ To prevent this, Nikki can specify the `aws:SourceAccount` condition or the `aws - "arn:aws:s3:::DOC-EXAMPLE-BUCKET", - "arn:aws:s3:::DOC-EXAMPLE-BUCKET/*" + "arn:aws:s3:*:*:amzn-s3-demo-bucket", + "arn:aws:s3:*:*:amzn-s3-demo-bucket/*" @@ -73,0 +81,6 @@ To prevent this, Nikki can specify the `aws:SourceAccount` condition or the `aws +JSON + + +**** + + @@ -96,2 +109,2 @@ To prevent this, Nikki can specify the `aws:SourceAccount` condition or the `aws - "arn:aws:s3:::DOC-EXAMPLE-BUCKET", - "arn:aws:s3:::DOC-EXAMPLE-BUCKET/*" + "arn:aws:s3:*:*:amzn-s3-demo-bucket", + "arn:aws:s3:*:*:amzn-s3-demo-bucket/*" @@ -102,2 +115,2 @@ To prevent this, Nikki can specify the `aws:SourceAccount` condition or the `aws - "arn:aws:iotanalytics:us-east-1:123456789012:dataset/DOC-EXAMPLE-DATASET", - "arn:aws:iotanalytics:us-east-1:123456789012:datastore/DOC-EXAMPLE-DATASTORE" + "arn:aws:iotanalytics:us-east-1:123456789012:dataset/your-dataset", + "arn:aws:iotanalytics:us-east-1:123456789012:datastore/your-datastore" @@ -125,0 +140,6 @@ Replace `123456789012` with your AWS account ID, and `us-east-1` with the Region +JSON + + +**** + + @@ -144,0 +165 @@ Replace `123456789012` with your AWS account ID, and `us-east-1` with the Region + } @@ -168,0 +191,6 @@ In the following example, replace `123456789012` with your AWS account ID and `a +JSON + + +**** + + @@ -185 +213 @@ In the following example, replace `123456789012` with your AWS account ID and `a - "aws:SourceArn": "arn:aws:iotanalytics:aws-region:123456789012:channel/DOC-EXAMPLE-CHANNEL" + "aws:SourceArn": "arn:aws:iotanalytics:us-east-1:123456789012:channel/your-channel" @@ -197,0 +227,6 @@ The IAM role that AWS IoT Analytics assumes to deliver dataset query results to +JSON + + +**** + + @@ -214 +249 @@ The IAM role that AWS IoT Analytics assumes to deliver dataset query results to - "aws:SourceArn": "arn:aws:iotanalytics:aws-region:123456789012:dataset/DOC-EXAMPLE-DATASET" + "aws:SourceArn": "arn:aws:iotanalytics:us-east-1:123456789012:dataset/your-dataset"