Senior Security Engineer
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:
- Spoofing: Can identity be faked?
- Tampering: Can data be modified?
- Repudiation: Can actions be denied?
- Information Disclosure: Can data leak?
- Denial of Service: Can availability be affected?
- Elevation of Privilege: Can access be escalated?
- 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 |
Description |
Security Property |
Mitigation Focus |
| Spoofing |
Impersonating users or systems |
Authentication |
MFA, certificates, strong auth |
| Tampering |
Modifying data or code |
Integrity |
Signing, checksums, validation |
| Repudiation |
Denying actions |
Non-repudiation |
Audit logs, digital signatures |
| Information Disclosure |
Exposing data |
Confidentiality |
Encryption, access controls |
| Denial of Service |
Disrupting availability |
Availability |
Rate limiting, redundancy |
| Elevation of Privilege |
Gaining unauthorized access |
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
OWASP Top 10 Mapping
| Rank |
Vulnerability |
Testing Approach |
| A01 |
Broken Access Control |
Manual IDOR testing, authorization checks |
| A02 |
Cryptographic Failures |
Algorithm review, key management audit |
| A03 |
Injection |
SAST + manual payload testing |
| A04 |
Insecure Design |
Threat modeling, architecture review |
| A05 |
Security Misconfiguration |
Configuration audit, CIS benchmarks |
| A06 |
Vulnerable Components |
Dependency scanning, CVE monitoring |
| A07 |
Authentication Failures |
Password policy, session management review |
| A08 |
Software/Data Integrity |
CI/CD security, code signing verification |
| A09 |
Logging Failures |
Log review, SIEM configuration check |
| A10 |
SSRF |
Manual URL manipulation testing |
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 |
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 |
Description |
Response Time |
Escalation |
| P1 - Critical |
Active breach, data exfiltration |
Immediate |
CISO, Legal, Executive |
| P2 - High |
Confirmed compromise, contained |
1 hour |
Security Lead, IT Director |
| P3 - Medium |
Potential compromise, under investigation |
4 hours |
Security Team |
| P4 - Low |
Suspicious activity, 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 |
Usage |
| threat_modeler.py |
STRIDE threat analysis with risk scoring |
python threat_modeler.py --component "Authentication" |
| secret_scanner.py |
Detect hardcoded secrets and credentials |
python secret_scanner.py /path/to/project |
Threat Modeler Features:
- STRIDE analysis for any system component
- DREAD risk scoring
- Mitigation recommendations
- JSON and text output formats
- Interactive mode for guided analysis
Secret Scanner Features:
- Detects AWS, GCP, Azure credentials
- Finds API keys and tokens (GitHub, Slack, Stripe)
- Identifies private keys and passwords
- Supports 20+ secret patterns
- CI/CD integration ready
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
Compliance Frameworks
| Framework |
Focus |
Applicable To |
| OWASP ASVS |
Application security |
Web applications |
| CIS Benchmarks |
System hardening |
Servers, containers, cloud |
| NIST CSF |
Risk management |
Enterprise security programs |
| PCI-DSS |
Payment card data |
Payment processing |
| HIPAA |
Healthcare data |
Healthcare applications |
| SOC 2 |
Service organization controls |
SaaS providers |
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=() |
Related Skills
1---
2name: senior-security
3description: Security engineering toolkit for threat modeling, vulnerability analysis, secure architecture, and penetration testing. Includes STRIDE analysis, OWASP guidance, cryptography patterns, and security scanning tools.
4triggers:
5 - security architecture
6 - threat modeling
7 - STRIDE analysis
8 - penetration testing
9 - vulnerability assessment
10 - secure coding
11 - OWASP
12 - application security
13 - cryptography implementation
14 - secret scanning
15 - security audit
16 - zero trust
17metadata:
18 source: https://skillmd.com/skills/modbender/senior-security
19---
20
21# Senior Security Engineer
22
23Security engineering tools for threat modeling, vulnerability analysis, secure architecture design, and penetration testing.
24
25---
26
27## Table of Contents
28
29- [Threat Modeling Workflow](#threat-modeling-workflow)
30- [Security Architecture Workflow](#security-architecture-workflow)
31- [Vulnerability Assessment Workflow](#vulnerability-assessment-workflow)
32- [Secure Code Review Workflow](#secure-code-review-workflow)
33- [Incident Response Workflow](#incident-response-workflow)
34- [Security Tools Reference](#security-tools-reference)
35- [Tools and References](#tools-and-references)
36
37---
38
39## Threat Modeling Workflow
40
41Identify and analyze security threats using STRIDE methodology.
42
43### Workflow: Conduct Threat Model
44
451. Define system scope and boundaries:
46 - Identify assets to protect
47 - Map trust boundaries
48 - Document data flows
492. Create data flow diagram:
50 - External entities (users, services)
51 - Processes (application components)
52 - Data stores (databases, caches)
53 - Data flows (APIs, network connections)
543. Apply STRIDE to each DFD element:
55 - Spoofing: Can identity be faked?
56 - Tampering: Can data be modified?
57 - Repudiation: Can actions be denied?
58 - Information Disclosure: Can data leak?
59 - Denial of Service: Can availability be affected?
60 - Elevation of Privilege: Can access be escalated?
614. Score risks using DREAD:
62 - Damage potential (1-10)
63 - Reproducibility (1-10)
64 - Exploitability (1-10)
65 - Affected users (1-10)
66 - Discoverability (1-10)
675. Prioritize threats by risk score
686. Define mitigations for each threat
697. Document in threat model report
708. **Validation:** All DFD elements analyzed; STRIDE applied; threats scored; mitigations mapped
71
72### STRIDE Threat Categories
73
74| Category | Description | Security Property | Mitigation Focus |
75|----------|-------------|-------------------|------------------|
76| Spoofing | Impersonating users or systems | Authentication | MFA, certificates, strong auth |
77| Tampering | Modifying data or code | Integrity | Signing, checksums, validation |
78| Repudiation | Denying actions | Non-repudiation | Audit logs, digital signatures |
79| Information Disclosure | Exposing data | Confidentiality | Encryption, access controls |
80| Denial of Service | Disrupting availability | Availability | Rate limiting, redundancy |
81| Elevation of Privilege | Gaining unauthorized access | Authorization | RBAC, least privilege |
82
83### STRIDE per Element Matrix
84
85| DFD Element | S | T | R | I | D | E |
86|-------------|---|---|---|---|---|---|
87| External Entity | X | | X | | | |
88| Process | X | X | X | X | X | X |
89| Data Store | | X | X | X | X | |
90| Data Flow | | X | | X | X | |
91
92See: [references/threat-modeling-guide.md](references/threat-modeling-guide.md)
93
94---
95
96## Security Architecture Workflow
97
98Design secure systems using defense-in-depth principles.
99
100### Workflow: Design Secure Architecture
101
1021. Define security requirements:
103 - Compliance requirements (GDPR, HIPAA, PCI-DSS)
104 - Data classification (public, internal, confidential, restricted)
105 - Threat model inputs
1062. Apply defense-in-depth layers:
107 - Perimeter: WAF, DDoS protection, rate limiting
108 - Network: Segmentation, IDS/IPS, mTLS
109 - Host: Patching, EDR, hardening
110 - Application: Input validation, authentication, secure coding
111 - Data: Encryption at rest and in transit
1123. Implement Zero Trust principles:
113 - Verify explicitly (every request)
114 - Least privilege access (JIT/JEA)
115 - Assume breach (segment, monitor)
1164. Configure authentication and authorization:
117 - Identity provider selection
118 - MFA requirements
119 - RBAC/ABAC model
1205. Design encryption strategy:
121 - Key management approach
122 - Algorithm selection
123 - Certificate lifecycle
1246. Plan security monitoring:
125 - Log aggregation
126 - SIEM integration
127 - Alerting rules
1287. Document architecture decisions
1298. **Validation:** Defense-in-depth layers defined; Zero Trust applied; encryption strategy documented; monitoring planned
130
131### Defense-in-Depth Layers
132
133```
134Layer 1: PERIMETER
135 WAF, DDoS mitigation, DNS filtering, rate limiting
136
137Layer 2: NETWORK
138 Segmentation, IDS/IPS, network monitoring, VPN, mTLS
139
140Layer 3: HOST
141 Endpoint protection, OS hardening, patching, logging
142
143Layer 4: APPLICATION
144 Input validation, authentication, secure coding, SAST
145
146Layer 5: DATA
147 Encryption at rest/transit, access controls, DLP, backup
148```
149
150### Authentication Pattern Selection
151
152| Use Case | Recommended Pattern |
153|----------|---------------------|
154| Web application | OAuth 2.0 + PKCE with OIDC |
155| API authentication | JWT with short expiration + refresh tokens |
156| Service-to-service | mTLS with certificate rotation |
157| CLI/Automation | API keys with IP allowlisting |
158| High security | FIDO2/WebAuthn hardware keys |
159
160See: [references/security-architecture-patterns.md](references/security-architecture-patterns.md)
161
162---
163
164## Vulnerability Assessment Workflow
165
166Identify and remediate security vulnerabilities in applications.
167
168### Workflow: Conduct Vulnerability Assessment
169
1701. Define assessment scope:
171 - In-scope systems and applications
172 - Testing methodology (black box, gray box, white box)
173 - Rules of engagement
1742. Gather information:
175 - Technology stack inventory
176 - Architecture documentation
177 - Previous vulnerability reports
1783. Perform automated scanning:
179 - SAST (static analysis)
180 - DAST (dynamic analysis)
181 - Dependency scanning
182 - Secret detection
1834. Conduct manual testing:
184 - Business logic flaws
185 - Authentication bypass
186 - Authorization issues
187 - Injection vulnerabilities
1885. Classify findings by severity:
189 - Critical: Immediate exploitation risk
190 - High: Significant impact, easier to exploit
191 - Medium: Moderate impact or difficulty
192 - Low: Minor impact
1936. Develop remediation plan:
194 - Prioritize by risk
195 - Assign owners
196 - Set deadlines
1977. Verify fixes and document
1988. **Validation:** Scope defined; automated and manual testing complete; findings classified; remediation tracked
199
200### OWASP Top 10 Mapping
201
202| Rank | Vulnerability | Testing Approach |
203|------|---------------|------------------|
204| A01 | Broken Access Control | Manual IDOR testing, authorization checks |
205| A02 | Cryptographic Failures | Algorithm review, key management audit |
206| A03 | Injection | SAST + manual payload testing |
207| A04 | Insecure Design | Threat modeling, architecture review |
208| A05 | Security Misconfiguration | Configuration audit, CIS benchmarks |
209| A06 | Vulnerable Components | Dependency scanning, CVE monitoring |
210| A07 | Authentication Failures | Password policy, session management review |
211| A08 | Software/Data Integrity | CI/CD security, code signing verification |
212| A09 | Logging Failures | Log review, SIEM configuration check |
213| A10 | SSRF | Manual URL manipulation testing |
214
215### Vulnerability Severity Matrix
216
217| Impact / Exploitability | Easy | Moderate | Difficult |
218|-------------------------|------|----------|-----------|
219| Critical | Critical | Critical | High |
220| High | Critical | High | Medium |
221| Medium | High | Medium | Low |
222| Low | Medium | Low | Low |
223
224---
225
226## Secure Code Review Workflow
227
228Review code for security vulnerabilities before deployment.
229
230### Workflow: Conduct Security Code Review
231
2321. Establish review scope:
233 - Changed files and functions
234 - Security-sensitive areas (auth, crypto, input handling)
235 - Third-party integrations
2362. Run automated analysis:
237 - SAST tools (Semgrep, CodeQL, Bandit)
238 - Secret scanning
239 - Dependency vulnerability check
2403. Review authentication code:
241 - Password handling (hashing, storage)
242 - Session management
243 - Token validation
2444. Review authorization code:
245 - Access control checks
246 - RBAC implementation
247 - Privilege boundaries
2485. Review data handling:
249 - Input validation
250 - Output encoding
251 - SQL query construction
252 - File path handling
2536. Review cryptographic code:
254 - Algorithm selection
255 - Key management
256 - Random number generation
2577. Document findings with severity
2588. **Validation:** Automated scans passed; auth/authz reviewed; data handling checked; crypto verified; findings documented
259
260### Security Code Review Checklist
261
262| Category | Check | Risk |
263|----------|-------|------|
264| Input Validation | All user input validated and sanitized | Injection |
265| Output Encoding | Context-appropriate encoding applied | XSS |
266| Authentication | Passwords hashed with Argon2/bcrypt | Credential theft |
267| Session | Secure cookie flags set (HttpOnly, Secure, SameSite) | Session hijacking |
268| Authorization | Server-side permission checks on all endpoints | Privilege escalation |
269| SQL | Parameterized queries used exclusively | SQL injection |
270| File Access | Path traversal sequences rejected | Path traversal |
271| Secrets | No hardcoded credentials or keys | Information disclosure |
272| Dependencies | Known vulnerable packages updated | Supply chain |
273| Logging | Sensitive data not logged | Information disclosure |
274
275### Secure vs Insecure Patterns
276
277| Pattern | Issue | Secure Alternative |
278|---------|-------|-------------------|
279| SQL string formatting | SQL injection | Use parameterized queries with placeholders |
280| Shell command building | Command injection | Use subprocess with argument lists, no shell |
281| Path concatenation | Path traversal | Validate and canonicalize paths |
282| MD5/SHA1 for passwords | Weak hashing | Use Argon2id or bcrypt |
283| Math.random for tokens | Predictable values | Use crypto.getRandomValues |
284
285---
286
287## Incident Response Workflow
288
289Respond to and contain security incidents.
290
291### Workflow: Handle Security Incident
292
2931. Identify and triage:
294 - Validate incident is genuine
295 - Assess initial scope and severity
296 - Activate incident response team
2972. Contain the threat:
298 - Isolate affected systems
299 - Block malicious IPs/accounts
300 - Disable compromised credentials
3013. Eradicate root cause:
302 - Remove malware/backdoors
303 - Patch vulnerabilities
304 - Update configurations
3054. Recover operations:
306 - Restore from clean backups
307 - Verify system integrity
308 - Monitor for recurrence
3095. Conduct post-mortem:
310 - Timeline reconstruction
311 - Root cause analysis
312 - Lessons learned
3136. Implement improvements:
314 - Update detection rules
315 - Enhance controls
316 - Update runbooks
3177. Document and report
3188. **Validation:** Threat contained; root cause eliminated; systems recovered; post-mortem complete; improvements implemented
319
320### Incident Severity Levels
321
322| Level | Description | Response Time | Escalation |
323|-------|-------------|---------------|------------|
324| P1 - Critical | Active breach, data exfiltration | Immediate | CISO, Legal, Executive |
325| P2 - High | Confirmed compromise, contained | 1 hour | Security Lead, IT Director |
326| P3 - Medium | Potential compromise, under investigation | 4 hours | Security Team |
327| P4 - Low | Suspicious activity, low impact | 24 hours | On-call engineer |
328
329### Incident Response Checklist
330
331| Phase | Actions |
332|-------|---------|
333| Identification | Validate alert, assess scope, determine severity |
334| Containment | Isolate systems, preserve evidence, block access |
335| Eradication | Remove threat, patch vulnerabilities, reset credentials |
336| Recovery | Restore services, verify integrity, increase monitoring |
337| Lessons Learned | Document timeline, identify gaps, update procedures |
338
339---
340
341## Security Tools Reference
342
343### Recommended Security Tools
344
345| Category | Tools |
346|----------|-------|
347| SAST | Semgrep, CodeQL, Bandit (Python), ESLint security plugins |
348| DAST | OWASP ZAP, Burp Suite, Nikto |
349| Dependency Scanning | Snyk, Dependabot, npm audit, pip-audit |
350| Secret Detection | GitLeaks, TruffleHog, detect-secrets |
351| Container Security | Trivy, Clair, Anchore |
352| Infrastructure | Checkov, tfsec, ScoutSuite |
353| Network | Wireshark, Nmap, Masscan |
354| Penetration | Metasploit, sqlmap, Burp Suite Pro |
355
356### Cryptographic Algorithm Selection
357
358| Use Case | Algorithm | Key Size |
359|----------|-----------|----------|
360| Symmetric encryption | AES-256-GCM | 256 bits |
361| Password hashing | Argon2id | N/A (use defaults) |
362| Message authentication | HMAC-SHA256 | 256 bits |
363| Digital signatures | Ed25519 | 256 bits |
364| Key exchange | X25519 | 256 bits |
365| TLS | TLS 1.3 | N/A |
366
367See: [references/cryptography-implementation.md](references/cryptography-implementation.md)
368
369---
370
371## Tools and References
372
373### Scripts
374
375| Script | Purpose | Usage |
376|--------|---------|-------|
377| [threat_modeler.py](scripts/threat_modeler.py) | STRIDE threat analysis with risk scoring | `python threat_modeler.py --component "Authentication"` |
378| [secret_scanner.py](scripts/secret_scanner.py) | Detect hardcoded secrets and credentials | `python secret_scanner.py /path/to/project` |
379
380**Threat Modeler Features:**
381- STRIDE analysis for any system component
382- DREAD risk scoring
383- Mitigation recommendations
384- JSON and text output formats
385- Interactive mode for guided analysis
386
387**Secret Scanner Features:**
388- Detects AWS, GCP, Azure credentials
389- Finds API keys and tokens (GitHub, Slack, Stripe)
390- Identifies private keys and passwords
391- Supports 20+ secret patterns
392- CI/CD integration ready
393
394### References
395
396| Document | Content |
397|----------|---------|
398| [security-architecture-patterns.md](references/security-architecture-patterns.md) | Zero Trust, defense-in-depth, authentication patterns, API security |
399| [threat-modeling-guide.md](references/threat-modeling-guide.md) | STRIDE methodology, attack trees, DREAD scoring, DFD creation |
400| [cryptography-implementation.md](references/cryptography-implementation.md) | AES-GCM, RSA, Ed25519, password hashing, key management |
401
402---
403
404## Security Standards Reference
405
406### Compliance Frameworks
407
408| Framework | Focus | Applicable To |
409|-----------|-------|---------------|
410| OWASP ASVS | Application security | Web applications |
411| CIS Benchmarks | System hardening | Servers, containers, cloud |
412| NIST CSF | Risk management | Enterprise security programs |
413| PCI-DSS | Payment card data | Payment processing |
414| HIPAA | Healthcare data | Healthcare applications |
415| SOC 2 | Service organization controls | SaaS providers |
416
417### Security Headers Checklist
418
419| Header | Recommended Value |
420|--------|-------------------|
421| Content-Security-Policy | default-src self; script-src self |
422| X-Frame-Options | DENY |
423| X-Content-Type-Options | nosniff |
424| Strict-Transport-Security | max-age=31536000; includeSubDomains |
425| Referrer-Policy | strict-origin-when-cross-origin |
426| Permissions-Policy | geolocation=(), microphone=(), camera=() |
427
428---
429
430## Related Skills
431
432| Skill | Integration Point |
433|-------|-------------------|
434| [senior-devops](../senior-devops/) | CI/CD security, infrastructure hardening |
435| [senior-secops](../senior-secops/) | Security monitoring, incident response |
436| [senior-backend](../senior-backend/) | Secure API development |
437| [senior-architect](../senior-architect/) | Security architecture decisions |