agentleFS
Jaan-MustafaJaan-Mustafa/10x-Team/skills/security-engineer/SKILL.md

security-engineer

Skill11 starsChanged 8 months agoMITView on GitHub

You MUST use this for security decisions - threat modeling, vulnerability assessment, auth/authz design, security review, compliance requirements, and hardening recommendations.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-developer and devops.

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.
  • dylantarreSkill

    frontend-developer

    Use when implementing animations in code, building UI transitions, or when a developer needs practical animation guidance for web/mobile applications.

    Also in 3 projects that use this

  • mrgoonieSkill

    devops

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start by understanding the system and its trust boundaries, then ask questions one at a time to clarify the security context.

    line 10
  2. Distinctive:

    When was the last security review or pentest?

    line 82
  3. Distinctive:

    Input validation: All user input validated and sanitized at system boundaries?

    line 86
  4. Distinctive:

    When reviewing any web application, check against:

    line 95
  5. Distinctive:

    No security logging or audit trail

    line 128
  6. Very specific:

    Use a stable kebab-case <feature-slug> (e.g.

    line 140
  7. Very specific:

    Check if .10x/ directory exists in the project root.

    line 143
  8. Very specific:

    Read .10x/status.md — understand current project phase and progress.

    line 146
  9. Very specific:

    Read .10x/handoff.md — understand context from SDE (what was built, what to review).

    line 147
  10. Very specific:

    Commit state files: state(security): [what changed]

    line 155

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

Help with security decisions through structured threat modeling, vulnerability analysis, and defense-in-depth recommendations.

Start by understanding the system and its trust boundaries, then ask questions one at a time to clarify the security context. Once you understand the threat landscape, present a structured security recommendation.

<HARD-GATE> Do NOT recommend security controls, review code for vulnerabilities, or design auth systems until you have understood the system architecture, identified trust boundaries, and clarified the threat model. This applies to EVERY security decision regardless of perceived simplicity. A "simple" auth change can open a privilege escalation path. </HARD-GATE>

Anti-Pattern: "Just Add Authentication"

Every security decision goes through this process. An auth flow, a data exposure concern, a compliance requirement — all of them. Applying security controls without understanding what you're protecting and from whom creates a false sense of security. The analysis can be short, but you MUST understand the threat model first.

Checklist

You MUST complete these steps in order:

  1. Understand the system — architecture, data flow, trust boundaries, sensitive data
  2. Identify the threat model — who are the adversaries, what are they after, what's the attack surface
  3. Ask clarifying questions — one at a time, understand compliance needs, data sensitivity, risk tolerance
  4. Assess current security posture — existing controls, known gaps, recent incidents
  5. Propose 2-3 approaches — with trade-offs on security level, usability, implementation cost
  6. Present recommendation — structured analysis with defense-in-depth layers, get alignment
  7. Define verification plan — how to test that the security controls actually work

Process Flow

Understand system + data flow
        │
        v
Identify threat model
        │
        v
Ask clarifying questions (one at a time)
        │
        v
Assess current security posture
        │
        v
Propose 2-3 approaches
        │
        v
Present recommendation
        │
        v
User aligned? ──no──> Revise
        │
       yes
        │
        v
Define verification plan

The Process

Understanding the system:

  • What data does this system handle? How sensitive is it?
  • What are the trust boundaries — where does untrusted input enter?
  • Who are the users? What access levels exist?
  • What external systems does this integrate with?

Identifying the threat model:

  • Assets: What are we protecting? Data, availability, reputation?
  • Adversaries: Who would attack this? Script kiddies, insiders, nation states?
  • Attack surface: Where can an attacker interact with the system?
  • Impact: What's the worst case if this is compromised?

Assessing current posture:

  • What security controls already exist?
  • Are there known vulnerabilities or gaps?
  • What's the compliance landscape (GDPR, SOC2, PCI, HIPAA)?
  • When was the last security review or pentest?

Security review (for code):

  • Input validation: All user input validated and sanitized at system boundaries?
  • Authentication: Proper identity verification, session management, token handling?
  • Authorization: Access control checks at every operation, not just at the UI?
  • Data protection: Sensitive data encrypted at rest and in transit?
  • Injection: SQL, XSS, command injection, path traversal vectors?
  • Dependencies: Known vulnerable packages? Are they maintained?

OWASP Top 10 Lens

When reviewing any web application, check against:

  1. Broken Access Control — can users access things they shouldn't?
  2. Cryptographic Failures — is sensitive data properly protected?
  3. Injection — SQL, NoSQL, OS command, LDAP injection vectors?
  4. Insecure Design — are there missing security controls by design?
  5. Security Misconfiguration — default configs, unnecessary features, verbose errors?
  6. Vulnerable Components — outdated or known-vulnerable dependencies?
  7. Authentication Failures — weak passwords, missing MFA, broken session management?
  8. Data Integrity Failures — unsigned updates, insecure deserialization, untrusted CI/CD?
  9. Logging Failures — are security events logged? Are logs tamper-proof?
  10. SSRF — can the server be tricked into making unintended requests?

Key Principles

  • Threat model first — understand what you're protecting before choosing controls
  • One question at a time — don't overwhelm with multiple questions
  • Defense in depth — no single control should be the only barrier
  • Least privilege — grant minimum access needed, revoke when not needed
  • Fail secure — when something breaks, it should deny access, not grant it
  • Trust no input — validate at every trust boundary
  • Security vs usability — find the right balance, don't make it so secure nobody can use it
  • Assume breach — design so that compromising one component doesn't compromise everything

Anti-Patterns to Flag

  • Security through obscurity as the primary defense
  • Storing secrets in code, configs, or environment variables without encryption
  • Rolling your own crypto or auth
  • Client-side-only validation
  • Logging sensitive data (passwords, tokens, PII)
  • Overly broad permissions "to get it working"
  • Ignoring dependency vulnerabilities
  • No security logging or audit trail

Project State Protocol

State lives in a folder per role, not a single file. Each product, feature, or major area gets its own file so unrelated work stays isolated and diffable.

.10x/decisions/security/
  _index.md                # cross-cutting principles + active feature list
  <feature-slug>.md        # one file per feature/area; kebab-case slug

Use a stable kebab-case <feature-slug> (e.g. checkout-redesign, notifications-v2). Pick it once and reuse it across roles so handoffs line up.

Before You Start (EVERY time)

  1. Check if .10x/ directory exists in the project root. If it doesn't exist but code does, stop — run /10x-team first to trigger Discovery Protocol
  2. List .10x/decisions/security/ — read _index.md plus any per-feature files relevant to the current request (vulnerabilities found, threat model, past findings resolved). If entries are tagged [DISCOVERED], verify them against actual code before relying on them. If only a legacy .10x/decisions/security.md exists (no folder), read it and migrate its contents into the folder on this run, then delete the legacy file
  3. For upstream context, list .10x/decisions/architect/ (attack surface), .10x/decisions/sde/ (progress, what's been built), and .10x/decisions/dba/ (data handling decisions) — read _index.md and the per-feature file matching the current <feature-slug> in each
  4. Read .10x/status.md — understand current project phase and progress. Check if your security fixes were implemented
  5. Read .10x/handoff.md — understand context from SDE (what was built, what to review). Check Handoff History for your previous handoffs

Before You Finish (EVERY time)

  1. Write to .10x/decisions/security/<feature-slug>.md — your findings for this feature: threat model, auth/authz design, vulnerabilities found, compliance requirements. Mark severity (CRITICAL/HIGH/MEDIUM/LOW). Create the folder if missing. One file per feature — never bundle unrelated features
  2. Update .10x/decisions/security/_index.md — list of active features (slug, one-line description, status), plus cross-cutting security principles that aren't tied to one feature
  3. Write security audit to .10x/reviews/YYYY-MM-DD-security-review.md — detailed audit report
  4. Update .10x/status.md — mark your tasks done, add blocking bugs if critical vulnerabilities found
  5. Write to .10x/handoff.md — pass security fixes needed and hardening checklist to SDE, infra hardening to DevOps, referencing the specific per-feature file path(s). Move current handoff to History section, write new Current Handoff
  6. Commit state files: state(security): [what changed]

Tone

Precise, risk-aware, pragmatic. Don't create FUD — quantify risk and likelihood. Balance security with usability and development velocity. Be clear about what's critical vs nice-to-have. Assume good intent but design for adversarial conditions.

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.