offensive-tools/rev/apktool/SKILL.md
Apktool: decode and rebuild Android APK resources and smali for patching, manifest edits, resource inspection, and repackaging. Use when reversing or modifying third-party Android apps, changing permissions or resources, editing smali, or preparing an APK for reinstall after static patches.
npx skillsauth add aeondave/malskill apktoolInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Resource and smali decode/rebuild workflow for Android APKs.
Use Apktool when you need to:
AndroidManifest.xml, resources, and smali from an APKUse jadx when you want readable Java/Kotlin. Use Apktool when you intend to edit the app.
# Decode APK into a project-like directory
apktool d app.apk
# Decode for analysis-only resource inspection
apktool d -m app.apk
# Rebuild after edits
apktool b app
Typical output after rebuild is under app/dist/.
apktool d target.apk
This produces a folder containing at least:
AndroidManifest.xmlapktool.ymlres/smali/ or smali_classes*/assets/Common edit points:
AndroidManifest.xml — exported components, permissions, debuggable flagsres/values/strings.xml — hardcoded UI strings and togglesres/xml/ — config and network security settingssmali/ — bypass checks, short-circuit logic, redirect flowapktool b target
Apktool rebuilds the APK but does not make it production-signed. Sign it separately before install.
apksigner sign --ks debug.keystore target/dist/target.apk
adb install -r target/dist/target.apk
Use when the decompiled Java in jadx shows the method to change, but you need a reliable rebuild path.
apktool d app.apk
# edit smali/com/example/MainActivity.smali
apktool b app
apktool d app.apk
# edit AndroidManifest.xml or res/values/*.xml
apktool b app
adbadb shell pm path com.example.app
adb pull /data/app/.../base.apk app.apk
apktool d app.apk
android:sharedUserId or min SDK constraints.jadx alongside Apktool output.-m is useful when you mainly want manifests/resources and do not care about a rebuild-ready tree.jadx, but safer to apply in smali.No bundled scripts/, references/, or assets/.
Use upstream docs at apktool.org for version-specific CLI details and build caveats.
data-ai
Scoped routing: Linux operator; hosts, sessions, users, services, packages, logs, containers, SSH, network paths, privilege evidence.
development
Offensive methodology for ICS/OT/SCADA environments in authorized industrial penetration testing and red team operations. Use when assessing PLCs, RTUs, HMIs, engineering workstations, historians, or field devices running Modbus, DNP3, EtherNet/IP, S7comm/S7+, Profinet, IEC 60870-5-104, BACnet, or OPC-UA. Covers passive OT network enumeration, protocol-level device interrogation, PLC coil/register read-write attacks, HMI session exploitation, historian and engineering workstation compromise, and safe escalation rules for critical infrastructure scope. Does not cover: general IT network exploitation (network-technique), physical hardware interfaces UART/JTAG/SPI (hardware-technique), wireless sensor network attacks (wireless-technique), RF/SDR signal analysis (hardware-ctf or wireless-technique), or CTF-framed ICS lab tasks (ics-ctf).
tools
Offensive methodology for authorized game security assessments, game client security research, and game-adjacent penetration testing in real-world engagements. Use when assessing game clients for cheating vulnerabilities, testing anti-cheat effectiveness, auditing game server protocols for score manipulation or economic fraud, reverse engineering game DRM or license validation, analyzing game save file protection, or assessing game mod/plugin security. Covers: process memory scanning and manipulation (Cheat Engine methodology), game binary reversing for license and DRM bypass, game network protocol analysis and packet replay, anti-cheat mechanism analysis, save file format reversing and tampering, speed hack and value injection techniques. Does NOT cover: CTF game challenges (game-ctf), game engine source code auditing (web-exploit-technique or vuln-search-technique for the backend), or general binary exploitation (pwn-ctf or reversing-technique).
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.