National Cyber Warfare Foundation (NCWF)login

i-Haklab for turning Termux into a portable security testing laboratory


0 user ratings
2026-10-25 21:33:07
milo
Red Team (CNA)
"i-Haklab

i-Haklab packages a curated collection of open-source security tools, guides, and automation commands into Android's Termux terminal, intended for authorized pentesting practice and learning on the go.








Toolivam3/i-Haklab — a hacking laboratory for Termux bundling open-source OSINT, pentesting, and post-exploitation tooling
CategoryAndroid-based security toolbox and environment manager
Primary UseRunning a portable Linux-style security lab on Android via Termux, with helper commands like i-Haklab about, i-Haklab pd , and i-Haklab backup
Safe UseEducational and documentary analysis for authorized professionals: use only in labs, CTF environments, and systems you own or have written permission to test; the README itself warns that misuse is the end user's responsibility.
Telemetry NoteInstalls a custom apt repository and fish/oh-my-fish shell on the device; offensive subcommands (bruteforce, androforensic) generate authentication failure logs and ADB access records that defenders can correlate.

i-Haklab is best understood not as a single tool but as an environment: a curated laboratory that layers a management CLI, a custom shell, an apt repository, and a large catalog of open-source security utilities on top of Termux. The project, maintained under the ivam3 GitHub organization and released under GPL-3.0, currently sits at roughly 625 stars with JavaScript as its primary language and an active version line (the README banner references v.3.13 in 2026). Its stated objective is portability — moving the applications, tools, and frameworks of a Linux workstation into the palm of the user's hand — and its author frames the project as a contribution to the cybersecurity community that can help people develop effective countermeasures.


The foundation is Termux itself, which the README explains concisely: it is a terminal emulator that shares the Android OS environment by launching a shell through the execve system call and redirecting standard input, output, and error to the screen. Termux exposes a large package set under the apt manager, compiled with the Android NDK and patched for compatibility with software normally found on GNU/Linux systems. i-Haklab builds directly on that substrate, shipping its own termux-packages fork as an apt source, so the install surface is a standard Debian-style workflow rather than a pile of ad-hoc scripts.


Installation offers three paths. The recommended one adds the project's apt sources and installs via a bootstrap script; alternatively you can clone the repository and run bash setup after chmod +x setup, or fetch a prebuilt .deb from the releases page and install it with apt install ./i-haklab_example_all.deb. The multiplicity of methods is deliberate: the apt route gives updates, the git route gives the bleeding edge, and the .deb route gives reproducibility — a consideration that matters when you want to audit exactly what lands on your device before it runs.


Once installed, i-Haklab adopts oh-my-fish as the default interactive shell, though the i-Haklab setshell command lets users switch between bash, zsh, and fish. Theming is available through omf theme. This is a small detail but an architecturally significant one: the project treats the shell as core infrastructure for package installation and environment customization, which is why the interactive experience is customizable rather than hardwired. A login session can be protected with i-Haklab passwd set and i-Haklab passwd new, supporting both password and fingerprint authentication — worth changing immediately from the documented default in any real deployment.


The command surface is broad and oriented around workflow automation rather than raw exploitation. i-Haklab about returns information about any tool or framework in the catalog, i-Haklab help prints the full command reference, and i-Haklab version reports the installed release. i-Haklab aptup updates the Termux system package by package, i-Haklab backup create|restore snapshots and restores the whole environment, and i-Haklab speedtest / i-Haklab mypip cover quick network diagnostics. Full Linux distributions can be run inside a proot environment with i-Haklab pd — in CLI or X11 graphical mode — and enumerated with i-Haklab pd list, which effectively turns the phone into a thin hypervisor for Kali-style workflows.


Two capability areas deserve careful, documentary framing. The first is Android analysis: i-Haklab apkactivity extracts the main activity from an APK, and the i-Haklab androforensic family (secretCodes, airscope, dumpsys, extract) pulls device information over ADB. These are legitimate capabilities for examining your own devices or devices under authorized examination, and they mirror functionality found in mainstream mobile forensics suites. The second is the i-Haklab bruteforce ftp|mail|ssh|telnet automation wrapper, which coordinates credential testing against common protocols; in an authorized engagement against your own lab hosts this is standard assurance work, but it is exactly the category of command that must never be pointed at infrastructure you do not own. The README itself carries an explicit legal disclaimer to that effect, placing responsibility on the end user.


What sets the 3.x line apart from earlier iterations is the heavy investment in AI tooling. The README devotes a large section to turning Termux into what it calls a vibecode development environment, cataloguing roughly two dozen AI coding agents and runtimes — opencode, claude-code, deepseek-harness, qwen-code, mistral-vibe, cactus, hermes-agent, and others — installable through apt install, npm install -g, pnpm install -g, or npx. An apt wrapper intelligently redirects npm and pip packages automatically, and a pkg2conf step auto-configures each agent for the Termux environment after install. Supporting runtimes include engram for persistent agent memory, playwright-proot for headless Chromium testing on aarch64, and n8n for workflow automation with a SQLite backend.


This AI layer is analytically interesting because it repositions the project: i-Haklab is no longer just a pentest toolbox but a general-purpose mobile development and research platform where offensive tooling and AI agents coexist. For a professional, that means the same device can host script development for an authorized assessment alongside the tooling that executes it, with i-Haklab about providing per-tool documentation. The integration of omniroute, a multi-proxy routing manager for TOR/SOCKS5/HTTP chaining, and walkie, a serverless P2P CLI for agent-to-agent communication, shows the project thinking about network posture for AI workloads, which is an unusual scope for a Termux distribution.


Support infrastructure is unusually well developed for a hobby-scale project. Help is available through a Telegram group or an IRC channel reachable by running i-Haklab weechat from inside the lab. More notably, the project exposes a DeepWiki instance — an AI assistant trained on the repository's documentation — so users can interrogate the project and its tooling in natural language rather than dredging through the README. Combined with the bundled guides, books, and tutorials the README mentions, the educational framing is genuine: this is as much a learning distribution as an operator's toolkit.


From a defender's perspective, knowing this distribution exists matters. i-Haklab dramatically lowers the barrier to running capable security tooling from any Android handset, and its footprint on a device — a custom apt source, fish shell configuration, proot distributions, and the i-Haklab CLI itself — is detectable in device inventory. On the network side, its offensive subcommands produce ordinary protocol traffic (SSH/FTP/Telnet authentication attempts, ADB sessions) that existing detection logic covers. For blue teams, the project's own framing is instructive: the author explicitly hopes it helps the community build countermeasures, which is a reminder that familiarity with attacker-side convenience tooling is directly useful defensive intelligence.


The main caveats for a prospective user are trust and provenance. The recommended install pipes a remote script straight into bash, and the project's custom apt repository becomes a persistent software source on your device — standard supply-chain considerations apply, so review the bootstrap script and the termux-packages fork before adopting it on anything sensitive. Change the default login password immediately, and confine the offensive commands to lab targets. Used within those boundaries, i-Haklab is one of the more complete attempts to make a phone a credible, self-contained security workstation, and its AI-agent integration makes it a project worth watching rather than dismissing as a novelty.



Official project repository for ivam3/i-Haklab.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/i-haklab-for-turning-termux-into.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.