PE

performing-security-code-review

Scans codebases for OWASP Top 10 vulnerabilities and hardcoded secrets.

Install

mkdir -p .claude/skills/performing-security-code-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5401" && unzip -o skill.zip -d .claude/skills/performing-security-code-review && rm skill.zip

Installs to .claude/skills/performing-security-code-review

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Execute this skill enables AI assistant to conduct a security-focused
69 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Scan for hardcoded secrets
  • Analyze code for injection vulnerabilities
  • Review authentication and authorization logic
  • Audit dependencies for known vulnerabilities
  • Check for insecure communication patterns
  • Compile findings into a structured report

How it works

The skill scans source files for common vulnerability patterns, audits dependencies, and compiles findings into a severity-rated report with remediation steps.

Inputs & outputs

You give it
Source code files, dependency manifests
You get back
Structured security review report with findings and remediation guidance

When to use performing-security-code-review

  • Scanning for hardcoded secrets
  • Reviewing code for XSS vulnerabilities
  • Auditing project dependencies
  • Conducting pre-deployment security checks

About this skill

Performing Security Code Review

Overview

Conducts security-focused code reviews by scanning source files for common vulnerability patterns including SQL injection, XSS, authentication flaws, insecure dependencies, and secret exposure. Produces structured severity-rated reports with specific remediation guidance.

Prerequisites

  • Read access to all source files in the target project
  • grep available on PATH for pattern matching
  • Access to package.json or equivalent dependency manifest for dependency auditing
  • Familiarity with OWASP Top 10 vulnerability categories

Instructions

  1. Identify the scope of the review: specific files, directories, or the entire codebase. Confirm the primary language(s) and framework(s) in use.
  2. Scan for hardcoded secrets and credentials:
    • Search for patterns matching API keys, tokens, passwords, AWS access keys (AKIA...), and private key headers (BEGIN PRIVATE KEY).
    • Flag any .env files or configuration files containing plaintext secrets.
  3. Analyze code for injection vulnerabilities:
    • Identify raw SQL string concatenation (SQL injection risk).
    • Locate unsanitized user input rendered in HTML (XSS risk).
    • Check for eval(), exec(), or Function() calls with dynamic input (code injection risk).
  4. Review authentication and authorization logic:
    • Verify password hashing uses strong algorithms (bcrypt, argon2) rather than MD5/SHA1.
    • Check for missing authentication on sensitive endpoints.
    • Identify overly permissive CORS configurations.
  5. Audit dependencies for known vulnerabilities:
    • Run npm audit or equivalent package manager audit command.
    • Cross-reference dependency versions against known CVE databases.
  6. Check for insecure communication patterns:
    • Flag HTTP URLs where HTTPS is expected.
    • Identify disabled TLS certificate verification.
  7. Compile findings into a structured report sorted by severity (Critical, High, Medium, Low), including the vulnerable code location, explanation, and remediation steps.

Output

A structured security review report containing:

  • Summary with total findings count by severity level
  • Per-finding entries with: file path, line number, vulnerability type, severity, code snippet, explanation, and recommended fix
  • Dependency audit results with CVE identifiers where applicable
  • Overall risk assessment (Critical / High / Medium / Low / Clean)

Error Handling

ErrorCauseSolution
No source files foundIncorrect scope path or empty directoryVerify the target directory path and confirm it contains source files
Binary files in scanNon-text files matched by search patternsExclude binary extensions and node_modules/ from scans
Dependency manifest missingNo package.json, requirements.txt, or equivalentSkip dependency audit; note in report that dependency analysis was not possible
Permission denied on filesRestricted file accessRequest read permissions or narrow the review scope to accessible files
False positive on secret patternBenign string matching secret regexVerify context before reporting; mark as potential false positive if the match appears in test fixtures or documentation

Examples

SQL injection review: Trigger: "Review this database query code for SQL injection vulnerabilities." Process: Scan all files containing SQL query construction. Identify string concatenation with user input ("SELECT * FROM users WHERE id = " + userId). Report as High severity with remediation: use parameterized queries or prepared statements.

Dependency vulnerability scan: Trigger: "Check this project's dependencies for known security vulnerabilities." Process: Run npm audit on the project. Parse output for vulnerabilities. Report each finding with CVE identifier, affected package, installed version, and patched version. Recommend npm audit fix or manual version pinning.

Full codebase security audit: Trigger: "Run a security scan on this codebase." Process: Execute all seven scan categories (secrets, injection, auth, dependencies, communication, dangerous commands, obfuscation). Produce a comprehensive report with findings grouped by category and sorted by severity.

Resources

Prerequisites

Read access to all source files in the target projectgrep available on PATHAccess to package.json or equivalent dependency manifest

Limitations

  • No source files found if path is incorrect
  • Binary files in scan can cause false positives
  • Dependency manifest missing skips audit

How it compares

This skill conducts a security-focused code review by scanning for specific vulnerability patterns and auditing dependencies, providing a structured report with remediation guidance, unlike a general code review.

Compared to similar skills

performing-security-code-review side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
performing-security-code-review (this skill)127dReviewIntermediate
1password272moReviewIntermediate
software-security216moNo flagsIntermediate
security-compliance197moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

1password

openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

2799

software-security

project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

2186

security-compliance

davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.

1981

fix-dependabot-alerts

microsoft

Fix Dependabot security alerts by updating vulnerable npm dependencies. Use when the user mentions "dependabot", "security alerts", "vulnerability", "CVE", or wants to update packages with security issues.

1872

information-security-manager-iso27001

davila7

Senior Information Security Manager specializing in ISO 27001 and ISO 27002 implementation for HealthTech and MedTech companies. Provides ISMS implementation, cybersecurity risk assessment, security controls management, and compliance oversight. Use for ISMS design, security risk assessments, control implementation, and ISO 27001 certification activities.

1169

backend-security-coder

sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

2446

Search skills

Search the agent skills registry