-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
55 lines (48 loc) · 1.02 KB
/
Copy pathtypes.ts
File metadata and controls
55 lines (48 loc) · 1.02 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
54
55
export enum RiskLevel {
LOW = 'LOW',
MEDIUM = 'MEDIUM',
HIGH = 'HIGH',
CRITICAL = 'CRITICAL'
}
export interface SyscallData {
name: string;
baseline: number;
test: number;
deviation: number;
}
export interface TimelinePoint {
time: string;
frequency: number;
anomalyScore: number;
}
export interface LiveEvent {
pid: number;
syscall: string;
timestamp: number;
alert: boolean;
message?: string;
}
export interface SecurityAlert {
id: string;
severity: RiskLevel;
title: string;
message: string;
timestamp: string;
analysisId: string;
read: boolean;
}
export interface AnalysisResult {
id: string; // Unique identifier for history retrieval
status: 'NORMAL' | 'INTRUSION';
deviationScore: number;
riskLevel: RiskLevel;
syscalls: SyscallData[];
timeline: TimelinePoint[];
timestamp: string;
explanation?: string;
metadata?: {
baselineFile: string;
testFile: string;
};
}
export type ViewState = 'UPLOAD' | 'DASHBOARD' | 'HISTORY' | 'SETTINGS' | 'ALERTS' | 'LIVE';