Purpose
AI assistants can support security engineering through code analysis, threat identification, configuration review and incident response.
Workflows
Vulnerability Identification
Prompt Pattern
Review this code for security vulnerabilities:
```[language]
[paste code]
Focus on:
- SQL injection.
- Cross-site scripting (XSS).
- Insecure direct object references.
- Authentication and authorization gaps.
- Sensitive data exposure.
For each finding, describe:
- The vulnerability.
- How it could be exploited.
- How to fix it.
## Threat Modeling Assistance
### Prompt Pattern
Help me threat model this system using STRIDE:
System Description [describe the system, architecture, data flows]
Trust Boundaries [describe where trust boundaries exist]
For each STRIDE category:
- Identify potential threats.
- Rate the likelihood and impact.
- Suggest mitigations.
## Security Configuration Review
### Prompt Pattern
Review this security configuration for best practices:
[paste configuration]
Check for:
- Missing security headers.
- Weak cipher configurations.
- Permissive access controls.
- Debug or development settings enabled.
- Exposed secrets or credentials.
Suggest fixes for any issues found.
## Incident Analysis
### Prompt Pattern
Help me analyze this security incident:
Timeline [describe the sequence of events]
Logs [paste relevant logs]
System Context [describe affected system]
Questions:
- What is the most likely root cause?
- What is the blast radius?
- What immediate containment steps are needed?
- What long-term remediation is recommended?
# Related Documents
- [Security Engineering Handbook](../handbooks/security/)
- [Security Review Playbook](../playbooks/security-review/)
- [Secure Coding Guide](../guides/security/secure-coding/)
- [AI Workflows for Engineering](../prompts/engineering-ai-workflows/)