Security engineering

From aiskillstore/marketplace · View interactive version

Security engineering is an AI agent skill from the GitHub repository aiskillstore/marketplace. Security architecture and implementation patterns. Use when designing security controls, implementing authentication/authorization, conducting threat modeling, or ensuring compliance with security frameworks.

How to use this skill

Skill file

Security Engineering

Comprehensive security engineering skill covering application security, infrastructure security, compliance, and incident response.

When to Use This Skill

Security Architecture

Defense in Depth

Layer security controls at multiple levels:

| Layer | Controls |

|-------|----------|

| Perimeter | Firewall, WAF, DDoS protection |

| Network | Segmentation, IDS/IPS, VPN |

| Host | Hardening, EDR, patch management |

| Application | Input validation, secure coding, SAST/DAST |

| Data | Encryption, access control, DLP |

| Identity | MFA, SSO, privileged access management |

Zero Trust Architecture

Core Principles:

  1. Never trust, always verify
  2. Assume breach mentality
  3. Least privilege access
  4. Micro-segmentation
  5. Continuous verification

Implementation:

Authentication Patterns

OAuth 2.0 / OIDC

Grant Types:

| Grant | Use Case |

|-------|----------|

| Authorization Code + PKCE | Web/mobile apps |

| Client Credentials | Service-to-service |

| Device Code | CLI tools, IoT |

Token Best Practices:

Session Management

Multi-Factor Authentication

Authorization Patterns

RBAC (Role-Based Access Control)

Users → Roles → Permissions

Best for: Well-defined organizational hierarchies

ABAC (Attribute-Based Access Control)

If user.department == "engineering" AND
   resource.classification == "internal" AND
   time.hour BETWEEN 9 AND 17
THEN allow

Best for: Complex, dynamic access requirements

Policy as Code

Use OPA/Rego or Cedar for externalized policy:

Secure Development

OWASP Top 10 Mitigations

| Risk | Mitigation |

|------|------------|

| Injection | Parameterized queries, input validation |

| Broken Auth | Strong password policy, MFA, rate limiting |

| Sensitive Data | Encryption, minimal data collection |

| XXE | Disable external entities |

| Broken Access | Authorization checks, default deny |

| Misconfig | Secure defaults, hardening guides |

| XSS | Output encoding, CSP |

| Deserialization | Integrity checks, avoid untrusted data |

| Components | Dependency scanning, updates |

| Logging | Centralized logging, alerting |

Security Testing

SAST (Static Analysis):

DAST (Dynamic Analysis):

Dependency Scanning:

Secrets Management

Never:

Do:

Compliance Frameworks

Common Requirements

| Framework | Focus Area |

|-----------|------------|

| SOC 2 | Trust services (security, availability, etc.) |

| HIPAA | Healthcare data protection |

| PCI-DSS | Payment card data |

| GDPR | EU personal data protection |

| ISO 27001 | Information security management |

Key Controls

Incident Response

Response Phases

  1. Preparation: Runbooks, tools, training
  2. Detection: Monitoring, alerting, triage
  3. Containment: Isolate, preserve evidence
  4. Eradication: Remove threat, patch vulnerabilities
  5. Recovery: Restore services, verify clean
  6. Lessons Learned: Post-mortem, improvements

Severity Levels

| Level | Description | Response Time |

|-------|-------------|---------------|

| P1 | Active breach, data exfiltration | Immediate |

| P2 | Vulnerability being exploited | < 4 hours |

| P3 | High-risk vulnerability discovered | < 24 hours |

| P4 | Security improvement needed | Next sprint |

Reference Files

Integration with Other Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.