Skip to content

KaliTool — Kali Arsenal

KaliTool is the primary interface to 2,400+ Kali Linux security tools, deployed inside a Docker container. It is the first tool to reach for in every pentest phase.

Container Architecture

A single Docker image (ghcr.io/allyseclabs/allysec-kali-full:latest) contains the full Kali Linux toolchain. The container runs with host networking and auto-deploys on first use — no manual setup required.

FeatureDetail
Imageghcr.io/allyseclabs/allysec-kali-full:latest
NetworkingHost mode
PrivilegedRequired for raw socket tools (nmap -sS, etc.)
Auto-deployALLYSEC_AUTO_DEPLOY=1 (default)
Auto-installALLYSEC_AUTO_INSTALL=1 (default)

Actions

ActionPurpose
runExecute a named Kali tool with arguments
listShow available tools (filterable by stage or category)
recommendGet the best tool for a specific purpose with fallbacks
searchQuery the container for installed tools matching a keyword

Pentest Stages

Tools are mapped to 7 stages for phase-aware routing:

StagePurpose
recon-passiveOSINT, passive fingerprinting, DNS enumeration
recon-activePort scanning, service discovery, live host detection
enumerationService fingerprinting, directory brute force, subdomain enumeration
vuln-analysisVulnerability scanning, fuzzing, misconfig detection
exploitationExploit execution, payload delivery, shell access
post-exploitationPrivilege escalation, credential dumping, lateral movement
pivotingTunneling, proxy chains, route manipulation
reportingEvidence collection, report generation

Usage

Recommending a tool

When unsure which tool to use, always use recommend first:

KaliTool(action="recommend", purpose="port scanning", stage="recon-active")

Running a tool

KaliTool(tool="nmap", args=["-sT", "-Pn", "-p", "80,443,8080", "target.com"])

Searching for tools

KaliTool(action="search", tool="kerberos", stage="post-exploitation")

Tool discovery

KaliTool(action="list", stage="enumeration")

Tool Selection Priority

  1. KaliTool — first choice for recon, enumeration, and vuln-analysis phases
  2. RedTeamScript — when KaliTool can't cover a specific attack scenario
  3. ExploitTool — for confirmed exploitation of findings
  4. AttackImproviseTool — on first failure of any registered exploit
  5. Raw Bash — last resort for glue operations

Environment Variables

VariablePurpose
ALLYSEC_KALI_IMAGEOverride the default image
ALLYSEC_KALI_CONTAINEROverride container name
ALLYSEC_AUTO_DEPLOY1 = auto-deploy (default), 0 = disable
ALLYSEC_AUTO_INSTALL1 = auto-install missing tools (default), 0 = disable
GHCR_TOKENGitHub Container Registry token for pulling images

Released under the MIT License.