pub struct SecurityPayloads;Expand description
Built-in security payloads
Implementations§
Source§impl SecurityPayloads
impl SecurityPayloads
Sourcepub fn sql_injection() -> Vec<SecurityPayload>
pub fn sql_injection() -> Vec<SecurityPayload>
Get SQL injection payloads
Sourcepub fn xss() -> Vec<SecurityPayload>
pub fn xss() -> Vec<SecurityPayload>
Get XSS payloads
Sourcepub fn command_injection() -> Vec<SecurityPayload>
pub fn command_injection() -> Vec<SecurityPayload>
Get command injection payloads
Sourcepub fn path_traversal() -> Vec<SecurityPayload>
pub fn path_traversal() -> Vec<SecurityPayload>
Get path traversal payloads
Sourcepub fn ssti() -> Vec<SecurityPayload>
pub fn ssti() -> Vec<SecurityPayload>
Get SSTI payloads
Sourcepub fn ldap_injection() -> Vec<SecurityPayload>
pub fn ldap_injection() -> Vec<SecurityPayload>
Get LDAP injection payloads
Sourcepub fn xxe() -> Vec<SecurityPayload>
pub fn xxe() -> Vec<SecurityPayload>
Get XXE (XML External Entity) payloads
Sourcepub fn llm_prompt_injection() -> Vec<SecurityPayload>
pub fn llm_prompt_injection() -> Vec<SecurityPayload>
LLM prompt-injection / jailbreak payloads (OWASP LLM01). Round 50 (#79) — Srikanth asked whether mockforge can have an agent simulate “OWASP Top 10 AI Attacks”. These are inert strings (no real exploit) designed to be injected into a prompt-bearing field and observed for guardrail bypass / system-prompt leakage downstream.
Sourcepub fn dlp() -> Vec<SecurityPayload>
pub fn dlp() -> Vec<SecurityPayload>
DLP / sensitive-data canaries. Round 50 (#79) — synthetic PII for exercising data-loss-prevention egress controls. Every value here is a documented NON-real test constant (e.g. the 4111… Visa test PAN, the 000-00-0000 reserved SSN) so the payload set never carries real secrets, yet a DLP filter should still flag the shapes.
Sourcepub fn get_by_category(category: SecurityCategory) -> Vec<SecurityPayload>
pub fn get_by_category(category: SecurityCategory) -> Vec<SecurityPayload>
Get all payloads for a specific category
Sourcepub fn get_payloads(config: &SecurityTestConfig) -> Vec<SecurityPayload>
pub fn get_payloads(config: &SecurityTestConfig) -> Vec<SecurityPayload>
Get all payloads for configured categories
Sourcepub fn load_custom_payloads(path: &Path) -> Result<Vec<SecurityPayload>>
pub fn load_custom_payloads(path: &Path) -> Result<Vec<SecurityPayload>>
Load custom payloads from a file
Auto Trait Implementations§
impl Freeze for SecurityPayloads
impl RefUnwindSafe for SecurityPayloads
impl Send for SecurityPayloads
impl Sync for SecurityPayloads
impl Unpin for SecurityPayloads
impl UnsafeUnpin for SecurityPayloads
impl UnwindSafe for SecurityPayloads
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more