security-hardening

Implements zero-trust architecture, Vault secret management, CSP headers, and audit logging for web applications.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/doanchienthangdev/omgkit --skill security-hardening-doanchienthangdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-hardening
Source: https://github.com/doanchienthangdev/omgkit/tree/main/plugin/skills/security/security-hardening
Command: npx skills add https://github.com/doanchienthangdev/omgkit --skill security-hardening-doanchienthangdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires helmet, node-vault, zod, isomorphic-dompurify, sqlstring, file-type, crypto, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for robust application security by implementing advanced patterns beyond basic guidelines, protecting against sophisticated threats and ensuring compliance.

Core Features & Use Cases

  • Zero-Trust Architecture: Enforces strict identity verification and authorization for every request.
  • Secret Management: Securely stores and retrieves sensitive credentials using tools like HashiCorp Vault.
  • Security Headers: Configures essential HTTP headers (CSP, HSTS, etc.) to mitigate common web vulnerabilities.
  • Input Validation & Sanitization: Protects against injection attacks and ensures data integrity.
  • Audit Logging: Implements comprehensive logging for security event tracking and incident response.
  • Compliance Frameworks: Provides tools for GDPR and PCI-DSS compliance.
  • Use Case: Secure a new microservice by implementing a full zero-trust middleware chain, integrating Vault for API keys, and configuring strict Content Security Policy to prevent XSS attacks.

Quick Start

Apply comprehensive security headers and zero-trust middleware to your Express application.

Frequently Asked Questions about security-hardening

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

FAQPage Schema
How do I implement zero-trust architecture in my Express application?

You can implement zero-trust architecture by applying a strict identity verification and authorization middleware chain to every request. This enforces continuous validation across your Express application, ensuring no implicit trust is granted.

What is the best way to manage application secrets using HashiCorp Vault?

The best way to manage secrets with HashiCorp Vault is using the node-vault library to securely store and retrieve sensitive credentials. This prevents hardcoded API keys and ensures encrypted access to sensitive application data.

How do I configure Content Security Policy headers to prevent XSS attacks?

Configure Content Security Policy (CSP) headers using the helmet library to mitigate XSS vulnerabilities. Combine this with isomorphic-dompurify for input sanitization to ensure data integrity and block malicious script execution across your web application.

Does this approach support compliance with GDPR and PCI-DSS frameworks?

Yes, this approach supports GDPR and PCI-DSS compliance by implementing comprehensive audit logging for security event tracking and secure secret management. These patterns provide the necessary data protection and incident response capabilities required by these regulatory frameworks.

How do I validate user input to protect against SQL injection attacks?

Protect against SQL injection by using the zod library for strict input validation and sqlstring for escaping SQL strings. This combination ensures data integrity by validating formats and sanitizing inputs before they reach your database layer.