Atlantiraptor Docs

Windows.Registry.PuttyHostKeys

Type: Client · Author: Matt Green - @mgreen27

Extracts PuTTY SSH host keys stored in the Windows registry for each user.

As a security measure PuTTY and its companion utilities PSCP, PSFTP, and Plink record the host key for each server connected to in the Windows Registry.

  • Output KeyName: ssh-ed12345@22:27.27.27.27
  • To search for a specific IP: TargetKeyName =~ ':\<IP\>$'
  • To search for a specific PORT: TargetKeyName =~ '@\<PORT\>:.+$'

Parameters

Name Type Default Description
KeyGlob string Software\SimonTatham\Putty\SshHostKeys\**
TargetUser string .
TargetKeyName string .
TargetKeyValue string .

Source

Defined in artifacts/definitions/Windows/Registry/PuttyHostKeys.yaml.

name: Windows.Registry.PuttyHostKeys
author: Matt Green - @mgreen27
description: |
  Extracts PuTTY SSH host keys stored in the Windows registry for
  each user.

  As a security measure PuTTY and its companion utilities PSCP,
  PSFTP, and Plink record the host key for each server connected to
  in the Windows Registry.

  - Output KeyName: `ssh-ed12345@22:27.27.27.27`
  - To search for a specific IP: `TargetKeyName =~ ':\<IP\>$'`
  - To search for a specific PORT: `TargetKeyName =~ '@\<PORT\>:.+$'`

type: CLIENT

parameters:
   - name: KeyGlob
     default: Software\SimonTatham\Putty\SshHostKeys\**
   - name: TargetUser
     default: .
   - name: TargetKeyName
     default: .
   - name: TargetKeyValue
     default: .

sources:
  - precondition:
      SELECT OS From info() where OS = 'windows'

    query: |
      LET HKEY_USERS <= pathspec(path_type="registry", Path="HKEY_USERS")

      SELECT
        Mtime,
        Username,
        OSPath.Basename AS KeyName,
        Data.value AS KeyValue,
        HKEY_USERS + UUID + OSPath.Dirname AS Key,
        OSPath.DelegatePath AS SourcePath
      FROM Artifact.Windows.Registry.NTUser(KeyGlob=KeyGlob,userRegex=TargetUser)
      WHERE KeyName =~ TargetKeyName
        AND KeyValue =~ TargetKeyValue

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.