agentsclimarketplace

Security audit

Skill event4u-app/agent-config/src/skills/security-audit

Universal AI Agent OS — audited skills, governance rules, replayable state. One contract, every host agent.

Install
npx -y skills add event4u-app/agent-config --skill security-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

ONLY when user explicitly requests: security audit, vulnerability scan, or penetration test review. NOT for regular feature work.

SKILL.md

8.2 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it

security-audit

Mission

Find real security vulnerabilities in code before they are exploited. This skill is proactive — it audits code for security weaknesses, not just responds to incidents.

For writing secure code patterns (policies, auth, CSRF), use the security skill instead.

When to use

Use this skill when:

  • Auditing a codebase or module for security risks
  • analysis-autonomous-mode routes here after detecting risky patterns
  • Reviewing code that handles user input, authentication, or authorization
  • Checking for vulnerabilities before a release or deployment

Do NOT use when:

  • Writing new auth/policy code — route to security
  • Hunting for functional bugs — route to bug-analyzer (proactive mode)
  • Investigating performance — route to performance-analysis
  • You need a pre-implementation threat model for a new feature — route to threat-modeling
  • You need end-to-end authorization analysis for one route/action — route to authz-review

Procedure: Security audit

0. False-positive gate — restate the claim before reporting

Before any finding enters the report, restate it as one falsifiable sentence naming all three of:

  1. Privilege level — what access the attacker already has (anonymous, authenticated user, tenant admin, CI runner).
  2. Execution context — where the vulnerable code runs (request handler, queue worker, sandboxed template, build step).
  3. Attacker precondition — the concrete state or input the attacker must control to trigger it.

If any of the three cannot be named concretely, the item is not a finding yet — trace further or drop it with a one-line reason.

Rationalizations to Reject:

RationalizationReality
"It looks dangerous"Pattern-recognition is not analysis — trace the full data flow from entry to sink first
"This is clearly critical"Complete a devil's-advocate pass — models systematically overrate severity
"Report it just in case"Over-reporting erodes trust; an unverifiable finding is noise, not diligence
"Same pattern as a known CVE"Same pattern ≠ same preconditions — verify the preconditions hold in THIS codebase

Standard vs. Deep verification routing:

  • Standard — traced data flow + all three claim elements named → report with the normal field list.
  • Deep — severity would be High/Critical, OR the precondition chain crosses a trust boundary you did not personally trace → run a devil's-advocate pass first: actively try to refute the finding (existing middleware? framework default? type system? config?). Report only what survives; findings the pass killed are listed one-line under Rejected candidates so the triage is auditable.

1. Map attack surface

Identify all entry points where untrusted data enters:

  • HTTP request parameters, headers, cookies
  • File uploads
  • API payloads (JSON, XML, form data)
  • Webhook callbacks
  • Queue job payloads from external sources
  • Import files (CSV, Excel, XML)
  • URL path segments and query strings

2. Trace trust boundaries

For each entry point, trace where user input flows:

User Input → Controller → Validation → Service → DB/File/External
                 ↓              ↓           ↓
            Is it sanitized?  Complete?  Used safely?

3. Check vulnerability categories

CategoryWhat to look for
SQL InjectionRaw queries with concatenation, missing parameter binding
XSSUnescaped template output (Blade {!! !!}, JSX dangerouslySetInnerHTML, Jinja `
CSRFMissing middleware, API endpoints without token verification
Auth bypassMissing policy checks, broken gate logic, withoutMiddleware()
IDORDirect object access without ownership verification
Mass assignmentMissing $fillable/$guarded, request()->all() in create/update
File uploadMissing type validation, path traversal, executable uploads
SSRFUser-controlled URLs passed to HTTP client
DeserializationUnserializing user input, unsafe queue payloads
Secret exposureHardcoded credentials, secrets in logs, .env in public dir
Rate limitingMissing throttle on auth endpoints, password reset, API
Header injectionUser input in response headers, email headers
Insecure defaults / fail-openGuards that allow on error (catch { return true } in an authz check), default-allow matchers, debug mode defaulting on, permissive CORS/verify=false fallbacks, feature flags whose missing value grants access

Worked example (fail-open): if (!$gate->check($user)) { … } wrapped in a try/catch that logs and continues fails open — an exception in the gate grants access. Finding shape: Category Insecure defaults, Evidence the catch block file:line, Fix fail closed — rethrow or deny on gate error.

4. Framework-specific checks

→ Laravel-specific checks: see laravel § Security audit checks.

5. Dependency audit

  • Check composer.lock for known vulnerable packages
  • Check package-lock.json for frontend vulnerabilities
  • Identify outdated packages with known CVEs
  • Check if security patches are available

Output format

  1. Emit one entry per vulnerability using the field list below; one finding = one block, never merge.
  2. Category must map to an OWASP Top 10 (or LLM Top 10) bucket; Severity must use Low / Medium / High / Critical with a single Exploitability tag.
  3. Close with a Recommended Fix Order ranked by exploitability × blast radius and tag each line with Confidence.

For each vulnerability:

  • Vulnerability: concise title
  • Category: OWASP category (Injection, Broken Auth, etc.)
  • Location: file and line
  • Severity: Low / Medium / High / Critical
  • Exploitability: How easy to exploit (trivial / requires auth / complex)
  • Impact: What an attacker could achieve
  • Evidence: code reference showing the weakness
  • Fix: concrete mitigation
  • Confidence: Low / Medium / High

After the findings, add a Rejected candidates section: one line per look-dangerous-but-benign pattern the Step-0 gate killed, with the traced reason ("raw SQL string is a static migration constant — no user input reaches it"). An audit that rejects nothing has usually skipped the gate.

Integration with other skills

  • analysis-autonomous-mode — routes here when security concerns are detected
  • security — complementary: security is about writing secure code, this is about finding holes
  • universal-project-analysis — provides context about packages and framework usage
  • bug-analyzer — some bugs have security implications (chain when found)
  • untrusted-input-defense / lethal-trifecta-guard (rules) — prompt-injection / agent-config defense; consult when the audited code ingests untrusted content or wires an autonomous egress path

Gotcha

  • Don't report theoretical vulnerabilities without a concrete attack vector — false positives erode trust.
  • The model tends to flag framework-handled security as issues (e.g., Laravel's CSRF or Rails' protect_from_forgery is already handled).
  • Always check if a finding is already mitigated by middleware or configuration before reporting it.

Do NOT

  • Do NOT report theoretical risks that require impossible preconditions
  • Do NOT ignore user input flows — always trace from entry to usage
  • Do NOT assume frameworks handle everything — verify middleware and config
  • Do NOT confuse code quality issues with security vulnerabilities
  • Do NOT skip dependency checking — known CVEs are real risks

See also

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most audit compliance skills give in ~1.8k tokens

Counted across 937 of the 1,487 authors here whose files we hold, read 2026-08-07

  • Fetch latest guidelines before each reviewin 43 of 937, across 3 files
  • Group findings by severityin 43 of 937
  • Check files against all fetched rulesin 42 of 937, across 2 files
  • Output findings in terse file:line formatin 41 of 937, across 3 files
  • Ask user which files to review if none specifiedin 41 of 937, across 3 files
  • Read specified files or prompt user for filesin 39 of 937, across 1 file
  • Generate the audit reportin 33 of 937, across 30 files
  • Assign a severity to every findingin 25 of 937
  • Run automated accessibility scansin 23 of 937, across 13 files
  • Output a markdown audit reportin 22 of 937
  • Map findings to WCAG criteriain 20 of 937, across 10 files
  • Confirm audit scopein 19 of 937, across 9 files

Said here and by no other author read

  • trace all untrusted data flows from entry to sink
  • verify findings against three claim elements before reporting
  • run a devil's-advocate pass on high severity findings
  • check all identified vulnerability categories
  • emit one entry per vulnerability
  • rank fixes by exploitability and blast radius

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.