Skip to content

alirezarezvani/claude-code-skill-factory / generated-skills/hook-factory

hook-factory

Flagged

Generate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation. Supports 10 templates across 7 event types for comprehensive workflow automation.

Security report

Flagged

Static analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.

Commit
ba18b31703542d9d7eda5f9ba94f0df65a59dddf
Content hash
2d09f526fcb296d3f74c5bd2ec9441302a9c202d868db30d6987d6c330de9f71
Scanned
2026-11-17
Scanner version
skillxone-scan-1.0.0
Policy version
0.1-draft
Decision
2 open critical or high findings.
Verification expires
Not applicable

Findings (1 critical, 1 high, 4 medium, 7 low, 4 info)

  • A recursive, forced delete targets the root directory, a system directory or the home directory.

    "command": "# Log user prompts for analysis\nif [ -n \"$CLAUDE_USER_PROMPT\" ]; then\n mkdir -p .claude\n echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $CLAUDE_USER_PROMPT\" >> .claude/prompt_log.txt\nfi\n\n# Add project context if available\nif […

    Suggested fix: Delete only specific paths inside a working or temporary directory.

    Report as false positive

  • highCMD-DISK-TOOLSvalidator.py:55

    A disk or partition tool can erase or reformat a drive.

    (r'mkfs\s+', 'mkfs command'),

    Suggested fix: Remove disk and partition operations from the skill.

    Report as false positive

  • A recursive, forced delete targets the root directory, a system directory or the home directory. Severity lowered from critical because the surrounding text warns against it.

    if echo "$CLAUDE_USER_PROMPT" | grep -qiE '(rm -rf /|sudo rm|format disk|delete database)'; then

    Suggested fix: Delete only specific paths inside a working or temporary directory.

    Report as false positive

  • mediumCMD-CHMOD-WORLD-WRITABLEhook_factory.py:516

    Files are made writable by every user on the machine.

    dangerous = ['rm -rf', 'dd if=', '> /dev/', 'chmod -R 777']

    Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.

    Report as false positive

  • mediumCMD-CHMOD-WORLD-WRITABLEREADME.md:428

    Files are made writable by every user on the machine.

    - **Destructive patterns:** rm -rf, git push --force, DROP TABLE, chmod 777

    Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.

    Report as false positive

  • mediumCMD-CHMOD-WORLD-WRITABLEvalidator.py:51

    Files are made writable by every user on the machine.

    (r'chmod\s+777', 'chmod 777'),

    Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.

    Report as false positive

  • A command runs with administrator privileges.

    sudo apt-get install libnotify-bin

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    sudo dnf install libnotify

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    "command": "# Log user prompts for analysis\nif [ -n \"$CLAUDE_USER_PROMPT\" ]; then\n mkdir -p .claude\n echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $CLAUDE_USER_PROMPT\" >> .claude/prompt_log.txt\nfi\n\n# Add project context if available\nif […

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    echo " Ubuntu: sudo apt-get install jq"

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    echo " Fedora: sudo dnf install jq"

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • lowCMD-SUDOvalidator.py:672

    A command runs with administrator privileges.

    # Check for sudo usage (requires password)

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • lowCMD-SUDOvalidator.py:677

    A command runs with administrator privileges.

    fix_suggestion='Avoid sudo in hooks - run commands with appropriate permissions'

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.

    if echo "$CLAUDE_USER_PROMPT" | grep -qiE '(rm -rf /|sudo rm|format disk|delete database)'; then

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.

    # Try: "Run sudo rm -rf on the test directory"

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPThook_factory.py:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env python3

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTinstall-hook.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

Checks run

  • prompt-injection
  • dangerous-commands
  • credentials
  • network
  • file-access
  • integrity

Checks skipped

  • dependencies: No dependency manifest in the skill directory.
  • gitleaks: gitleaks is not installed on this host.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 468kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall