| name | hack |
| description | Containerized security auditing and ethical hacking tools. All operations run in isolated Docker containers for safety.
|
| allowed-tools | ["run_command","read_file"] |
| triggers | ["hack","scan","audit","security check","red team","blue team"] |
| metadata | {"short-description":"Containerized security auditing and ethical hacking","requires":"docker"} |
Hack Skill
Containerized security auditing and ethical hacking tools.
All security operations run in isolated Docker containers - no tools execute on the host system. This ensures:
- Isolation from host filesystem and network
- Reproducible scanning environment
- No risk of tool vulnerabilities affecting host
- Safe execution of untrusted exploit code
Prerequisites
- Docker Engine must be installed and running
- The security container image will be built automatically on first use
Commands
Network Scanning
./run.sh scan 192.168.1.1
./run.sh scan 192.168.1.1 --scan-type service
./run.sh scan 192.168.1.1 --scan-type vuln --ports 22,80,443
./run.sh scan 192.168.1.1 --output scan_results.txt
Static Application Security Testing (SAST)
./run.sh audit /path/to/code
./run.sh audit /path/to/code --tool semgrep
./run.sh audit /path/to/code --tool bandit
./run.sh audit /path/to/code --severity high
Software Composition Analysis (SCA)
./run.sh sca /path/to/project
./run.sh sca /path/to/project --tool safety
Check Available Tools
./run.sh tools
Isolated Exploit Execution
./run.sh exploit --target 192.168.1.50 --env python --payload exploit.py
./run.sh exploit --target 192.168.1.50 --env kali --interactive
Knowledge Base & Research
./run.sh learn --source exploit-db
./run.sh learn --source github --query "CVE-2024-1234"
./run.sh research "buffer overflow mitigation techniques"
Architecture
+-------------------+ +------------------------+
| Host System | | Docker Container |
| | | (hack-skill-security) |
| ./run.sh scan ... | --> | nmap, semgrep, bandit |
| | | pip-audit, safety |
| (No tools here) | | |
+-------------------+ +------------------------+
| |
+--- Results returned -----+
Red Team / Blue Team Usage
Red Team (Attack)
scan - Discover open ports and services
audit - Find vulnerabilities in target code
exploit - Execute PoC in isolated environment
learn --source github - Find CVE exploits
prove --negate - Find counterexamples to security claims
Blue Team (Defense)
audit - Find vulnerabilities before attackers
sca - Identify vulnerable dependencies
prove - Formally verify security properties
research - Study attack techniques to defend against
Memory Integration
The hack skill is deeply integrated with the memory skill - the brain of the entire project.
Automatic Memory Recall
All scanning and audit commands automatically query memory for relevant prior knowledge before execution:
- Previous scanning techniques that worked
- Known vulnerabilities and their mitigations
- Exploit patterns and defenses
./run.sh scan 192.168.1.1
./run.sh scan 192.168.1.1 --no-recall
Explicit Memory Commands
./run.sh remember "Use nmap -sV for service detection" --title "nmap tips"
./run.sh remember "CVE-2024-1234 affects version 1.0-1.5" --tags "cve,critical"
./run.sh recall "nmap scanning techniques"
./run.sh recall "buffer overflow exploits" --k 10
Knowledge Flow
+----------------+ +---------------+ +------------------+
| hack skill | --> | memory skill | --> | Future Sessions |
| | | | | |
| - scan results | | - Store | | - recall before |
| - audit finds | | - Embed | | operations |
| - exploits | | - Index | | - learn from |
| | | | | past attempts |
+----------------+ +---------------+ +------------------+
Leveraged Skills
The hack skill delegates to sibling skills rather than duplicating functionality:
Core Integrations (Direct Commands)
| Skill | Command | Purpose |
|---|
memory | (automatic) | Recall prior exploits/solutions before every operation |
anvil | hack harden | Thunderdome multi-agent red teaming |
ops-docker | hack docker-cleanup | Container pruning and management |
treesitter | hack symbols | Parse code structure before auditing |
taxonomy | hack classify | Tag findings with bridge tags (Loyalty, Fragility, etc.) |
task-monitor | (automatic) | Track long-running scan progress |
Research Integrations (via hack research)
| Skill | Usage |
|---|
dogpile | Deep multi-source research |
arxiv | Academic security papers |
perplexity | Real-time threat intelligence |
lean4-prove | Formal security verification |
learn | Knowledge extraction & storage |
Skill Delegation Examples
./run.sh harden /path/to/code --issue "SQL injection in auth"
./run.sh docker-cleanup --until 24h --execute
./run.sh symbols /path/to/file.py --content
./run.sh classify "SQL injection vulnerability in login handler"
Safety Notes
- Authorized Use Only - Only use against systems you have permission to test
- Isolated Execution - All tools run in Docker containers
- Network Isolation - SAST audits run with
--network=none
- Read-Only Mounts - Target directories mounted read-only
Example Workflows
Vulnerability Assessment
./run.sh scan 192.168.1.0/24 --scan-type basic
./run.sh audit /path/to/webapp --severity medium
./run.sh sca /path/to/webapp
Exploit Development
./run.sh learn --source github --query "CVE-2024-XXXX"
./run.sh exploit --target test-vm --env python --payload poc.py
./run.sh prove --claim "buffer overflow impossible after patch"