security

Automate security auditing for codebases and dependencies in CI pipelines.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/motormetrics/motormetrics --skill security-motormetrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/motormetrics/motormetrics/tree/main/.claude/skills/security
Command: npx skills add https://github.com/motormetrics/motormetrics --skill security-motormetrics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured guidance for auditing code for security vulnerabilities, validating dependencies, and enforcing best practices to reduce risk before deployment.

Core Features & Use Cases

  • Dependency scanning: run pnpm audit, restrict to high/critical issues, and fix where possible.
  • Vulnerability remediation: identify and update vulnerable transitive dependencies using overrides or patching.
  • OWASP checks & hardening: apply common security controls (authentication, input validation, CORS, headers) and provide specific code examples.
  • Compliance & CI integration: integrate with CI workflows to enforce audits on push and PRs.

Quick Start

Run pnpm audit for dependency vulnerabilities and address high-severity issues using the guidance in the OWASP checklist.

Frequently Asked Questions about security

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

FAQPage Schema
How do I automate security audits for pnpm dependencies in a CI pipeline?

Run pnpm audit to detect dependency vulnerabilities and filter for high or critical severity issues, then remediate vulnerable transitive dependencies using overrides or patching based on the provided guidance.

How do I check my codebase for OWASP Top 10 vulnerabilities?

Check for OWASP Top 10 vulnerabilities by applying structured security audits that evaluate authentication, input validation, CORS, and secure headers, providing specific code examples to enforce common security controls.

What is the best way to fix vulnerable transitive dependencies found by Snyk?

Fix vulnerable transitive dependencies identified by Snyk by applying overrides or patching the affected packages, restricting your audit focus to high and critical severity issues to prioritize remediation efforts.

Can I enforce security audits on pull requests and pushes?

You can enforce security audits on pushes and pull requests by integrating the auditing workflow into your CI pipelines, ensuring that dependency scans and vulnerability checks run automatically before code merges.

How do I validate environment configurations and secure headers to prevent attacks?

Validate environment configurations and secure headers by following the provided hardening guidance for CORS and HTTP headers, which includes specific code examples to apply common security controls and reduce attack surface.