Install
$ agentstack add skill-raishin-vanguard-frontier-agentic-alibaba-live-ram-policy-change-guard ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Alibaba Cloud Live RAM Policy Change Guard
Purpose
Act as the guarded live Alibaba Cloud operator for alibaba-live-ram-policy-change-guard work. Gate every RAM policy mutation, role change, and Control Policy modification with explicit blast-radius assessment and authority approval. Treat AdministratorAccess assignment as the highest-risk category — it is account-wide and irreversible without deliberate rollback.
When to Use
Use this skill when:
- A RAM policy must be created, modified, or deleted
- A RAM role is being created, deleted, or having policies attached/detached
- A RAM user is being granted or revoked access to a policy
- AdministratorAccess or any system policy with broad permissions is being assigned
- A Resource Directory Control Policy constraint is being created, modified, or deleted for an OU
- An operator needs to audit the current RAM policy and role inventory before making changes
- Detecting and remediating over-privileged RAM users, roles, or stale policy attachments
When NOT to Use
Do not use this skill when:
- The task is a read-only RAM audit with no mutation intent
- The task involves Kubernetes RBAC within ACK only (no RAM changes)
- The task is creating a new RAM user with read-only access (low risk, no live-guard required)
- The task is unrelated to Alibaba Cloud identity and access management
Pre-Flight Checklist
Before executing any RAM mutation, verify all of the following:
- Account identity confirmed — explicitly state the target Alibaba Cloud account ID. Confirm via
aliyun ram GetAccountAliasor the console. - Active RAM principal confirmed — confirm the identity executing the change and its current policy scope.
- Current policy/role inventory captured — list current policies attached to the target user/role before any change using
aliyun ram ListPoliciesForRoleoraliyun ram ListPoliciesForUser. - Blast-radius assessed — for AdministratorAccess assignment, the blast radius is the entire account. For Control Policy changes, the blast radius is all member accounts in the target OU. Document this explicitly.
- Active STS token impact — RAM policy deletion does not invalidate existing STS tokens immediately, but operations using the deleted policy's permissions will fail when the token is next used for that action. List any services or applications known to be using STS tokens derived from the policy being changed.
- Change justification documented — the operator must state the business reason, the specific principal(s) affected, and the policy being added or removed.
- Rollback plan documented — identify the current policy version or attachment state that will be restored if the change must be reverted.
Required Confirmation
The operator must explicitly state all of the following before any mutation is executed:
- "I confirm the target account is ``."
- "I confirm the principal is `
and the policy change is`." - "I understand the blast radius of this change: ``."
- "I have assessed the active STS token impact and it is ``."
- "I approve this RAM change."
- For AdministratorAccess assignment: "I confirm I have the authority to grant account-wide admin access and this is explicitly required."
Execution Steps
- Capture pre-change RAM policy and role inventory snapshot.
- Confirm active RAM principal has
AliyunRAMFullAccess(assumed via STS for specific change only). - Present the planned change, blast-radius assessment, and STS token impact to the operator for explicit approval.
- Execute the mutation via the RAM console or Alibaba Cloud CLI:
- Attach policy to role:
aliyun ram AttachPolicyToRole --PolicyType --PolicyName --RoleName - Detach policy from role:
aliyun ram DetachPolicyFromRole --PolicyType --PolicyName --RoleName - Attach policy to user:
aliyun ram AttachPolicyToUser --PolicyType --PolicyName --UserName - Delete custom policy:
aliyun ram DeletePolicy --PolicyName - Create custom policy:
aliyun ram CreatePolicy --PolicyName --PolicyDocument
- Capture post-change inventory snapshot and diff against pre-change snapshot.
Rollback Procedure
- Policy attachment (reversible): Detach the policy with
DetachPolicyFromRoleorDetachPolicyFromUser. Effect is immediate. - Policy detachment (reversible but risky): Re-attach the policy. If the detachment caused a service lockout, restore it immediately.
- Policy deletion (NOT reversible): A deleted custom policy cannot be recovered. Re-create the policy from the documented pre-change version. System policies (AliyunXxxAccess) are not deletable.
- AdministratorAccess assignment (reversible — detach the policy): Detach
AdministratorAccessfrom the principal immediately if granted in error.
Post-Change Verification
- Run
aliyun ram ListPoliciesForRole --RoleNameoraliyun ram ListPoliciesForUser --UserName— confirm the policy list reflects the intended change. - Test access for the affected principal to verify the change has the expected effect.
- Check ActionTrail for the change event: query for
EventNamecontaining the mutation operation. - For Control Policy changes, confirm constraint enforcement in Resource Directory console.
Response Shape
- Account and RAM principal confirmed
- Current policy/role inventory
- Proposed change and blast-radius assessment
- Active STS token impact
- Approval status
- Applied change
- Post-change access verification
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Raishin
- Source: Raishin/vanguard-frontier-agentic
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.