ihkreddy/agent-skills-ts/security-scan

Claude Code and agent skill by ihkreddy/agent-skills-ts

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Run security checks before PR including secrets, vulnerabilities, and best practices

Install

npx vskill@latest install ihkreddy/agent-skills-ts/security-scan

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

Security Scan

Performs comprehensive security analysis before PR submission, checking for secrets, vulnerabilities, insecure patterns, and security best practices.

🎯 Use Case Demo

Scenario: Pre-PR Security Review

Before (Manual Process):

Developer ready to submit PR, tries to remember security checks:
- "Did I accidentally commit any secrets?"
- "Are my dependencies secure?"
- "Is my input validation sufficient?"
- Forgets to check, security issue found in review (or worse, production)
Time: Often skipped, caught late or never

After (With This Skill):

Developer: "Run security scan before I create PR"
Agent Response:
```
🔐 SECURITY SCAN REPORT
═══════════════════════════════════════════════════════════════
📅 Scan Date: December 20, 2024
📁 Files Scanned: 12 changed files
🔍 Branch: feature/payment-integration
═══════════════════════════════════════════════════════════════
📊 SCAN SUMMARY
═══════════════════════════════════════════════════════════════
| Category | Status | Issues |
|----------|--------|--------|
| Secrets Detection | 🔴 FAIL | 2 found |
| Dependency Vulnerabilities | 🟡 WARN | 1 medium |
| Input Validation | 🔴 FAIL | 3 missing |
| SQL Injection | ✅ PASS | 0 found |
| XSS Prevention | ✅ PASS | 0 found |
| Authentication | ✅ PASS | Properly secured |
| Logging Security | 🟡 WARN | PII in logs |
Overall: 🔴 BLOCKED - Fix critical issues before PR
═══════════════════════════════════════════════════════════════
🚨 CRITICAL: SECRETS DETECTED
═══════════════════════════════════════════════════════════════
⛔ MUST FIX BEFORE PR - These will block your commit
1. API Key Detected
📍 Services/PaymentService.cs:34
```csharp
private const string StripeKey = "sk_live_XXXXXXXXXXXXXXXXXXXX";
```
🔧 Fix: Move to environment variable or secrets manager
```csharp
private readonly string _stripeKey = Environment.GetEnvironmentVariable("STRIPE_API_KEY");
```
2. Connection String with Password
📍 appsettings.json:12
```json
"ConnectionString": "Server=db.prod.com;Password=SuperSecret123!"
```
🔧 Fix: Use Azure Key Vault or environment variables
═══════════════════════════════════════════════════════════════
🔴 INPUT VALIDATION MISSING
═══════════════════════════════════════════════════════════════
1. Missing Validation: CreateBooking endpoint
📍 Controllers/BookingsController.cs:45
```csharp
public async Task<IActionResult> Create([FromBody] BookingRequest request)
{
// No validation before processing
await _service.CreateBooking(request);
```
🔧 Fix: Add FluentValidation or DataAnnotations
```csharp
public async Task<IActionResult> Create([FromBody] BookingRequest request)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
```
2. Email Not Validated
📍 Models/BookingRequest.cs:15
```csharp
public string Email { get; set; } // No validation
```
🔧 Fix: Add email validation attribute
```csharp
[Required]
[EmailAddress]
public string Email { get; set; }
```
3. Numeric Range Not Checked
📍 Models/SearchRequest.cs:8
```csharp
public int Passengers { get; set; } // Could be negative or huge
```
🔧 Fix: Add range validation
```csharp
[Range(1, 9)]
public int Passengers { get; set; }
```
═══════════════════════════════════════════════════════════════
🟡 WARNINGS (Recommended Fixes)
═══════════════════════════════════════════════════════════════
1. Dependency Vulnerability
📦 System.Text.Json 7.0.2
CVE: CVE-2024-1234 (Medium severity)
Fix: Upgrade to 7.0.4
```
dotnet add package System.Text.Json --version 7.0.4
```
2. PII in Logs
📍 Services/BookingService.cs:89
```csharp
_logger.LogInformation($"Booking created for {request.Email}");
```
🔧 Fix: Mask or remove PII from logs
```csharp
_logger.LogInformation($"Booking created for {MaskEmail(request.Email)}");
```
═══════════════════════════════════════════════════════════════
✅ PASSED CHECKS
═══════════════════════════════════════════════════════════════
✅ No SQL injection vulnerabilities
- All queries use parameterized statements
- Entity Framework properly configured
✅ No XSS vulnerabilities
- Output encoding in place
- Content-Security-Policy configured
✅ Authentication properly implemented
- JWT validation configured
- Endpoints have [Authorize] attributes
✅ HTTPS enforced
- UseHttpsRedirection() in place
- HSTS configured
═══════════════════════════════════════════════════════════════
📋 ACTION REQUIRED
═══════════════════════════════════════════════════════════════
Before creating PR, you must:
□ Remove hardcoded secrets (2 issues)
□ Add input validation (3 issues)
Recommended (not blocking):
□ Update vulnerable dependency
□ Remove PII from logs
Run "Apply security fixes" to auto-fix where possible.
═══════════════════════════════════════════════════════════════
```

Result: Potential security breach prevented before code even reaches review


Agent Instructions

When this skill is activated:

  1. Secrets Detection:
  • Scan for API keys, tokens, passwords
  • Check for patterns: sk_live_, api_key, password=
  • Look in: source files, config files, .env files
  • Check git history for accidentally committed secrets
  1. Dependency Vulnerabilities:
  • Run dotnet list package --vulnerable
  • Check npm audit for Node.js
  • Cross-reference with CVE databases
  1. Input Validation:
  • Check all API endpoints for validation
  • Verify model attributes (Required, Range, etc.)
  • Look for raw string inputs without sanitization
  1. SQL Injection:
  • Look for string concatenation in queries
  • Verify parameterized queries usage
  • Check raw SQL execution
  1. XSS Prevention:
  • Check output encoding
  • Verify CSP headers
  • Look for @Html.Raw() usage
  1. Authentication/Authorization:
  • Verify [Authorize] attributes on endpoints
  • Check JWT configuration
  • Look for authorization bypass patterns
  1. Logging Security:
  • Check for PII in log statements
  • Verify sensitive data not logged
  1. Generate Report:
  • Categorize by severity
  • Provide specific fix recommendations
  • Block PR if critical issues found
Example Prompts
  • "Run security scan before PR"
  • "Check for security vulnerabilities"
  • "Are there any hardcoded secrets?"
  • "Scan my changes for security issues"
  • "Pre-commit security check"

Checks Performed

CheckDescriptionSeverity
SecretsAPI keys, passwords, tokens🔴 Critical
SQL InjectionUnsanitized queries🔴 Critical
Input ValidationMissing or weak validation🔴 High
DependenciesKnown CVEs🟡 Medium
XSSCross-site scripting🔴 High
PII LoggingPersonal data in logs🟡 Medium
Auth BypassMissing authorization🔴 Critical

Benefits

MetricBeforeAfterImprovement
Security issues caughtIn productionBefore PR100% earlier
Time to detect secretsDays/weeksSecondsImmediate
Developer security knowledgeVariableGuidedLearning tool
Security review timeHoursMinutes90% faster

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository npm downloads, 7 days
144
7-day trend score
13

Downloads are for the repository's npm package. Refreshed 30 Mar 2026, 8 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ihkreddy/agent-skills-ts/security-scan/badge)](https://verified-skill.com/skills/ihkreddy/agent-skills-ts/security-scan)

Something wrong with this skill or its page? Tell us.