CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

gcp-svc-account-impersonation

GCP service account impersonation chain — IAM `roles/iam.serviceAccountTokenCreator`, `roles/iam.serviceAccountUser`, `actAs` on Cloud Functions / Cloud Run / Compute Engine. Pivot from low-priv SA to org-admin via chained impersonation.

Quality

80%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

Fix and improve this skill with Tessl

tessl review fix ./packages/decepticon/decepticon/skills/standard/cloud/gcp-svc-account-impersonation/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

83%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is an exceptionally lean and actionable command reference with a clear phased workflow and useful OPSEC notes. Its weaknesses are the complete absence of validation/verification checkpoints around destructive operations (which caps workflow clarity at 3) and no use of bundle reference files to offload the technique catalog.

Suggestions

Add validation checkpoints between phases, e.g. after minting a token verify identity with 'curl .../v1/projects/-/serviceAccounts/.../token' or 'gcloud auth print-identity-token --impersonate-service-account=...', and re-run test-iam-permissions as the higher-priv SA before pivoting.

Move the per-primitive escalation techniques (Cloud Functions, Compute metadata, key minting) into separate reference files under references/ and keep SKILL.md as a phased overview with well-signaled links.

Turn the bare Reference citations (RhinoSecurityLabs, Praetorian, DEFCON 27) into actual URLs so they are actionable.

DimensionReasoningScore

Conciseness

The body is almost entirely dense, copy-paste commands with terse operational comments ('Long-lived credential — survives token rotation', 'Token TTL 60min'); it assumes Claude knows how GCP and gcloud work and explains nothing basic. Every section earns its place, matching the 'lean and efficient' anchor.

5 / 5

Actionability

All guidance is fully executable: exact curl calls with headers and payloads, gcloud commands, and a complete heredoc-created Cloud Function source file with its deploy command. Placeholders like 'highpriv@PROJECT.iam.gserviceaccount.com' are self-explanatory substitutions, and the examples cover the common impersonation cases, matching the 'fully executable; copy-paste ready' anchor.

5 / 5

Workflow Clarity

The sequence is clear and well-ordered (token theft → Phase 1 enumerate → Phase 2 primitives → Phase 3 cross-project pivot), but there are no validation checkpoints — e.g., verifying the minted token's identity/permissions before pivoting or confirming a deployment succeeded. Since the workflow includes destructive and loud operations (instance reset, key creation, function deploy), the rubric's cap of 3 applies; it is not a 2 because the steps themselves are coherent and well-defined, and not a 4 because verification is entirely absent.

3 / 5

Progressive Disclosure

No bundle files exist, and the skill is a well-sectioned ~120-line command reference — clear headers (Steal the token, Phase 1/2/3, OPSEC, References) make navigation easy. It falls just short of 5 because the content is over 50 lines and all inlined: the per-primitive technique catalog could live in reference files, and the References section cites external research by name without links or paths, so they are 'mostly clear' but not well-signaled file references.

4 / 5

Total

17

/

20

Passed

Description

70%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific, technical, and highly distinct, with good natural trigger terminology for the GCP IAM domain. Its main weakness is the absence of any explicit 'when to use' guidance, which caps completeness at 3.

Suggestions

Append an explicit trigger clause, e.g. 'Use when auditing or testing GCP service account privileges, enumerating IAM roles, or pivoting from a compromised GCP token to higher privilege.'

Add common user phrasings as trigger synonyms such as 'privilege escalation', 'escalate service account', or 'IAM privesc' to strengthen trigger coverage.

Optionally enumerate one or two concrete actions (e.g., 'mint long-lived SA keys', 'deploy Cloud Functions as a higher-priv SA') to close the coverage gap for a perfect specificity score.

DimensionReasoningScore

Specificity

The description names the domain and several concrete items — 'IAM roles/iam.serviceAccountTokenCreator', 'roles/iam.serviceAccountUser', 'actAs on Cloud Functions / Cloud Run / Compute Engine', 'Pivot from low-priv SA to org-admin via chained impersonation' — which is several specific capabilities with minor gaps (it doesn't enumerate actions like minting keys or deploying functions). It falls between the 1-2-action anchor (3) and comprehensive coverage (5), noticeably above the midpoint.

4 / 5

Completeness

The 'what' is clear (find and exploit an impersonation chain to pivot to org-admin), but there is no 'Use when...' clause or equivalent explicit trigger guidance — usage is only weakly implied by the topic. Per the judging guidelines, a missing 'Use when...' clause caps completeness at 3; it is not a 4 because the 'when' is not present at all, let alone explicit.

3 / 5

Trigger Term Quality

Natural phrases a user would say are present: 'GCP', 'service account impersonation', 'token creator', 'actAs', 'cloud functions', 'cloud run', 'compute engine'. A few natural terms are missing (e.g., 'privilege escalation', 'escalate', 'IAM token'), so it matches 'good keyword coverage; a few natural terms missing' rather than the fully comprehensive anchor.

4 / 5

Distinctiveness Conflict Risk

This is a clear niche — GCP service account impersonation via specific IAM roles — with distinct trigger terms that would not plausibly fire a general GCP or non-IAM skill, matching the 'clear niche with distinct triggers; minimal conflict risk' anchor.

5 / 5

Total

16

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository

PurpleAILAB/Decepticon

Path

packages/decepticon/decepticon/skills/standard/cloud/gcp-svc-account-impersonation/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.