Search first

From brucesongs/kali-claw · View interactive version

Search first is an AI agent skill from the GitHub repository brucesongs/kali-claw. Systematizes the \"search for existing tools, exploits, and techniques before writing custom ones\" workflow.

How to use this skill

Skill file

Skill: Search First — Research Before You Exploit

Supplementary Files:

- payloads.md — Search templates for ExploitDB, GitHub, Metasploit, Nuclei, and Kali packages with evaluation scoring

- test-cases.md — Structured test cases for CVE discovery, tool discovery, technique research, and custom build decisions

Summary

Search First skill domain covering workflow operations.

Domain: workflow

Description

Systematizes the "search for existing tools, exploits, and techniques before writing custom ones" workflow. In penetration testing, this means: before developing a custom exploit or tool, search for existing solutions in exploit databases, security tools, GitHub repositories, and community resources.

This skill prevents reinventing the wheel and ensures kali-claw leverages the full ecosystem of existing security tools and known exploit techniques.

Use Cases

Methodology

Search-First Decision Flow

┌─────────────────────────────────────────────┐
│  1. NEED ANALYSIS                           │
│     Define what capability is needed         │
│     Identify target technology/constraints   │
├─────────────────────────────────────────────┤
│  2. PARALLEL SEARCH                         │
│     ┌──────────┐ ┌──────────┐ ┌──────────┐  │
│     │ ExploitDB│ │  GitHub  │ │  Security │  │
│     │ MSF/NS   │ │  PoCs    │ │  Blogs    │  │
│     └──────────┘ └──────────┘ └──────────┘  │
├─────────────────────────────────────────────┤
│  3. EVALUATE                                │
│     Score: reliability, compatibility,      │
│     OPSEC, maintenance, detection risk      │
├─────────────────────────────────────────────┤
│  4. DECIDE                                  │
│     ┌─────────┐  ┌──────────┐  ┌─────────┐  │
│     │  Use    │  │  Modify  │  │  Build   │  │
│     │ as-is   │  │  /Wrap   │  │  Custom  │  │
│     └─────────┘  └──────────┘  └─────────┘  │
├─────────────────────────────────────────────┤
│  5. EXECUTE                                 │
│     Run existing tool / Modify template /   │
│     Write minimal custom exploit            │
└─────────────────────────────────────────────┘

Decision Matrix

| Signal | Action |

|--------|--------|

| Exact exploit exists for target version | Use — run directly, verify results |

| Similar exploit exists for adjacent version | Modify — adapt parameters/payloads |

| Multiple partial tools cover the need | Compose — chain existing tools together |

| Nothing suitable found | Build — write custom, but informed by research |

Search Sources by Category

Exploit & Vulnerability Search
# Exploit-DB local search
searchsploit apache 2.4.49 remote
searchsploit -x 12345  # Examine exploit code

# GitHub PoC search
gh search code "CVE-2025-12345" --limit 20
gh search repos "<tool-name> exploit" --sort stars

# Metasploit module search
msfconsole -x "search type:exploit name:<keyword>"

# Nuclei template search
nuclei -tl -tags cve | grep "<keyword>"
Tool & Capability Search
# Kali package search
apt search <keyword>
dpkg -l | grep <tool>

# GitHub security tool search
gh search repos "<capability> security tool" --sort stars --limit 20

# Exploit framework module search
msfconsole -x "search type:auxiliary name:<keyword>"
msfconsole -x "search type:post name:<keyword>"
Technique & Methodology Search
# MITRE ATT&CK technique lookup
# Web: https://attack.mitre.org/techniques/enterprise/

# HackTricks methodology
# Web: https://book.hacktricks.wiki/

# PayloadsAllTheThings
# Web: https://github.com/swisskyrepo/PayloadsAllTheThings

# GTFOBins / LOLBAS
# Web: https://gtfobins.github.io/
# Web: https://lolbas-project.github.io/

Integration with Other Skills

Detection Methods

Search Pattern Audit

SIEM Detection Rules

Defense Evasion Techniques

Stealth Search

Anti-Patterns

Examples

Example 1: Exploit Apache Path Traversal

Need: Exploit path traversal in Apache 2.4.49
Search: searchsploit apache 2.4.49 path traversal
Found: CVE-2021-41773, multiple PoCs on GitHub
Action: USE — curl-based PoC is sufficient
Result: curl "http://target/cgi-bin/.%2e/%2e%2e/etc/passwd"

Example 2: Active Directory Enumeration

Need: Enumerate AD domain from compromised Windows host
Search: GitHub "Active Directory enumeration tool"
Found: BloodHound, SharpHound, ldapsearch-ad, Certipy
Action: USE — BloodHound/SharpHound is the standard
Result: Run SharpHound, import to BloodHound for analysis

Example 3: TLS Reverse Shell

Need: Reverse shell bypassing egress filtering (only port 443)
Search: GitHub "reverse shell tls encrypted"
Found: Several TLS-encrypted shell tools
Action: MODIFY — adapt existing TLS shell for constraint
Result: Minimal custom wrapper around existing tool

Orchestration

ECC Loop Pattern

Cross-Skill Pipeline

search-first → [any attack skill] → verification-loop
      ↓                                     ↑
deep-research (broader context)    continuous-learning (persist tool knowledge)

Quality Gate

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.