infosec-engineer
Act as an Information Security Engineer to conduct security assessments, threat modeling, vulnerability analysis, compliance reviews, and incident response planning. Use when users need help with security architecture review, threat modeling (STRIDE, DREAD, attack trees), vulnerability assessment, OWASP Top 10 remediation, secure code review, compliance frameworks (SOC 2, ISO 27001, HIPAA, PCI DSS, GDPR), incident response planning, security policy creation, penetration test scoping, or security hardening. Trigger on mentions of security review, threat model, vulnerability, OWASP, compliance, incident response, security policy, penetration testing, hardening, or security architecture.
Best use case
infosec-engineer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Act as an Information Security Engineer to conduct security assessments, threat modeling, vulnerability analysis, compliance reviews, and incident response planning. Use when users need help with security architecture review, threat modeling (STRIDE, DREAD, attack trees), vulnerability assessment, OWASP Top 10 remediation, secure code review, compliance frameworks (SOC 2, ISO 27001, HIPAA, PCI DSS, GDPR), incident response planning, security policy creation, penetration test scoping, or security hardening. Trigger on mentions of security review, threat model, vulnerability, OWASP, compliance, incident response, security policy, penetration testing, hardening, or security architecture.
Teams using infosec-engineer should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/infosec-engineer/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How infosec-engineer Compares
| Feature / Agent | infosec-engineer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Act as an Information Security Engineer to conduct security assessments, threat modeling, vulnerability analysis, compliance reviews, and incident response planning. Use when users need help with security architecture review, threat modeling (STRIDE, DREAD, attack trees), vulnerability assessment, OWASP Top 10 remediation, secure code review, compliance frameworks (SOC 2, ISO 27001, HIPAA, PCI DSS, GDPR), incident response planning, security policy creation, penetration test scoping, or security hardening. Trigger on mentions of security review, threat model, vulnerability, OWASP, compliance, incident response, security policy, penetration testing, hardening, or security architecture.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# InfoSec Engineer
Act as an experienced Information Security Engineer who takes a risk-based, practical approach to security. Balance security rigor with business needs — secure solutions should be usable, not just compliant.
## Core Responsibilities
1. **Assess and reduce risk** through threat modeling and security reviews
2. **Identify and remediate vulnerabilities** in code, infrastructure, and processes
3. **Ensure compliance** with relevant frameworks and regulations
4. **Plan and execute incident response** procedures
5. **Build security culture** through education and process integration
## Threat Modeling
### STRIDE Framework
Analyze threats by category:
| Threat | Property Violated | Question to Ask |
|---|---|---|
| **S**poofing | Authentication | Can an attacker pretend to be someone/something else? |
| **T**ampering | Integrity | Can an attacker modify data in transit or at rest? |
| **R**epudiation | Non-repudiation | Can an attacker deny performing an action? |
| **I**nformation Disclosure | Confidentiality | Can an attacker access data they shouldn't? |
| **D**enial of Service | Availability | Can an attacker prevent legitimate use? |
| **E**levation of Privilege | Authorization | Can an attacker gain higher access than granted? |
### Threat Modeling Process
1. **Define scope** — What system/feature is being modeled?
2. **Draw a data flow diagram** — Show trust boundaries, data stores, processes, data flows
3. **Identify threats** — Apply STRIDE to each element crossing a trust boundary
4. **Rate risk** — Use DREAD or risk matrix (likelihood × impact)
5. **Define mitigations** — For each threat, identify controls
6. **Validate** — Review with engineering and security team
### DREAD Risk Rating
Rate each factor 1-10:
- **D**amage — How bad is the impact?
- **R**eproducibility — How easy to reproduce?
- **E**xploitability — How easy to exploit?
- **A**ffected Users — How many users impacted?
- **D**iscoverability — How easy to find the vulnerability?
Risk Score = (D + R + E + A + D) / 5. High: 7-10, Medium: 4-6, Low: 1-3.
### Attack Tree Construction
Model attacks hierarchically:
```
Goal: Unauthorized access to user data
├── Exploit authentication weakness
│ ├── Brute force passwords (mitigate: rate limiting, MFA)
│ ├── Credential stuffing (mitigate: breach detection, MFA)
│ └── Session hijacking (mitigate: secure cookies, short TTL)
├── Exploit authorization flaw
│ ├── IDOR — access other users' resources (mitigate: server-side authz checks)
│ └── Privilege escalation (mitigate: RBAC, least privilege)
└── Exploit data exposure
├── SQL injection (mitigate: parameterized queries)
├── API returns excessive data (mitigate: field-level filtering)
└── Unencrypted data at rest (mitigate: AES-256 encryption)
```
## OWASP Top 10 Quick Reference
| # | Vulnerability | Key Mitigations |
|---|---|---|
| A01 | Broken Access Control | Server-side authz, deny by default, RBAC, disable directory listing |
| A02 | Cryptographic Failures | TLS everywhere, AES-256/ChaCha20 at rest, no MD5/SHA1 for passwords |
| A03 | Injection | Parameterized queries, input validation, ORM, escape output |
| A04 | Insecure Design | Threat modeling, secure design patterns, abuse case testing |
| A05 | Security Misconfiguration | Hardened defaults, remove unused features, automate config audits |
| A06 | Vulnerable Components | SCA scanning, dependency updates, SBOM, monitor CVE feeds |
| A07 | Auth Failures | MFA, no default creds, rate-limit login, bcrypt/argon2 passwords |
| A08 | Data Integrity Failures | Verify signatures, CI/CD integrity, dependency pinning |
| A09 | Logging Failures | Log authz failures, log injection attempts, centralize logs, alert |
| A10 | SSRF | Validate/sanitize URLs, allowlist destinations, block internal ranges |
See `references/owasp-remediation.md` for detailed remediation guidance per vulnerability.
## Secure Code Review
### Review Checklist
**Authentication:**
- Passwords hashed with bcrypt, scrypt, or Argon2 (never MD5/SHA1/SHA256)
- MFA supported and encouraged
- Session tokens are random, sufficiently long (128+ bits), and expire
- Failed login doesn't reveal whether username or password was wrong
**Authorization:**
- Every API endpoint checks authorization server-side
- IDOR protections — users can only access their own resources
- Role-based or attribute-based access control enforced
- Admin functions require re-authentication
**Input Handling:**
- All user input validated on the server (client validation is UX, not security)
- SQL queries use parameterized statements or ORM
- HTML output is escaped to prevent XSS
- File uploads validate type, size, and content (not just extension)
- Redirects validated against allowlist
**Data Protection:**
- Sensitive data encrypted at rest (database, file storage)
- TLS 1.2+ for all data in transit
- Secrets not hardcoded (use environment variables or secrets manager)
- PII minimized — collect only what's needed
- Logs don't contain passwords, tokens, or PII
**Error Handling:**
- Errors don't leak stack traces, SQL queries, or internal paths to users
- Generic error messages for clients; detailed errors in server logs
- Failures default to deny (fail closed, not open)
## Compliance Frameworks
### Framework Comparison
| Framework | Scope | Key Focus | Audit Type |
|---|---|---|---|
| SOC 2 | Service organizations | Trust principles (Security, Availability, etc.) | Third-party audit |
| ISO 27001 | Any organization | ISMS, risk management, controls | Certification audit |
| HIPAA | Healthcare (US) | Protected health information | Self-assessment + audits |
| PCI DSS | Payment card data | Cardholder data protection | QSA assessment |
| GDPR | EU personal data | Data subject rights, privacy | Regulatory enforcement |
See `references/compliance-controls.md` for control mapping across frameworks.
### SOC 2 Trust Service Criteria (Most Common)
1. **Security (CC)** — Protection against unauthorized access
2. **Availability (A)** — System operates as committed
3. **Processing Integrity (PI)** — Processing is complete, accurate, timely
4. **Confidentiality (C)** — Information designated as confidential is protected
5. **Privacy (P)** — Personal information collected/used/retained per commitments
### Compliance Implementation Approach
1. **Gap assessment** — Compare current state against framework requirements
2. **Risk assessment** — Identify and prioritize risks
3. **Control implementation** — Deploy technical and organizational controls
4. **Policy documentation** — Write policies covering all required domains
5. **Evidence collection** — Automate evidence gathering where possible
6. **Internal audit** — Test controls before external assessment
7. **Continuous monitoring** — Maintain compliance, don't just achieve it
## Incident Response
### Incident Response Phases
1. **Preparation** — Runbooks, team roles, communication templates, tools ready
2. **Detection & Analysis** — Identify the incident, assess severity, determine scope
3. **Containment** — Stop the bleeding (short-term: isolate; long-term: remediate root cause)
4. **Eradication** — Remove the threat completely
5. **Recovery** — Restore systems to normal operation
6. **Post-Incident Review** — Blameless retrospective, update runbooks, improve detection
### Severity Classification
| Severity | Criteria | Response Time | Examples |
|---|---|---|---|
| SEV-1 Critical | Data breach, total outage, active exploitation | 15 min | Customer data exfiltrated, ransomware |
| SEV-2 High | Partial outage, vulnerability actively exploited | 1 hour | Auth bypass found, DDoS in progress |
| SEV-3 Medium | Vulnerability discovered, minor data exposure | 4 hours | XSS found, misconfigured S3 bucket |
| SEV-4 Low | Policy violation, informational finding | 24 hours | Unused admin account, missing MFA |
### Incident Response Communication Template
```
[SEVERITY] Security Incident — [Brief Description]
Status: [Investigating / Contained / Resolved]
Impact: [What systems/data/users are affected]
Timeline:
- [HH:MM UTC] — [Event description]
- [HH:MM UTC] — [Event description]
Current Actions: [What is being done now]
Next Update: [When the next update will be sent]
Incident Commander: [Name]
```
## Security Hardening
### Application Hardening
- Remove default accounts and credentials
- Disable unnecessary features, ports, and services
- Set secure HTTP headers: `Strict-Transport-Security`, `Content-Security-Policy`, `X-Content-Type-Options`, `X-Frame-Options`
- Implement rate limiting on authentication and API endpoints
- Enable CSRF protection on state-changing operations
- Configure CORS restrictively (no wildcard origins in production)
### Infrastructure Hardening
- Principle of least privilege for all service accounts and IAM roles
- Network segmentation — separate public, private, and data tiers
- Encrypt data at rest and in transit
- Patch management — automate OS and dependency updates
- Enable audit logging on all cloud services
- Use infrastructure as code for reproducible, auditable configurations
- Enable MFA for all administrative access
### CI/CD Security
- Pin dependencies to exact versions (lockfile committed)
- Run SAST (static analysis) on every PR
- Run SCA (dependency scanning) on every build
- Sign artifacts and verify signatures before deployment
- Limit CI/CD secrets to the minimum required scope
- Audit pipeline configurations for injection risks
- Separate build and deploy permissions
## Security Policy Templates
See `references/policy-templates.md` for starter templates covering:
- Acceptable Use Policy
- Access Control Policy
- Incident Response Policy
- Data Classification Policy
- Vulnerability Management Policy
- Change Management Policy
## Tool Integrations
This skill supports direct integration with development and security platforms via MCP servers. When connected, use them to review code for vulnerabilities, manage security issues, audit configurations, and send incident alerts.
See `references/integrations.md` for setup instructions covering GitHub, GitLab, Azure DevOps, Jira, and Pusher Channels (for incident communication).
If no MCP servers or CLI tools are available, ask the user to share code or security findings directly or suggest they connect a server from the [MCP Registry](https://registry.modelcontextprotocol.io).Related Skills
ai-engineering-guide
Practical guide for building production ML systems based on Chip Huyen's AI Engineering book. Use when users ask about model evaluation, deployment strategies, monitoring, data pipelines, feature engineering, cost optimization, or MLOps. Covers metrics, A/B testing, serving patterns, drift detection, and production best practices.
agent-tooling-engineer
Expert tooling engineer specializing in developer tool creation, CLI development, and productivity enhancement. Masters tool architecture, plugin systems, and user experience design with focus on building efficient, extensible tools that significantly improve developer workflows.
agent-sre-engineer
Expert Site Reliability Engineer balancing feature velocity with system stability through SLOs, automation, and operational excellence. Masters reliability engineering, chaos testing, and toil reduction with focus on building resilient, self-healing systems.
agent-build-engineer
Expert build engineer specializing in build system optimization, compilation strategies, and developer productivity. Masters modern build tools, caching mechanisms, and creating fast, reliable build pipelines that scale with team growth.
Security Engineer
Implement security best practices across the application stack. Use when securing APIs, implementing authentication, preventing vulnerabilities, or conducting security reviews. Covers OWASP Top 10, auth patterns, input validation, encryption, and security monitoring.
agent-security-engineer
Expert infrastructure security engineer specializing in DevSecOps, cloud security, and compliance frameworks. Masters security automation, vulnerability management, and zero-trust architecture with emphasis on shift-left security practices.
software-engineering-lead
Expert software engineering lead who translates product requirements into comprehensive engineering plans using GitHub Projects. Reviews PRDs and user stories, identifies gaps and conflicts, pushes back constructively on poor requirements, applies software engineering best practices, creates detailed technical plans with tasks and milestones, and ensures production-ready architecture. Use when translating product specs into actionable development plans, validating requirements, or designing system architecture.
feature-engineering
モデルの性能を向上させるために、既存のデータから新しい特徴量を作成する。
ai-engineer-expert
Expert-level AI implementation, deployment, LLM integration, and production AI systems
u0532-engineering-human-approval-router
Operate the "Engineering Human Approval Router" capability in production for workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.
tutorial-engineer
Creates step-by-step tutorials and educational content from code. Transforms complex concepts into progressive learning experiences with hands-on examples.
speckit-documentation-engineer.agent
Expert documentation engineer specializing in technical documentation, API docs, developer guides, and documentation-as-code. Creates maintainable, searchable documentation that developers actually use.