Back to list
Robotti-io

authn-authz-review

by Robotti-io

✨ A customizable copilot-instructions.md ruleset & prompts to guide GitHub Copilot toward secure coding defaults in Java, Node.js, C# and Python. Blocks risky patterns, teaches safe habits.

32🍴 9📅 Jan 14, 2026

SKILL.md


name: authn-authz-review description: Workflow to review authentication and authorization flows (sessions, tokens, RBAC/ABAC) and produce fix guidance.

Use this skill when reviewing login, session management, token validation, or authorization checks.

Step-by-step process

  1. Identify identities and trust boundaries
    • Who is the user/service? How is identity asserted (cookie, bearer token, mTLS)?
    • Where does authorization decision happen? Where is it enforced?
  2. Authentication checks
    • Password handling: hashing, rate limits, lockouts, MFA hooks
    • Session/token: issuance, expiry, rotation, revocation, audience/issuer validation
    • Transport: TLS-only, secure cookie flags, CSRF defenses for cookie auth
  3. Authorization checks
    • Define resources + actions (e.g., invoice:read, admin:user:delete)
    • Ensure checks are server-side and close to the boundary
    • Watch for IDOR: user-controlled identifiers without ownership checks
  4. Multi-tenant & privilege boundaries
    • Tenant scoping on every query
    • Admin vs user code paths; "act as" features
  5. Abuse cases
    • Replay, token substitution, privilege escalation, forced browsing
  6. Deliver fixes
    • Centralize policy decisions (middleware/service)
    • Add negative tests for bypass attempts

Output checklist

  • Token/session validation requirements
  • Required claims/roles/scopes
  • Authorization enforcement points
  • Test cases to prevent bypass

Repo integration (optional)

Related prompts:

  • review-auth-flows.prompt.md
  • check-access-controls.prompt.md

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon