Skip to content

Commit 5d4e924

Browse files
authored
Merge pull request #7 from ShieldNet-360/feat/audit-ci
Feat/audit ci
2 parents 08b010f + b836ca1 commit 5d4e924

43 files changed

Lines changed: 259 additions & 4264 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.pre-commit-hooks.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
- id: secure-vibe-gate
1919
name: SecureVibe gate
2020
description: Fail on secrets, vulnerable dependencies, and Dockerfile / GitHub Actions issues at or above a severity floor.
21-
entry: secure-vibe gate
21+
entry: secure-vibe audit --fail-on high
2222
language: node
23-
args: ["--severity-floor", "high"]
23+
args: []
2424
types: [text]
2525
pass_filenames: true
2626
require_serial: false

‎README.md‎

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,17 @@ binary (no bundled data). Point it at a library checkout via `--path` / `$SECURE
5050
# 1 · embed security skills into your assistant (writes CLAUDE.md / .cursorrules / …)
5151
secure-vibe init --tool claude # claude · cursor · copilot · codex · windsurf · cline · devin
5252

53-
# 2 · scan code — auto-detects secrets / bad deps / Dockerfile / GitHub Actions per file
54-
secure-vibe scan .
55-
56-
# 2b · audit a whole repo — dedup, rank by severity, triage fixtures (offline; --model adds AI lanes)
53+
# 2 · audit code — auto-detects secrets / bad deps / Dockerfile / GitHub Actions,
54+
# deduped + ranked + fixtures triaged. Pass files, a dir, or --diff for a PR.
5755
secure-vibe audit .
5856

5957
# 3 · gate a build (CI / pre-commit) — non-zero exit on findings, SARIF for Code Scanning
60-
secure-vibe gate . --severity-floor high --format sarif
58+
secure-vibe audit . --fail-on high --format sarif
6159

6260
# 4 · vet one package before adding it
6361
secure-vibe check event-stream@3.3.6 -e npm
6462

65-
# 5 · the MCP server (18 tools over stdio) — this is the command clients spawn:
63+
# 5 · the MCP server (17 tools over stdio) — this is the command clients spawn:
6664
secure-vibe mcp # or: npx -y @shieldnet360/secure-vibe mcp
6765
# register it with Claude Code in one line:
6866
claude mcp add SecureVibe -- npx -y @shieldnet360/secure-vibe mcp
@@ -78,8 +76,8 @@ Malicious entries: 1
7876
! MALICIOUS [critical] event-stream — Maintainer account compromised; malicious
7977
flatmap-stream dependency added to steal cryptocurrency wallets
8078

81-
$ secure-vibe gate Dockerfile --severity-floor high # FROM ubuntu:latest / USER root
82-
Verdict: FAIL
79+
$ secure-vibe audit Dockerfile --fail-on high # FROM ubuntu:latest / USER root
80+
=== secure-vibe audit: Dockerfile ===
8381
Findings: 3 (critical: 1, high: 2)
8482
$ echo $?
8583
1
@@ -105,30 +103,31 @@ jobs:
105103
fail-on: high
106104
```
107105
108-
Any other CI (or a pre-commit hook): `npx -y @shieldnet360/secure-vibe audit . --fail-on high` — add `--diff origin/main` for PR scope, `--format sarif` for Code Scanning, `--model <provider>` for the AI lanes.
106+
Any other CI (or a pre-commit hook): `npx -y @shieldnet360/secure-vibe audit . --fail-on high` — add `--diff origin/main` for PR scope, `--format sarif` for Code Scanning.
109107

110108
## What you get
111109

112-
The lifecycle is **PREVENT → DETECT → ENFORCE → VERIFY → LEARN**:
110+
The lifecycle is **PREVENT → DETECT → ENFORCE → VERIFY → LEARN**. The binary is
111+
deterministic and passive — it never calls an LLM and never sends attack traffic;
112+
the *reasoning* and *dynamic verification* are your coding agent's job, so the
113+
tool stays keyless and works the same in Claude Code, Codex, Gemini, or plain CI.
113114

114115
- **PREVENT** — 30 signed skills across 8 assistants, consulted as code is written.
115-
- **DETECT** — one auto-detecting `scan` (secrets, dependencies via a curated malicious / typosquat DB + CVE / OSV across 10 ecosystems, Dockerfile, GitHub Actions), and `audit` to fan it across a whole repo with dedup, severity ranking, and fixture triage. `audit` is model-pluggable: `--model` adds an AI semantic-sweep + adversarial-verify lane (bring your own key — Claude / OpenAI / Gemini / local), off and offline by default.
116-
- **ENFORCE** — `gate` blocks insecure diffs; `--format json|sarif`, `--report-dir` for an HTML + PDF report.
117-
- **VERIFY** — dynamic `verify_finding` confirms a candidate against a *live* target (ssrf · sqli · xss · redirect · path-traversal · command-injection · ssti · xxe); gated, dry-run by default.
116+
- **DETECT** — one command, `audit`: fans the deterministic scanners (secrets, dependencies via a curated malicious / typosquat DB + CVE / OSV across 10 ecosystems, Dockerfile, GitHub Actions) across the tree (or a PR's `--diff`), then dedups, ranks by severity, and triages likely fixtures.
117+
- **ENFORCE** — `audit --fail-on <severity>` exits non-zero for CI; `--format sarif` for Code Scanning, `--report-dir` for an HTML + PDF report, `--no-triage` for a strict gate.
118+
- **VERIFY** — the coding agent confirms candidates dynamically, guided by the `dynamic-verification` skill (SecureVibe hands it the finding + method; the agent, with your authorization and scope, does the probing — the binary never sends the payload).
118119
- **LEARN** — `secure-vibe contribute add -p <pkg> -e npm` writes a signed `.secure-vibe/overlay.json`; commit it (team) or point `$SECURE_VIBE_OVERLAY` at a shared file (org).
119120

120-
> **Narrow by design.** Detection is four deterministic scanners, not a general SAST. It catches known patterns and known-bad packages with near-zero false positives; it does not claim to find every vulnerability.
121+
> **Narrow by design.** Detection is four deterministic scanners, not a general SAST. It catches known patterns and known-bad packages with near-zero false positives; it does not claim to find every vulnerability. The semantic and dynamic depth comes from the agent driving it.
121122

122123
## Commands
123124

124125
| Command | What it does |
125126
|---|---|
126127
| `init --tool <ide>` | Write the assistant config (`CLAUDE.md`, `.cursorrules`, …) that embeds the skills |
127-
| `scan <path>` | Auto-detect + report findings (secrets / deps / Dockerfile / Actions) |
128-
| `audit [path]` | Whole-tree fan-out: dedup, rank by severity, triage fixtures; `--model` adds AI lanes |
129-
| `gate <path>` | Same detection, **non-zero exit** above a severity floor — the CI entry point |
128+
| `audit [path...]` | The scanner: fan out every scanner, dedup, rank, triage. Reports by default; `--fail-on` gates CI; `--diff` scopes to a PR; `--format sarif` for Code Scanning |
130129
| `check <pkg>[@ver] -e <eco>` | Look up one package: malicious / typosquat / CVE / OSV |
131-
| `mcp` | Run the MCP server (18 tools); `mcp connect` registers it with Claude Code |
130+
| `mcp` | Run the MCP server (17 tools); `mcp connect` registers it with Claude Code |
132131
| `contribute` | The LEARN loop — block a bad package locally, share via git / overlay |
133132
| `update` | Pull signed skills + vuln data (`--self` updates the binary) · `status` reports freshness |
134133

@@ -138,7 +137,7 @@ Full reference: [docs/reference/cli.md](./docs/reference/cli.md) · `secure-vibe
138137

139138
- [ARCHITECTURE.md](./ARCHITECTURE.md) — design, compiler, update protocol, repo layout.
140139
- [docs/](./docs/) — guides (developer · devops · security · evaluator), install, air-gapped, team rollout.
141-
- [docs/reference/mcp-clients.md](./docs/reference/mcp-clients.md) — connect the MCP server to any agent (Claude Code · Cursor · Windsurf · VS Code · Cline · Zed) · [docs/reference/mcp-tools.md](./docs/reference/mcp-tools.md) — the 18 MCP tools · [skills/](./skills) — the 30-skill catalogue.
140+
- [docs/reference/mcp-clients.md](./docs/reference/mcp-clients.md) — connect the MCP server to any agent (Claude Code · Cursor · Windsurf · VS Code · Cline · Zed) · [docs/reference/mcp-tools.md](./docs/reference/mcp-tools.md) — the 17 MCP tools · [skills/](./skills) — the 30-skill catalogue.
142141
- [SIGNING.md](./SIGNING.md) — Ed25519 release signing · [CONTRIBUTING.md](./CONTRIBUTING.md) · [SECURITY.md](./SECURITY.md).
143142

144143
## Platform support

0 commit comments

Comments
 (0)