mirror of https://github.com/jtesta/ssh-audit.git
19 lines
356 B
Docker
19 lines
356 B
Docker
FROM python:3-slim
|
|
|
|
WORKDIR /
|
|
|
|
# Remove suid & sgid bits from all files.
|
|
RUN find / -xdev -perm /6000 -exec chmod ug-s {} \; 2> /dev/null || true
|
|
|
|
# Copy the ssh-audit code.
|
|
COPY ssh-audit.py .
|
|
COPY src/ .
|
|
|
|
# Allow listening on 2222/tcp for client auditing.
|
|
EXPOSE 2222
|
|
|
|
# Drop root privileges.
|
|
USER nobody:nogroup
|
|
|
|
ENTRYPOINT ["python3", "/ssh-audit.py"]
|