Skip to content

Commit

Permalink
feat: dataset improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
SecSamDev committed Jan 25, 2024
1 parent a629e36 commit d4e9b91
Show file tree
Hide file tree
Showing 12 changed files with 676 additions and 31 deletions.
21 changes: 14 additions & 7 deletions src/components/command_types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};

use crate::events::ip::SiemIp;
use crate::{events::ip::SiemIp, prelude::LogString};

use super::{
common::UserRole,
Expand Down Expand Up @@ -55,17 +55,24 @@ pub struct IsolateIp {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct UseCaseDefinition {
/// Name of the Use Case
pub name: String,
pub name: LogString,
/// Description of the Use Case and what is intended
pub description: String,
pub description: LogString,
/// Abstraction of the logic involved
pub case_logic: String,
pub case_logic: LogString,
/// What cannot detect this use case
pub limitations: String,
pub limitations: LogString,
/// Device requirements: Product, Service, Category => AND conditioned
pub requirements: (Option<String>, Option<String>, Option<String>),
pub requirements: Requirements,
/// Rule for detecting this Use Case. Only the name
pub rule: String,
pub rule: LogString,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Requirements {
pub product : Option<LogString>,
pub service : Option<LogString>,
pub category : Option<LogString>
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down
Loading

0 comments on commit d4e9b91

Please sign in to comment.