name: performing-penetration-testing
description: Perform security penetration testing to identify vulnerabilities. Use when conducting security assessments. Trigger with 'run pentest', 'security testing', or 'find vulnerabilities'.
version: 1.0.0
allowed-tools:
- Read
- Write
- Edit
- Grep
- Glob
- Bash(security:*)
- Bash(scan:*)
- Bash(audit:*)
license: MIT
Overview
This skill automates the process of penetration testing for web applications, identifying vulnerabilities and suggesting exploitation techniques. It leverages the penetration-tester plugin to assess web application security posture.
How It Works
- Target Identification: Analyzes the user's request to identify the target web application or API endpoint.
- Vulnerability Scanning: Executes automated scans to discover potential vulnerabilities, covering OWASP Top 10 risks.
- Reporting: Generates a detailed penetration test report, including identified vulnerabilities, risk ratings, and remediation recommendations.
When to Use This Skill
This skill activates when you need to:
- Perform a penetration test on a web application.
- Identify vulnerabilities in a web application or API.
- Assess the security posture of a web application.
- Generate a report detailing security flaws and remediation steps.
Examples
Example 1: Performing a Full Penetration Test
User request: "Run a penetration test on example.com"
The skill will:
- Initiate a comprehensive penetration test on the specified domain.
- Generate a detailed report outlining identified vulnerabilities, including SQL injection, XSS, and CSRF.
Example 2: Assessing API Security
User request: "Perform vulnerability assessment on the /api/users endpoint"
The skill will:
- Target the specified API endpoint for vulnerability scanning.
- Identify potential security flaws in the API, such as authentication bypass or authorization issues, and provide remediation advice.
Best Practices
- Authorization: Always ensure you have explicit authorization before performing penetration testing on any system.
- Scope Definition: Clearly define the scope of the penetration test to avoid unintended consequences.
- Safe Exploitation: Use exploitation techniques carefully to demonstrate vulnerabilities without causing damage.
Integration
This skill can be integrated with other security tools and plugins to enhance vulnerability management and remediation efforts. For example, findings can be exported to vulnerability tracking systems.
Prerequisites
- Access to codebase and configuration files in {baseDir}/
- Security scanning tools installed as needed
- Understanding of security standards and best practices
- Permissions for security analysis operations
Instructions
- Identify security scan scope and targets
- Configure scanning parameters and thresholds
- Execute security analysis systematically
- Analyze findings for vulnerabilities and compliance gaps
- Prioritize issues by severity and impact
- Generate detailed security report with remediation steps
Output
- Security scan results with vulnerability details
- Compliance status reports by standard
- Prioritized list of security issues by severity
- Remediation recommendations with code examples
- Executive summary for stakeholders
Error Handling
If security scanning fails:
- Verify tool installation and configuration
- Check file and directory permissions
- Validate scan target paths
- Review tool-specific error messages
- Ensure network access for dependency checks
Resources
- Security standard documentation (OWASP, CWE, CVE)
- Compliance framework guidelines (GDPR, HIPAA, PCI-DSS)
- Security scanning tool documentation
- Vulnerability remediation best practices