Security maturity assessment

From event4u-app/agent-config · View interactive version

Security maturity assessment is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when the user wants a security-maturity scorecard / posture assessment of a module — category ratings with evidence, not a vulnerability hunt. Also on 'wie sicher ist dieses Modul aufgestellt?'

How to use this skill

Skill file

security-maturity-assessment

Rate how mature a module's security posture is — category by category,

every rating backed by file:line evidence — instead of hunting individual

vulnerabilities. The output is a scorecard a maintainer can re-run and diff,

not a finding list.

When to use

Do NOT use when:

The nine categories

| # | Category | Critical? | What to inspect |

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

| 1 | Input validation | Yes | Request-boundary validation primitives on every entry point; no inline ad-hoc checks |

| 2 | Authorization | Yes | Per-object ownership/tenant checks, policy coverage, field-level access |

| 3 | Secrets handling | Yes | No hardcoded creds; env/vault usage; secrets absent from logs and VCS |

| 4 | Error handling | No | No swallowed exceptions; no stack traces / internals leaked to clients |

| 5 | Logging & audit | No | Security events (auth, permission denials, admin actions) logged; no PII in logs |

| 6 | Dependency hygiene | No | Lockfiles present; known-CVE scan wired; update cadence visible |

| 7 | Data boundaries | No | Serializers/resources whitelist fields; exports/queues don't leak internals |

| 8 | Tenant isolation | Yes (multi-tenant only; else N/A) | Tenant scoping on queries, jobs, caches; cross-tenant negative tests |

| 9 | Security test coverage | No | Negative tests exist (401/403/404 paths, abuse cases), not only happy-path |

Rating rubric

| Rating | Meaning |

|---|---|

| Missing | No control exists for the category |

| Weak | Ad-hoc, inconsistent — some paths covered, most not |

| Moderate | Control present and usual, with named gaps |

| Satisfactory | Consistent across the surface; minor gaps only |

| Strong | Consistent AND enforced (CI gate, test, linter) or negatively tested |

Procedure

  1. Scope — name the module/paths under assessment; list entry points

(routes, jobs, commands, webhooks). A scorecard without a stated scope is

not reproducible.

  1. Assess each category — inspect the code the category names. Every

rating cites evidence:

patterns) — "not found" beats "probably missing".

out of the roll-up.

  1. Roll up deterministically — the overall rating is computed, not vibed:

any critical Weak caps overall at Moderate. Non-critical

categories move the median but can never lift the cap.

  1. Recommend — max 3 next steps, ordered by which would raise the overall

rating (i.e. fix the lowest critical category first).

Output format

  1. Scope block — module/paths + entry-point list, so the scorecard is

re-runnable.

  1. Scorecard table — one row per category:

Category | Rating | Evidence (file:line or named empty searches) | Gap.

Every row MUST carry evidence; a rating without a citation is invalid.

  1. Overall rating — with the roll-up shown (`median=…, lowest critical=…,

cap=… → overall=…`), never a bare verdict.

  1. Top-3 next steps — ordered by roll-up impact.

Gotcha

row without file:line or named empty searches is invalid; redo it.

cap rule exists precisely because a polished logging setup does not offset

missing authorization.

— note it and route to CODE0

(with its false-positive gate) instead of inlining findings here.

Do NOT

empty searches that prove absence.

vulnerability hunting are different deliverables.

See also

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.