跳到正文
FunCoding

wordlist-catalog

The wordlist catalog of the Kali sandbox: committed third-party lists under their own licences, cleaned of payloads and real-world data and checked by a scan independent of the cleaning code, never a named-breach corpus or an unlicensed list; catalog.yaml as the source of truth with every path a prompt names required; the index built after the Metasploit refresh; a read-only `wordlists` tool offered beside any wordlist consumer, which sees only the run's own project. Trigger: editing mcp/kali-sandbox/wordlists/, mcp/servers/wordlists_lib.py or wl.py, tooling/scripts/wordlists/, the `wordlists` tool, its registry entry or agentic/prompts/wordlists_map.json, or WORDLIST_* in agentic/project_settings.py; adding a wordlist; naming a wordlist path in a prompt, skill or tool description.

Star
3,553
许可证
MIT
最近提交
2026年11月30日

skills/wordlist-catalog/SKILL.md

在 GitHub 上查看

When to Use

  • Adding, refreshing or removing a list, a source or a cleaning rule.
  • Changing the build step, the index, the wl CLI, the wordlists tool or its ranking.
  • Writing a prompt, skill or tool description that names a wordlist path.

How it works: docs/readmes/README.WORDLISTS.md. The tool wiring follows agentic-tool-integration; tests follow redamon-testing.


Critical Rules

  • NEVER commit a payload list or a payload line, in any encoding. No payload category, no attack-class tag. The literal filter once passed its own check while about 14,900 encoded lines (%252e%252e%252f, %c0%ae, %u002e, '+and+1=1) shipped; the independent decoder scan in tests/test_wordlist_library_content.py shares no regex with wl_common.py and must stay green. A new filter rule goes in wl_common.py with a regression case in tests/test_wordlist_import.py; never weaken the independent scan to pass.
  • NEVER commit passwords from the breach of one named service (SecLists Passwords/Leaked-Databases/* except the rockyou slices and twitter-banned, jeanphorn's leaked folder, fuzzdb's faithwriters.txt and passwds/phpbb.txt). Frequency aggregates already hold every frequent password.
  • NEVER commit a list whose source has no licence file, nor anything from the pending library or the work dir's removed folder. It holds the real-world lines the cleaning dropped. The tooling refuses a pending or work path git could commit (wl_paths.guard); keep both outside the repository or in a gitignored folder.
  • NEVER commit real-world data. Addresses of people (free-mail first, any address outside a vendor-default list), public IPs, real hosts in web and DNS lists. Fixtures are synthetic.
  • A committed file ships with its licence text, its sha256 in catalog.yaml, and, when modified, a modified date and its line in the generated NOTICE.md. Keep the AGPL lists byte-identical to upstream. THIRD-PARTY-LICENSES.md lists every source.
  • Clean by category. Credential lists keep #, whitespace and anything a password can hold; rules are never trimmed or reordered; every line of a creds/combos list has :. A bare password at the top of a ranked list is the top password, not a header.
  • catalog.yaml is generated and is the source of truth. Change the rules in tooling/scripts/wordlists/ and rerun them, never edit the catalog by hand. A path a prompt, skill or tool description names must be a required catalog path, an alias, a shipped /opt/wordlists link or a derived colon file: agentic/tests/test_wordlist_paths_guard.py fails otherwise, and the image build fails when a required file is missing. Required stays required: write_catalog carries the flag over.
  • hydra -C takes user:pass files only. Metasploit's *_userpass.txt are space-separated: name their /opt/wordlists/derived/<id>-colon.txt copy for hydra, the original for Metasploit's USERPASS_FILE.
  • The index is built after the Metasploit refresh layer, the files are COPYed before it. A change to how the index is produced must touch a file under mcp/kali-sandbox/wordlists/, or redamon.sh update will not rebuild the image. Bump SCHEMA_VERSION in both build_index.py and wordlists_lib.py for an incompatible index; the library refuses an index it does not know.
  • wl.py is committed with mode 100755. The bind mount hides the image's chmod.
  • The tool sees the run's project only. The executor stamps _redamon_project over the model's args (_WORDLIST_TOOLS in agentic/tools.py); the Kali side accepts only a well-formed, mounted project id. Open a project file first, then check where it really is, against the project folder's own path (a wordlists/ or uploads/ that is a link is never read); project names, descriptions, tags and every sample line go inside the untrusted envelope. info reads two folders and the index's exact package files, never a package folder.
  • wordlists is a companion, never a phase-map key, never dangerous. Offered when ANY of WORDLIST_CONSUMER_TOOLS is, in BOTH is_tool_allowed_in_phase and get_allowed_tools_for_phase; refused by RoE only once EVERY consumer is forbidden, through its own rule in roe_block_reason, never a companion_tools_by_parent() row (that would refuse it when one consumer is forbidden). A new consumer tool joins the set.
  • Regenerate the map after a catalog change: gen_prompt_map.py; its --check runs in the unit gate.

Commands

T=tooling/scripts/wordlists; W=<work dir outside git>; P=<pending dir outside git>
export GIT_NO_LAZY_FETCH=1
python3 -I $T/select_lists.py --work-dir $W
python3 -I $T/build_library.py --work-dir $W --pending-out $P
python3 -I $T/write_catalog.py --work-dir $W --pending-out $P
python3 -I $T/gen_prompt_map.py
docker compose --profile tools build kali-sandbox          # the build step and its smoke test
./redamon.sh test unit                                     # the catalog, content, tooling, lib and agent tests

Resources

相似的 Skill

ask-matt

MAmattpocock/skills336k近 7 天新增 4,217 个 star

chief-of-staff

MAmattpocock/skills336k近 7 天新增 4,217 个 star

setup-matt-pocock-skills

MAmattpocock/skills336k近 7 天新增 4,217 个 star

subagent-driven-development

OBobra/superpowers331k近 7 天新增 5,030 个 star

autonomous-loops

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

agent-eval

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star