Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GasPot honeypot integration #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added honeyscanner/GasPot/0.1.0.zip
Binary file not shown.
28 changes: 28 additions & 0 deletions honeyscanner/GasPot/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Use the official Python 3 image based on Alpine Linux
# Reference: https://hub.docker.com/_/python
FROM python:3-alpine3.18

# Create a non-root user for improved security
RUN addgroup --gid 10001 --system veeder \
&& adduser --uid 10000 --system --ingroup veeder --home /home/veeder veeder

# Set the working directory inside the container
WORKDIR /honeyscanner/honeyscanner

# Create a log directory and set permissions
RUN mkdir -p /honeyscanner/honeyscanner/logs \
&& chown -R root:root /honeyscanner/honeyscanner

# Expose the port on which GasPot will listen
EXPOSE 10001

# Copy the application files, including the config.ini.dist file, to the container
COPY config.ini.dist /honeyscanner/honeyscanner/config.ini
COPY GasPot.py /honeyscanner/honeyscanner/GasPot.py


# Define the entry point for the container
ENTRYPOINT ["nohup", "python3", "GasPot.py"]

# Add a health check
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD nc -z localhost 10001
Loading