mcpField
K
kali-linux

kali-linux

github.com/iulianditaCloud & DevOps1055 installsUpdated today
Repository

About kali-linux

A skill for Kali Linux administration, tool selection, and lab maintenance, intended for system administrators and security practitioners using Kali. It first distinguishes environments such as installed, live, VM, and NetHunter, then addresses branches, packages, hardware, and safe scope.

Key features

  1. 01Check Kali repositories and branches
  2. 02Choose suitable metapackages and tool families
  3. 03Troubleshoot images, live persistence, and recovery
  4. 04Handle wireless, GPU, and device support
  5. 05Separate lab environments from production systems

Use cases

  1. 01Diagnose Kali package update or repository issues
  2. 02Select an appropriate Kali tool bundle for a task
  3. 03Recover a live USB or persistence setup
  4. 04Investigate wireless device or NetHunter support

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/iuliandita/skills --skill kali-linux

After installing, type/kali-linuxin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
agent-hygiene.md
gotchas-and-special-situations.md
images-live-persistence-and-recovery.md
lab-safety-and-scope.md
metapackages-and-tool-families.md
output-contract.md
packages-branches-and-repos.md
wireless-gpu-hardware-and-nethunter.md

Details

From the project README

Kali Linux: Kali Administration, Tooling, and Lab Workflow

Kali is Debian-shaped, but the places where it goes wrong are usually Kali-specific: branch mixing, metapackage sprawl, stale images, persistence mistakes, hardware edge cases, or people using the wrong tool family for the job.

Administer Kali Linux without flattening it into plain Debian or into a bag of offensive tools. Start by identifying which Kali lane you are actually on - rolling install, last-snapshot, live USB, VM image, Purple image, NetHunter, or a throwaway lab box - then separate base OS health from tool-selection questions, branch hygiene, hardware support, and engagement scope.

Target versions (verified October 2026):

Only pin versions or dated anchors here when they materially affect compatibility or troubleshooting shape. For ordinary package work, prefer the live branch and repo state over a stale package table.

ComponentVersion or dateWhy it matters
Current dated Kali image release2026.3current image baseline and release notes
Branch docsOctober 2026 recheck / verify livebranch behavior and safe lane selection matter more than a single package version
Metapackage docs2025-07 / verify livetool-family grouping and install scope matter more than memorizing one package list
Kali 2026.3 kernel lane7.1.5release-image baseline for hardware and driver expectations

When to use

  • Package management on Kali with apt, dpkg, apt-cache, repo sanity checks, keyrings, or branch validation
  • Kali image and install questions: live ISO, netinst, ARM and SBC images, VM images, persistence, and recovery
  • Kali branch and source-list questions: kali-rolling, kali-last-snapshot, selective branch use, and mirror hygiene
  • Metapackage planning: kali-linux-default, kali-linux-everything, focused kali-tools-* bundles, desktop metapackages, and kali-tweaks
  • Selecting the right Kali tool family for the job before installing half the archive by accident
  • Kali desktop and laptop work: Xfce, GNOME, KDE, i3, PipeWire, GPU drivers, capture tooling, and VM guest behavior
  • Wireless, SDR, Bluetooth, RFID, HID, USB, and offensive-hardware support that is really a Kali host or package problem
  • NetHunter and mobile-adjacent Kali questions where the issue is image, package, kernel, or host-tooling shape rather than exploit technique
  • Safe lab setup, intentionally vulnerable practice targets, snapshot workflow, and separation between lab and production systems
  • Base Linux ops on Kali when the Kali-specific repo, branch, image, or tool context matters more than generic Debian advice

When NOT to use

  • Generic Debian, Ubuntu, Mint, or Pop!_OS administration without Kali-specific context - use debian-ubuntu
  • Arch, CachyOS, or EndeavourOS administration - use arch-linux
  • Fedora, RHEL, Rocky, or AlmaLinux administration - use rhel-fedora
  • NixOS or declarative Nix configuration - use nixos
  • Shell syntax, quoting, or script portability - use shell-scripting
  • Network architecture, DNS, VPNs, reverse proxies, or firewall design - use networking
  • Docker, Podman, image builds, or container runtime issues - use docker
  • Hypervisor configuration, passthrough wiring, or VM platform issues where the fault is clearly outside the Kali guest - use virtualization
  • Kubernetes cluster or manifest work - use kubernetes
  • Fleet-wide Linux configuration via playbooks - use ansible
  • Exploitation, privilege escalation, lateral movement, or post-exploitation on live targets - use privilege-escalation
  • Novel vulnerability hunting, reverse engineering depth work, fuzzing, or proof-of-concept research - use vulnerability-research
  • Defensive hardening, vuln triage, or broad security review - use security-audit
  • OPNsense or pfSense appliance work - use opnsense-pfsense

AI Self-Check

Before returning Kali commands or tool recommendations, verify:

  • Kali lane identified: rolling install, last-snapshot, live USB, VM image, Purple image, NetHunter, or a custom lab box. Advice diverges fast.
  • Not flattened into plain Debian: do not give generic Debian advice without checking Kali branches, metapackages, and package origin first.
  • Branch model understood: kali-rolling vs kali-last-snapshot vs partial or development branches such as kali-experimental, kali-bleeding-edge, and kali-dev. Do not mix them casually. Branch, snapshot, metapackage, and NetHunter advice matches official docs.
  • Repo state is clean: no blind Debian repo additions, no stale image assumptions, no broken kali-archive-keyring, and no contradictory source lists.
  • Upgrade path is coherent: prefer apt update plus apt full-upgrade on Kali when package transitions matter. Do not cargo-cult apt upgrade and call it done.
  • Image mode identified: installed system, live media, persistence-backed live media, VM image, or mobile image. Recovery steps differ.
  • Metapackage scope is intentional: do not suggest kali-linux-everything when a focused kali-tools-* bundle is the sane answer.
  • Tool family matches the task: information gathering, vulnerability assessment, web, passwords, wireless, reverse engineering, exploitation, post-exploitation, forensics, reporting, or labs.
  • Authorization boundary respected: Kali tool recommendations still require authorized scope. A tool index is not permission; offensive tooling stays in authorized labs, CTFs, or owned systems.
  • Lab packages are treated as intentionally vulnerable: kali-linux-labs exists for controlled practice, not for everyday workstation installs.
  • Wireless and hardware path is real: chipset, firmware, monitor mode, injection support, SDR stack, USB passthrough, and kernel modules match the actual hardware.
  • GPU and capture stack is coherent: VM passthrough, host acceleration, PipeWire, browser capture, and desktop session line up before blaming the tool.
  • NetHunter is not treated like normal desktop Kali: mobile kernels, Android host constraints, rootless vs full chroot shape, and missing systemd-style tooling can change which checks even make sense.
  • Correct handoff chosen: route post-foothold escalation or related authorized paths to privilege-escalation. Route original vulnerability discovery to vulnerability-research.
  • Diagnostic errors are not silenced: do not hide useful failure output with 2>/dev/null on commands whose error reason matters. Use 2>&1 || true when gathering.
  • Cross-cutting agent hygiene applied - see references/agent-hygiene.md

Workflow

The steps are ordered. Copy this checklist and track progress:

  • Step 1: Kali lane identified
  • Step 2: Current state gathered
  • Step 3: Matching reference loaded
  • Step 4: One layer changed; consequential changes confirmed first
  • Step 5: Validated (on failure, fix and return to Step 4)
Step 1: Identify the Kali lane first
LaneDefault stanceWhat changes
Installed Kali rollingdefault for most userscontinuous updates, package drift matters, repo hygiene is everything
Kali last-snapshotsafer, more frozen lanerelease-like behavior between versioned snapshots
Live ISO / live USBtreat as ephemeral firstpersistence, overlay state, and storage layout change recovery
VM imagecheck guest tooling and hypervisor assumptionsshared clipboard, display, USB passthrough, and virtual NIC quirks matter
ARM / SBC imagecheck board-specific image assumptions firstboot firmware, storage media, peripherals, and package expectations differ from amd64 installs
Kali Purple imagesecurity distro with blue-team flavorpackage mix and image choice differ from a standard red-team workstation
NetHuntermobile and kernel-sensitiveAndroid host, custom kernels, HID, and wireless support change the answer
Partial or development branch userslow down immediatelykali-experimental, kali-bleeding-edge, and kali-dev are not casual defaults
Step 2: Gather current system state

Start narrow, then widen only if the failing layer is still unclear.

Baseline checks for every Kali case:

cat /etc/os-release
uname -r
find /etc/apt -maxdepth 2 -type f \( -path /etc/apt/sources.list -o -path '/etc/apt/sources.list.d/*.list' -o -path '/etc/apt/sources.list.d/*.sources' \) \
  -exec grep -HnEv '^[[:space:]]*(#|$)' {} +
apt-cache policy 2>&1 || true
apt-cache policy kali-archive-keyring kali-defaults kali-linux-core kali-linux-default 2>&1 || true
apt list --upgradable 2>&1 | tail -n +2
findmnt /
lsblk -f
dpkg -l | grep '^ii  kali-' | head -40

Add subsystem probes only when the task needs them. On NetHunter or other mobile-adjacent environments, skip desktop or systemd-specific probes that do not exist there.

# services and logs
ps -p 1 -o comm=
command -v systemctl >/dev/null 2>&1 && systemctl --failed 2>&1 || true
command -v journalctl >/dev/null 2>&1 && journalctl -b -p warning..alert 2>&1 || true

# boot and storage
findmnt /boot 2>&1 || true
findmnt /boot/efi 2>&1 || true

# desktop and capture path
echo "Session=$XDG_SESSION_TYPE Desktop=$XDG_CURRENT_DESKTOP"
loginctl list-sessions 2>&1 || true
systemctl status display-manager 2>&1 || true
systemctl --user --failed 2>&1 || true
systemctl --user status pipewire pipewire-pulse wireplumber xdg-desktop-portal 2>&1 || true
command -v wpctl >/dev/null 2>&1 && wpctl status

# hardware, wireless, GPU, and NetHunter
lspci -k | grep -Ei 'vga|3d|display|network|wireless'
lsusb
rfkill list 2>&1 || true
iw dev 2>&1 || true
journalctl -b | grep -Ei 'nvrm|nvidia|amdgpu|i915|xe|ath|iwlwifi|brcm|rtl|mt76|drm' 2>&1 || true
command -v dkms >/dev/null 2>&1 && dkms status 2>&1 || true
command -v airmon-ng >/dev/null 2>&1 && airmon-ng 2>&1 || true
command -v nethunter >/dev/null 2>&1 && nethunter -h 2>&1 | head -20
Step 3: Load only the relevant reference
Task typeReference
apt, sources, keyrings, rolling vs snapshot, mirrorsreferences/packages-branches-and-repos.md
choosing metapackages and understanding Kali tool familiesreferences/metapackages-and-tool-families.md
live USB, persistence, installers, VM images, recoveryreferences/images-live-persistence-and-recovery.md
wireless, GPU, SDR, USB, Bluetooth, NetHunter, hardware supportreferences/wireless-gpu-hardware-and-nethunter.md
scope discipline, vulnerable labs, snapshots, safe practicereferences/lab-safety-and-scope.md
recurring Kali breakage patterns and edge casesreferences/gotchas-and-special-situations.md

Do not load every reference by default. Pick the one that matches the failure mode, then widen only if the first layer is clean.

Step 3.5: Stay here or hand off
Request shapeRoute
install, package, image, persistence, hardware, or tool-family selection on Kalistay in kali-linux
hypervisor config, USB passthrough, guest display acceleration, or VM platform wiringuse virtualization
exploit, pivot, privilege escalate, or run post-exploitation workflow on an authorized targetuse privilege-escalation
fuzz, reverse engineer deeply, hunt a novel bug, or build a PoCuse vulnerability-research
review the target code or service for defensive findingsuse security-audit
generic Debian-family host admin with no Kali-specific contextuse debian-ubuntu
Step 4: Change one layer at a time
  • Fix source lists and package state before debugging tools that may simply be missing or mismatched.
  • Fix image or persistence layout before declaring the live USB broken.
  • Fix desktop session and capture plumbing before blaming Burp, Wireshark, or browser tooling.
  • Fix hardware support and firmware before blaming monitor mode, injection, SDR, or Bluetooth tools.
  • Pick the smallest metapackage that matches the workflow instead of installing everything.
  • Keep labs and production separate. Prefer snapshots, throwaway VMs, and isolated USB media.
  • Snapshot before major upgrades, GPU/wireless driver work, or live persistence changes.

Consequential changes (full-upgrade with removals, branch or source-list changes, large metapackage installs or removals, writing or repartitioning USB media, kernel and DKMS driver work): show the exact command and what it will do (simulated transaction, source-list diff, or target device), get explicit confirmation, run it, then go to Step 5. In unattended runs, stop at the plan. Exact commands live in references/packages-branches-and-repos.md (upgrades, branch recovery) and references/images-live-persistence-and-recovery.md (live USB and persistence).

Step 5: Validate before closing
apt-cache policy package_name
command -v systemctl >/dev/null 2>&1 && systemctl status unit_name 2>&1 || true
journalctl -u unit_name -b 2>&1 || true
dpkg -l | grep '^ii  kali-' | head -20
command -v msfconsole 2>/dev/null || true
command -v nmap 2>/dev/null || true
command -v aircrack-ng 2>/dev/null || true

If a check fails, fix the layer it points to and return to Step 4. Reboot only when the boot path, persistence story, or kernel change is understood and at least one known-good recovery path remains.


Troubleshooting Pattern

Keep triage cross-layer and boring:

  1. Confirm the Kali lane, branch, image type, and repo state.
  2. Identify the failing layer: packages, image or persistence, desktop session, hardware, or tool selection.
  3. Pull the right logs before changing config.
  4. Change one layer at a time and retest.
  5. Keep scope and safety separate from tool installation.

Core log sweep:

journalctl -b -p warning..alert
journalctl --user -b
dmesg --level=err,warn
journalctl -u unit_name -b 2>&1 || true

Broad pattern sweeps when you need correlation, not first-pass precision:

journalctl -b | grep -Ei 'nvrm|nvidia|amdgpu|i915|xe|ath|iwlwifi|brcm|rtl|mt76|drm' 2>&1 || true
journalctl --user -b | grep -Ei 'portal|pipewire|webrtc|burp|wireshark' 2>&1 || true

When the problem smells like "Kali is broken," check the boring causes first:

  • source-list drift or stale keyring
  • branch mixing
  • huge metapackage install on weak hardware
  • USB passthrough or monitor-mode expectations that the chipset cannot satisfy
  • live USB persistence corruption
  • VM guest additions and display stack mismatch

Default Decisions

  • Kali means branch hygiene first. The repo state explains more failures than exotic package folklore.
  • Prefer kali-rolling unless there is a clear reason not to. It is the main branch most users should be on.
  • Use kali-last-snapshot when the user wants calmer release-like behavior. Do not enable it beside kali-rolling just because more sounds better.
  • Prefer focused metapackages. kali-tools-* bundles beat kali-linux-everything unless the box truly exists to be a giant toolbox.
  • Treat Kali as a workflow distro, not just a package repo. Image choice, persistence, hardware, and scope matter as much as package names.
  • Stay package-focused when the ask is package-focused. Installing nuclei, burpsuite, hashcat, or reversing tools stays here until the question turns into defensive review, offensive workflow, or novel vulnerability research.
  • Labs should be disposable. Snapshots, throwaway VMs, and isolated media beat hand-maintaining a single sacred pentest laptop forever. Use snapshots or pinned images for repeatable labs rather than debugging rolling drift mid-exercise.
  • Kali is not a hardened daily-driver server by default. Keep wordlists, captures, and VM disks outside small root partitions.
  • Tool families come before individual tool bikeshedding. Pick the category, then the tool, then the package.
  • Wireless and SDR work are hardware stories first. Chipset support, firmware, passthrough, power, and monitor-mode reality matter more than menu entries.
  • Route offensive depth correctly. Kali can install the tools, but privilege-escalation owns exploitation workflow and vulnerability-research owns novel bug discovery.

Quick Triage Checklist

SymptomFirst checks
apt weirdness after installsource lists, apt-cache policy, keyring package, branch mixing, apt full-upgrade pending
Tool missing even though metapackage was installeddpkg -l, apt-cache depends, command path, package split, transitional package
Live USB lost changespersistence partition, mount state, overlay corruption, wrong image mode
VM feels broken or blind to USB gearhypervisor guest tools, USB passthrough, network mode, display acceleration
Wireless tools do not see monitor mode or injectionchipset support, firmware, rfkill, USB power, passthrough, kernel module
SDR or hardware tools misbehavepackage state, udev access, kernel modules, USB permissions, device firmware
Burp or browser capture feels brokendesktop session, CA import, proxy binding, PipeWire or portal path for GUI helpers
NetHunter issueAndroid version, kernel support, image flavor, HID and wireless support, mobile package lane
System is huge and slowmetapackage sprawl, desktop choice, background services, kali-linux-everything regret
Nothing makes sensecheck gotchas reference - branch mixing, stale keyring, persistence drift, VM passthrough mistakes, and unsupported Wi-Fi chipsets explain a lot

Reference Files

  • references/packages-branches-and-repos.md - Kali branch model, source lists, keyrings, updates, and package-state recovery
  • references/metapackages-and-tool-families.md - what the main Kali metapackages install, how the tool families map to real workflows, the kali-tweaks configuration menu, and when to hand off to privilege-escalation or vulnerability-research
  • references/images-live-persistence-and-recovery.md - installer ISOs, netinst, live images, Purple images, VM images, persistence, and recovery flow
  • references/wireless-gpu-hardware-and-nethunter.md - Wi-Fi, Bluetooth, RFID, SDR, GPU, USB passthrough, and NetHunter-specific hardware realities
  • references/lab-safety-and-scope.md - disposable lab setup, intentionally vulnerable targets, snapshots, and authorization boundaries
  • references/gotchas-and-special-situations.md - recurring Kali breakage patterns and edge cases

Output Contract

See references/output-contract.md for the full contract.

  • Skill name: KALI-LINUX
  • Deliverable bucket: audits
  • Mode: conditional. When invoked to analyze, review, audit, or improve existing repo content, apply the reporting size and evidence rules in references/output-contract.md and write the deliverable to docs/local/audits/kali-linux/<YYYY-MM-DD>-<slug>.md. When invoked to answer a question, teach a concept, build a new artifact, or generate content, respond freely without the contract.
  • Severity scale: P0 | P1 | P2 | P3 | info (see shared contract; only used in audit/review mode).

Related Skills

  • debian-ubuntu - base Debian-family administration. Use it for generic apt-family hosts; use this skill when Kali-specific branches, images, metapackages, or tool context matter.
  • privilege-escalation - exploitation, post-exploitation, and escalation on authorized targets. This skill helps choose and maintain Kali tooling; privilege-escalation handles the offensive workflow itself.
  • vulnerability-research - vulnerability discovery, reverse engineering depth, fuzzing, and proof-of-concept work. This skill covers the Kali environment and tool families that support that work.
  • security-audit - defensive hardening and vuln review instead of offensive distro workflow.
  • virtualization - hypervisor setup, guest provisioning, passthrough, and VM platform issues once the fault is clearly outside the Kali guest.
  • shell-scripting - shell syntax, wrappers, aliases, and script portability when the real issue is the shell rather than Kali.
  • networking - network services, VPNs, DNS, proxies, and firewall design beyond host-level Kali package questions.

Rules

  1. Confirm consequential changes before running them. Show the exact command and its plan, wait for an explicit yes, then verify. Unattended runs stop at the plan.
  2. Respect scope. Recommending Kali tools is not permission to use them outside authorized environments.
  3. Keep lab and production separate. Practice targets, vulnerable apps, and offensive tooling belong on disposable systems or isolated boxes. Separate client data, lab artifacts, and exploit tooling with clear storage boundaries.
  4. Hand off correctly. Once the work becomes exploitation methodology, use privilege-escalation. Once it becomes original vulnerability research, use vulnerability-research.

Comments

Markdown supported