Senior Security Engineer
⚠️ AUTHORIZED USE ONLY
This skill is for educational purposes or authorized security assessments only.
You must have explicit, written permission from the system owner before using this tool.
Misuse of this tool is illegal and strictly prohibited.
Security engineering tools for threat modeling, vulnerability analysis, secure architecture design, and penetration testing.
Table of Contents
Threat Modeling Workflow
Identify and analyze security threats using STRIDE methodology.
Workflow: Conduct Threat Model
- Define system scope and boundaries:
- Identify assets to protect
- Map trust boundaries
- Document data flows
- Create data flow diagram:
- External entities (users, services)
- Processes (application components)
- Data stores (databases, caches)
- Data flows (APIs, network connections)
- Apply STRIDE to each DFD element (see STRIDE per Element Matrix below)
- Score risks using DREAD:
- Damage potential (1-10)
- Reproducibility (1-10)
- Exploitability (1-10)
- Affected users (1-10)
- Discoverability (1-10)
- Prioritize threats by risk score
- Define mitigations for each threat
- Document in threat model report
- Validation: All DFD elements analyzed; STRIDE applied; threats scored; mitigations mapped
STRIDE Threat Categories
| Category |
Security Property |
Mitigation Focus |
| Spoofing |
Authentication |
MFA, certificates, strong auth |
| Tampering |
Integrity |
Signing, checksums, validation |
| Repudiation |
Non-repudiation |
Audit logs, digital signatures |
| Information Disclosure |
Confidentiality |
Encryption, access controls |
| Denial of Service |
Availability |
Rate limiting, redundancy |
| Elevation of Privilege |
Authorization |
RBAC, least privilege |
STRIDE per Element Matrix
| DFD Element |
S |
T |
R |
I |
D |
E |
| External Entity |
X |
|
X |
|
|
|
| Process |
X |
X |
X |
X |
X |
X |
| Data Store |
|
X |
X |
X |
X |
|
| Data Flow |
|
X |
|
X |
X |
|
See: references/threat-modeling-guide.md
Security Architecture Workflow
Design secure systems using defense-in-depth principles.
Workflow: Design Secure Architecture
- Define security requirements:
- Compliance requirements (GDPR, HIPAA, PCI-DSS)
- Data classification (public, internal, confidential, restricted)
- Threat model inputs
- Apply defense-in-depth layers:
- Perimeter: WAF, DDoS protection, rate limiting
- Network: Segmentation, IDS/IPS, mTLS
- Host: Patching, EDR, hardening
- Application: Input validation, authentication, secure coding
- Data: Encryption at rest and in transit
- Implement Zero Trust principles:
- Verify explicitly (every request)
- Least privilege access (JIT/JEA)
- Assume breach (segment, monitor)
- Configure authentication and authorization:
- Identity provider selection
- MFA requirements
- RBAC/ABAC model
- Design encryption strategy:
- Key management approach
- Algorithm selection
- Certificate lifecycle
- Plan security monitoring:
- Log aggregation
- SIEM integration
- Alerting rules
- Document architecture decisions
- Validation: Defense-in-depth layers defined; Zero Trust applied; encryption strategy documented; monitoring planned
Defense-in-Depth Layers
Layer 1: PERIMETER
WAF, DDoS mitigation, DNS filtering, rate limiting
Layer 2: NETWORK
Segmentation, IDS/IPS, network monitoring, VPN, mTLS
Layer 3: HOST
Endpoint protection, OS hardening, patching, logging
Layer 4: APPLICATION
Input validation, authentication, secure coding, SAST
Layer 5: DATA
Encryption at rest/transit, access controls, DLP, backup
Authentication Pattern Selection
| Use Case |
Recommended Pattern |
| Web application |
OAuth 2.0 + PKCE with OIDC |
| API authentication |
JWT with short expiration + refresh tokens |
| Service-to-service |
mTLS with certificate rotation |
| CLI/Automation |
API keys with IP allowlisting |
| High security |
FIDO2/WebAuthn hardware keys |
See: references/security-architecture-patterns.md
Vulnerability Assessment Workflow
Identify and remediate security vulnerabilities in applications.
Workflow: Conduct Vulnerability Assessment
- Define assessment scope:
- In-scope systems and applications
- Testing methodology (black box, gray box, white box)
- Rules of engagement
- Gather information:
- Technology stack inventory
- Architecture documentation
- Previous vulnerability reports
- Perform automated scanning:
- SAST (static analysis)
- DAST (dynamic analysis)
- Dependency scanning
- Secret detection
- Conduct manual testing:
- Business logic flaws
- Authentication bypass
- Authorization issues
- Injection vulnerabilities
- Classify findings by severity:
- Critical: Immediate exploitation risk
- High: Significant impact, easier to exploit
- Medium: Moderate impact or difficulty
- Low: Minor impact
- Develop remediation plan:
- Prioritize by risk
- Assign owners
- Set deadlines
- Verify fixes and document
- Validation: Scope defined; automated and manual testing complete; findings classified; remediation tracked
For OWASP Top 10 vulnerability descriptions and testing guidance, refer to owasp.org/Top10.
Vulnerability Severity Matrix
| Impact \ Exploitability |
Easy |
Moderate |
Difficult |
| Critical |
Critical |
Critical |
High |
| High |
Critical |
High |
Medium |
| Medium |
High |
Medium |
Low |
| Low |
Medium |
Low |
Low |
Secure Code Review Workflow
Review code for security vulnerabilities before deployment.
Workflow: Conduct Security Code Review
- Establish review scope:
- Changed files and functions
- Security-sensitive areas (auth, crypto, input handling)
- Third-party integrations
- Run automated analysis:
- SAST tools (Semgrep, CodeQL, Bandit)
- Secret scanning
- Dependency vulnerability check
- Review authentication code:
- Password handling (hashing, storage)
- Session management
- Token validation
- Review authorization code:
- Access control checks
- RBAC implementation
- Privilege boundaries
- Review data handling:
- Input validation
- Output encoding
- SQL query construction
- File path handling
- Review cryptographic code:
- Algorithm selection
- Key management
- Random number generation
- Document findings with severity
- Validation: Automated scans passed; auth/authz reviewed; data handling checked; crypto verified; findings documented
Security Code Review Checklist
| Category |
Check |
Risk |
| Input Validation |
All user input validated and sanitized |
Injection |
| Output Encoding |
Context-appropriate encoding applied |
XSS |
| Authentication |
Passwords hashed with Argon2/bcrypt |
Credential theft |
| Session |
Secure cookie flags set (HttpOnly, Secure, SameSite) |
Session hijacking |
| Authorization |
Server-side permission checks on all endpoints |
Privilege escalation |
| SQL |
Parameterized queries used exclusively |
SQL injection |
| File Access |
Path traversal sequences rejected |
Path traversal |
| Secrets |
No hardcoded credentials or keys |
Information disclosure |
| Dependencies |
Known vulnerable packages updated |
Supply chain |
| Logging |
Sensitive data not logged |
Information disclosure |
Secure vs Insecure Patterns
| Pattern |
Issue |
Secure Alternative |
| SQL string formatting |
SQL injection |
Use parameterized queries with placeholders |
| Shell command building |
Command injection |
Use subprocess with argument lists, no shell |
| Path concatenation |
Path traversal |
Validate and canonicalize paths |
| MD5/SHA1 for passwords |
Weak hashing |
Use Argon2id or bcrypt |
| Math.random for tokens |
Predictable values |
Use crypto.getRandomValues |
Inline Code Examples
SQL Injection — insecure vs. secure (Python):
# ❌ Insecure: string formatting allows SQL injection
query = f"SELECT * FROM users WHERE username = '{username}'"
cursor.execute(query)
# ✅ Secure: parameterized query — user input never interpreted as SQL
query = "SELECT * FROM users WHERE username = %s"
cursor.execute(query, (username,))
Password Hashing with Argon2id (Python):
from argon2 import PasswordHasher
ph = PasswordHasher() # uses secure defaults (time_cost, memory_cost)
# On registration
hashed = ph.hash(plain_password)
# On login — raises argon2.exceptions.VerifyMismatchError on failure
ph.verify(hashed, plain_password)
Secret Scanning — core pattern matching (Python):
import re, pathlib
SECRET_PATTERNS = {
"aws_access_key": re.compile(r"AKIA[0-9A-Z]{16}"),
"github_token": re.compile(r"ghp_[A-Za-z0-9]{36}"),
"private_key": re.compile(r"-----BEGIN (RSA |EC )?PRIVATE KEY-----"),
"generic_secret": re.compile(r'(?i)(password|secret|api_key)\s*=\s*["']?\S{8,}'),
}
def scan_file(path: pathlib.Path) -> list[dict]:
findings = []
for lineno, line in enumerate(path.read_text(errors="replace").splitlines(), 1):
for name, pattern in SECRET_PATTERNS.items():
if pattern.search(line):
findings.append({"file": str(path), "line": lineno, "type": name})
return findings
Incident Response Workflow
Respond to and contain security incidents.
Workflow: Handle Security Incident
- Identify and triage:
- Validate incident is genuine
- Assess initial scope and severity
- Activate incident response team
- Contain the threat:
- Isolate affected systems
- Block malicious IPs/accounts
- Disable compromised credentials
- Eradicate root cause:
- Remove malware/backdoors
- Patch vulnerabilities
- Update configurations
- Recover operations:
- Restore from clean backups
- Verify system integrity
- Monitor for recurrence
- Conduct post-mortem:
- Timeline reconstruction
- Root cause analysis
- Lessons learned
- Implement improvements:
- Update detection rules
- Enhance controls
- Update runbooks
- Document and report
- Validation: Threat contained; root cause eliminated; systems recovered; post-mortem complete; improvements implemented
Incident Severity Levels
| Level |
Response Time |
Escalation |
| P1 - Critical (active breach/exfiltration) |
Immediate |
CISO, Legal, Executive |
| P2 - High (confirmed, contained) |
1 hour |
Security Lead, IT Director |
| P3 - Medium (potential, under investigation) |
4 hours |
Security Team |
| P4 - Low (suspicious, low impact) |
24 hours |
On-call engineer |
Incident Response Checklist
| Phase |
Actions |
| Identification |
Validate alert, assess scope, determine severity |
| Containment |
Isolate systems, preserve evidence, block access |
| Eradication |
Remove threat, patch vulnerabilities, reset credentials |
| Recovery |
Restore services, verify integrity, increase monitoring |
| Lessons Learned |
Document timeline, identify gaps, update procedures |
Security Tools Reference
Recommended Security Tools
| Category |
Tools |
| SAST |
Semgrep, CodeQL, Bandit (Python), ESLint security plugins |
| DAST |
OWASP ZAP, Burp Suite, Nikto |
| Dependency Scanning |
Snyk, Dependabot, npm audit, pip-audit |
| Secret Detection |
GitLeaks, TruffleHog, detect-secrets |
| Container Security |
Trivy, Clair, Anchore |
| Infrastructure |
Checkov, tfsec, ScoutSuite |
| Network |
Wireshark, Nmap, Masscan |
| Penetration |
Metasploit, sqlmap, Burp Suite Pro |
Cryptographic Algorithm Selection
| Use Case |
Algorithm |
Key Size |
| Symmetric encryption |
AES-256-GCM |
256 bits |
| Password hashing |
Argon2id |
N/A (use defaults) |
| Message authentication |
HMAC-SHA256 |
256 bits |
| Digital signatures |
Ed25519 |
256 bits |
| Key exchange |
X25519 |
256 bits |
| TLS |
TLS 1.3 |
N/A |
See: references/cryptography-implementation.md
Tools and References
Scripts
| Script |
Purpose |
| threat_modeler.py |
STRIDE threat analysis with DREAD risk scoring; JSON and text output; interactive guided mode |
| secret_scanner.py |
Detect hardcoded secrets and credentials across 20+ patterns; CI/CD integration ready |
For usage, see the inline code examples in Secure Code Review Workflow and the script source files directly.
References
| Document |
Content |
| security-architecture-patterns.md |
Zero Trust, defense-in-depth, authentication patterns, API security |
| threat-modeling-guide.md |
STRIDE methodology, attack trees, DREAD scoring, DFD creation |
| cryptography-implementation.md |
AES-GCM, RSA, Ed25519, password hashing, key management |
Security Standards Reference
Security Headers Checklist
| Header |
Recommended Value |
| Content-Security-Policy |
default-src self; script-src self |
| X-Frame-Options |
DENY |
| X-Content-Type-Options |
nosniff |
| Strict-Transport-Security |
max-age=31536000; includeSubDomains |
| Referrer-Policy |
strict-origin-when-cross-origin |
| Permissions-Policy |
geolocation=(), microphone=(), camera=() |
For compliance framework requirements (OWASP ASVS, CIS Benchmarks, NIST CSF, PCI-DSS, HIPAA, SOC 2), refer to the respective official documentation.
Related Skills
When to Use
Security engineering toolkit for threat modeling, vulnerability analysis, secure architecture, and penetration testing. Includes STRIDE analysis, OWASP guidance, cryptography patterns, and security scanning tools.
Covers: Senior Security Engineer, Threat Modeling Workflow, Workflow: Conduct Threat Model, STRIDE Threat Categories, STRIDE per Element Matrix.
1---2name: senior-security3description: Security engineering toolkit for threat modeling, vulnerability analysis,4 secure architecture, and penetration testing. Includes STRIDE analysis, OWASP guidance,5 cryptography patterns, and security scanning tools. Use when the user asks about6 security reviews, threat analysis, vulnerability asses...7triggers:8- security architecture9- threat modeling10- STRIDE analysis11- penetration testing12- vulnerability assessment13- secure coding14- OWASP15- application security16- cryptography implementation17- secret scanning18- security audit19- zero trust20risk: offensive21source: community22license: MIT23metadata:24 source: https://skillmd.com/skills/jantoniofc/senior-security25---2627# Senior Security Engineer2829> **⚠️ AUTHORIZED USE ONLY**30> This skill is for educational purposes or authorized security assessments only.31> You must have explicit, written permission from the system owner before using this tool.32> Misuse of this tool is illegal and strictly prohibited.3334Security engineering tools for threat modeling, vulnerability analysis, secure architecture design, and penetration testing.3536---3738## Table of Contents3940- [Threat Modeling Workflow](#threat-modeling-workflow)41- [Security Architecture Workflow](#security-architecture-workflow)42- [Vulnerability Assessment Workflow](#vulnerability-assessment-workflow)43- [Secure Code Review Workflow](#secure-code-review-workflow)44- [Incident Response Workflow](#incident-response-workflow)45- [Security Tools Reference](#security-tools-reference)46- [Tools and References](#tools-and-references)4748---4950## Threat Modeling Workflow5152Identify and analyze security threats using STRIDE methodology.5354### Workflow: Conduct Threat Model55561. Define system scope and boundaries:57 - Identify assets to protect58 - Map trust boundaries59 - Document data flows602. Create data flow diagram:61 - External entities (users, services)62 - Processes (application components)63 - Data stores (databases, caches)64 - Data flows (APIs, network connections)653. Apply STRIDE to each DFD element (see [STRIDE per Element Matrix](#stride-per-element-matrix) below)664. Score risks using DREAD:67 - Damage potential (1-10)68 - Reproducibility (1-10)69 - Exploitability (1-10)70 - Affected users (1-10)71 - Discoverability (1-10)725. Prioritize threats by risk score736. Define mitigations for each threat747. Document in threat model report758. **Validation:** All DFD elements analyzed; STRIDE applied; threats scored; mitigations mapped7677### STRIDE Threat Categories7879| Category | Security Property | Mitigation Focus |80|----------|-------------------|------------------|81| Spoofing | Authentication | MFA, certificates, strong auth |82| Tampering | Integrity | Signing, checksums, validation |83| Repudiation | Non-repudiation | Audit logs, digital signatures |84| Information Disclosure | Confidentiality | Encryption, access controls |85| Denial of Service | Availability | Rate limiting, redundancy |86| Elevation of Privilege | Authorization | RBAC, least privilege |8788### STRIDE per Element Matrix8990| DFD Element | S | T | R | I | D | E |91|-------------|---|---|---|---|---|---|92| External Entity | X | | X | | | |93| Process | X | X | X | X | X | X |94| Data Store | | X | X | X | X | |95| Data Flow | | X | | X | X | |9697See: [references/threat-modeling-guide.md](references/threat-modeling-guide.md)9899---100101## Security Architecture Workflow102103Design secure systems using defense-in-depth principles.104105### Workflow: Design Secure Architecture1061071. Define security requirements:108 - Compliance requirements (GDPR, HIPAA, PCI-DSS)109 - Data classification (public, internal, confidential, restricted)110 - Threat model inputs1112. Apply defense-in-depth layers:112 - Perimeter: WAF, DDoS protection, rate limiting113 - Network: Segmentation, IDS/IPS, mTLS114 - Host: Patching, EDR, hardening115 - Application: Input validation, authentication, secure coding116 - Data: Encryption at rest and in transit1173. Implement Zero Trust principles:118 - Verify explicitly (every request)119 - Least privilege access (JIT/JEA)120 - Assume breach (segment, monitor)1214. Configure authentication and authorization:122 - Identity provider selection123 - MFA requirements124 - RBAC/ABAC model1255. Design encryption strategy:126 - Key management approach127 - Algorithm selection128 - Certificate lifecycle1296. Plan security monitoring:130 - Log aggregation131 - SIEM integration132 - Alerting rules1337. Document architecture decisions1348. **Validation:** Defense-in-depth layers defined; Zero Trust applied; encryption strategy documented; monitoring planned135136### Defense-in-Depth Layers137138```139Layer 1: PERIMETER140 WAF, DDoS mitigation, DNS filtering, rate limiting141142Layer 2: NETWORK143 Segmentation, IDS/IPS, network monitoring, VPN, mTLS144145Layer 3: HOST146 Endpoint protection, OS hardening, patching, logging147148Layer 4: APPLICATION149 Input validation, authentication, secure coding, SAST150151Layer 5: DATA152 Encryption at rest/transit, access controls, DLP, backup153```154155### Authentication Pattern Selection156157| Use Case | Recommended Pattern |158|----------|---------------------|159| Web application | OAuth 2.0 + PKCE with OIDC |160| API authentication | JWT with short expiration + refresh tokens |161| Service-to-service | mTLS with certificate rotation |162| CLI/Automation | API keys with IP allowlisting |163| High security | FIDO2/WebAuthn hardware keys |164165See: [references/security-architecture-patterns.md](references/security-architecture-patterns.md)166167---168169## Vulnerability Assessment Workflow170171Identify and remediate security vulnerabilities in applications.172173### Workflow: Conduct Vulnerability Assessment1741751. Define assessment scope:176 - In-scope systems and applications177 - Testing methodology (black box, gray box, white box)178 - Rules of engagement1792. Gather information:180 - Technology stack inventory181 - Architecture documentation182 - Previous vulnerability reports1833. Perform automated scanning:184 - SAST (static analysis)185 - DAST (dynamic analysis)186 - Dependency scanning187 - Secret detection1884. Conduct manual testing:189 - Business logic flaws190 - Authentication bypass191 - Authorization issues192 - Injection vulnerabilities1935. Classify findings by severity:194 - Critical: Immediate exploitation risk195 - High: Significant impact, easier to exploit196 - Medium: Moderate impact or difficulty197 - Low: Minor impact1986. Develop remediation plan:199 - Prioritize by risk200 - Assign owners201 - Set deadlines2027. Verify fixes and document2038. **Validation:** Scope defined; automated and manual testing complete; findings classified; remediation tracked204205For OWASP Top 10 vulnerability descriptions and testing guidance, refer to [owasp.org/Top10](https://owasp.org/Top10).206207### Vulnerability Severity Matrix208209| Impact \ Exploitability | Easy | Moderate | Difficult |210|-------------------------|------|----------|-----------|211| Critical | Critical | Critical | High |212| High | Critical | High | Medium |213| Medium | High | Medium | Low |214| Low | Medium | Low | Low |215216---217218## Secure Code Review Workflow219220Review code for security vulnerabilities before deployment.221222### Workflow: Conduct Security Code Review2232241. Establish review scope:225 - Changed files and functions226 - Security-sensitive areas (auth, crypto, input handling)227 - Third-party integrations2282. Run automated analysis:229 - SAST tools (Semgrep, CodeQL, Bandit)230 - Secret scanning231 - Dependency vulnerability check2323. Review authentication code:233 - Password handling (hashing, storage)234 - Session management235 - Token validation2364. Review authorization code:237 - Access control checks238 - RBAC implementation239 - Privilege boundaries2405. Review data handling:241 - Input validation242 - Output encoding243 - SQL query construction244 - File path handling2456. Review cryptographic code:246 - Algorithm selection247 - Key management248 - Random number generation2497. Document findings with severity2508. **Validation:** Automated scans passed; auth/authz reviewed; data handling checked; crypto verified; findings documented251252### Security Code Review Checklist253254| Category | Check | Risk |255|----------|-------|------|256| Input Validation | All user input validated and sanitized | Injection |257| Output Encoding | Context-appropriate encoding applied | XSS |258| Authentication | Passwords hashed with Argon2/bcrypt | Credential theft |259| Session | Secure cookie flags set (HttpOnly, Secure, SameSite) | Session hijacking |260| Authorization | Server-side permission checks on all endpoints | Privilege escalation |261| SQL | Parameterized queries used exclusively | SQL injection |262| File Access | Path traversal sequences rejected | Path traversal |263| Secrets | No hardcoded credentials or keys | Information disclosure |264| Dependencies | Known vulnerable packages updated | Supply chain |265| Logging | Sensitive data not logged | Information disclosure |266267### Secure vs Insecure Patterns268269| Pattern | Issue | Secure Alternative |270|---------|-------|-------------------|271| SQL string formatting | SQL injection | Use parameterized queries with placeholders |272| Shell command building | Command injection | Use subprocess with argument lists, no shell |273| Path concatenation | Path traversal | Validate and canonicalize paths |274| MD5/SHA1 for passwords | Weak hashing | Use Argon2id or bcrypt |275| Math.random for tokens | Predictable values | Use crypto.getRandomValues |276277### Inline Code Examples278279**SQL Injection — insecure vs. secure (Python):**280281```python282# ❌ Insecure: string formatting allows SQL injection283query = f"SELECT * FROM users WHERE username = '{username}'"284cursor.execute(query)285286# ✅ Secure: parameterized query — user input never interpreted as SQL287query = "SELECT * FROM users WHERE username = %s"288cursor.execute(query, (username,))289```290291**Password Hashing with Argon2id (Python):**292293```python294from argon2 import PasswordHasher295296ph = PasswordHasher() # uses secure defaults (time_cost, memory_cost)297298# On registration299hashed = ph.hash(plain_password)300301# On login — raises argon2.exceptions.VerifyMismatchError on failure302ph.verify(hashed, plain_password)303```304305**Secret Scanning — core pattern matching (Python):**306307```python308import re, pathlib309310SECRET_PATTERNS = {311 "aws_access_key": re.compile(r"AKIA[0-9A-Z]{16}"),312 "github_token": re.compile(r"ghp_[A-Za-z0-9]{36}"),313 "private_key": re.compile(r"-----BEGIN (RSA |EC )?PRIVATE KEY-----"),314 "generic_secret": re.compile(r'(?i)(password|secret|api_key)\s*=\s*["']?\S{8,}'),315}316317def scan_file(path: pathlib.Path) -> list[dict]:318 findings = []319 for lineno, line in enumerate(path.read_text(errors="replace").splitlines(), 1):320 for name, pattern in SECRET_PATTERNS.items():321 if pattern.search(line):322 findings.append({"file": str(path), "line": lineno, "type": name})323 return findings324```325326---327328## Incident Response Workflow329330Respond to and contain security incidents.331332### Workflow: Handle Security Incident3333341. Identify and triage:335 - Validate incident is genuine336 - Assess initial scope and severity337 - Activate incident response team3382. Contain the threat:339 - Isolate affected systems340 - Block malicious IPs/accounts341 - Disable compromised credentials3423. Eradicate root cause:343 - Remove malware/backdoors344 - Patch vulnerabilities345 - Update configurations3464. Recover operations:347 - Restore from clean backups348 - Verify system integrity349 - Monitor for recurrence3505. Conduct post-mortem:351 - Timeline reconstruction352 - Root cause analysis353 - Lessons learned3546. Implement improvements:355 - Update detection rules356 - Enhance controls357 - Update runbooks3587. Document and report3598. **Validation:** Threat contained; root cause eliminated; systems recovered; post-mortem complete; improvements implemented360361### Incident Severity Levels362363| Level | Response Time | Escalation |364|-------|---------------|------------|365| P1 - Critical (active breach/exfiltration) | Immediate | CISO, Legal, Executive |366| P2 - High (confirmed, contained) | 1 hour | Security Lead, IT Director |367| P3 - Medium (potential, under investigation) | 4 hours | Security Team |368| P4 - Low (suspicious, low impact) | 24 hours | On-call engineer |369370### Incident Response Checklist371372| Phase | Actions |373|-------|---------|374| Identification | Validate alert, assess scope, determine severity |375| Containment | Isolate systems, preserve evidence, block access |376| Eradication | Remove threat, patch vulnerabilities, reset credentials |377| Recovery | Restore services, verify integrity, increase monitoring |378| Lessons Learned | Document timeline, identify gaps, update procedures |379380---381382## Security Tools Reference383384### Recommended Security Tools385386| Category | Tools |387|----------|-------|388| SAST | Semgrep, CodeQL, Bandit (Python), ESLint security plugins |389| DAST | OWASP ZAP, Burp Suite, Nikto |390| Dependency Scanning | Snyk, Dependabot, npm audit, pip-audit |391| Secret Detection | GitLeaks, TruffleHog, detect-secrets |392| Container Security | Trivy, Clair, Anchore |393| Infrastructure | Checkov, tfsec, ScoutSuite |394| Network | Wireshark, Nmap, Masscan |395| Penetration | Metasploit, sqlmap, Burp Suite Pro |396397### Cryptographic Algorithm Selection398399| Use Case | Algorithm | Key Size |400|----------|-----------|----------|401| Symmetric encryption | AES-256-GCM | 256 bits |402| Password hashing | Argon2id | N/A (use defaults) |403| Message authentication | HMAC-SHA256 | 256 bits |404| Digital signatures | Ed25519 | 256 bits |405| Key exchange | X25519 | 256 bits |406| TLS | TLS 1.3 | N/A |407408See: [references/cryptography-implementation.md](references/cryptography-implementation.md)409410---411412## Tools and References413414### Scripts415416| Script | Purpose |417|--------|---------|418| [threat_modeler.py](scripts/threat_modeler.py) | STRIDE threat analysis with DREAD risk scoring; JSON and text output; interactive guided mode |419| [secret_scanner.py](scripts/secret_scanner.py) | Detect hardcoded secrets and credentials across 20+ patterns; CI/CD integration ready |420421For usage, see the inline code examples in [Secure Code Review Workflow](#inline-code-examples) and the script source files directly.422423### References424425| Document | Content |426|----------|---------|427| [security-architecture-patterns.md](references/security-architecture-patterns.md) | Zero Trust, defense-in-depth, authentication patterns, API security |428| [threat-modeling-guide.md](references/threat-modeling-guide.md) | STRIDE methodology, attack trees, DREAD scoring, DFD creation |429| [cryptography-implementation.md](references/cryptography-implementation.md) | AES-GCM, RSA, Ed25519, password hashing, key management |430431---432433## Security Standards Reference434435### Security Headers Checklist436437| Header | Recommended Value |438|--------|-------------------|439| Content-Security-Policy | default-src self; script-src self |440| X-Frame-Options | DENY |441| X-Content-Type-Options | nosniff |442| Strict-Transport-Security | max-age=31536000; includeSubDomains |443| Referrer-Policy | strict-origin-when-cross-origin |444| Permissions-Policy | geolocation=(), microphone=(), camera=() |445446For compliance framework requirements (OWASP ASVS, CIS Benchmarks, NIST CSF, PCI-DSS, HIPAA, SOC 2), refer to the respective official documentation.447448---449450## Related Skills451452| Skill | Integration Point |453|-------|-------------------|454| [senior-devops](../senior-devops/) | CI/CD security, infrastructure hardening |455| [senior-secops](../senior-secops/) | Security monitoring, incident response |456| [senior-backend](../senior-backend/) | Secure API development |457| [senior-architect](../senior-architect/) | Security architecture decisions |458459## When to Use460461Security engineering toolkit for threat modeling, vulnerability analysis, secure architecture, and penetration testing. Includes STRIDE analysis, OWASP guidance, cryptography patterns, and security scanning tools.462463Covers: Senior Security Engineer, Threat Modeling Workflow, Workflow: Conduct Threat Model, STRIDE Threat Categories, STRIDE per Element Matrix.