security_iam_policy
AWS IAM policy security check — Offline audit of an AWS IAM identity, resource or trust policy (JSON). Flags full admin (Action * / Resource ), service-wide wildcards (iam:, kms:), Allow+NotAction/NotResource, privilege-escalation actions (CreatePolicyVersion, Attach/PutPolicy, CreateAccessKey, UpdateAssumeRolePolicy...), iam:PassRole on * with compute-creation combos, sensitive data actions on *, public Principal * without Condition, OIDC web-identity trust with no :sub condition, cross-account principals, duplicate Sids, old Version and size limits. Verdict PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK with score, grade and fixes. Params: policy= (JSON; also accepts get-policy-version / get-account-authorization-details wrappers and URL-encoded documents) or url= (raw or GitHub blob). Price: $0.006 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy": "<policy>"
},
"name": "security_iam_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]} |