smithery.ai

security-testing

Security best practices (OWASP Top 10) and testing strategies for software development.

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Summary

  • Security best practices (OWASP Top 10) and testing strategies for software development.
  • Covers secure coding, vulnerability prevention, testing pyramid, API design, and observability patterns.
  • Use when reviewing code for security, writing tests, designing APIs, or when asking about security vulnerabilities, testing strategies, logging, or monitoring.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,015 B
  • docs SUMMARY.md 376 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Security & Testing

Security Principles

  1. Defense in Depth: Multiple layers of security
  2. Least Privilege: Minimum necessary permissions
  3. Fail Secure: Default to deny
  4. Zero Trust: Never trust, always verify

OWASP Top 10 Quick Reference

# Vulnerability Prevention
1 Broken Access Control RBAC, deny by default, audit logs
2 Cryptographic Failures TLS, strong algorithms, key management
3 Injection Parameterized queries, input validation
4 Insecure Design Threat modeling, secure patterns
5 Security Misconfiguration Hardened defaults, minimal services
6 Vulnerable Components Dependency scanning, updates
7 Auth/Identity Failures MFA, session management
8 Software/Data Integrity Signed artifacts, CI/CD security
9 Logging/Monitoring Failures Centralized logs, alerting
10 SSRF Input validation, allowlists

Security Checklist

  • No hardcoded secrets
  • Secrets not logged
  • Input validation on all boundaries
  • Parameterized queries
  • Dependencies scanned for CVEs
  • Authentication & authorization implemented
  • HTTPS enforced
  • Security headers configured
  • Rate limiting in place
  • Audit logging enabled

Testing Pyramid

        /\
       /  \     E2E Tests (few)
      /----\
     /      \   Integration Tests
    /--------\
   /          \ Unit Tests (many)
  /------------\
Type Purpose Speed Coverage
Unit Test isolated logic Fast High
Integration Test component interaction Medium Medium
E2E Test full user flows Slow Low

Testing Best Practices

# Arrange-Act-Assert pattern
def test_user_creation():
    # Arrange
    user_data = {"name": "Alice", "email": "[email protected]"}
    
    # Act
    user = create_user(user_data)
    
    # Assert
    assert user.name == "Alice"
    assert user.email == "[email protected]"

# Test edge cases
def test_empty_input():
    with pytest.raises(ValueError):
        create_user({})

def test_invalid_email():
    with pytest.raises(ValidationError):
        create_user({"name": "Bob", "email": "invalid"})

API Security

# Essential security headers
Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000; includeSubDomains
# Rate limiting
from flask_limiter import Limiter
limiter = Limiter(key_func=get_remote_address)

@app.route("/api/login")
@limiter.limit("5 per minute")
def login():
    pass

Observability

Three Pillars

Pillar Purpose Tools
Logs Event records ELK, CloudWatch
Metrics Numerical measurements Prometheus, DataDog
Traces Request flows Jaeger, X-Ray

Structured Logging

logger.info("User action", extra={
    "user_id": user.id,
    "action": "login",
    "ip": request.remote_addr,
    "timestamp": datetime.utcnow().isoformat()
})

Detailed References

  • OWASP Security: See [references/owasp-security.md](references/owasp-security.md)
  • Testing Strategies: See [references/testing-strategies.md](references/testing-strategies.md)
  • API Design: See [references/api-design.md](references/api-design.md)
  • Observability: See [references/observability.md](references/observability.md)