skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
kiraneswaran/engineering-skills2 installs

security-testing

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.

How do I install this agent skill?

npx skills add https://github.com/kiraneswaran/engineering-skills --skill security-testing
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill is an educational reference guide covering security best practices, testing strategies, and observability patterns. It contains no executable scripts or malicious patterns and provides safe code snippets to assist developers in building secure software.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    5 files scanned · No issues

What does this agent skill do?

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

#VulnerabilityPrevention
1Broken Access ControlRBAC, deny by default, audit logs
2Cryptographic FailuresTLS, strong algorithms, key management
3InjectionParameterized queries, input validation
4Insecure DesignThreat modeling, secure patterns
5Security MisconfigurationHardened defaults, minimal services
6Vulnerable ComponentsDependency scanning, updates
7Auth/Identity FailuresMFA, session management
8Software/Data IntegritySigned artifacts, CI/CD security
9Logging/Monitoring FailuresCentralized logs, alerting
10SSRFInput 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)
  /------------\
TypePurposeSpeedCoverage
UnitTest isolated logicFastHigh
IntegrationTest component interactionMediumMedium
E2ETest full user flowsSlowLow

Testing Best Practices

# Arrange-Act-Assert pattern
def test_user_creation():
    # Arrange
    user_data = {"name": "Alice", "email": "alice@acme.com"}
    
    # Act
    user = create_user(user_data)
    
    # Assert
    assert user.name == "Alice"
    assert user.email == "alice@acme.com"

# 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

PillarPurposeTools
LogsEvent recordsELK, CloudWatch
MetricsNumerical measurementsPrometheus, DataDog
TracesRequest flowsJaeger, 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

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/kiraneswaran/engineering-skills/security-testing">View security-testing on skillZs</a>