buiphucminhtam/forgewright/security-engineer

Claude Code and agent skill by buiphucminhtam/forgewright

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-engineer

Semi-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

RuleWhy It Matters
Every finding MUST cite specific file + lineGeneric findings are ignored. Engineers need exact locations to fix.
Severity MUST consider exploitability contextA theoretical SQLi in an admin-only endpoint is less critical than reflected XSS in public forms.
Never skip business logic vulnerabilitiesAutomated 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 flowsConfig says "auth required" — but is the middleware actually applied to EVERY route?
Agentic trust boundaries MUST treat retrieved content as attacker-controlledWeb/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 casesScanners 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"

ModeBehavior
ExpressFull audit, report findings. No questions — use STRIDE + OWASP automatically. Present summary at end.
StandardSurface critical/high findings immediately. Ask about risk tolerance for medium findings.
ThoroughPresent threat model scope before starting. Show findings per category. Ask about compliance requirements.
MeticulousWalk 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 modelingWAF rule configuration
OWASP Top 10 code auditIAM role policies
Auth flow & token analysisNetwork security groups
PII handling & encryption logicKMS key management
Injection point discoveryContainer image CVE scanning
RBAC/ABAC policy reviewSecrets Manager setup
Business logic vulnerabilitiesTLS termination config
API input validation reviewInfrastructure compliance (tfsec)

Input Classification

CategoryInputsBehavior if Missing
Criticalservices/, frontend/ (implementation code)STOP — cannot audit what does not exist
Degradedapi/ (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
Degradeddocs/architecture/, schemas/WARN — proceed with code-only analysis
Degradedinfrastructure/, scripts/ci/WARN — skip infra/local automation review, note in findings
Optionaltests/, dependency manifestsContinue — note coverage gaps

Phase Index

PhasePurposeKey Activities
0ReconnaissanceMap attack surface, inventory auth, catalog integrations
1Threat ModelingSTRIDE analysis, trust boundaries, data flow threats
2Code AuditOWASP Top 10 review, injection points, per-service findings
3Auth ReviewToken management, RBAC/ABAC policies, session security
4Data SecurityPII inventory, encryption audit, GDPR/CCPA compliance
5Supply ChainSBOM, dependency vulnerabilities, license compliance
6AI/LLM SecurityPrompt injection, data exfiltration, model access controls
7RemediationFix 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
  1. 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 ``

  1. Map data flows:
  • How does user input enter the system?
  • How does data move between services?
  • What databases/stores hold sensitive data?
  1. 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?)
  1. Catalog external integrations:
  • Third-party APIs (payment processors, email, SMS)
  • OAuth providers
  • File storage (S3? local disk?)
  • Message queues
  1. Check existing security measures:
  • Rate limiting middleware
  • Input validation layers
  • Security headers (CORS, CSP, HSTS)
  • Logging of auth events
Reconnaissance Output Template
markdown
## Attack Surface Inventory
### Services
| Service | Language | Framework | Entry Points | Auth |
|---------|----------|-----------|--------------|------|
| api-service | TypeScript | Express | /api/* | JWT |
| ... | ... | ... | ... | ... |
### Data Stores
| Store | Type | Sensitive Data | Access Pattern |
|-------|------|---------------|---------------|
| PostgreSQL | RDBMS | User data, orders | Direct + ORM |
| Redis | Cache | Sessions, tokens | Direct |
### External Integrations
| Integration | Data Shared | Auth Method |
|-------------|-------------|-------------|
| Stripe | Payment tokens | API Key |
| SendGrid | Email addresses | API Key |

Phase 1: Threat Modeling (STRIDE)

Goal: Identify threats before looking for vulnerabilities.

STRIDE Categories
CategoryThreatMitigation
SpoofingImpersonate users or systemsStrong auth, certificate pinning
TamperingModify data or codeInput validation, integrity checks
RepudiationDeny actions takenAudit logging, digital signatures
Information DisclosureExpose sensitive dataEncryption, access controls
Denial of ServiceMake system unavailableRate limiting, scaling
Elevation of PrivilegeGain unauthorized accessRBAC, principle of least privilege
Threat Modeling Process
  1. Draw trust boundaries:

`` ┌─────────────────────────────────────────────┐ │ INTERNET │ └─────────────────────┬───────────────────────┘ │ ┌─────────────────────▼───────────────────────┐ │ CDN / WAF (Trusted) │ └─────────────────────┬───────────────────────┘ │ ┌─────────────────────▼───────────────────────┐ │ Load Balancer (Trusted) │ └─────────────────────┬───────────────────────┘ │ ┌─────────┬───────────────────────┬─────────┐ │ │ │ │ ▼ ▼ ▼ ▼ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │ API │ │ API │ ... │ Auth│ │Worker│ │ Svc1│ │ Svc2│ │ Svc │ │ │ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │ │ │ │ └────────┴──────────────────────┴────────┘ │ ┌─────────▼─────────┐ │ Database Tier │ │ (PostgreSQL + │ │ Redis + S3) │ └────────────────────┘ ``

  1. Identify entry points:
  • HTTP endpoints (public vs authenticated)
  • WebSocket connections
  • Message queue consumers
  • Background job triggers
  • File upload handlers
  1. 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?] ``

  1. Document threats per STRIDE:
markdown
### Spoofing Threats
| Threat | Likelihood | Impact | Mitigation |
|--------|------------|--------|------------|
| JWT token forgery | Low | Critical | JWKS validation, short expiry |
| Session hijacking | Medium | High | Secure + HttpOnly + SameSite cookies |
### Tampering Threats
| Threat | Likelihood | Impact | Mitigation |
|--------|------------|--------|------------|
| Parameter pollution | Medium | High | Schema validation, typed params |
| SQL injection | Low* | Critical | Parameterized queries only |
*depends on codebase — verify during code audit

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:

typescript
// ❌ VULNERABLE: Missing auth check
app.get('/api/users/:id', (req, res) => {
const user = db.findUser(req.params.id);
res.json(user); // Anyone can fetch any user!
});
// ✅ SECURE: Auth middleware + ownership check
app.get('/api/users/:id',
authenticate,
requirePermission('read:users'),
async (req, res) => {
if (!canAccessUser(req.user, req.params.id)) {
return res.status(403).json({ error: 'ACCESS_DENIED' });
}
const user = await db.findUser(req.params.id);
res.json(user);
}
);
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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/buiphucminhtam/forgewright/security-engineer/badge)](https://verified-skill.com/skills/buiphucminhtam/forgewright/security-engineer)

Something wrong with this skill or its page? Tell us.