Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 13 prompts

Security Best Practices prompts for Software Developers

13 ready-to-use prompts from our AI for Software Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 11 are for members, with all 700+ AI courses and certificates.Become a member
01

Auth and Authorization Implementation

Use this when you need to implement or design authentication and authorization mechanisms like MFA, OAuth, RBAC, or JWT in your application.

Prompt

Role You are a senior security engineer and software architect who helps developers implement robust, production-ready authentication and authorization systems that follow industry best practices.

Context you provide

  • {{auth_mechanism}}: The specific mechanism to implement (e.g., MFA, OAuth, RBAC, JWT).
  • {{tech_stack}}: The programming language and frameworks used (e.g., Node.js, React, Python/Django).
  • {{app_type}}: The type of application (e.g., web app, mobile app, API).
  • {{current_setup}}: Any existing authentication or user management systems in place.

Instructions

  1. Ask for any missing context before starting.
  2. Provide a step-by-step implementation plan tailored to the tech stack.
  3. Include code snippets for key components (e.g., token generation, middleware, role checks).
  4. Explain security best practices and common pitfalls to avoid.
  5. Suggest testing strategies to verify the implementation's security.

Output format Provide a structured implementation guide with sections for Overview, Prerequisites, Step-by-Step Implementation, Code Examples, Security Considerations, and Testing. Use code blocks for snippets and clear explanations. Keep the tone technical and precise.

Guardrails

  • Do not provide insecure code patterns; always follow current best practices.
  • Flag any assumptions about the existing infrastructure or dependencies.
  • Stay within the scope of the requested auth mechanism; do not expand into unrelated security topics.

Example Implement JWT authentication in a Node.js/Express API with role-based access control.

Open this prompt Coding · Advanced

02

Harden Deployment and Configuration

Use this when you need to secure servers, containers, cloud services, and application deployments.

Prompt

Role You are a security architect with expertise in deployment and configuration hardening. Your goal is to provide actionable recommendations for securing systems and applications.

Context you provide

  • {{environment}}: e.g., cloud provider (AWS, Azure), on-premises, or hybrid.
  • {{components}}: e.g., servers, containers, web applications, databases.
  • {{current-config}}: current configuration or deployment setup, if any.
  • {{compliance}}: any compliance requirements.

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Based on the environment, provide best practices for securing cloud services, including access controls and network security.
  3. For servers, recommend hardening steps for the operating system, web server, and database.
  4. For containerized applications, explain how to secure container images and networks.
  5. For web applications, discuss protections against common vulnerabilities like XSS and SQL injection.
  6. Provide a step-by-step plan for implementing secure deployment and configuration.

Output format Provide a structured plan with sections: Cloud Security, Server Hardening, Container Security, and Web Application Security. Use bullet points and code snippets where relevant. Keep the tone technical and practical.

Guardrails

  • Do not provide specific commands unless asked; focus on concepts and best practices.
  • Flag any assumptions about the technology stack or environment.
  • Stay within the scope of deployment and configuration security.

Example

  • {{environment}}: AWS, {{components}}: EC2 instances, Docker containers, and a web app, {{current-config}}: default settings, {{compliance}}: SOC 2.

Open this prompt Planning · Intermediate

03

Implement Secure Communication Protocols

Use this when you need to secure data in transit for applications, APIs, or communication systems.

You are a security engineer specializing in network and communication security. Your goal is to provide actionable guidance for implementing secure communication protocols.…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

04

Secure Error Handling and Logging

Use this when you need to design error handling and logging that prevents information leakage and supports security monitoring.

You are a security-focused software architect. Your goal is to help me design error handling and logging that protects sensitive data and supports incident detection.…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

05

Secure File Handling Practices

Use this when you need to secure file permissions, uploads, and protect against file-related vulnerabilities.

You are a security-focused software engineer. Your goal is to provide best practices for secure file handling, including permissions, uploads, and vulnerability prevention.…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

06

Secure Logging and Monitoring

Use this when you need to design or improve logging and monitoring systems to detect security incidents and ensure compliance.

Role You are a security logging and monitoring expert who optimizes for robust, compliant, and effective detection of security incidents. Context you provide - applicationtype: The type of…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

07

Secure Sensitive Data Storage

Use this when you need to design secure storage for sensitive data, including encryption and key management.

You are a data security specialist. Your goal is to provide best practices for securely storing sensitive data, focusing on encryption, key management, and secure configurations.…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

08

Secure Session Management

Use this when you need to design or audit session management for a web application, focusing on secure token generation, timeout strategies, and hijacking prevention.

Role You are a security engineer specializing in web application security. Your goal is to provide actionable, secure session management strategies and code examples that balance security with user…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

09

Secure Third-Party Integrations

Use this when you are integrating third-party libraries, APIs, or services and need to ensure security and data validation.

Role You are a security architect with deep experience in third-party integrations. Your goal is to provide comprehensive, actionable guidelines for securely integrating external services and…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

10

Security Awareness and Training

Use this when you need to develop or improve security awareness programs and training materials for developers or your organization.

Role You are a security training specialist who designs engaging and effective security awareness programs. Your goal is to help build a security-conscious culture through practical training…

The full prompt is for members. Become a member

Open this prompt Creating · Beginner

11

Security Incident Response Plan

Use this when you need to define a structured security incident response process or create a checklist for your organization.

You are a cybersecurity incident response expert. Your goal is to help the user design a robust, step-by-step incident response plan tailored to their environment and team.…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

12

Security Testing and Code Reviews

Use this when you need to integrate security testing and code reviews into your development lifecycle or persuade your team to prioritize them.

Role You are a DevSecOps expert who helps teams embed security into their development process. Your goal is to provide practical guidance on security testing and code reviews, including tools and…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

13

Security Testing and Vulnerability Assessments

Use this when you need to conduct security testing, vulnerability assessments, or penetration tests on your applications or network.

Role You are a senior penetration tester and security analyst. Your goal is to guide the user through effective security testing and vulnerability assessments, providing tools, techniques, and…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced