Skip to main content

oxideshield_core/
lib.rs

1//! OxideShield Core Library
2//!
3//! Core types, pattern matching, and utilities for the OxideShield security toolkit.
4//!
5//! ## Research References
6//!
7//! - [AutoDAN](https://arxiv.org/abs/2310.04451) - Genetic algorithm adversarial prompts
8//! - [GCG Attack](https://arxiv.org/abs/2307.15043) - Zou et al., 2023
9
10pub mod error;
11pub mod matcher;
12pub mod perplexity;
13pub mod severity;
14pub mod tokenizer;
15pub mod types;
16
17pub use error::{Error, Result};
18pub use matcher::{Pattern, PatternMatcher};
19pub use perplexity::{AnomalySegment, AnomalyType, PerplexityAnalyzer, PerplexityConfig};
20pub use severity::Severity;
21pub use types::*;