agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/security-hardening/SKILL.md

security-hardening

Skill0 starsChanged 13 days agoMITView on GitHub

Find and fix common security weaknesses (OWASP) and manage secrets safely. Use when reviewing code for vulnerabilities, handling auth/input/untrusted data, or before shipping internet-facing surfaces.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use data-engineering, incident-response and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • travisjneumanSkill

    data-engineering

    ETL/ELT pipelines, data warehousing (BigQuery, Snowflake, Redshift), stream processing (Kafka, Spark Streaming), orchestration (Airflow, Dagster, Prefect), dbt transformations, and data lake architecture. Use when building data pipelines, designing warehouse schemas, or implementing real-time data processing.

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 projects that use this

  • jarosser06Skill

    test-strategy

    Plans pytest test strategies for Drift's 90%+ coverage requirement using coverage analysis, edge case identification, and test suite design. Use when determining what tests to write, analyzing coverage gaps, or planning test strategies.

    Also in 3 projects that use this

  • jamestorrevillasSkill

    threat-modeling

    Use this skill when identifying security threats, designing secure systems, thinking like an attacker, performing security assessments, or applying STRIDE threat modeling. Trigger on keywords: threat model, security design, attack surface, STRIDE, vulnerabilities by design, security review, who can attack this, what could go wrong security-wise.

    Also in 3 projects that use this

  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

  • etewiahSkill

    e2e-testing

    Playwright E2E testing and Lighthouse performance auditing. Use when setting up E2E tests, running Playwright tests, performing Lighthouse audits, or debugging E2E test failures.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use ai-tool-security, when available, for agent tool execution and outbound data.

    line 31
  2. Distinctive:

    Check the relevant diff, bundle, and logs for secrets.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security & Hardening

Overview

Defensive only. Reduce attack surface and validate trust boundaries.

When to use

  • Code handling user input, authentication, authorization, files, or network calls.
  • Pre-ship review of anything internet-facing.

Process

  1. Validate & encode at boundaries — never trust input; use parameterized queries (no string-built SQL), encode output to prevent XSS, validate types and ranges.
  2. AuthN/AuthZ — check authorization on every protected action server-side; deny by default; avoid client-trusted checks.
  3. Secrets — never hardcode or commit them; load from env/secret stores; rotate; keep them out of logs and client bundles.
  4. Dependencies — pin and audit; hand deep checks to dependency-audit.
  5. Transport & data — HTTPS only; least-privilege access; encrypt sensitive data at rest.
  6. Errors & limits — don't leak stack traces/internals; rate-limit and set sane timeouts.

AI and local data boundaries

  • Use ai-tool-security, when available, for agent tool execution and outbound data; use context-privacy for team/client sharing boundaries. These workflows complement application authorization rather than replace it.
  • Git ignores prevent normal tracking, not file reads. Keep raw data and personal notes in the designated local store; use a secret manager or OS credential store for credentials and verify the agent's actual access restrictions.
  • A private repository exposes history to its authorized readers. Review historical exposure when changing visibility or recipients, not only the latest file tree.
  • On credential exposure, contain access and revoke or rotate affected credentials before repository cleanup. Do not reproduce secret values in incident notes.

Red flags

  • String-concatenated SQL/shell/HTML; eval on untrusted input.
  • Secrets in code, config, or logs; secrets shipped to the browser.
  • Authorization enforced only in the UI; missing server-side checks.
  • Verbose error responses exposing internals.

Verification

  • Inputs are validated; queries parameterized; output encoded.
  • Check the relevant diff, bundle, and logs for secrets; state scan scope and limits.
  • Protected actions fail safely when unauthorized.

Reference Index

  • references/expanded-guidance.md — deeper defensive security checklist, trust boundaries, secret handling, and hardening guidance.
  • references/security-checklist.md — review-mode checklist for a security pass.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.