You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-14Lines changed: 32 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,18 @@ It helps you enforce consistent file upload rules by checking:
7
7
- File size limits
8
8
- File signatures (magic numbers) to detect spoofed types
9
9
- Specification conformance for Office Open XML / Open Document Formats (`.docx`, `.xlsx`, `.pptx`, `.odt`)
10
+
- Malware scan result using a varity of scanners (_requires the addition of a specific ByteGuard.FileValidator scanner package_)
10
11
11
-
> ⚠️ **Important:** This library should be part of a **defense-in-depth** strategy.
12
-
It does not replace antivirus scanning, sandboxing, or other security controls.
12
+
> ⚠️ **Important:** This package is one layer in a defense-in-depth strategy.
13
+
It does **not** replace endpoint protection, sandboxing, input validation, or other security controls.
13
14
14
15
## Features
15
16
16
17
- ✅ Validate files by **extension**
17
18
- ✅ Validate files by **size**
18
19
- ✅ Validate files by **signature (_magic-numbers_)**
19
20
- ✅ Validate files by **specification conformance** for archive-based formats (_Open XML and Open Document Formats_)
21
+
- ✅ **Ensure no malware** through a variety of antimalware scanners
20
22
- ✅ Validate using file path, `Stream`, or `byte[]`
21
23
- ✅ Configure which file types to support
22
24
- ✅ Configure whether to **throw exceptions** or simply return a boolean
@@ -25,37 +27,45 @@ It does not replace antivirus scanning, sandboxing, or other security controls.
25
27
## Getting Started
26
28
27
29
### Installation
28
-
This package is published and installed via NuGet.
30
+
This package is published and installed via [NuGet](https://www.nuget.org/packages/ByteGuard.FileValidator).
29
31
30
32
Reference the package in your project:
31
33
```bash
32
34
dotnet add package ByteGuard.FileValidator
33
35
```
34
36
37
+
### Antimalware scanners
38
+
In order to use the antimalware scanning capabilities, ensure you have a ByteGuard.FileValidator antimalware package referenced as well. Youo can find the relevant scanner package on NuGet under the namespace `ByteGuard.FileValidator.Scanners`.
<Description>ByteGuard File Validator is a security-focused .NET library for validating user-supplied files, providing a configurable API to help you enforce safe and consistent file handling across your applications.</Description>
0 commit comments