Add SSHCommandHunt module for detecting SSH tunneling and pivoting commands#1098
Merged
Conversation
This module searches command history and text artifacts for evidence of SSH tunneling and network pivoting commands. Tools detected include: - OpenSSH (ssh -L, -R, -D) - PuTTY Plink - Chisel - Netsh portproxy - Ngrok - Cloudflared - Ligolo - FRP - Socat The module parses command history files such as: ConsoleHost_history.txt .bash_history .zsh_history This helps investigators identify tunneling and pivoting activity during incident response.
AndrewRathbun
requested changes
Mar 10, 2026
Collaborator
AndrewRathbun
left a comment
There was a problem hiding this comment.
There is no Modules\bin folder in this repo, so we're not going to start doing that today. The Modules' BinaryUrl needs to point to the script that you want to be in the Modules\bin folder. Does that make sense?
Owner
|
As Andrew mentioned the repo cannot contain scripts or executables. You can host it on your own GitHub repo tho. |
AndrewRathbun
approved these changes
Mar 10, 2026
Contributor
Author
|
Thanks Andrew. I’ve made the script public and updated the BinaryUrl to point to the script. |
AndrewRathbun
approved these changes
Mar 10, 2026
Collaborator
AndrewRathbun
left a comment
There was a problem hiding this comment.
I moved this to Apps\GitHub as well, btw. Since the Module is running something that's open source on GitHub, the appropriate subfolder is Apps\GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a KAPE module that searches command history and text artifacts for evidence of SSH tunneling and network pivoting commands.
The module detects usage of tools such as:
It parses artifacts including:
This module helps investigators identify network pivoting and tunneling activity during incident response.