C# Security
Use $csharp-tutor mode=security.
Treat all user text after $csharp-security as the code, endpoint, project, or security question to review. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/security-review-map.mdreferences/logging-guidance.mdreferences/analyzers-guidance.mdreferences/official-sources.mdreferences/verification-checklist.mdreferences/framework-guidance.mdreferences/tooling-and-analyzers.md
Distinguish confirmed vulnerabilities from possible risks. Prefer official Microsoft, OWASP, MITRE CWE, and NuGet guidance for source-backed claims.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete security decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the security concern.
- Minimal example:
var fullPath = Path.GetFullPath(Path.Combine(root, fileName));