Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
hashcat-mcp exhibits significant definition quality gaps typical of community security tools. While 16 tools are explicitly registered with proper JSON schemas and type definitions, descriptions are sparse and parameter documentation is inadequate. Tool naming is generally verb-forward and clear (identify_hash, dictionary_attack, bruteforce_attack), which is a strength. However, most parameter descriptions are minimal or absent, descriptions lack WHEN/WHY guidance, output schemas are undocumented, and error handling provides no recovery guidance. The server exposes significant security concerns (file paths, wordlist references) without input validation or permission gating. Schema coverage is present but parameter-level documentation is weak, many parameters like 'hash_file', 'wordlist', 'mask' lack constraints, format guidance, or validation rules. No tool-chaining IDs are returned (e.g., session names are optional and auto-generated, breaking reproducibility). Error responses (via subprocess timeouts and hash validation) lack classification or actionable guidance for the LLM.
Tools (16)
benchmarkread onlysource verified63/100
Benchmark hash speed
bruteforce_attackreversiblesource verified60/100
Brute-force using mask patterns (-a 3). Provide either hash_file OR hash_string.
check_hashcatread onlysource verified67/100
Verify hashcat is installed
combination_attackreversiblesource verified60/100
Combine words from two wordlists (-a 1). Provide either hash_file OR hash_string.
dictionary_attackreversiblesource verified62/100
Wordlist/dictionary attack against hashes (-a 0). Provide either hash_file OR hash_string.
extract_hasheswritesource verified67/100
Merge Linux passwd and shadow files to create crackable hashes (Python unshadow implementation).
Undocumented output schemas across all tools. No tool declares what fields it returns, field types, or structure. LLMs cannot plan downstream tool calls or extract needed data without reverse-engineering from execution.
Parameter descriptions are sparse and lack format/constraint guidance. 'wordlist' parameter in dictionary_attack, combination_attack, hybrid_wordlist_mask, rule_attack, no description of expected file path format, whether relative/absolute, or location conventions. LLMs cannot know if '/usr/share/wordlists/rockyou.txt' is valid or what constitutes a valid wordlist.
Document output schema for every tool. State: field names, types (string, integer, array, object), whether fields are always present or conditional, and provide a JSON example. Example for identify_hash: {"hash_type": "string", "hash_mode": "integer", "confidence": "number 0-1"}.
Add full parameter descriptions to all tools. For each param, include: what it controls, expected format, valid values/ranges, and constraints. Example for 'wordlist': 'Path to a wordlist file (relative or absolute). File must exist and be readable. Commonly found in /usr/share/wordlists/. Example: rockyou.txt or /custom/path/my_wordlist.txt'.
Document mutual exclusivity in parameter descriptions. Add: 'Provide either hash_file (path to file) OR hash_string (inline hash), not both. If both are provided, hash_file takes precedence.'
Implement input validation and error recovery. Validate file paths against path traversal attacks (reject '..' components), validate hash_mode against hashcat's supported modes, validate mask pattern syntax. Return structured errors: {"error": "Invalid hash_mode", "provided": 1999999, "valid_modes": [0, 100, 1400, ...], "next_step": "Call list_modes() to see all valid hash modes."}.
Add session name tracking. Modify dictionary_attack, combination_attack, bruteforce_attack, hybrid_wordlist_mask, hybrid_mask_wordlist, rule_attack to return session_name in output (either the provided name or the auto-generated one) so LLMs can call restore_session with the exact session identifier.
Add permission gating and audit logging. Gate destructive tools (dictionary_attack, extract_hashes) behind a permission check. Log: caller_id, tool_name, parameters (sanitized), timestamp, result (success/failure). Example: 'agent-12345 called dictionary_attack on 2024-01-15T10:23:45Z with hash_mode=0, result: 3 hashes cracked'.
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
No error handling guidance. Subprocess calls timeout silently or fail with raw hashcat output (stderr). No error categorization (retryable vs fatal), no recovery hints (e.g., 'wordlist not found, try list_rules()'), no input validation feedback. LLMs cannot self-correct or plan around failures.
Mutually exclusive parameters not documented. 'dictionary_attack', 'show_cracked', 'show_uncracked', 'verify_hash_file' all accept EITHER 'hash_file' OR 'hash_string' but do not state this mutual exclusivity in parameter descriptions. LLMs will pass both, causing ambiguous behavior.
No input validation or sanitization. File paths (wordlist, rule_file, passwd_file, shadow_file, output_file) are passed directly to subprocess without path traversal checks. 'hash_mode' and 'mask' are not validated against hashcat's accepted values. LLMs can be tricked via prompt injection to pass '../../../etc/passwd' or invalid hash modes.
No permission gating or scope declaration. destructive/reversible operations (dictionary_attack, bruteforce_attack, extract_hashes) do not verify caller authority. No audit logging of who called what tool with which parameters. Dangerous for multi-user or compliance scenarios.
No tool-chaining support. Session names are auto-generated if omitted, but session_name is not returned from dictionary_attack, combination_attack, etc., so the LLM cannot resume the session later with restore_session. Output must include session_name for chaining.
Parameter descriptions are too short or generic. Examples: 'hash_file' (no description), 'hash_mode' ('hash mode' repeated), 'timeout' (no guidance on unit: seconds? milliseconds?).
No pagination or result limiting. list_devices, list_rules return unbounded results. If a system has hundreds of rule files or GPU devices, the full list enters the LLM context, bloating token cost and degrading reasoning.
Tool descriptions lack WHEN/WHY guidance. 'Identify hash type from a hash string', but identify_hash does not say what to do with the result, when to call it vs other tools, or what format it returns. LLMs struggle to pick identify_hash vs verify_hash_file without this context.
Add timeout units and guidance. Clarify that 'timeout' is in seconds. Provide guidance: 'Optional. Default is no timeout. Recommended: 300 (5 minutes) for large wordlists, 3600 (1 hour) for bruteforce. If timeout is reached, call restore_session(session_name) to resume.'.
Add pagination to list_devices and list_rules. Accept limit (default 50, max 200) and offset parameters. Return {"items": [...], "total": 123, "limit": 50, "offset": 0} so LLMs can fetch results in batches.
Enhance tool descriptions with WHEN/WHY. Example for dictionary_attack: 'Crack hashes using a wordlist (common passwords, dictionary words). Call this after identify_hash() to confirm hash type. Returns cracked plaintext passwords and unchanged hashes. Use when you have or can guess a relevant wordlist.'
Add confirmation/dry-run support for extract_hashes. Before writing output_file, ask the LLM to confirm: 'This will merge passwd and shadow files and write to /tmp/hashes.txt. Proceed? (yes/no)'. Prevent accidental file overwrites or data leaks.
Document hash mode enums. Accept either the numeric mode (e.g., 0) or a friendly name (e.g., 'MD5'). Add description: 'Hash algorithm mode. Can be numeric (e.g., 0, 100, 1400) or friendly name (e.g., MD5, SHA1, SHA256, bcrypt, NTLM). Call benchmark() to see available modes on this system.'
Strip verbose metadata from responses. Do not return raw hashcat status lines, session binary data, or GPU register details. Return only: cracked_hashes (array of {hash, plaintext}), uncracked_hashes (array), session_name, status (success/timeout/error), duration_seconds.