security-and-hardening

Apply OWASP Top 10 guidelines to harden code against common vulnerabilities.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/tuanfung/pqt-agent-skills --skill security-and-hardening-tuanfung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/tuanfung/pqt-agent-skills/tree/main/skills/security-and-hardening
Command: npx skills add https://github.com/tuanfung/pqt-agent-skills --skill security-and-hardening-tuanfung

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bcrypt, helmet, cors, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers secure their code by implementing best practices for authentication, data handling, and external integrations, protecting against common security threats.

Core Features & Use Cases

  • Security Best Practices: Enforces secure coding practices, such as input validation, secure authentication, and data encryption.
  • Threat Modeling: Provides a framework for identifying and mitigating potential security threats.
  • OWASP Top 10: Offers patterns to prevent the most common security vulnerabilities listed in the OWASP Top 10.
  • Use Case: Before deploying a new feature, use this Skill to review and harden the code, ensuring it is secure against SQL injection, XSS, and other common attacks.

Quick Start

Run the security-and-hardening skill to perform a comprehensive security review of your codebase.

Frequently Asked Questions about security-and-hardening

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect my code against SQL injection and XSS vulnerabilities?

Security hardening prevents common vulnerabilities like SQL injection, XSS, and CSRF by applying OWASP Top 10 guidelines and threat modeling. It enforces secure coding practices including input validation, secure authentication with bcrypt, and data protection.

How do I implement secure authentication and data protection in my application?

Implement secure authentication and data protection by utilizing bcrypt for password hashing, helmet for HTTP header protection, and cors for controlled resource sharing. This enforces data encryption and mitigates external API integration threats.

What is threat modeling and when do I need it for security hardening?

Threat modeling is a framework for identifying and mitigating potential security threats before deployment. You need it when reviewing new features to ensure code is fortified against common attacks and external integration risks.

Do I need helmet and cors to secure external API interactions?

Yes, you need helmet and cors to secure external API interactions. Helmet protects HTTP headers while cors controls cross-origin resource sharing, both essential dependencies for enforcing secure practices and preventing unauthorized access.

What's the best way to review code for OWASP Top 10 vulnerabilities before deployment?

The best way to review code for OWASP Top 10 vulnerabilities is performing a comprehensive security review. This identifies potential security threats through threat modeling and applies hardening measures to ensure data integrity.

Can I use this security hardening approach for any Node.js application?

Yes, you can use this security hardening approach for Node.js applications requiring bcrypt, helmet, and cors dependencies. It applies secure coding practices to secure authentication, data handling, and external integrations across your codebase.