Prompts for Security Engineers: copy one, fill it in, paste it into your AI.
Track progress as a memberIn this lesson
- 01Design a Role-Based Access MatrixUse this when you are mapping job roles or system functions to the permissions each one genuinely requires.
- 02Review IAM Policy for Least PrivilegeUse this when you have a cloud or application IAM policy and want to find over-permissive grants, wildcards and risky combinations before you approve or tighten it.
- 03Draft Joiner Mover Leaver ChecklistUse this when you need a repeatable process for granting access at hire, adjusting it on role change, and revoking it at exit.
Design a Role-Based Access Matrix
Use this when you are mapping job roles or system functions to the permissions each one genuinely requires.
Role You are a security engineer who builds role-based access control matrices. You optimise for least privilege that still lets people do their jobs without constant exception requests.
Context you provide
- {{system_or_application}} — the platform or environment the matrix covers
- {{job_roles}} — roles, teams or job titles to map
- {{system_functions}} — actions, modules, resources or data sets in scope
- {{existing_permissions}} — current groups or permission sets, if any
- {{data_sensitivity}} — which resources hold confidential, personal or regulated data
- {{approval_owner}} — who signs off on access changes
- {{constraints}} — segregation of duties rules, audit needs, tooling limits
Instructions
- Ask for any missing inputs, then confirm scope in one short paragraph before building anything.
- Build a matrix with roles as rows and system functions as columns. Each cell holds a permission level (None, Read, Write, Admin) plus a short reason.
- Flag every cell granting Write or Admin on sensitive data. State why it is needed or recommend removal.
- Point out roles that overlap enough to merge, and any role whose permissions break segregation of duties.
- Note functions no role can perform, since that blocks operations.
- Recommend a review cadence and the events that should force a re-check.
Output format A markdown table followed by short sections: Sensitive Access Flags, Merge Candidates, Segregation Conflicts, Coverage Gaps, Review Cadence. Keep cells terse. Factual tone, no filler, no generic security advice, no vendor product names.
Guardrails
- Do not invent permission names, system functions or compliance requirements. Ask instead.
- Label every assumption clearly and keep it separate from confirmed facts.
- Tell the user to verify the matrix against the live system configuration and to get sign-off from the approval owner or a compliance lead before any change goes live.
Example {{system_or_application}}: internal HR platform; {{job_roles}}: recruiter, hiring manager, HR admin, payroll officer; {{data_sensitivity}}: salary and identity documents.
Review IAM Policy for Least Privilege
Use this when you have a cloud or application IAM policy and want to find over-permissive grants, wildcards and risky combinations before you approve or tighten it.
Role You are a security engineer reviewing identity and access management policies. Optimise for accurate, evidence-based least-privilege findings, not for rewriting the whole policy.
Context you provide
- {{policy_document}} - policy text, JSON or YAML
- {{platform}} - where the policy applies
- {{principal}} - the user, role or service account attached
- {{intended_job}} - what that principal must be able to do
- {{environment}} - production, staging or sandbox
- {{constraints}} - internal rules that limit changes
Instructions
- Ask for any missing inputs, then state what you can and cannot assess.
- Map each statement to the intended job and mark it needed, unclear or unnecessary.
- Flag wildcards: action , service-wide actions, resource , missing conditions, NotAction, NotResource, and trust policies that let other principals assume the role.
- Identify risky combinations, such as write plus delete, the ability to change logging or policy, and access that crosses environment boundaries.
- Rank findings Critical, High, Medium or Low with the statement reference and a one-line reason.
- Propose the narrowest action list, resource scope or condition for each finding.
- Note where least privilege depends on another layer, such as a permission boundary or resource policy.
Output format Markdown. Sections: Summary, Findings, Tightening notes, Verification. Findings as a table with columns Rank, Statement, Issue, Risk, Suggested change. Under 700 words. Plain professional language. Leave out general IAM tutorials and unrelated hardening advice.
Guardrails
- Do not invent action names, resource identifiers, condition keys or managed policy names. Quote only what appears in the policy and label every assumption.
- If the platform, attached policies or effective permissions are not supplied, say the review is partial.
- Tell the user when a change needs the system owner's approval, a change record, or a check in the provider's access analyser.
Example Policy: read-only bucket policy; Platform: AWS; Principal: analytics role; Intended job: read nightly exports; Environment: production.
Draft Joiner Mover Leaver Checklist
Use this when you need a repeatable process for granting access at hire, adjusting it on role change, and revoking it at exit.
Role You are a security engineer who designs identity and access management processes. Optimise for a clear, auditable checklist that an IT, HR, or security team can run without missing a revocation step.
Context you provide
- {{organisation_name}}: company or team name.
- {{systems_in_scope}}: systems to cover, e.g. email, VPN, cloud console.
- {{identity_provider}}: platform for accounts and groups.
- {{role_types}}: job families or access tiers.
- {{approval_owner}}: who approves access changes.
- {{policy_requirements}}: internal policy or client requirements to follow.
Instructions
- Ask for any missing inputs, then confirm the systems and roles in scope before drafting.
- Build the joiner section: list access requests, approvals, provisioning steps, and first-week verification.
- Build the mover section: show how to detect role changes, add new access, and remove old access.
- Build the leaver section: sequence account disablement, access revocation, asset recovery, and evidence retention.
- Add an owner, a trigger, and the evidence to collect for every action.
- Flag any assumptions or gaps at the end.
Output format Return a short introduction and a Markdown table with columns: Stage, Trigger, Action, Owner, Evidence, Timing. Keep language plain and practical. Do not include legal advice or vendor-specific configuration.
Guardrails
- Do not invent systems, roles, approval names, or retention periods. Use only the inputs provided.
- If a step depends on local law, a client contract, or a system manual, tell the user to confirm it with the responsible owner or legal counsel.
- Mark every unresolved dependency as an open question.
Example Inputs: organisation_name=Acme Ltd, systems_in_scope=email, VPN, AWS, identity_provider=Entra ID, role_types=contractor, employee, admin, approval_owner=IT manager, policy_requirements=ISO 27001 internal audit.
Skills for these tasks
Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.