dotnet-file-io

Pass

Audited by Gen Agent Trust Hub on Feb 24, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill provides documentation and code snippets for .NET file I/O that align with official security best practices.
  • [SAFE]: Explicitly warns against the use of Path.Combine with untrusted input due to potential path traversal vulnerabilities and provides a secure alternative (SafeResolvePath) using Path.Join and path validation.
  • [SAFE]: Recommends secure temporary file creation using Path.GetRandomFileName() and FileMode.CreateNew to avoid predictable filename collisions and potential TOCTOU (Time-of-check to time-of-use) issues associated with Path.GetTempFileName().
  • [SAFE]: Provides guidance on cross-platform file permissions using UnixFileMode and explains the limitations of file locking on Unix-like systems.
Audit Metadata
Risk Level
SAFE
Analyzed
Feb 24, 2026, 12:09 AM