Skip to content
Back to skills

Crowdsec Hub Authoring

ASecurity

Use when writing, testing, or reviewing CrowdSec hub items for crowdsecurity/hub — parsers (s00/s01/s02), scenarios, parser whitelists and postoverflows, collections, contexts, AppSec (WAF) rules and virtual patches, their same-name .md docs, and cscli hubtest tests (.tests/, .appsec-tests/, parser.assert, scenario.assert). Also use to contribute a hub PR or review one (hub conventions, naming, labels/taxonomy, CI gates, why PRs get rejected). Complements the operational `crowdsec` skill, whi...

  • 33 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsrustgotestingdebugginggitsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add crowdsecurity/crowdsec-skill --skill crowdsec-hub-authoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crowdsec Hub Authoring?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crowdsec Hub Authoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crowdsecurity-crowdsec-hub-authoring/badge)](https://www.skillsdirectory.com/skills/crowdsecurity-crowdsec-hub-authoring)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crowdsec-hub-authoring
description: Use when writing, testing, or reviewing CrowdSec hub items for crowdsecurity/hub — parsers (s00/s01/s02), scenarios, parser whitelists and postoverflows, collections, contexts, AppSec (WAF) rules and virtual patches, their same-name .md docs, and cscli hubtest tests (.tests/, .appsec-tests/, parser.assert, scenario.assert). Also use to contribute a hub PR or review one (hub conventions, naming, labels/taxonomy, CI gates, why PRs get rejected). Complements the operational `crowdsec` skill, which covers installing and running CrowdSec.
---

# CrowdSec hub authoring

Writing and reviewing items for [crowdsecurity/hub](https://github.com/crowdsecurity/hub).
Distilled from the CrowdSec docs, the hub's CI and lint code, and maintainer
review comments on merged and closed hub PRs.

Every `#N` in this skill and its references is a **crowdsecurity/hub** pull request
(`gh pr view N --repo crowdsecurity/hub`), cited as the evidence for a rule.

For installing, configuring or debugging a running CrowdSec, use the `crowdsec` skill.

## Route by task

| Task / cue | Read |
|---|---|
| "contribute to the hub", "open a hub PR", repo layout, naming, what gets rejected, CI | [references/overview.md](./references/overview.md) |
| "write a parser", "new log format", grok, `UnmarshalJSON`, `source_ip`, timestamps | [references/parsers.md](./references/parsers.md) |
| "write a scenario", `capacity` / `leakspeed` / `blackhole`, labels, behavior, MITRE | [references/scenarios.md](./references/scenarios.md) |
| "false positive in app X — fix it in the hub", app whitelist, postoverflow | [references/whitelists-postoverflows.md](./references/whitelists-postoverflows.md) |
| collection, context, item `.md`, acquisition example | [references/collections-and-docs.md](./references/collections-and-docs.md) |
| `cscli hubtest`, asserts, test fails in CI, running tests without root | [references/testing.md](./references/testing.md) |
| WAF rule, `vpatch-CVE-…`, nuclei test | [references/appsec-rules.md](./references/appsec-rules.md) |
| "review PR #N", self-review before opening a PR | [references/review-checklist.md](./references/review-checklist.md) |

## Non-negotiables

- Search the hub and open PRs first — extend an existing parser/scenario rather than adding a second one.
- Author dir = name prefix = `author:`; never the `crowdsecurity/` namespace for external items; items can't be renamed.
- Parsers: `filter` on `evt.Parsed.program`, `apply_on: message`, real peer as `source_ip` (or the last `X-Forwarded-For` entry with lowered scenario `confidence` + proxy requirement in the `.md`, never private-IP trust logic), anchored patterns around client-controlled text.
- Every item has tests (generated asserts, private IPs, scenario tests that actually overflow) and a same-name `.md`.
- No `debug: true`, no YAML anchors, no `.index.json` / version bumps (CI does it).
- Prove review findings with `cscli hubtest` or `cscli explain` on a crafted line before reporting them.

Files in this skill

  • SKILL.md2.8 KB
  • references/appsec-rules.md4.8 KB
  • references/collections-and-docs.md3.2 KB
  • references/overview.md6.6 KB
  • references/parsers.md8.9 KB
  • references/review-checklist.md3.8 KB
  • references/scenarios.md6.3 KB
  • references/testing.md4.9 KB
  • references/whitelists-postoverflows.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.