Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ dr-store/
.threat-model-state/
.triage-state/

# ── Local security docs (generated/kept local) ─────────────────────────────────
THREAT_MODEL.md
TRIAGE.md
TRIAGE.json

# ── Local agent/tool state ────────────────────────────────────────────────────
.claude/
.codex/sessions/
Expand Down
2 changes: 1 addition & 1 deletion drs-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"prettier": "^3.2.0",
"typescript": "^6.0.3",
"vite": "^6.4.3",
"vitest": "^1.4.0"
"vitest": "^4.1.0"
},
"engines": {
"node": ">=20.0.0"
Expand Down
9 changes: 7 additions & 2 deletions integration-tests/tests/e2e.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,16 @@ describe("failure paths", () => {
toolServer: "did:key:z6MkTool",
});

// Flip the last character of the signature segment.
// Flip the first character of the signature segment.
// Note: flipping the LAST base64url character of an Ed25519 signature
// (which has padding bits below position 4) would not always change the
// decoded bytes — the last character only carries 2 real data bits, and
// flipping between A↔B when the original is 'A' only flips padding bits.
// Flipping sig[0] guarantees 6 real data bits are changed.
const parts = invocation.split(".");
const sig = parts[2];
const tampered =
parts[0] + "." + parts[1] + "." + sig.slice(0, -1) + (sig.slice(-1) === "A" ? "B" : "A");
parts[0] + "." + parts[1] + "." + (sig[0] === "A" ? "B" : "A") + sig.slice(1);

const bundle = buildBundle([rootDR], tampered);
const { body } = await postVerify(VERIFY_URL, bundle);
Expand Down
2 changes: 1 addition & 1 deletion packages/drs-mcp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prettier": "^3.8.3",
"typescript": "^6.0.3",
"vite": "^6.4.3",
"vitest": "^1.4.0"
"vitest": "^4.1.0"
},
"engines": {
"node": ">=20.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/drs-mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prettier": "^3.8.3",
"typescript": "^6.0.3",
"vite": "^6.4.3",
"vitest": "^1.4.0"
"vitest": "^4.1.0"
},
"engines": {
"node": ">=20.0.0"
Expand Down
Loading
Loading