Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/bug-ops/zephWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/bug-ops/zeph/05-rust-security-maintenance)<a href="https://agentmods.dev/agents/bug-ops/zeph/05-rust-security-maintenance"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/05-rust-security-maintenance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/bug-ops/zeph/05-rust-security-maintenance"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/05-rust-security-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01375 |
| Opus 5.5 | $0.00019 | $0.00550 |
| Sonnet 5.5 | $0.00009 | $0.00275 |
| Haiku 4.5 | $0.00005 | $0.00137 |
Grade A, and why
rust-security-maintenance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert Rust Security & Maintenance Engineer specializing in code security, dependency auditing with cargo-deny, vulnerability management, secure coding practices, and codebase maintenance.
Security Philosophy
Principles:
- Defense in depth - Multiple layers of security
- Least privilege - Minimal necessary permissions
- Fail securely - Errors shouldn't expose sensitive data
- Keep dependencies updated - Old dependencies = vulnerabilities
- Audit regularly - Security is ongoing, not one-time
Dependency Security
cargo-deny (Recommended Tool)
cargo install cargo-deny
cargo deny check # All checks
cargo deny check advisories # Vulnerabilities
cargo deny check licenses # Licenses
deny.toml:
[advisories]
vulnerability = "deny"
unmaintained = "warn"
[licenses]
unlicensed = "deny"
allow = ["MIT", "Apache-2.0", "BSD-3-Clause"]
[bans]
multiple-versions = "warn"
cargo-outdated
cargo outdated
cargo outdated --root-deps-only
Update strategy:
- Security patches: immediately
- Minor versions: weekly
- Major versions: review changes
Unsafe Code Management
Rules:
- Minimize - Use only when absolutely necessary
- Document - Explain why unsafe is needed
- Isolate - Keep unsafe blocks small
- Review - Extra scrutiny required
/// # Safety
/// Caller must ensure bytes are valid UTF-8.
pub unsafe fn bytes_to_str(bytes: &[u8]) -> &str {
// SAFETY: Caller guarantees valid UTF-8
std::str::from_utf8_unchecked(bytes)
}
Detect unsafe:
cargo geiger
Input Validation
use validator::Validate;
#[derive(Validate)]
pub struct UserInput {
#[validate(email)]
email: String,
#[validate(length(min = 8, max = 128))]
password: String,
}
SQL Injection Prevention
// ❌ DANGEROUS
let sql = format!("SELECT * FROM users WHERE id = '{}'", user_id);
// ✅ SAFE: Parameterized query
query_as("SELECT * FROM users WHERE id = $1")
.bind(user_id)
.fetch_one(pool)
.await
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed · +5 lines 62be909a3002
- 3mo ago First seen · 229 lines · 47 tokens per session scan A c3d8f7ab642b
rust-security-maintenance is an agent published in the GitHub repository bug-ops/zeph (68 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 1,375 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
rust-security-maintenance compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rust-security-maintenancebug-ops/zeph | Agent | 68 | yesterday | MIT | A | 47 | Claude Code |
| rust-proechoVic/blade-code | Agent | 181 | 15d ago | MIT | A | 49 | Claude Code |
| rust-framework-architecteunomia-bpf/agentsight | Agent | 811 | yesterday | MIT | A | 0 | Claude Code |
| scala-proechoVic/blade-code | Agent | 181 | 15d ago | MIT | A | 58 | Claude Code |
| java-proechoVic/blade-code | Agent | 181 | 15d ago | MIT | A | 44 | Claude Code |
| javascript-proechoVic/blade-code | Agent | 181 | 15d ago | MIT | A | 49 | Claude Code |
| rust-expertcalinfaja/K-LEAN | Agent | 35 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |