Commit Graph

71 Commits

Author SHA1 Message Date
d9ba6b3b61 Fixed server_version_string setting
The config template specified the default server version string as "SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3" but the SSH module automatically prepends "SSH-2.0-" to the beginning. This gave the version string returned to the client a potential fingerprint that could be used to easily identify DECEIVE honeypots. Updated the default value and added comments to document this behavior.
2025-02-13 13:19:21 -05:00
9844f2f59b Merge pull request #4 from Paulslewis66/main
Added Ollama Local LLM's
2025-02-12 10:05:51 -05:00
7ca56b86a5 Update config.ini.TEMPLATE
comment out llama config
2025-02-11 21:49:56 +00:00
ab6296e956 Revert "Update config.ini.TEMPLATE"
This reverts commit 2df4358356.
2025-02-11 21:44:44 +00:00
da0513f526 Revert "Update config.ini.TEMPLATE"
This reverts commit 92ad118de2.
2025-02-11 21:44:31 +00:00
2851120d67 Revert "Added LogViewer"
This reverts commit e60f33b8ea.
2025-02-11 21:44:27 +00:00
ae8c130a1b Revert "Added JSON and removed Base64"
This reverts commit 12fd8aeb70.
2025-02-11 21:44:18 +00:00
17ec8619e0 Revert "Update .gitignore"
This reverts commit f929f4b41d.
2025-02-11 21:44:11 +00:00
e9cdd22b34 Revert "Update .gitignore"
This reverts commit 95f1c5935f.
2025-02-11 21:44:00 +00:00
95f1c5935f Update .gitignore 2025-02-11 16:58:50 +00:00
f929f4b41d Update .gitignore
Added Logviewer .gitignore
2025-02-11 16:58:08 +00:00
12fd8aeb70 Added JSON and removed Base64 2025-02-09 19:17:44 +00:00
e60f33b8ea Added LogViewer 2025-02-09 16:57:00 +00:00
92ad118de2 Update config.ini.TEMPLATE
Update for incept5/llama3.1-claude LLM
2025-02-08 21:38:36 +00:00
2df4358356 Update config.ini.TEMPLATE
commented out Ollama
2025-02-08 21:17:22 +00:00
4bd3cfcdc2 Update config.ini.TEMPLATE
Added Ollama Config Option
2025-02-08 21:05:03 +00:00
f1f6c294e9 Update ssh_server.py
Added Ollama Model
2025-02-08 21:04:02 +00:00
c980fc6167 Update requirements.txt
Update for Ollama
2025-02-08 21:02:31 +00:00
1d0e046924 Added 'sensor_name' and 'sensor_protocol' to logs
* 'sensor_name` is an arbitrary string that identifies the specific honeypot sensor that generated the log. Set it in the config.ini file. If not set, it will default to the honeypot system's hostname.
* 'sensor_protocol' identifies the specific protocol this honeypot sensor uses. For SSH, it's always "ssh" but as other protocols are added to DECEIVE in the future, this will have different values for their logs.
2025-02-06 10:16:42 -05:00
fd0d8a78fc Update README.md
Added more info about the `details` and `interactive` fields to logging section.
deceive-1.0
2025-02-05 06:41:16 -05:00
dba537c58f removed debug statements 2025-02-04 16:11:48 -05:00
b222940de2 Wildcard password support
Setting a password to be "*" in the config file will cause the server to accept any password the client provides for that account, including an empty password.
2025-02-04 16:05:23 -05:00
0197b8b1df Update config.ini.TEMPLATE to support non-interactive commands
Oops, I forgot to commit this before.
2025-02-04 14:55:02 -05:00
5f27aeeabb Correctly handle both interactive and non-interactive SSH sessions
SSH servers can take user commands from an interactive session as normal, but users can also include commands on the ssh client command line which are executed on the server (e.g., "ssh <hostname> 'uname -a'"). We now execute these non-interactive commands properly as well.

Also added a new "interactive" flag to all user commands (true/false) to show which type of command execution this was.
2025-02-04 12:29:12 -05:00
585ee66009 Don't print ConnectionLost exceptions to the console
These are far too frequent. We still log them, though, we just don't print them.
2025-01-28 10:48:29 -05:00
7be73a7dff Make peername and sockname calls more robust across platforms
For whatever reason, MacOS returns 4 values from conn.get_extra_info('peername') and conn.get_extra_info('sockname'), but Linux systems only return 2.  On the Mac, it's only the first two that we need anyway. Now we retrieve them all, no matter how many there are, and just use the first two so it will work on both platforms.
2025-01-28 10:39:12 -05:00
788bd26845 Now print exceptions to console when SSH connection is lost 2025-01-28 10:21:27 -05:00
cea5dc28a2 New command line options for prompts and config files.
* --prompt-file to specify a file from which to read the prompt.
* --prompt to specify a prompt string on the command line
* --config to specify an alternate config file
2025-01-27 13:20:41 -05:00
545d50f294 Added DECEIVE image to README 2025-01-23 11:16:53 -05:00
32441dc4c0 Merge pull request #1 from splunk/user-system-prompt
Streamline the prompting
2025-01-17 19:37:52 +00:00
cda3c5496b Streamline the prompting
The config file now contains a new "system_prompt" value in the [llm] section. This would be the same for all DECEIVE instances, and configures how the emulation itself will act. The honeypot administrator should mostly keep this intact. The prompt.txt file now focuses more on what type of system to emulate, and optional details such as valid users, contents to stage on the system, etc.
2025-01-17 14:37:07 -05:00
767104fa72 Fixed improper acronym for DECEIVE 2025-01-17 11:48:35 -05:00
f1d010593e Ignore *_host_key 2025-01-13 10:36:54 -05:00
b4918788d7 Added PoC warning 2025-01-13 10:09:00 -05:00
4967d44df9 User input (commands) now base64 encoded in the log file 2025-01-10 15:47:16 -05:00
46a958aea8 Changed project name and expanded docs
* Project is now called DECEIVE, so the README.md has been updated to reflect this
* Added more details about installation, configuration, host platform support, and logging to the README.md
2025-01-10 15:46:42 -05:00
52541ab1ed Session summaries now include a "judgement" field to make it easier to search/filter. 2025-01-10 14:12:59 -05:00
e9044ba2ad JSON, summary, and exit fixes
* All logging is now in JSON lines format!
* Fixed a bug where the session summary was generated twice for the same session
* Fixed a reversion in the exit handling when the user logged out gracefully.
2025-01-10 13:38:04 -05:00
7185c7f5c7 Fix session summary and ascii errors
* Session summaries now occur both at normal session termination (e.g., the user gracefully logs out) or abnormal termination, such as if the client disconnects suddenly.
* Now encode the AI results as UTF-8 instead of ASCII, because it would ocassionally send back non-ASCII characters which caused the server to throw errors
2025-01-10 12:33:36 -05:00
3b546126b6 New AI-powered session summary and judgement. Removed extra exit() statement. 2024-12-20 13:37:40 -05:00
b16c76c26a Updated README.md and reformatted SSH system prompt. 2024-11-12 14:12:29 -05:00
d1c3704924 Added SSH config file template 2024-11-07 15:27:34 -05:00
a04e0d0eed Added asyncssh dependency 2024-11-07 14:14:56 -05:00
cf2ee082b1 Merge branch 'main' of https://github.com/splunk/AIHoneypot 2024-11-07 13:42:02 -05:00
ff848b44ac Create LICENSE
Added MIT license
2024-11-07 13:37:02 -05:00
e643ac344d Updated TODO 2024-08-26 14:36:32 -04:00
a73fefa9c4 Moved SSH honeypot to subdirectory 2024-08-26 14:31:52 -04:00
2461b42e40 Improved end-of-session handling
Rather than explicitly checking to see if the user
was typing a shell exit command, the LLM is now
instructed to provide a specific token starting
("XXX-END-OF-SESSION-XXX") to indicate that the
session should be closed. This allows the user to
exit the shell in any way they see fit, and the
LLM will still know when to end the session. It
also means that typing 'exit' or similar commands
to subshells or command interpreters (e.g. Python)
are less likely to cause the session to end.
2024-08-23 15:28:42 -04:00
ed95eda824 Improved honeypot logging
Logs now include the protocol (SSH) and the src/dest IPs and ports on each log line.
2024-08-23 13:52:36 -04:00
e2854e960c Now log passwords for any login attempt (failures and successes). 2024-08-23 12:41:51 -04:00