mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Adds ADR-095/096 + audit_1776853149979 references to ruflo-aidefence
and ruflo-security-audit. End users installing either plugin now see
the host hardening features that pair with the plugin's threat
detection / scanning, not just the plugin's own surface.
ruflo-aidefence/README.md:
New "Defense-in-depth pairing (ruflo 3.6.25+)" section listing:
- validateEnv() loader-hijack denylist (LD_PRELOAD, NODE_OPTIONS,
DYLD_*, etc.) at the terminal_create MCP boundary
- File mode 0600 / dir mode 0700 on session/terminal/memory stores
via fs-secure
- Encryption at rest (CLAUDE_FLOW_ENCRYPT_AT_REST=1, AES-256-GCM,
RFE1 magic-byte sniff)
Threat scoring should account for whether the host is a denylist-
enforcing / encrypted-at-rest install.
ruflo-security-audit/README.md:
New "Patterns to scan for (audit_1776853149979 follow-up)" section
with six concrete antipatterns + remediation pointers:
- execSync(string) with template-literal args (4 closed sites cited)
- Numeric MCP inputs cast as `number` without runtime check
- Untrusted package specs flowing into npm install
- Loader-hijack env vars
- Plaintext at-rest secrets paired with ADR-096
- MCP stdin DoS (10MB cap reference)
Plus a `ruflo verify` reference confirming 55 witnesses on disk.
Plugin versions:
ruflo-aidefence 0.1.0 → 0.2.0 (minor — capability sync)
ruflo-security-audit 0.1.1 → 0.2.0 (minor — capability sync,
was patch from iter #55 model
fix)
Two more slices remain for Part 1:
- slice 2: ruflo-rag-memory + ruflo-rvf — encryption-at-rest gate
notes
- slice 3: ruflo-cost-tracker — federation budget breaker pairing,
federation_spend events
- slice 4: ruflo-agentdb + ruflo-knowledge-graph — G7 controllers
ruflo-security-audit
Security review, dependency scanning, policy gates, and CVE monitoring.
Install
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-security-audit@ruflo
What's Included
- Security Scanning: Full-depth scan with
security scan --depth full - CVE Monitoring: Automated CVE detection and remediation guidance
- Input Validation: Zod-based validation at system boundaries via
@claude-flow/security - Path Security: Traversal prevention and safe executor for command injection protection
- Policy Gates: Configurable security policies for CI/CD pipelines
- Threat Modeling: Automated threat analysis and risk assessment
Patterns to scan for (audit_1776853149979 follow-up)
The 3.6.25 release closed a class of shell-injection bugs. When auditing downstream code, the scanner should flag these patterns:
execSync(string)with template-literal args — replace withexecFileSync(cmd, argv, { shell: false }). Closed sites:github-safe.js,statusline.js/cjs(git calls),mcp-tools/github-tools.ts(gh pr/issue/run),update/executor.ts(npm install).- Numeric MCP inputs cast as
number— TypeScript casts don't run at runtime. AprNumber: "1; rm -rf /"slips through. Mitigate viatoPositiveInt(value)(seesrc/mcp-tools/github-tools.ts). - Untrusted package specs flowing into
npm install— gate viaisSafePackageSpec(pkg, version)regex check (seesrc/update/executor.ts). Defense-in-depth even withexecFileSync. - Loader-hijack env vars (
LD_PRELOAD,NODE_OPTIONS,DYLD_*) flowing into a child process env — gate viavalidateEnv()(seesrc/mcp-tools/validate-input.ts). - Plaintext secrets at rest in
.claude-flow/sessions/,.claude-flow/terminals/store.json,.swarm/memory.db— paired with ADR-096 opt-in encryption (CLAUDE_FLOW_ENCRYPT_AT_REST=1). Confirm gate state viaruflo doctor -c encryption. - MCP stdin DoS — un-newlined input piped into the MCP server. The host caps the buffer at 10MB by default; downstream MCP wrappers should enforce equivalent limits.
A ruflo verify round-trip confirms 55 witnesses (27 regression-fix + 28 per-source-file capability) match the signed manifest byte-for-byte.
Requires
ruflo-coreplugin (provides MCP server)