tanviet12/vbsec / skills/antigravity/vbs-scan-security
vbs-scan-security
FlaggedUse when scanning code for security vulnerabilities. Use when user says "scan security", "kiểm tra bảo mật", "security audit", "review security", or invokes `/vbs-scan-security`. For large scans (>20 main-language files OR >30 total OR >14 days) processes chunks sequentially. Outputs bilingual reports (vi/en). Optional `--auto-fix` (agentic patch + verify loop) and `--sca` (live CVE lookup via OSV.dev).
rules/languages/dotnet/README.md
View on GitHub# .NET 10 Specialization Rules
Specialization này áp dụng cho `primary_language: dotnet`, bao phủ C# / ASP.NET Core / Minimal API / EF Core / Newtonsoft.Json / `System.Diagnostics.Process`.
## Rules
| Rule | File | Focus |
|---|---|---|
| SQL-INJECTION | `02-sql-injection.md` | EF Core raw SQL (`FromSqlRaw`, `ExecuteSqlRaw`), ADO.NET `SqlCommand` |
| MASS-ASSIGNMENT | `07-mass-assignment.md` | ASP.NET Core model binding trực tiếp vào entity/domain model |
| INSECURE-DESERIALIZATION | `08-insecure-deserialization.md` | Newtonsoft `TypeNameHandling`, BinaryFormatter/NetDataContractSerializer/LosFormatter legacy |
| VERBOSE-ERROR-DEBUG-MODE | `17-verbose-error-debug-mode.md` | `UseDeveloperExceptionPage()` không gate theo môi trường, `ASPNETCORE_ENVIRONMENT=Development` ở deploy production, handler trả stack trace |
| COMMAND-INJECTION | `21-command-injection.md` | `Process.Start`, `ProcessStartInfo`, shell invocation, unsafe argument construction |
## Detection notes
`dotnet` nên được detect từ `.cs`, `.csproj`, `.sln`, `global.json`, `appsettings.json`. Khi repo có frontend TypeScript + backend ASP.NET Core, load cả `typescript` và `dotnet` overlay nếu cả hai vượt ngưỡng.
## Reasoning
Các rule này không flag bằng pattern thuần. Agent vẫn phải trace L1-L4:
1. L1: route/query/body/header/form/file upload được ASP.NET Core bind tự động.
2. Sink: raw SQL, entity update, unsafe deserializer, process execution.
3. Sanitization/mitigation: parameterized EF/ADO.NET, DTO allowlist, safe serializer config, list-form arguments / whitelist.
4. Chỉ report khi input untrusted đi tới sink mà không có kiểm soát phù hợp.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |