jeremylongshore/tons-of-skills-marketplace / plugins/examples/security-agent/skills/performing-security-code-review
performing-security-code-review
VerifiedExecute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin. it analyzes code for potential vulnerabilities like sql injection, xss, authentication flaws, and insecure dependencies. AI assistant uses this skill wh... Use when assessing security or running audits. Trigger with phrases like 'security scan', 'audit', or 'vulnerability'.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.3 KB |
| assets/README.md | markdown | 424 B |
| assets/example_code_secure.py | script | 7.1 KB |
| assets/example_code_vulnerable.py | script | 6.1 KB |
| assets/report_template.md | markdown | 5.2 KB |
| references/README.md | markdown | 57 B |
| scripts/README.md | markdown | 448 B |
| scripts/code_analyzer.pyexecutable | script | 4.7 KB |
assets/report_template.md
View on GitHub# Security Review Report
**Date:** [Date of Review]
**Project:** [Project Name]
**Reviewer:** [Reviewer Name/Security Agent]
## Executive Summary
[Briefly summarize the overall security posture of the reviewed code. Highlight the most critical findings and recommendations.]
## Scope of Review
[Clearly define the scope of the review, including the specific files, modules, or components that were analyzed. Example: "This review covers the authentication module located in `/src/auth/` and the user profile management API endpoints."]
## Methodology
[Describe the methods used for the security review. Example: "The review involved static code analysis, manual code inspection, and dynamic testing with sample payloads."]
## Findings
### Critical Vulnerabilities
[List any critical vulnerabilities identified. Critical vulnerabilities pose an immediate and significant risk to the application and its users.]
**Vulnerability ID:** CRIT-001
**Description:** [Detailed description of the vulnerability, including its potential impact. Example: "SQL injection vulnerability in the user search functionality. An attacker can inject arbitrary SQL code via the `searchTerm` parameter, potentially leading to data leakage or modification."]
**Severity:** Critical
**Affected Component:** `/src/api/user_search.php`
**Proof of Concept:** [Provide a proof of concept demonstrating the vulnerability. Example: `curl -X GET "https://example.com/api/user_search.php?searchTerm='; DROP TABLE users; --"`]
**Recommendation:** [Provide specific and actionable recommendations for remediation. Example: "Implement parameterized queries or prepared statements to prevent SQL injection."]
### High Vulnerabilities
[List any high vulnerabilities identified. High vulnerabilities can lead to significant security breaches if exploited.]
**Vulnerability ID:** HIGH-002
**Description:** [Detailed description of the vulnerability, including its potential impact. Example: "Cross-site scripting (XSS) vulnerability in the user profile display. User-supplied input is not properly sanitized before being displayed, allowing an attacker to inject malicious JavaScript code."]
**Severity:** High
**Affected Component:** `/src/profile/display.php`
**Proof of Concept:** [Provide a proof of concept demonstrating the vulnerability. Example: `<script>alert('XSS')</script>` inserted into the user's profile name.]
**Recommendation:** [Provide specific and actionable recommendations for remediation. Example: "Implement proper output encoding using a library like OWASP Java Encoder or similar for your language."]
### Medium Vulnerabilities
[List any medium vulnerabilities identified. Medium vulnerabilities may not be directly exploitable but could be chained with other vulnerabilities or lead to privilege escalation.]
**Vulnerability ID:** MED-003
**Description:** [Detailed description of the vulnerability, including its potential impact. Example: "Insecure direct object reference (IDOR) vulnerability in the password reset functionality. An attacker can potentially reset the password of another user by manipulating the user ID in the password reset request."]
**Severity:** Medium
**Affected Component:** `/src/password_reset/reset.php`
**Proof of Concept:** [Provide a proof of concept demonstrating the vulnerability. Example: Changing the `userId` parameter in the password reset URL to another user's ID.]
**Recommendation:** [Provide specific and actionable recommendations for remediation. Example: "Implement proper authorization checks to ensure that users can only reset their own passwords. Use a random, non-predictable token for password reset links."]
### Low Vulnerabilities
[List any low vulnerabilities identified. Low vulnerabilities are typically minor issues that do not pose a significant risk but should still be addressed for best security practices.]
**Vulnerability ID:** LOW-004
**Description:** [Detailed description of the vulnerability, including its potential impact. Example: "Missing HTTP Strict Transport Security (HSTS) header. This can allow man-in-the-middle attacks to downgrade the connection to HTTP."]
**Severity:** Low
**Affected Component:** Web Server Configuration
**Proof of Concept:** [Provide a proof of concept demonstrating the vulnerability. Example: Checking the HTTP response headers with a tool like `curl -I` and observing the absence of the `Strict-Transport-Security` header.]
**Recommendation:** [Provide specific and actionable recommendations for remediation. Example: "Configure the web server to send the HSTS header with a long max-age and includeSubDomains directive."]
## General Recommendations
[Provide general recommendations for improving the overall security of the application. Examples:
* Implement a comprehensive security testing strategy.
* Keep all software and dependencies up to date.
* Follow secure coding practices.]
## Conclusion
[Summarize the key findings and recommendations. Emphasize the importance of addressing the identified vulnerabilities to protect the application and its users.]
**Disclaimer:** This security review is based on the information available at the time of the review. New vulnerabilities may be discovered in the future. It is important to continuously monitor and improve the security of the application.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |