# NeuroSploit — Kali worker image # Isolated per-task container with the full pentest toolbox. # Runs as unprivileged user, read-only rootfs, no-new-privileges. FROM kalilinux/kali-rolling RUN set -eux; \ apt-get update; \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ # Core networking curl wget netcat-openbsd dnsutils iputils-ping iproute2 socat nmap masscan \ # Web scanning nikto whatweb wapiti dirb gobuster feroxbuster \ # Fuzzing ffuf wfuzz \ # SQL injection sqlmap \ # Exploitation frameworks metasploit-framework exploitdb \ # Password cracking john hashcat hydra medusa \ # Recon & OSINT whois fierce dnsenum dnsrecon amass subfinder \ # Web proxying proxychains4 mitmproxy \ # Binary analysis binwalk radare2 gdb ltrace strace \ # Scripting python3 python3-pip python3-venv ruby perl \ # SSL/TLS sslscan sslyze testssl.sh \ # SMB/Windows smbclient enum4linux crackmapexec evil-winrm \ # Active Directory bloodhound impacket-scripts \ # Cloud tools awscli \ # Container / K8s kubectl 2>/dev/null || true; \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ # Wireless (if available) aircrack-ng 2>/dev/null || true; \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ # Utils jq git vim-tiny tmux procps bash-completion ca-certificates unzip openjdk-17-jre-headless \ ; \ # Install Go-based tools via go install apt-get install -y --no-install-recommends golang-go 2>/dev/null || true; \ # Cleanup apt-get clean; \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \ # Create unprivileged user groupadd -g 10001 pentest; \ useradd -u 10001 -g 10001 -d /home/pentest -m -s /bin/bash pentest; \ mkdir -p /workspace /home/pentest/.local /opt/ghidra; \ chown -R 10001:10001 /workspace /home/pentest; \ # Remove setuid bits find / -xdev -perm /6000 -type f -exec chmod a-s {} + 2>/dev/null || true # Install Ghidra for reverse engineering RUN GHIDRA_VERSION="11.2.1" && \ GHIDRA_DATE="20241105" && \ curl -sL "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${GHIDRA_VERSION}_build/ghidra_${GHIDRA_VERSION}_PUBLIC_${GHIDRA_DATE}.zip" -o /tmp/ghidra.zip && \ unzip -q /tmp/ghidra.zip -d /opt/ && \ mv /opt/ghidra_* /opt/ghidra && \ rm /tmp/ghidra.zip && \ ln -s /opt/ghidra/support/analyzeHeadless /usr/local/bin/analyzeHeadless || \ echo "Ghidra download failed — RE will fall back to radare2" # Install nuclei & httpx (ProjectDiscovery tools) RUN pip3 install --break-system-packages pipx 2>/dev/null || true; \ # Try installing from kali repos first, fallback to direct download apt-get update && apt-get install -y --no-install-recommends nuclei 2>/dev/null; \ rm -rf /var/lib/apt/lists/* || true USER 10001:10001 WORKDIR /workspace ENV HOME=/home/pentest \ LANG=C.UTF-8 \ TERM=xterm-256color \ PATH="/home/pentest/.local/bin:$PATH" CMD ["sleep", "infinity"]