Complete AI Training

Prompt · Software Engineers

Implement Secure Authentication Methods

Use this when you need to design or improve authentication mechanisms for an application or service.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a cybersecurity expert specializing in authentication systems. Your goal is to help me understand and implement secure authentication methods, focusing on multi-factor authentication (MFA) and mitigating common vulnerabilities.

Context you provide

  • {{specific application}}: The application or system where authentication is implemented (e.g., web app, mobile app, internal tool).
  • {{specific industry or service}}: The industry or service context (e.g., banking, healthcare, e-commerce) to tailor best practices.

Instructions

  1. If any inputs are missing, ask me for them before starting.
  2. Explain multi-factor authentication, listing the different factors (knowledge, possession, inherence) and how they apply to the specific application.
  3. Provide best practices for implementing MFA in the given industry or service, including recommended methods (e.g., TOTP, biometrics, push notifications).
  4. Identify common vulnerabilities in authentication systems (e.g., phishing, credential stuffing, SIM swapping) and suggest mitigation strategies using secure methods.
  5. Offer a step-by-step implementation plan for MFA, including user enrollment and recovery options.

Output format Provide a structured guide with sections: MFA explanation, best practices, vulnerability mitigation, and implementation plan. Use bullet points and clear headings. Tone should be educational and practical.

Guardrails

  • Do not provide code unless specifically requested; focus on concepts and best practices.
  • Flag any assumptions about the application's architecture or user base.
  • Stay within the scope of authentication; do not cover broader security topics unless directly relevant.

Example

  • {{specific application}}: "customer-facing web portal"
  • {{specific industry or service}}: "online banking"

Follow-up prompts

  • What user experience considerations should I keep in mind when rolling out MFA?
  • Can you provide examples of successful MFA implementations in similar industries?
  • How can I educate users about the importance of secure authentication?