@abdulr7man/pensieve 1.2.1 → 1.2.3
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 +6 -2
- package/VERSION +1 -1
- package/package.json +1 -1
- package/src/installer/home.cjs +10 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
# PENSIEVE
|
|
6
6
|
|
|
7
7
|
[](https://github.com/abdulr7mann/pensieve/actions/workflows/ci.yml)
|
|
8
|
+
[](https://www.npmjs.com/package/@abdulr7man/pensieve)
|
|
8
9
|
[](LICENSE)
|
|
9
10
|

|
|
10
|
-

|
|
11
11
|
[](https://x.com/abdulr7mann)
|
|
12
12
|
|
|
13
13
|
AI agents run penetration tests. PENSIEVE keeps them in scope and makes them prove what they claim. Built for security engineers who want the AI help without the hallucinated findings.
|
|
@@ -16,7 +16,7 @@ AI agents run penetration tests. PENSIEVE keeps them in scope and makes them pro
|
|
|
16
16
|
|
|
17
17
|
- The testing toolbox runs on an isolated Docker network. The egress proxy's allowlist comes from your written scope, so out-of-scope action can't happen, and a fail-closed runtime hook refuses out-of-scope commands as a second layer.
|
|
18
18
|
- A finding stays `draft` until a *different* agent replays its PoC. The report gate drops anything unvalidated.
|
|
19
|
-
- Scope verdicts, CVSS math, evidence hashing, and state transitions all live in `pensieve-sdk`, a zero-dependency Node core with
|
|
19
|
+
- Scope verdicts, CVSS math, evidence hashing, and state transitions all live in `pensieve-sdk`, a zero-dependency Node core with 981 tests. The AI proposes; the SDK decides.
|
|
20
20
|
- Run engagements against your client's scenario workbook (xlsx). Every row comes back with a verdict, evidence figure, and POC, exported byte-exact.
|
|
21
21
|
- Scope, plans, and report each end at a gate you approve. The state machine refuses to skip one.
|
|
22
22
|
- All engagement state lives on disk. Any run resumes from where it stopped, even after a cold start.
|
|
@@ -58,6 +58,10 @@ interview asks for the autonomy level, and it is a real dial, not prose:
|
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
60
|
bash lab/run.sh # full engagement vs OWASP Juice Shop — contained, then torn down
|
|
61
|
+
AUTONOMY=autonomous bash lab/run.sh # the SAME engagement, full walk-away: the state
|
|
62
|
+
# machine auto-records every checkpoint
|
|
63
|
+
# (approved_by: autonomous-mode) and the run
|
|
64
|
+
# fails unless the provenance is on the artifacts
|
|
61
65
|
```
|
|
62
66
|
|
|
63
67
|
It runs init, scope, recon, map, plan, test, validate, report, retest, close. It finds a real unauthenticated flaw (`/ftp/` exposes a password vault and backups), writes a report, verifies the hash-chained evidence ledger, then removes the network. The annotated walkthrough is [`lab/CASE-STUDY.md`](lab/CASE-STUDY.md).
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v1.2.
|
|
1
|
+
v1.2.3
|
package/package.json
CHANGED
package/src/installer/home.cjs
CHANGED
|
@@ -112,6 +112,12 @@ function buildSharedHome(HOME, { version, log }) {
|
|
|
112
112
|
const binDir = path.join(home, 'bin');
|
|
113
113
|
fs.mkdirSync(binDir, { recursive: true });
|
|
114
114
|
const sdkBin = path.join(binDir, 'pensieve-sdk');
|
|
115
|
+
// COLLISION FIX (v1.2.3): a pre-existing ~/.pensieve from the .sh installer
|
|
116
|
+
// symlinks bin/pensieve-sdk INTO a repo checkout — writeFileSync would
|
|
117
|
+
// FOLLOW that link and overwrite the repo's SDK bin with this shim (found
|
|
118
|
+
// live on the owner's machine). Remove the path FIRST: the shim REPLACES
|
|
119
|
+
// whatever is there (symlink or file), never writes through it.
|
|
120
|
+
fs.rmSync(sdkBin, { force: true, recursive: true });
|
|
115
121
|
fs.writeFileSync(sdkBin,
|
|
116
122
|
'#!/usr/bin/env node\n'
|
|
117
123
|
+ "// PENSIEVE launcher — delegates to the self-contained copy at ~/.pensieve/sdk\n"
|
|
@@ -119,7 +125,10 @@ function buildSharedHome(HOME, { version, log }) {
|
|
|
119
125
|
fs.chmodSync(sdkBin, 0o755);
|
|
120
126
|
const smoke = spawnSync(process.execPath, [sdkBin, 'help'], { encoding: 'utf8' });
|
|
121
127
|
if (smoke.status !== 0) {
|
|
122
|
-
throw new Error(
|
|
128
|
+
throw new Error(
|
|
129
|
+
'pensieve-sdk smoke test failed after copy — the copied SDK is not runnable'
|
|
130
|
+
+ (smoke.stderr ? `: ${String(smoke.stderr).split('\n')[0]}` : ` (exit ${smoke.status})`)
|
|
131
|
+
);
|
|
123
132
|
}
|
|
124
133
|
if (log) log(`pensieve-sdk -> ${sdkBin} (self-contained copy, smoke OK)`);
|
|
125
134
|
|