Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zen-Open-Source/AgentArmor
/ functions
Functions
75 in github.com/Zen-Open-Source/AgentArmor
⨍
Functions
75
◇
Types & classes
18
↓ 28 callers
Function
get_str
(config: &'a Value, path: &str)
src/utils/config.rs:32
↓ 15 callers
Function
get
Traverse a config value using a dot-separated path (e.g. "gateway.auth.mode").
src/utils/config.rs:24
↓ 12 callers
Function
get_bool
(config: &Value, path: &str)
src/utils/config.rs:36
↓ 10 callers
Function
set_config_value
Set a value at a dot-separated config path, creating intermediate objects as needed.
src/fixer.rs:674
↓ 6 callers
Function
check_permissions
(path: &Path)
src/utils/fs.rs:12
↓ 6 callers
Function
needs_perm_fix
(path: &Path, target: u32)
src/fixer.rs:632
↓ 3 callers
Function
get_array
(config: &'a Value, path: &str)
src/utils/config.rs:40
↓ 3 callers
Method
name
(&self)
src/agents/openclaw/mod.rs:11
↓ 3 callers
Function
parse_version_string
Parse a version string, handling formats like "openclaw vYYYY.M.DD", "openclaw YYYY.M.DD", "vYYYY.M.DD", or bare "YYYY.M.DD".
src/agents/openclaw/checks/cve.rs:94
↓ 3 callers
Function
read_config
Parse openclaw.json (JSON5 format) from the base directory. Returns an empty object if the file doesn't exist.
src/utils/config.rs:7
↓ 3 callers
Function
run_scan
(agent_name: Option<&str>)
src/scanner.rs:6
↓ 2 callers
Function
base_path
()
src/agents/openclaw/mod.rs:36
↓ 2 callers
Function
find_auth_profiles
Find agent auth-profile files under base_path/agents/*/agent/auth-profiles.json
src/utils/fs.rs:56
↓ 2 callers
Function
find_credential_files
Recursively find credential files under base_path/credentials/
src/utils/fs.rs:34
↓ 2 callers
Function
remove_config_value
Remove a value at a dot-separated config path.
src/fixer.rs:690
↓ 2 callers
Function
score_color
(earned: u32, possible: u32)
src/utils/report.rs:4
↓ 1 callers
Function
all_plugins
()
src/agents/mod.rs:5
↓ 1 callers
Function
apply_config_remove
(fix: &FixAction, config: &mut Value)
src/fixer.rs:551
↓ 1 callers
Function
apply_config_set
(fix: &FixAction, config: &mut Value)
src/fixer.rs:460
↓ 1 callers
Function
apply_fix
(fix: &FixAction, config: &mut Value, base: &Path, _verbose: bool)
src/fixer.rs:413
↓ 1 callers
Function
apply_permission_fix
(fix: &FixAction, _base: &Path)
src/fixer.rs:422
↓ 1 callers
Function
apply_token_gen
(_fix: &FixAction, config: &mut Value)
src/fixer.rs:596
↓ 1 callers
Function
build_categories
(checks: &[CheckResult])
src/scanner.rs:55
↓ 1 callers
Function
collect_string_values
(value: &Value, path: &str, out: &mut Vec<(String, String)>)
src/agents/openclaw/checks/secrets.rs:26
↓ 1 callers
Function
create_backup
(base: &Path, backup_root: &Path)
src/fixer.rs:644
↓ 1 callers
Function
default_backup_root
()
src/fixer.rs:616
↓ 1 callers
Method
detect
(&self)
src/agents/openclaw/mod.rs:19
↓ 1 callers
Function
detect_from_command
()
src/agents/openclaw/checks/cve.rs:53
↓ 1 callers
Function
detect_from_package_json
()
src/agents/openclaw/checks/cve.rs:72
↓ 1 callers
Function
detect_from_version_file
()
src/agents/openclaw/checks/cve.rs:65
↓ 1 callers
Function
detect_version
Detect the installed OpenClaw version by trying multiple methods.
src/agents/openclaw/checks/cve.rs:34
↓ 1 callers
Method
display_name
(&self)
src/agents/openclaw/mod.rs:15
↓ 1 callers
Function
ensure_base_dir
(base: &Path)
src/fixer.rs:623
↓ 1 callers
Function
generate_hex_token
(num_bytes: usize)
src/fixer.rs:666
↓ 1 callers
Function
openclaw_base
()
src/fixer.rs:610
↓ 1 callers
Function
plan_fixes
(config: &Value, base: &Path)
src/fixer.rs:195
↓ 1 callers
Function
run_fix
(opts: FixOptions)
src/fixer.rs:54
↓ 1 callers
Method
scan
(&self)
src/agents/openclaw/mod.rs:23
↓ 1 callers
Function
status_icon
(status: &CheckStatus)
src/utils/report.rs:18
↓ 1 callers
Function
write_config_atomic
Write config JSON atomically: write to temp file then rename.
src/fixer.rs:716
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/mdns.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/tool_authorization.rs:8
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/dm_security.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/sandbox.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/cve.rs:320
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/dangerous_flags.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/group_security.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/exec_security.rs:8
Function
check
(config: &Value, base: &Path)
src/agents/openclaw/checks/logging.rs:7
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/control_ui.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/auth.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/plugins.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/network.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/reverse_proxy.rs:6
Function
check
(_config: &Value, base: &Path)
src/agents/openclaw/checks/file_permissions.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/prompt_injection.rs:6
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/sub_agents.rs:6
Function
check
(config: &Value, base: &Path)
src/agents/openclaw/checks/secrets.rs:55
Function
check
(config: &Value, _base: &Path)
src/agents/openclaw/checks/browser_security.rs:6
Function
config_control_ui_risky
(config: &Value)
src/agents/openclaw/checks/cve.rs:134
Function
config_docker_network_container
(config: &Value)
src/agents/openclaw/checks/cve.rs:128
Function
config_exec_not_denied
(config: &Value)
src/agents/openclaw/checks/cve.rs:150
Function
config_feishu_enabled
(config: &Value)
src/agents/openclaw/checks/cve.rs:146
Function
config_sandbox_browser_enabled
(config: &Value)
src/agents/openclaw/checks/cve.rs:158
Function
config_shared_auth
(config: &Value)
src/agents/openclaw/checks/cve.rs:122
Method
display
(&self)
src/agents/openclaw/checks/cve.rs:28
Function
format_json
(report: &ScanReport)
src/utils/report.rs:127
Function
format_report
(report: &ScanReport, verbose: bool)
src/utils/report.rs:36
Function
main
()
src/main.rs:60
Method
parse
(s: &str)
src/agents/openclaw/checks/cve.rs:16
Function
pts_str
(check: &CheckResult)
src/utils/report.rs:27
Function
test_cve_database_has_all_entries
()
src/agents/openclaw/checks/cve.rs:441
Function
test_parse_version_string
()
src/agents/openclaw/checks/cve.rs:421
Function
test_version_comparison
()
src/agents/openclaw/checks/cve.rs:411
Function
test_version_parse
()
src/agents/openclaw/checks/cve.rs:405