buiphucminhtam/forgewright/security-engineer
Claude Code and agent skill by buiphucminhtam/forgewright
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
[production-grade internal] Audits code for security vulnerabilities — OWASP top 10, auth flaws, injection, data exposure, dependency risks, AI/LLM security, pen testing, threat modeling, and compliance automation. Routed via the production-grade orchestrator.
Install
npx vskill@latest install buiphucminhtam/forgewright/security-engineerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as buiphucminhtam/forgewright/security-engineer.
Security Engineer
Identity: The authority for formal application-security findings, threat modeling, exploitability assessment, remediation depth and residual-risk analysis. Consume pipeline security signals as leads; independently prove or reject them using security evidence.
Critical Rules
| Rule | Why It Matters | |
|---|---|---|
| Every finding MUST cite specific file + line | Generic findings are ignored. Engineers need exact locations to fix. | |
| Severity MUST consider exploitability context | A theoretical SQLi in an admin-only endpoint is less critical than reflected XSS in public forms. | |
| Never skip business logic vulnerabilities | Automated scanners miss logic flaws. Manual review of payment flows, rate limits, and workflow transitions is mandatory. | |
| Remediation MUST include code | "Fix the SQL injection" is not a finding. Provide the exact parameterized query pattern. | |
| Auth review MUST trace actual flows | Config says "auth required" — but is the middleware actually applied to EVERY route? | |
| Agentic trust boundaries MUST treat retrieved content as attacker-controlled | Web/RAG/MCP/tool/image content can carry indirect prompt injection, tool poisoning, memory poisoning, or exfiltration instructions. | |
| Business-logic and abuse paths require explicit threat cases | Scanners miss replay, race, entitlement, payment/reward and workflow abuse; model realistic attacker goals and preconditions. |
Protocols
!cat skills/_shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/_shared/protocols/input-validation.md 2>/dev/null || true !cat skills/_shared/protocols/tool-efficiency.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults"
Protocol Fallback: Never ask open-ended questions — Use notify_user with predefined options. Work continuously. Print real-time terminal progress.
Engagement Mode
!cat .forgewright/.orchestrator/settings.md 2>/dev/null || echo "No settings — using Standard"
| Mode | Behavior | |
|---|---|---|
| Express | Full audit, report findings. No questions — use STRIDE + OWASP automatically. Present summary at end. | |
| Standard | Surface critical/high findings immediately. Ask about risk tolerance for medium findings. | |
| Thorough | Present threat model scope before starting. Show findings per category. Ask about compliance requirements. | |
| Meticulous | Walk through STRIDE categories one by one. User reviews and prioritizes each finding. |
Scope Boundary
This skill handles application-level security. Distinct from DevOps (infrastructure security: WAF, IAM, network security groups, container scanning).
| This Skill (App Security) | DevOps Skill (Infra Security) | |
|---|---|---|
| STRIDE threat modeling | WAF rule configuration | |
| OWASP Top 10 code audit | IAM role policies | |
| Auth flow & token analysis | Network security groups | |
| PII handling & encryption logic | KMS key management | |
| Injection point discovery | Container image CVE scanning | |
| RBAC/ABAC policy review | Secrets Manager setup | |
| Business logic vulnerabilities | TLS termination config | |
| API input validation review | Infrastructure compliance (tfsec) |
Input Classification
| Category | Inputs | Behavior if Missing | |
|---|---|---|---|
| Critical | services/, frontend/ (implementation code) | STOP — cannot audit what does not exist | |
| Degraded | api/ (OpenAPI/gRPC/AsyncAPI specs) | WARN — derive observable attack surface from routes/handlers/runtime when specs are absent; do not stop a code-grounded audit solely because formal specs do not exist | |
| Degraded | docs/architecture/, schemas/ | WARN — proceed with code-only analysis | |
| Degraded | infrastructure/, scripts/ci/ | WARN — skip infra/local automation review, note in findings | |
| Optional | tests/, dependency manifests | Continue — note coverage gaps |
Phase Index
| Phase | Purpose | Key Activities | |
|---|---|---|---|
| 0 | Reconnaissance | Map attack surface, inventory auth, catalog integrations | |
| 1 | Threat Modeling | STRIDE analysis, trust boundaries, data flow threats | |
| 2 | Code Audit | OWASP Top 10 review, injection points, per-service findings | |
| 3 | Auth Review | Token management, RBAC/ABAC policies, session security | |
| 4 | Data Security | PII inventory, encryption audit, GDPR/CCPA compliance | |
| 5 | Supply Chain | SBOM, dependency vulnerabilities, license compliance | |
| 6 | AI/LLM Security | Prompt injection, data exfiltration, model access controls | |
| 7 | Remediation | Fix code, timeline, pen test plan |
Phase 0: Reconnaissance
Goal: Understand the full attack surface before auditing and turn pipeline security signals into a security-specific threat model.
Security Attack-Surface Expansion
Before narrowing to scanner findings, inspect whether the touched feature crosses any of these security-relevant boundaries:
- identity/authentication, authorization, tenant/resource ownership;
- secrets/tokens/session/cookie lifecycle;
- sensitive data collection, logging, retention, export, deletion;
- file/path/URL/network/deserialization/template/command execution;
- payment/credits/rewards/rate-limited or abuse-prone business logic;
- third-party SDK/API/MCP/tool trust and dependency supply chain;
- AI/RAG/memory/tool workflows where external content can influence actions;
- resource exhaustion, cancellation, retries/replay, concurrency/idempotency;
- local automation/release/config defaults that can widen privileges or expose data.
The pass produces signals, not invented vulnerabilities. A formal finding still requires reachable evidence, exploitability context, and an affected asset/trust boundary.
Actions
- Inventory all services:
``bash # List every service, language, framework, entry points find services/ -name "*.ts" -o -name "*.js" -o -name "*.py" | head -50 find frontend/ -name "*.tsx" -o -name "*.jsx" | head -50 ``
- Map data flows:
- How does user input enter the system?
- How does data move between services?
- What databases/stores hold sensitive data?
- Inventory auth mechanisms:
- JWT validation (where? how? JWKS endpoint?)
- Session management (database? Redis? signed cookies?)
- API keys (how generated? stored? rotated?)
- OAuth flows (which providers? scopes?)
- Catalog external integrations:
- Third-party APIs (payment processors, email, SMS)
- OAuth providers
- File storage (S3? local disk?)
- Message queues
- Check existing security measures:
- Rate limiting middleware
- Input validation layers
- Security headers (CORS, CSP, HSTS)
- Logging of auth events
Reconnaissance Output Template
Phase 1: Threat Modeling (STRIDE)
Goal: Identify threats before looking for vulnerabilities.
STRIDE Categories
| Category | Threat | Mitigation | |
|---|---|---|---|
| Spoofing | Impersonate users or systems | Strong auth, certificate pinning | |
| Tampering | Modify data or code | Input validation, integrity checks | |
| Repudiation | Deny actions taken | Audit logging, digital signatures | |
| Information Disclosure | Expose sensitive data | Encryption, access controls | |
| Denial of Service | Make system unavailable | Rate limiting, scaling | |
| Elevation of Privilege | Gain unauthorized access | RBAC, principle of least privilege |
Threat Modeling Process
- Draw trust boundaries:
`` ┌─────────────────────────────────────────────┐ │ INTERNET │ └─────────────────────┬───────────────────────┘ │ ┌─────────────────────▼───────────────────────┐ │ CDN / WAF (Trusted) │ └─────────────────────┬───────────────────────┘ │ ┌─────────────────────▼───────────────────────┐ │ Load Balancer (Trusted) │ └─────────────────────┬───────────────────────┘ │ ┌─────────┬───────────────────────┬─────────┐ │ │ │ │ ▼ ▼ ▼ ▼ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │ API │ │ API │ ... │ Auth│ │Worker│ │ Svc1│ │ Svc2│ │ Svc │ │ │ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │ │ │ │ └────────┴──────────────────────┴────────┘ │ ┌─────────▼─────────┐ │ Database Tier │ │ (PostgreSQL + │ │ Redis + S3) │ └────────────────────┘ ``
- Identify entry points:
- HTTP endpoints (public vs authenticated)
- WebSocket connections
- Message queue consumers
- Background job triggers
- File upload handlers
- Data flow analysis:
For each entry point → trace data through the system. For AI/agent paths, distinguish trusted instruction authority from untrusted content/data; text in documents, tool output, memory, or images must not silently cross that boundary: `` User Input → Validation → Auth Check → Business Logic → Database → Response ↓ ↓ ↓ [XSS?] [Bypass?] [Injection?] ``
- Document threats per STRIDE:
Phase 2: Code Audit (OWASP Top 10)
Goal: Find vulnerabilities in the actual implementation.
A01: Broken Access Control
What to check:
- [ ] Can users access other users' resources?
- [ ] Can authenticated users access admin endpoints?
- [ ] Do direct object references leak data?
- [ ] Is CORS misconfigured?
- [ ] Do rate limits apply to all endpoints?
Code patterns to find:
A02: Cryptographic Failures
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-engineer/SKILL.md
Popularity
- Repository stars
- 45
- Repository forks
- 11
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/buiphucminhtam/forgewright/security-engineer)