agentleFS
jaydubya818jaydubya818/MissionControl/skills/security-and-hardening/SKILL.md

security-and-hardening

Skill1 starsChanged 9 months agoMITView on GitHub

Review security or harden sensitive trust boundaries with abuse-case tests.

107 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 8 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.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 21 projects that use this

  • HK-hubSkill

    source-driven-development

    Grounds every implementation decision in official documentation. Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters.

    Also in 49 projects that use this

  • HK-hubSkill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 57 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 45 projects that use this

  • seikaikyoSkill

    interview-me

    需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。

    Also in 41 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 103 edited versions we read keep these.

  • 8

    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 this workflow for requested security reviews or changes to sensitive trust boundaries.

    line 17
  2. Distinctive:

    Write concrete abuse cases for the relevant boundary before choosing controls.

    line 26
  3. Distinctive:

    Follow the framework's current session, password-storage, and CSRF guidance.

    line 36
  4. Distinctive:

    Keep secrets out of source, public errors, telemetry, and model context.

    line 39
  5. Distinctive:

    Check webhook signatures using the provider's documented raw-body procedure, timestamp/replay rules, and event identity.

    line 56
  6. Distinctive:

    Use existing task authorization for requested fixes.

    line 74
  7. Distinctive:

    Use controlled fixtures to prove both allowed and denied behavior.

    line 80
  8. Distinctive:

    Check findings against the actual callers, guards, and tests.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 103 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 and hardening

Use this workflow for requested security reviews or changes to sensitive trust boundaries. Scope the review to the actual system and requested work. Ordinary copy edits do not require a full audit.

Trace the trust boundary

Identify the assets, actors, privileges, untrusted inputs, and consequential operations. Trace who can write each value, including files, queue payloads, provider responses, and model output. Local origin does not imply trust. Write concrete abuse cases for the relevant boundary before choosing controls.

Check the controls that apply

  • Authorize the actor against the resource and tenant on every protected operation, including background actions and replay paths. Authentication alone is insufficient. Test another user's and another tenant's identifiers.
  • Validate bounded input and permitted state transitions server-side. Use parameterized queries and structured process arguments. Encode output for its destination; sanitize allowed rich content with a maintained sanitizer.
  • Follow the framework's current session, password-storage, and CSRF guidance. Cookie flags, CORS, and SameSite settings are separate controls, not proof that all cross-site requests are safe. Preserve legitimate auth redirects.
  • Keep secrets out of source, public errors, telemetry, and model context. For staged-diff triage, report matching filenames rather than raw lines that could expose secret values. A keyword scan is a review aid, not proof that all secrets were detected. Review response field allowlists and tenant partitioning. If credentials are exposed, report the exposure without repeating them; coordinate rotation within granted authority. Do not silently rewrite shared Git history.
  • Bound upload sizes, validate permitted content, and isolate storage and serving behavior. A filename extension or client MIME type is not evidence of safe content. Check tenant ownership on later downloads too.
  • For server-side URL fetches, constrain schemes, destinations, redirects, response size, and time. Block internal and metadata targets, including IPv6 and DNS-rebinding paths. Prefer the platform's tested egress controls over a homegrown URL regex.
  • For derived filesystem targets, verify allowed scope and ownership with operations that address symlink races. Resolving a path and checking it once is insufficient when an attacker can replace it before the write or delete.
  • Check webhook signatures using the provider's documented raw-body procedure, timestamp/replay rules, and event identity. Use duplicate-safe processing. Apply bounded retries and rate limits across the actual deployment topology.
  • Inspect dependency changes, lockfiles, provenance, and install scripts. Use supported audits and review reachable findings. A clean advisory scan does not prove a dependency is safe; do not apply forced upgrades blindly.
  • Enforce model/tool permissions in code. Retrieved instructions and generated arguments are untrusted data, even when the model expresses confidence.

Privacy and scope

Collect fields for a stated purpose and define access, retention, deletion, and recovery handling for each store. Include caches, exports, analytics, and backups in the data map. Follow the organization's approved retention and legal holds; do not promise immediate deletion from immutable backups or invent a universal legal consent rule. Escalate unresolved policy decisions with the concrete data flow that needs a decision.

Use existing task authorization for requested fixes. This skill grants no new authority to scan third-party systems, change production roles, export real customer data, rotate credentials, or publish a finding externally.

Verify and report

Use controlled fixtures to prove both allowed and denied behavior. Reproduce reported issues and test the fix at the real boundary, including cross-tenant, replay, malformed-input, and concurrency cases where relevant. Prefer precise findings with location, impact, preconditions, evidence, and a scoped fix over generic checklists. Separate observed vulnerabilities from unverified concerns. Check findings against the actual callers, guards, and tests. Compare with the base revision to distinguish existing defects from regressions introduced by the change. Drop findings ruled out by that evidence; zero findings is valid.

Record checks run, unavailable evidence, and residual risk. Claim only the scope reviewed; passing an audit tool is not a security or compliance certificate.

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.