@rafter-security/cli 0.7.6 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -681
- package/dist/commands/agent/components.js +282 -138
- package/dist/commands/agent/init.js +399 -150
- package/dist/commands/agent/scan.js +52 -23
- package/dist/commands/agent/verify.js +211 -21
- package/dist/commands/brief.js +13 -45
- package/dist/commands/issues/from-scan.js +4 -1
- package/dist/core/config-manager.js +6 -0
- package/dist/core/custom-patterns.js +86 -4
- package/dist/core/policy-loader.js +60 -1
- package/dist/scanners/regex-scanner.js +4 -5
- package/dist/utils/skill-manager.js +96 -16
- package/package.json +1 -1
- package/resources/agents/rafter.md +81 -0
- package/resources/continue-rules/rafter-code-review.md +15 -0
- package/resources/continue-rules/rafter-secure-design.md +15 -0
- package/resources/continue-rules/rafter-skill-review.md +15 -0
- package/resources/continue-rules/rafter.md +16 -0
- package/resources/cursor-rules/rafter-code-review.mdc +14 -0
- package/resources/cursor-rules/rafter-secure-design.mdc +14 -0
- package/resources/cursor-rules/rafter-skill-review.mdc +14 -0
- package/resources/cursor-rules/rafter.mdc +15 -0
- package/resources/rafter-security-skill.md +17 -9
- package/resources/windsurf-rules/rafter-code-review.md +14 -0
- package/resources/windsurf-rules/rafter-secure-design.md +14 -0
- package/resources/windsurf-rules/rafter-skill-review.md +14 -0
- package/resources/windsurf-rules/rafter.md +15 -0
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
name: rafter-security
|
|
3
|
+
description: Security toolkit for AI workflows. Use when scanning code or repos for vulnerabilities, auditing third-party skills/MCPs/agent configs before installing, evaluating shell commands before running them, or generating secure design questions for new features. Provides `rafter run` (remote SAST + SCA, needs RAFTER_API_KEY), `rafter secrets` (offline secrets-only), `rafter agent exec --dry-run` (command-risk classification), and `rafter skill review`.
|
|
4
|
+
version: 0.7.9
|
|
5
|
+
homepage: https://rafter.so
|
|
6
|
+
metadata:
|
|
7
|
+
openclaw:
|
|
8
|
+
skillKey: rafter-security
|
|
9
|
+
primaryEnv: RAFTER_API_KEY
|
|
10
|
+
emoji: 🛡️
|
|
11
|
+
always: false
|
|
12
|
+
requires:
|
|
13
|
+
bins: [rafter]
|
|
14
|
+
envVars:
|
|
15
|
+
- name: RAFTER_API_KEY
|
|
16
|
+
required: false
|
|
17
|
+
description: API key for `rafter run` (remote SAST + SCA + agentic deep-dive). Without it, `rafter secrets` (local secrets scan) still works.
|
|
18
|
+
last_updated: 2026-05-07
|
|
11
19
|
---
|
|
12
20
|
|
|
13
21
|
# Rafter Security
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: model_decision
|
|
3
|
+
description: "REQUIRED before declaring a task done when the diff touches user input, SQL, shell, auth, credentials, file paths, serialization, or dependency surface. Walks OWASP/ASVS/MITRE questions the compiler and the test suite won't catch. Pair with `rafter run` on the same diff. A security-relevant task marked complete without both has been under-delivered — do not claim done."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# rafter-code-review — structured pre-merge review
|
|
7
|
+
|
|
8
|
+
Pointer rule. Use the `rafter-code-review` skill at `.claude/skills/rafter-code-review/SKILL.md` BEFORE declaring done on any diff touching the surface listed above.
|
|
9
|
+
|
|
10
|
+
- Read the matching sub-doc (web-app / api / llm / cli-library-iac).
|
|
11
|
+
- Walk the OWASP / ASVS / MITRE questions the scanner can't ask.
|
|
12
|
+
- Pair with `rafter run` on the same diff — the scanner finds known-bad patterns, this skill asks the questions patterns miss.
|
|
13
|
+
|
|
14
|
+
A security-relevant task marked complete without BOTH the skill walkthrough and a `rafter run` pass has been under-delivered. Do not claim done until both are recorded.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: model_decision
|
|
3
|
+
description: "REQUIRED before writing code for any feature touching auth, payments, credentials, tokens, sessions, file upload, user data, or data deletion. Invoke it, record answers inline in the design doc or PR description, then write the code. Skipping this is how auth bypass, token leakage, and delete-the-wrong-record bugs ship. If the feature touches any of those surfaces and this hasn't run, the design is incomplete — do not proceed to implementation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# rafter-secure-design — shift-left design review
|
|
7
|
+
|
|
8
|
+
Pointer rule. Use the `rafter-secure-design` skill at `.claude/skills/rafter-secure-design/SKILL.md` BEFORE writing code for any feature on the surface listed above.
|
|
9
|
+
|
|
10
|
+
- Read the matching sub-doc (auth / data-storage / api-design / ingestion / deployment / dependencies).
|
|
11
|
+
- Each sub-doc is a set of questions a security engineer would ask at kickoff — answer them inline in the design or PR description.
|
|
12
|
+
- Pair with `rafter-code-review` (mid-lifecycle) and `rafter run` (detection) once code exists.
|
|
13
|
+
|
|
14
|
+
Skipping this skill on the listed surfaces is how auth bypass, token leakage, and delete-the-wrong-record bugs ship. Do not proceed to implementation until it has run.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: model_decision
|
|
3
|
+
description: "REQUIRED before copying any third-party SKILL.md, MCP manifest, Cursor rule, or agent config into this machine or forwarding one to a user. Installing a skill grants Read/Bash/network under your identity — this is `curl | sh` in a different costume. Do not install, load, recommend, or forward any third-party agent asset until this skill has vetted it. Bypassing this turns the agent into a delivery vector."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# rafter-skill-review — vet before you install
|
|
7
|
+
|
|
8
|
+
Pointer rule. Use the `rafter-skill-review` skill at `.claude/skills/rafter-skill-review/SKILL.md` BEFORE installing or forwarding any third-party agent asset.
|
|
9
|
+
|
|
10
|
+
- Run `rafter skill review <path-or-url>` against the SKILL.md / MCP manifest / Cursor rule / agent config.
|
|
11
|
+
- Read the skill's sub-docs for the deeper review questions (telemetry, allowed-tools, network egress).
|
|
12
|
+
- Do NOT install, load, recommend, or forward the asset until the skill has produced a verdict.
|
|
13
|
+
|
|
14
|
+
Installing a skill grants Read/Bash/network under your identity — `curl | sh` in a different costume. Bypassing this turns the agent into a delivery vector.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: model_decision
|
|
3
|
+
description: "Entry point for rafter. Invoke when a sub-skill is unclear, or when the task needs `rafter run` (remote SAST+SCA), `rafter secrets` (local secrets-only), `rafter audit`, policy checks, or command-risk evaluation. If a task is security-relevant and no rafter skill or CLI call has been made, invoke this before handing the task off — an un-evaluated \"done\" on security-relevant work is not done."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# rafter — security toolkit router
|
|
7
|
+
|
|
8
|
+
Pointer rule. Use the `rafter` skill (full guidance at `.claude/skills/rafter/SKILL.md`).
|
|
9
|
+
|
|
10
|
+
- Run `rafter run` for the default tier — remote SAST + SCA + secrets. Needs `RAFTER_API_KEY`.
|
|
11
|
+
- Run `rafter run --mode plus` for agentic deep-dive on suspicious patterns.
|
|
12
|
+
- Run `rafter secrets <path>` for offline secrets-only (NOT a code security scan).
|
|
13
|
+
- Run `rafter agent exec --dry-run -- <cmd>` to classify a shell command's risk before running it.
|
|
14
|
+
|
|
15
|
+
If unsure which tier to pick, Read `.claude/skills/rafter/SKILL.md` and follow the routing table.
|