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 (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 |
Note: Bundled scripts ship as Markdown reference (.md) — copy the code out of the .md file to run it.
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
Creator: Engineering Team
License: MIT
Source Repo: neekware/dojo-skills
Source Bucket: engineering-team
Original Path: engineering-team/senior-security
1---2name: senior-security-23description: Senior Security Engineer4metadata:5 source: https://skillmd.com/skills/neekware/senior-security-26---7# Senior Security Engineer89Security engineering tools for threat modeling, vulnerability analysis, secure architecture design, and penetration testing.1011---1213## Table of Contents1415- [Threat Modeling Workflow](#threat-modeling-workflow)16- [Security Architecture Workflow](#security-architecture-workflow)17- [Vulnerability Assessment Workflow](#vulnerability-assessment-workflow)18- [Secure Code Review Workflow](#secure-code-review-workflow)19- [Incident Response Workflow](#incident-response-workflow)20- [Security Tools Reference](#security-tools-reference)21- [Tools and References](#tools-and-references)2223---2425## Threat Modeling Workflow2627Identify and analyze security threats using STRIDE methodology.2829### Workflow: Conduct Threat Model30311. Define system scope and boundaries:32 - Identify assets to protect33 - Map trust boundaries34 - Document data flows352. Create data flow diagram:36 - External entities (users, services)37 - Processes (application components)38 - Data stores (databases, caches)39 - Data flows (APIs, network connections)403. Apply STRIDE to each DFD element (see [STRIDE per Element Matrix](#stride-per-element-matrix) below)414. Score risks using DREAD:42 - Damage potential (1-10)43 - Reproducibility (1-10)44 - Exploitability (1-10)45 - Affected users (1-10)46 - Discoverability (1-10)475. Prioritize threats by risk score486. Define mitigations for each threat497. Document in threat model report508. **Validation:** All DFD elements analyzed; STRIDE applied; threats scored; mitigations mapped5152### STRIDE Threat Categories5354| Category | Security Property | Mitigation Focus |55| ---------------------- | ----------------- | ------------------------------ |56| Spoofing | Authentication | MFA, certificates, strong auth |57| Tampering | Integrity | Signing, checksums, validation |58| Repudiation | Non-repudiation | Audit logs, digital signatures |59| Information Disclosure | Confidentiality | Encryption, access controls |60| Denial of Service | Availability | Rate limiting, redundancy |61| Elevation of Privilege | Authorization | RBAC, least privilege |6263### STRIDE per Element Matrix6465| DFD Element | S | T | R | I | D | E |66| --------------- | --- | --- | --- | --- | --- | --- |67| External Entity | X | | X | | | |68| Process | X | X | X | X | X | X |69| Data Store | | X | X | X | X | |70| Data Flow | | X | | X | X | |7172See: [references/threat-modeling-guide.md](references/threat-modeling-guide.md)7374---7576## Security Architecture Workflow7778Design secure systems using defense-in-depth principles.7980### Workflow: Design Secure Architecture81821. Define security requirements:83 - Compliance requirements (GDPR, HIPAA, PCI-DSS)84 - Data classification (public, internal, confidential, restricted)85 - Threat model inputs862. Apply defense-in-depth layers:87 - Perimeter: WAF, DDoS protection, rate limiting88 - Network: Segmentation, IDS/IPS, mTLS89 - Host: Patching, EDR, hardening90 - Application: Input validation, authentication, secure coding91 - Data: Encryption at rest and in transit923. Implement Zero Trust principles:93 - Verify explicitly (every request)94 - Least privilege access (JIT/JEA)95 - Assume breach (segment, monitor)964. Configure authentication and authorization:97 - Identity provider selection98 - MFA requirements99 - RBAC/ABAC model1005. Design encryption strategy:101 - Key management approach102 - Algorithm selection103 - Certificate lifecycle1046. Plan security monitoring:105 - Log aggregation106 - SIEM integration107 - Alerting rules1087. Document architecture decisions1098. **Validation:** Defense-in-depth layers defined; Zero Trust applied; encryption strategy documented; monitoring planned110111### Defense-in-Depth Layers112113```114Layer 1: PERIMETER115 WAF, DDoS mitigation, DNS filtering, rate limiting116117Layer 2: NETWORK118 Segmentation, IDS/IPS, network monitoring, VPN, mTLS119120Layer 3: HOST121 Endpoint protection, OS hardening, patching, logging122123Layer 4: APPLICATION124 Input validation, authentication, secure coding, SAST125126Layer 5: DATA127 Encryption at rest/transit, access controls, DLP, backup128```129130### Authentication Pattern Selection131132| Use Case | Recommended Pattern |133| ------------------ | ------------------------------------------ |134| Web application | OAuth 2.0 + PKCE with OIDC |135| API authentication | JWT with short expiration + refresh tokens |136| Service-to-service | mTLS with certificate rotation |137| CLI/Automation | API keys with IP allowlisting |138| High security | FIDO2/WebAuthn hardware keys |139140See: [references/security-architecture-patterns.md](references/security-architecture-patterns.md)141142---143144## Vulnerability Assessment Workflow145146Identify and remediate security vulnerabilities in applications.147148### Workflow: Conduct Vulnerability Assessment1491501. Define assessment scope:151 - In-scope systems and applications152 - Testing methodology (black box, gray box, white box)153 - Rules of engagement1542. Gather information:155 - Technology stack inventory156 - Architecture documentation157 - Previous vulnerability reports1583. Perform automated scanning:159 - SAST (static analysis)160 - DAST (dynamic analysis)161 - Dependency scanning162 - Secret detection1634. Conduct manual testing:164 - Business logic flaws165 - Authentication bypass166 - Authorization issues167 - Injection vulnerabilities1685. Classify findings by severity:169 - Critical: Immediate exploitation risk170 - High: Significant impact, easier to exploit171 - Medium: Moderate impact or difficulty172 - Low: Minor impact1736. Develop remediation plan:174 - Prioritize by risk175 - Assign owners176 - Set deadlines1777. Verify fixes and document1788. **Validation:** Scope defined; automated and manual testing complete; findings classified; remediation tracked179180For OWASP Top 10 vulnerability descriptions and testing guidance, refer to [owasp.org/Top10](https://owasp.org/Top10).181182### Vulnerability Severity Matrix183184| Impact \ Exploitability | Easy | Moderate | Difficult |185| ----------------------- | -------- | -------- | --------- |186| Critical | Critical | Critical | High |187| High | Critical | High | Medium |188| Medium | High | Medium | Low |189| Low | Medium | Low | Low |190191---192193## Secure Code Review Workflow194195Review code for security vulnerabilities before deployment.196197### Workflow: Conduct Security Code Review1981991. Establish review scope:200 - Changed files and functions201 - Security-sensitive areas (auth, crypto, input handling)202 - Third-party integrations2032. Run automated analysis:204 - SAST tools (Semgrep, CodeQL, Bandit)205 - Secret scanning206 - Dependency vulnerability check2073. Review authentication code:208 - Password handling (hashing, storage)209 - Session management210 - Token validation2114. Review authorization code:212 - Access control checks213 - RBAC implementation214 - Privilege boundaries2155. Review data handling:216 - Input validation217 - Output encoding218 - SQL query construction219 - File path handling2206. Review cryptographic code:221 - Algorithm selection222 - Key management223 - Random number generation2247. Document findings with severity2258. **Validation:** Automated scans passed; auth/authz reviewed; data handling checked; crypto verified; findings documented226227### Security Code Review Checklist228229| Category | Check | Risk |230| ---------------- | ---------------------------------------------------- | ---------------------- |231| Input Validation | All user input validated and sanitized | Injection |232| Output Encoding | Context-appropriate encoding applied | XSS |233| Authentication | Passwords hashed with Argon2/bcrypt | Credential theft |234| Session | Secure cookie flags set (HttpOnly, Secure, SameSite) | Session hijacking |235| Authorization | Server-side permission checks on all endpoints | Privilege escalation |236| SQL | Parameterized queries used exclusively | SQL injection |237| File Access | Path traversal sequences rejected | Path traversal |238| Secrets | No hardcoded credentials or keys | Information disclosure |239| Dependencies | Known vulnerable packages updated | Supply chain |240| Logging | Sensitive data not logged | Information disclosure |241242### Secure vs Insecure Patterns243244| Pattern | Issue | Secure Alternative |245| ---------------------- | ------------------ | -------------------------------------------- |246| SQL string formatting | SQL injection | Use parameterized queries with placeholders |247| Shell command building | Command injection | Use subprocess with argument lists, no shell |248| Path concatenation | Path traversal | Validate and canonicalize paths |249| MD5/SHA1 for passwords | Weak hashing | Use Argon2id or bcrypt |250| Math.random for tokens | Predictable values | Use crypto.getRandomValues |251252### Inline Code Examples253254**SQL Injection — insecure vs. secure (Python):**255256```python257# ❌ Insecure: string formatting allows SQL injection258query = f"SELECT * FROM users WHERE username = '{username}'"259cursor.execute(query)260261# ✅ Secure: parameterized query — user input never interpreted as SQL262query = "SELECT * FROM users WHERE username = %s"263cursor.execute(query, (username,))264```265266**Password Hashing with Argon2id (Python):**267268```python269from argon2 import PasswordHasher270271ph = PasswordHasher() # uses secure defaults (time_cost, memory_cost)272273# On registration274hashed = ph.hash(plain_password)275276# On login — raises argon2.exceptions.VerifyMismatchError on failure277ph.verify(hashed, plain_password)278```279280**Secret Scanning — core pattern matching (Python):**281282```python283import re, pathlib284285SECRET_PATTERNS = {286 "aws_access_key": re.compile(r"AKIA[0-9A-Z]{16}"),287 "github_token": re.compile(r"ghp_[A-Za-z0-9]{36}"),288 "private_key": re.compile(r"-----BEGIN (RSA |EC )?PRIVATE KEY-----"),289 "generic_secret": re.compile(r'(?i)(password|secret|api_key)\s*=\s*["']?\S{8,}'),290}291292def scan_file(path: pathlib.Path) -> list[dict]:293 findings = []294 for lineno, line in enumerate(path.read_text(errors="replace").splitlines(), 1):295 for name, pattern in SECRET_PATTERNS.items():296 if pattern.search(line):297 findings.append({"file": str(path), "line": lineno, "type": name})298 return findings299```300301---302303## Incident Response Workflow304305Respond to and contain security incidents.306307### Workflow: Handle Security Incident3083091. Identify and triage:310 - Validate incident is genuine311 - Assess initial scope and severity312 - Activate incident response team3132. Contain the threat:314 - Isolate affected systems315 - Block malicious IPs/accounts316 - Disable compromised credentials3173. Eradicate root cause:318 - Remove malware/backdoors319 - Patch vulnerabilities320 - Update configurations3214. Recover operations:322 - Restore from clean backups323 - Verify system integrity324 - Monitor for recurrence3255. Conduct post-mortem:326 - Timeline reconstruction327 - Root cause analysis328 - Lessons learned3296. Implement improvements:330 - Update detection rules331 - Enhance controls332 - Update runbooks3337. Document and report3348. **Validation:** Threat contained; root cause eliminated; systems recovered; post-mortem complete; improvements implemented335336### Incident Severity Levels337338| Level | Response Time | Escalation |339| -------------------------------------------- | ------------- | -------------------------- |340| P1 - Critical (active breach/exfiltration) | Immediate | CISO, Legal, Executive |341| P2 - High (confirmed, contained) | 1 hour | Security Lead, IT Director |342| P3 - Medium (potential, under investigation) | 4 hours | Security Team |343| P4 - Low (suspicious, low impact) | 24 hours | On-call engineer |344345### Incident Response Checklist346347| Phase | Actions |348| --------------- | ------------------------------------------------------- |349| Identification | Validate alert, assess scope, determine severity |350| Containment | Isolate systems, preserve evidence, block access |351| Eradication | Remove threat, patch vulnerabilities, reset credentials |352| Recovery | Restore services, verify integrity, increase monitoring |353| Lessons Learned | Document timeline, identify gaps, update procedures |354355---356357## Security Tools Reference358359### Recommended Security Tools360361| Category | Tools |362| ------------------- | --------------------------------------------------------- |363| SAST | Semgrep, CodeQL, Bandit (Python), ESLint security plugins |364| DAST | OWASP ZAP, Burp Suite, Nikto |365| Dependency Scanning | Snyk, Dependabot, npm audit, pip-audit |366| Secret Detection | GitLeaks, TruffleHog, detect-secrets |367| Container Security | Trivy, Clair, Anchore |368| Infrastructure | Checkov, tfsec, ScoutSuite |369| Network | Wireshark, Nmap, Masscan |370| Penetration | Metasploit, sqlmap, Burp Suite Pro |371372### Cryptographic Algorithm Selection373374| Use Case | Algorithm | Key Size |375| ---------------------- | ----------- | ------------------ |376| Symmetric encryption | AES-256-GCM | 256 bits |377| Password hashing | Argon2id | N/A (use defaults) |378| Message authentication | HMAC-SHA256 | 256 bits |379| Digital signatures | Ed25519 | 256 bits |380| Key exchange | X25519 | 256 bits |381| TLS | TLS 1.3 | N/A |382383See: [references/cryptography-implementation.md](references/cryptography-implementation.md)384385---386387## Tools and References388389### Scripts390391| Script | Purpose |392| ---------------------------------------------- | --------------------------------------------------------------------------------------------- |393| [threat_modeler.py](scripts/threat_modeler.py) | STRIDE threat analysis with DREAD risk scoring; JSON and text output; interactive guided mode |394| [secret_scanner.py](scripts/secret_scanner.py) | Detect hardcoded secrets and credentials across 20+ patterns; CI/CD integration ready |395396> **Note:** Bundled scripts ship as Markdown reference (`.md`) — copy the code out of the `.md` file to run it.397398For usage, see the inline code examples in [Secure Code Review Workflow](#inline-code-examples) and the script source files directly.399400### References401402| Document | Content |403| --------------------------------------------------------------------------------- | ------------------------------------------------------------------- |404| [security-architecture-patterns.md](references/security-architecture-patterns.md) | Zero Trust, defense-in-depth, authentication patterns, API security |405| [threat-modeling-guide.md](references/threat-modeling-guide.md) | STRIDE methodology, attack trees, DREAD scoring, DFD creation |406| [cryptography-implementation.md](references/cryptography-implementation.md) | AES-GCM, RSA, Ed25519, password hashing, key management |407408---409410## Security Standards Reference411412### Security Headers Checklist413414| Header | Recommended Value |415| ------------------------- | ---------------------------------------- |416| Content-Security-Policy | default-src self; script-src self |417| X-Frame-Options | DENY |418| X-Content-Type-Options | nosniff |419| Strict-Transport-Security | max-age=31536000; includeSubDomains |420| Referrer-Policy | strict-origin-when-cross-origin |421| Permissions-Policy | geolocation=(), microphone=(), camera=() |422423For compliance framework requirements (OWASP ASVS, CIS Benchmarks, NIST CSF, PCI-DSS, HIPAA, SOC 2), refer to the respective official documentation.424425---426427## Related Skills428429| Skill | Integration Point |430| ---------------------------------------- | ---------------------------------------- |431| [senior-devops](../senior-devops/) | CI/CD security, infrastructure hardening |432| [senior-secops](../senior-secops/) | Security monitoring, incident response |433| [senior-backend](../senior-backend/) | Secure API development |434| [senior-architect](../senior-architect/) | Security architecture decisions |435436> **Creator:** Engineering Team437> **License:** MIT438> **Source Repo:** `neekware/dojo-skills`439> **Source Bucket:** `engineering-team`440> **Original Path:** `engineering-team/senior-security`