agentshield/rules/builtin/
mod.rs1mod arbitrary_file_access;
2mod command_injection;
3mod credential_exfil;
4mod dynamic_exec;
5mod excessive_permissions;
6mod no_lockfile;
7mod prompt_injection;
8mod runtime_install;
9mod self_modification;
10mod ssrf;
11mod typosquat;
12mod unpinned_deps;
13
14use super::Detector;
15
16pub fn all_detectors() -> Vec<Box<dyn Detector>> {
18 vec![
19 Box::new(command_injection::CommandInjectionDetector),
20 Box::new(credential_exfil::CredentialExfilDetector),
21 Box::new(ssrf::SsrfDetector),
22 Box::new(arbitrary_file_access::ArbitraryFileAccessDetector),
23 Box::new(runtime_install::RuntimeInstallDetector),
24 Box::new(self_modification::SelfModificationDetector),
25 Box::new(prompt_injection::PromptInjectionDetector),
26 Box::new(excessive_permissions::ExcessivePermissionsDetector),
27 Box::new(unpinned_deps::UnpinnedDepsDetector),
28 Box::new(typosquat::TyposquatDetector),
29 Box::new(dynamic_exec::DynamicExecDetector),
30 Box::new(no_lockfile::NoLockfileDetector),
31 ]
32}