other
- Location
SKILL.md:20- Finding
Documented Skill Behavior Does Not Match the Implemented State-Changing Commands
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:20-95;scripts/script.sh:21-35,154-167
Vulnerability Type: Undisclosed state-changing functionality
Risk Level: LowTechnical Analysis
The Skill documentation advertises a read-only Kaizen reference utility with commands such as:
bash scripts/script.sh intro scripts/script.sh event scripts/script.sh pdca scripts/script.sh gemba scripts/script.sh a3 scripts/script.sh daily scripts/script.sh examples scripts/script.sh checklistThe script does not implement those commands. Its help text and command dispatcher instead expose a persistent local tracker:
bash Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show versionbash case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "kaizen v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: kaizen help"; exit 1 ;; esacThe script creates a persistent data directory before dispatching every command, including help and version:
bash CMD="${1:-help}" shift 2>/dev/null || true _ensure_dirsThis mismatch conceals local storage, modification, deletion, and export behavior from users reviewing only
SKILL.md.Attack Path
- A user or Agent loads the Skill based on its description as a Kaizen reference.
- The script is exposed or ...[truncated 680 chars]
- Remediation
View remediation
Remediation Suggestions
- Make the documentation and implementation consistent.
- Either implement the documented reference commands or replace the command documentation with the tracker commands actually supported.
- Clearly disclose creation of
~/.kaizen, the JSONL and configuration files, and all modification, deletion, and export operations. - Avoid creating the data directory for read-only commands such as
helpandversion. - Add automated tests that compare documented commands against the command dispatcher.
