praxis-sec 1.0.0 → 1.2.0
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 +29 -8
- package/cli/agents/agent-attestation-agent.js +6 -1
- package/cli/agents/agent-telemetry-agent.js +8 -1
- package/cli/agents/ai-infra-inventory-agent.js +49 -16
- package/cli/agents/base-agent.js +60 -0
- package/cli/agents/endpoint-agent-abuse-agent.js +1 -1
- package/cli/agents/git-history-scanner.js +1 -1
- package/cli/agents/mcp-security-agent.js +7 -1
- package/cli/agents/prompt-injection-prober.js +5 -1
- package/cli/bin/praxis.js +45 -0
- package/cli/commands/audit.js +44 -8
- package/cli/commands/mcp.js +1 -1
- package/cli/commands/openclaw.js +1 -1
- package/cli/commands/scan.js +31 -1
- package/cli/core/.praxis/context.json +210 -0
- package/cli/core/.praxis/history.json +186 -0
- package/cli/core/.praxis/llm-cache.json +50 -0
- package/cli/core/ast/guardrail-detector.js +1 -1
- package/cli/core/errors.js +2 -2
- package/cli/core/git-clone.js +200 -0
- package/cli/core/web/.praxis/context.json +135 -0
- package/cli/core/web/.praxis/history.json +93 -0
- package/cli/core/web/.praxis/llm-cache.json +1 -0
- package/cli/core/web/jobs.js +25 -2
- package/cli/core/web/server.js +69 -155
- package/cli/core/web/ui.js +2193 -0
- package/docs/THREAT_INTEL.md +1 -1
- package/docs/USAGE.md +26 -0
- package/package.json +2 -2
package/docs/THREAT_INTEL.md
CHANGED
|
@@ -6,7 +6,7 @@ other command that consumes the merged feed. It explains what each command
|
|
|
6
6
|
does, how the system is laid out internally, and what knobs you can turn.
|
|
7
7
|
|
|
8
8
|
For everything else (general CLI usage, scanning, hooks, etc.), see the main
|
|
9
|
-
[`README.md`](
|
|
9
|
+
[`README.md`](../README.md) and the full [`USAGE.md`](USAGE.md) reference.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
package/docs/USAGE.md
CHANGED
|
@@ -120,8 +120,34 @@ Full audit: secrets + 28 agents + deps + score + remediation plan.
|
|
|
120
120
|
| `--agentic-target <score>` | Target security score for agentic loop |
|
|
121
121
|
| `--hermes-only` | Run only Hermes-relevant agents |
|
|
122
122
|
| `--fail-below <threshold>` | Exit 1 if score < threshold |
|
|
123
|
+
| `-b, --branch <name>` | Branch or tag to scan (when target is a Git URL) |
|
|
124
|
+
| `--depth <n>` | Git clone depth (default: 1 for shallow clone, 0 for full history) |
|
|
125
|
+
| `--git-token <token>` | Auth token for private Git repositories (or set `PRAXIS_GIT_TOKEN` / `GITHUB_TOKEN`) |
|
|
126
|
+
| `--git-history` | Include Git commit history secret audit |
|
|
127
|
+
| `--keep-clone` | Retain cloned repository on disk after scan instead of deleting |
|
|
128
|
+
| `--submodules` | Recursively clone Git submodules |
|
|
123
129
|
| `-v, --verbose` | Verbose output |
|
|
124
130
|
|
|
131
|
+
> **Direct Git Repository Scanning:** You can pass any remote Git URL directly to `praxis scan` (e.g., `praxis scan https://github.com/OWASP/wrongsecrets`). Praxis clones the repository into an isolated, secure temporary directory, executes the audit, and automatically purges the workspace upon completion.
|
|
132
|
+
|
|
133
|
+
### `scan git <url>` / `scan repo <url>`
|
|
134
|
+
|
|
135
|
+
Direct remote Git repository audit. Clones the remote repository to an isolated temporary workspace, runs the 28-agent audit, generates compliance and remediation reports, and cleans up the temporary files safely.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Scan a public GitHub repository with depth 1 (fast SAST audit)
|
|
139
|
+
praxis scan git https://github.com/OWASP/wrongsecrets
|
|
140
|
+
|
|
141
|
+
# Scan a specific branch with full commit history secret audit
|
|
142
|
+
praxis scan git https://github.com/org/repo -b staging --git-history
|
|
143
|
+
|
|
144
|
+
# Scan a private repository using an auth token
|
|
145
|
+
praxis scan git https://github.com/private-org/repo --git-token "$GITHUB_TOKEN" --json > report.json
|
|
146
|
+
|
|
147
|
+
# Shorthand syntax also supported:
|
|
148
|
+
praxis scan gh:OWASP/wrongsecrets
|
|
149
|
+
```
|
|
150
|
+
|
|
125
151
|
### `scan secrets [path]`
|
|
126
152
|
|
|
127
153
|
Fast pattern-based secret scan only (no agents).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "praxis-sec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Praxis — From finding to fix, on autopilot. AI-native security CLI with 28 parallel agents covering AI / MCP / skill threats, OWASP LLM Top 10, multi-source supply-chain intel (OSV / GHSA / KEV / EPSS / NVD / Gitleaks + optional paid feeds), secret scanning, and an LLM-powered agentic remediation loop.",
|
|
5
5
|
"main": "cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "node --test cli/__tests__/intel.test.js cli/__tests__/agents.test.js cli/__tests__/core.test.js cli/__tests__/standards.test.js cli/__tests__/model-file-scanner.test.js cli/__tests__/prompt-injection-prober.test.js cli/__tests__/ast-engine.test.js cli/__tests__/benchmark.test.js cli/__tests__/redteam.test.js cli/__tests__/html-reporter.test.js cli/__tests__/scan-fingerprint.test.js cli/__tests__/fix-ledger.test.js cli/__tests__/threatpack-probes.test.js cli/__tests__/score-history.test.js cli/__tests__/web-ui.test.js cli/__tests__/rule-portability.test.js",
|
|
11
|
+
"test": "node --test cli/__tests__/intel.test.js cli/__tests__/agents.test.js cli/__tests__/core.test.js cli/__tests__/standards.test.js cli/__tests__/model-file-scanner.test.js cli/__tests__/prompt-injection-prober.test.js cli/__tests__/ast-engine.test.js cli/__tests__/benchmark.test.js cli/__tests__/redteam.test.js cli/__tests__/html-reporter.test.js cli/__tests__/scan-fingerprint.test.js cli/__tests__/fix-ledger.test.js cli/__tests__/threatpack-probes.test.js cli/__tests__/score-history.test.js cli/__tests__/web-ui.test.js cli/__tests__/rule-portability.test.js cli/__tests__/git-remote.test.js",
|
|
12
12
|
"test:determinism": "node scripts/check-determinism.mjs .",
|
|
13
13
|
"lint": "eslint cli/",
|
|
14
14
|
"praxis": "node cli/bin/praxis.js"
|