-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssueType.cs
More file actions
53 lines (45 loc) · 1.66 KB
/
Copy pathIssueType.cs
File metadata and controls
53 lines (45 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace SmartFileKit.Domain
{
/// <summary>
/// Represents standard, strongly-typed security findings during file analysis.
/// </summary>
public enum IssueType
{
/// <summary>
/// A spoofing attack where the file header signature differs from the file extension's expected type.
/// </summary>
SignatureMismatch,
/// <summary>
/// A mismatch between the client-provided MIME content type and the extension or detected content format.
/// </summary>
MimeMismatch,
/// <summary>
/// The file extension is potentially dangerous or suspicious (e.g. executables or scripts).
/// </summary>
SuspiciousExtension,
/// <summary>
/// The file format cannot be recognized by its magic bytes signature.
/// </summary>
UnknownFileType,
/// <summary>
/// The file structure is malformed or throws parser errors, representing corruption.
/// </summary>
CorruptedFile,
/// <summary>
/// The uploaded file is completely empty (0 bytes).
/// </summary>
EmptyFile,
/// <summary>
/// The file has an invalid or missing signature header for the expected format.
/// </summary>
InvalidHeader,
/// <summary>
/// The file contains multiple distinct magic byte signatures (e.g., polyglot files).
/// </summary>
MultipleSignatureDetected,
/// <summary>
/// Potentially dangerous executable code/binary content has been detected (e.g., inside archives or raw).
/// </summary>
ExecutableContentDetected
}
}