Back to skill

Security audit

ceph-aiops

Security checks for vulnerabilities and agentic risk

Overview

This Ceph management skill can permanently delete stored data, but its claimed confirmation safeguards do not cover its agent tools.

Start with a dedicated read-only Dashboard account. Before enabling writes, require approval outside the model for the exact cluster, resource, and requested change. Do not assume double confirmation, audit labels, or approver environment variables block MCP deletion. Pool and RBD deletions have no undo, and the documentation says write operations have not been verified against a live cluster.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md
Finding

Misleading confirmation guarantees for destructive MCP operations

Content
View full analysis

Impact

An agent can execute irreversible deletion without the confirmation that the main instructions claim is mandatory. Pool or RBD deletion can destroy stored data; replica changes can reduce durability.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (13)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/capabilities.md (reported line 38)May include surrounding context.

md
| `osd_reweight` | medium | `POST /api/osd/{id}/reweight` | 0.0 = drain; captures prior weight (undo) |
| `osd_mark_in` | medium | `POST /api/osd/{id}/mark` | captures prior up/in state (undo) |
| `osd_mark_out` | **high** | `POST /api/osd/{id}/mark` | drains data; CLI double-confirm + dry-run; captures prior state |
| `osd_purge` | **high** | `DELETE /api/osd/{id}` | destroy + crush rm + auth del; **irreversible**; dry-run + double-confirm |
| `trigger_scrub` | medium | `POST /api/pg/{pgid}/scrub` | schedule a shallow scrub; no prior state |
| `trigger_deep_scrub` | medium | `POST /api/pg/{pgid}/deep_scrub` | schedule a deep (data-integrity) scrub |
| `set_pool_quota` | medium | `PUT /api/pool/{name}` | captures prior max_bytes/max_objects (undo) |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/capabilities.md (reported line 46)May include surrounding context.

md
| `set_pool_autoscale` | medium | `PUT /api/pool/{name}` | captures prior autoscale mode (undo) |
| `pool_create` | medium | `POST /api/pool` | create a new pool |
| `set_pool_size` | **high** | `PUT /api/pool/{name}` | replica change **forces data movement**; dry-run + double-confirm; captures prior size |
| `pool_delete` | **high** | `DELETE /api/pool/{name}` | **destroys all data**; dry-run + double-confirm |
| `rbd_image_create` | medium | `POST /api/block/image` | create an RBD image |
| `rbd_snapshot_create` | medium | `POST /api/block/image/{spec}/snap` | reversible → delete the snapshot |
| `rbd_image_delete` | **high** | `DELETE /api/block/image/{spec}` | **irreversible**; dry-run + double-confirm |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/capabilities.md (reported line 49)May include surrounding context.

md
| `pool_delete` | **high** | `DELETE /api/pool/{name}` | **destroys all data**; dry-run + double-confirm |
| `rbd_image_create` | medium | `POST /api/block/image` | create an RBD image |
| `rbd_snapshot_create` | medium | `POST /api/block/image/{spec}/snap` | reversible → delete the snapshot |
| `rbd_image_delete` | **high** | `DELETE /api/block/image/{spec}` | **irreversible**; dry-run + double-confirm |
| `rbd_snapshot_delete` | **high** | `DELETE /api/block/image/{spec}/snap/{snap}` | **irreversible**; dry-run + double-confirm |
| `throttle_recovery` | medium | `GET`+`POST /api/cluster_conf` | tunes `osd_max_backfills` / `osd_recovery_max_active`; captures prior values (undo) |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/capabilities.md (reported line 50)May include surrounding context.

md
| `rbd_image_create` | medium | `POST /api/block/image` | create an RBD image |
| `rbd_snapshot_create` | medium | `POST /api/block/image/{spec}/snap` | reversible → delete the snapshot |
| `rbd_image_delete` | **high** | `DELETE /api/block/image/{spec}` | **irreversible**; dry-run + double-confirm |
| `rbd_snapshot_delete` | **high** | `DELETE /api/block/image/{spec}/snap/{snap}` | **irreversible**; dry-run + double-confirm |
| `throttle_recovery` | medium | `GET`+`POST /api/cluster_conf` | tunes `osd_max_backfills` / `osd_recovery_max_active`; captures prior values (undo) |

## Out of scope (by design)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/cli-reference.md (reported line 11)May include surrounding context.

bash
ceph-aiops init                      # interactive onboarding wizard
ceph-aiops doctor [--skip-auth]      # config + secret store + JWT login + mgr-dashboard reachability
ceph-aiops mcp                       # start the MCP server (stdio transport)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/cli-reference.md (reported line 52)May include surrounding context.

md
- `--target, -t <name>` — target name from `config.yaml` (omit to use the default/first target)
- `--dry-run` — print the API call that would be made, change nothing
- Destructive commands (`osd out`, `osd purge`) require `--dry-run` review + double confirmation
- `doctor --skip-auth` — skip the JWT login / connectivity check (config + secret-store checks only)

## Approver env vars (high-risk ops)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/setup-guide.md (reported line 136)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that a
password is present per target, and (unless `--skip-auth`) connectivity by
performing the JWT login against the mgr Dashboard.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli-reference.md (reported line 21)May include surrounding context.

ceph-aiops secret set [--value ] # store Dashboard password (hidden prompt if no --value) ceph-aiops secret list # names only — values never shown ceph-aiops secret rm ceph-aiops secret migrate # import legacy plaintext .env (CEPH__PASSWORD) ceph-aiops secret rotate-password # re-encrypt under a new master password

text

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
uvx"]},"optional":{"env":["CEPH_AIOPS_CONFIG","CEPH_AIOPS_MASTER_PASSWORD"]},"homepage":"https://github.com/AIops-tools/Ceph-AIops","emoji":"🐙","os":["macos","linux"]}}
compatibility: >
  Standalone, self-governed Ceph operations. The governance harness (audit, policy, token/runaway budget, undo, risk-tiers) is bundled in the package — no external skill-family dependency. Works against vanilla ceph-mgr (cephadm / hypervisor-bundled Ceph / MicroCeph); no croit and no Kubernetes dependency.
  All write operations are audited to a local SQLite DB under ~/.ceph-aiops/ (relocatable via CEPH_AIOPS_HOME).
  Connection: the ceph-mgr Dashboard REST API over HTTPS (default port 8443). Authentication is username + password exchanged for a short-lived JWT at POST /api/auth; the mgr 'dashboard' module must be enabled. The username lives in config.yaml; the password is stored ENCRYPTED in ~/.ceph-aiops/secrets.enc (Fernet/AES-128 + scrypt-derived key) — never plaintext on disk. Run 'ceph-aiops init'

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

With write-capable Dashboard credentials, destructive MCP operations have no enforced operator-approval gate; the document explicitly delegates confirmation to model instructions. A mistaken or prompt-injected agent could therefore delete pools, images, or snapshots within its account permissions without independent approval, and audit records or optional previews would not prevent the loss.

Content

Scanner excerpt · references/agent-guardrails.md (reported line 15)May include surrounding context.

md
## Authorization is not this tool's job — decide it where it belongs

Whether a write should happen is your decision, or the account's. The tool does
not gate it — there is no read-only switch and no approval prompt to configure.
The two right places to control read vs write:

- **The account you connect with.** Give it a ceph-mgr Dashboard account with a

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/cli-reference.md (reported line 11)May include surrounding context.

bash
ceph-aiops init                      # interactive onboarding wizard
ceph-aiops doctor [--skip-auth]      # config + secret store + JWT login + mgr-dashboard reachability
ceph-aiops mcp                       # start the MCP server (stdio transport)

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/cli-reference.md (reported line 52)May include surrounding context.

md
- `--target, -t <name>` — target name from `config.yaml` (omit to use the default/first target)
- `--dry-run` — print the API call that would be made, change nothing
- Destructive commands (`osd out`, `osd purge`) require `--dry-run` review + double confirmation
- `doctor --skip-auth` — skip the JWT login / connectivity check (config + secret-store checks only)

## Approver env vars (high-risk ops)

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/setup-guide.md (reported line 136)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that a
password is present per target, and (unless `--skip-auth`) connectivity by
performing the JWT login against the mgr Dashboard.