threat

Solid

Map every trust boundary and what validates it — rung 1, SAFE. Use when the user says "procoder threat", "threat model", "trust boundaries", "attack surface", "security review", "where does untrusted input enter", "what's our exposure", or invokes /procoder:threat. Produces a boundary table with gaps, not a STRIDE essay.

Code & Development 202 stars 15 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 84/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# procoder:threat You cannot validate a boundary you have not listed. This skill produces the list, then checks each entry against the code. ## Procedure **Step 0 — run the engine.** `node <plugin>/bin/procoder.js check <scope>`. Its `safe/*` rules (`sql-injection`, `shell-injection`, `xss-sink`, `unsafe-deserialize`, `hardcoded-secret`, `secret-in-log`, `pii-in-log`, `dynamic-eval`, `tls-disabled`, `weak-hash`, `weak-random`, `xxe-risk`, `unsafe-block`) are deterministic. Report them as-is and use them to seed the sink column. Never re-derive them by reading files; never drop one. **1 — Enumerate entry points.** Search by framework idiom for the languages present. Every hit is a row. | Entry kind | Search for | |---|---| | HTTP route handler | `app.get\|router.post\|@Get\|@RequestMapping\|@app.route\|http.HandleFunc\|[HttpPost]` | | GraphQL resolver | `Resolver\|resolvers\s*[:=]\|@Query\|@Mutation` | | gRPC method | generated service base classes, `RegisterXServer`, `ServiceImplBase` | | Queue / topic consumer | `@KafkaListener\|consume(\|subscribe(\|SQS\|@RabbitListener\|on('message'` | | Webhook receiver | route paths containing `webhook\|callback\|hooks/`, signature-verification helpers | | CLI arguments | `process.argv\|argparse\|clap\|flag.Parse\|os.Args` | | File / upload reader | `multer\|readFile\|open(\|FormFile\|IFormFile` | | Environment & config | `process.env\|os.getenv\|Environment.Get\|viper\|std::env::var` | | IPC / socket handler | `ipcMain.on\|net.crea...

Details

Author
azrtydxb
Repository
azrtydxb/procoder
Created
3 weeks ago
Last Updated
today
Language
Go
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

assess-threats

Use when an agent needs to identify trust boundaries and architectural threat vectors in a system design or a change's attack surface; maps the boundaries, applies STRIDE, and rates threats by risk rather than executing exploits or patching code.

0 Updated today
tacticaldoll
Code & Development Listed

secure-coding

Implementation-level defensive practice - validating input at boundaries, handling secrets, avoiding injection, safe error handling, dependency hygiene, and safe defaults. Use while writing or reviewing code that parses external input, builds queries or commands, handles credentials or tokens, serialises data, or manages permissions. Complements threat-modeling, which decides what to defend, by covering how to implement the defence.

0 Updated 1 weeks ago
ibrohim1234567881717
AI & Automation Listed

tinfoil

Makes your AI agent think like the security reviewer who assumes every input is hostile until the code proves otherwise. Not paranoid — just right often enough that it stopped being funny. Use this whenever code accepts data from outside its own process and is about to ship — HTTP handlers, webhook receivers, file uploads/parsers, CLI args fed to shells, SQL/query construction, deserialization, auth flows, LLM-tool inputs, or anything an agent generated that touches user data. Trigger on "review this endpoint", "is this secure", "add an API", "parse this file", "handle the upload" — and especially on diffs that add a new place where external data enters. The skill maps trust boundaries first, then walks every untrusted input to its sinks, demanding a named handling for each (validate, escape, parameterize, sandbox, reject). Ships with a linter that fails any review that issues PASS without enumerating inputs and their handling, or that contains "should be fine"-grade reassurance.

0 Updated today
scoobydrew83