Skip to main content
Glama

impacket_secretsdump

Dump SAM, NTDS, and LSA secrets from Windows systems to retrieve credential hashes for authorized penetration testing.

Instructions

Dump SAM, NTDS, and LSA secrets from a Windows target using Impacket secretsdump.

Extracts credential hashes from the SAM database (local accounts), NTDS.dit (domain accounts), and LSA secrets (service account passwords, cached credentials).

Args: target: Target IP address or hostname. domain: Domain name (use "." for local accounts). username: Username for authentication. password: Password for authentication (redacted in logs). hashes: NTLM hash for pass-the-hash (format: LM:NT). Alternative to password. timeout: Override scan timeout in seconds.

Returns: Extracted credential hashes organized by type (SAM, NTDS, LSA secrets).

WARNING: - This is a destructive/intrusive operation detectable by EDR solutions. - Requires admin credentials on the target system. - Target must be in tengu.toml [targets].allowed_hosts. - Requires explicit human authorization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
hashesNo
targetYes
timeoutNo
passwordNo
usernameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description fully discloses behavioral traits: it is destructive/intrusive, detectable by EDR, requires admin credentials and explicit human authorization, and targets must be in allowed_hosts. It also notes that the password is redacted in logs and returns data organized by type. This is comprehensive for a security tool with no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (summary, args, returns, warnings). It front-loads the core purpose, uses bullet points for parameters and warnings, and every sentence adds value. The length is appropriate for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description still explains return values and includes essential warnings and prerequisites. Combined with the parameter details and clear purpose, it provides a complete picture for an agent to decide when and how to invoke this tool, even among many siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the Args section gives meaningful explanations for every parameter: target (IP/hostname), domain (use '.' for local), username, password (redacted in logs), hashes (LM:NT format for pass-the-hash), and timeout. This fully compensates for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Dump SAM, NTDS, and LSA secrets from a Windows target using Impacket secretsdump.' This clearly distinguishes it from sibling impacket tools like impacket_kerberoast, impacket_psexec, and impacket_smbclient, which target different functionalities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool: to extract credential hashes from Windows systems. It also lists prerequisites (admin credentials, allowed_hosts, human authorization) that act as usage constraints. However, it does not explicitly name alternatives or state when not to use this tool, so it misses the top score for explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rfunix/tengu'

If you have feedback or need assistance with the MCP directory API, please join our Discord server