security-and-hardening

Harden web application code against OWASP Top 10 vulnerabilities.

4|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/mymx2/foreman --skill security-and-hardening-mymx2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/mymx2/foreman/tree/main/.agents/skills/security-and-hardening
Command: npx skills add https://github.com/mymx2/foreman --skill security-and-hardening-mymx2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the critical need for secure-by-design software development, preventing vulnerabilities like injection, broken access control, and data exposure before they reach production.

Core Features & Use Cases

  • Threat Modeling: Provides a structured STRIDE-based approach to identify and mitigate attack surfaces early in the design phase.
  • Security Patterns: Offers battle-tested code patterns for authentication, input validation, and secure session management.
  • AI/LLM Hardening: Includes specific guardrails for integrating AI features, such as output sanitization and prompt injection prevention.

Quick Start

Apply the security and hardening skill to review the current authentication module for potential vulnerabilities and suggest necessary remediation steps.

Frequently Asked Questions about security-and-hardening

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

FAQPage Schema
How do I secure web application code against common OWASP vulnerabilities?

To secure web application code against OWASP vulnerabilities, apply security-first design with parameterized queries, secure session management, and strict boundary enforcement to prevent injection and broken access control issues.

What is STRIDE-based threat modeling and when do I need it?

STRIDE-based threat modeling is a structured approach to identify and mitigate attack surfaces early in the design phase. You need it when building production-grade software to ensure secure-by-design development before reaching deployment.

How do I prevent prompt injection in LLM-integrated features?

Prevent prompt injection in LLM-integrated features by applying specific AI hardening guardrails, including strict output sanitization and rigorous input validation, to ensure data integrity and system safety.

What is the best way to review authentication flows for potential vulnerabilities?

The best way to review authentication flows for vulnerabilities is enforcing security-first design patterns with secure session management and rigorous input validation to satisfy OWASP Top 10 prevention requirements.

Can I use this hardening approach for API route handlers?

Yes, you can use this hardening approach for API route handlers. It applies strict boundary enforcement and parameterized queries to ensure data integrity and prevent data exposure across web application endpoints.

Why does broken access control occur in production web applications?

Broken access control occurs in production web applications when strict boundary enforcement and secure session management are not implemented during the design phase, leaving data integrity and system safety vulnerable to attacks.