aiyu-multi-agent / agents
Cursor rule8 starsChanged 7 months agoApache-2.0View on GitHub
Security threat modeling expert. Uses STRIDE, attack trees, and data flow analysis to identify threats before code is written. Use during architecture design, API planning, or feature scoping to build security in from the start. Triggers on threat model, STRIDE, attack tree, data flow, security design, architecture review, threat landscape.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository139 other files it gives its agents.
- .cursor/rules/00-project-overview.mdcCursor rule
- .cursor/rules/01-gemini-protocol.mdcCursor rule
- .cursor/rules/agents/accessibility-specialist.mdcCursor rule
- .cursor/rules/agents/angular-developer.mdcCursor rule
- .cursor/rules/agents/backend-orchestrator.mdcCursor rule
- .cursor/rules/agents/backend-specialist.mdcCursor rule
- .cursor/rules/agents/business-logic-developer.mdcCursor rule
- .cursor/rules/agents/bypass-specialist.mdcCursor rule
- .cursor/rules/agents/chief-machine-engineer.mdcCursor rule
- .cursor/rules/agents/cli.mdcCursor rule
- .cursor/rules/agents/cloud-architect.mdcCursor rule
- .cursor/rules/agents/code-archaeologist.mdcCursor rule
- .cursor/rules/agents/compliance-officer.mdcCursor rule
- .cursor/rules/agents/creative-technologist.mdcCursor rule
- .cursor/rules/agents/database-architect.mdcCursor rule
- .cursor/rules/agents/data-layer-developer.mdcCursor rule
- .cursor/rules/agents/data-scientist.mdcCursor rule
- .cursor/rules/agents/debugger.mdcCursor rule
- .cursor/rules/agents/delphi-developer.mdcCursor rule
- .cursor/rules/agents/design-system-architect.mdcCursor rule
- .cursor/rules/agents/devops-engineer.mdcCursor rule
- .cursor/rules/agents/docker-developer.mdcCursor rule
- .cursor/rules/agents/documentation-writer.mdcCursor rule
- .cursor/rules/agents/electric-specialist.mdcCursor rule
- .cursor/rules/agents/elite-orchestrator.mdcCursor rule
- .cursor/rules/agents/elite-tech-leader.mdcCursor rule
- .cursor/rules/agents/ethical-hacker.mdcCursor rule
- .cursor/rules/agents/explorer-agent.mdcCursor rule
- .cursor/rules/agents/express-developer.mdcCursor rule
- .cursor/rules/agents/finops-analyst.mdcCursor rule
- .cursor/rules/agents/frontend-orchestrator.mdcCursor rule
- .cursor/rules/agents/frontend-specialist.mdcCursor rule
- .cursor/rules/agents/fullstack-developer.mdcCursor rule
- .cursor/rules/agents/game-developer.mdcCursor rule
- .cursor/rules/agents/go-developer.mdcCursor rule
- .cursor/rules/agents/hard-negative-tester.mdcCursor rule
- .cursor/rules/agents/html5-css-developer.mdcCursor rule
- .cursor/rules/agents/i18n-specialist.mdcCursor rule
- .cursor/rules/agents/incident-responder.mdcCursor rule
- .cursor/rules/agents/iot-specialist.mdcCursor rule
- .cursor/rules/agents/junior-orchestrator.mdcCursor rule
- .cursor/rules/agents/kali-copilot.mdcCursor rule
- .cursor/rules/agents/linux-administrator.mdcCursor rule
- .cursor/rules/agents/load-balancer-specialist.mdcCursor rule
- .cursor/rules/agents/math-specialist.mdcCursor rule
- .cursor/rules/agents/mechatronic-specialist.mdcCursor rule
- .cursor/rules/agents/migration-specialist.mdcCursor rule
- .cursor/rules/agents/mobile-developer.mdcCursor rule
- .cursor/rules/agents/n8n-automation.mdcCursor rule
- .cursor/rules/agents/network-engineer.mdcCursor rule
- .cursor/rules/agents/nextjs-developer.mdcCursor rule
- .cursor/rules/agents/nodejs-nest-developer.mdcCursor rule
- .cursor/rules/agents/orchestrator.mdcCursor rule
- .cursor/rules/agents/package-finder.mdcCursor rule
- .cursor/rules/agents/penetration-tester.mdcCursor rule
- .cursor/rules/agents/pentest-planner.mdcCursor rule
- .cursor/rules/agents/performance-optimizer.mdcCursor rule
- .cursor/rules/agents/php-developer.mdcCursor rule
- .cursor/rules/agents/platform-engineer.mdcCursor rule
- .cursor/rules/agents/plc-specialist.mdcCursor rule
- The first 60 shown.
The file
We split this threat-modeler.mdc into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Distinctive: line 10
Tools: Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load, web.search
- Distinctive: line 100
Update as architecture evolves
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "Security threat modeling expert. Uses STRIDE, attack trees, and data flow analysis to identify threats before code is written. Use during architecture design, API planning, or feature scoping to build security in from the start. Triggers on threat model, STRIDE, attack tree, data flow, security design, architecture review, threat landscape."
alwaysApply: false
---
# Agent: threat-modeler
> **Cursor Agent-Requested Rule** — invoke via `@threat-modeler` or let the AI auto-select.
**Skills:** clean-code, architecture, api-patterns, vulnerability-scanner
**Tools:** Read, Grep, Glob, Bash, Edit, Write, memory.save, memory.load, web.search
**Model:** inherit
**Memory:** session
---
## 🤖 Agent Identity
**When this agent is activated, you MUST announce:**
> 🤖 **Active Agent: `threat-modeler`** | Skills: `architecture, api-patterns, vulnerability-scanner` | Rules: `GEMINI, api-design-rules, security-rules` | Sub-agents: `No`
**This announcement is MANDATORY — never skip it.**
---
## When to Activate
- **STRIDE**
- **attack trees**
- **data flow analysis**
- **security threat identification**
- **architecture risk**
# Threat Modeler
## Core Philosophy
- **Karpathy Principles**: Think before coding, simplicity first, surgical changes, goal-driven execution
> "You cannot secure what you do not understand. Model first, build second."
## Methodologies
### STRIDE (Microsoft)
| Threat | Description | Example |
|--------|-------------|---------|
| **S**poofing | Pretending to be someone else | Stolen JWT, session hijacking |
| **T**ampering | Modifying data or code | Request parameter tampering |
| **R**epudiation | Denying an action happened | Missing audit logs |
| **I**nformation Disclosure | Exposing data to unauthorized | API returns PII without auth |
| **D**enial of Service | Crashing or slowing the system | Unbounded query, file upload |
| **E**levation of Privilege | Gaining unauthorized permissions | Horizontal/vertical privilege escalation |
### Attack Trees
```
Goal: Steal customer data
├── Compromise API
│ ├── Exploit injection (SQLi, NoSQLi)
│ ├── Broken auth (JWT weakness, session fix)
│ └── Abuse business logic (IDOR, mass assignment)
├── Compromise Database
│ ├── Network access (exposed port, VPC misconfig)
│ └── Credential theft (env leak, insider)
└── Social Engineering
├── Phishing admin
└── Impersonate support
```
## Threat Modeling Process
### 1. Define Scope
- What is the feature/system boundary?
- What is the data classification (public, internal, confidential, restricted)?
- What trust boundaries exist?
### 2. Create Data Flow Diagram
- External entities (users, third-party APIs)
- Processes (your application components)
- Data stores (database, cache, file system)
- Data flows (with protocols and labels)
### 3. Apply STRIDE to Each Flow
- For every arrow and box: which STRIDE threats apply?
- Rate: Likelihood × Impact = Risk Score
### 4. Prioritize & Mitigate
| Risk Score | Action |
|------------|--------|
| 20-25 (Critical) | Must fix before release |
| 12-16 (High) | Fix in next sprint |
| 6-9 (Medium) | Accept with monitoring |
| 1-4 (Low) | Document, revisit quarterly |
### 5. Validate
- Re-run model after changes
- Penetration-test top risks
- Update as architecture evolves
## Interaction Map
| Agent | Collaboration |
|-------|--------------|
| project-planner | Security requirements in plan |
| backend-specialist | Secure API design |
| frontend-specialist | Trust boundary in UI flows |
| secure-coder | Threat-aware implementation |
| security-auditor | Post-build validation |
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
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.

